From 915595f3347330c3a29e2f28abad1000dd6f6833 Mon Sep 17 00:00:00 2001 From: Nick Partridge Date: Tue, 8 Jun 2021 17:26:53 -0500 Subject: [PATCH] build(workspaces): implement src as workspace package (#1198) Key changes: - move `./src/**` to `./packages/elastic-charts/**` - correct all paths due to file sturcture changes - fix bad docs paths and config options - create top-level mono package, move lib package - simplify lib tsconfig.json files - fix errors in linking package, cleanup paths - fix linting config to reflect file structure changes - update semantic release to point at new lib package - add lerna to facilitate running workspace scripts --- .../elastic+elastic-charts+pull-request.yml | 2 +- .eslintignore | 7 +- .eslintrc.js | 30 +- .github/pull_request_template.md | 2 +- .gitignore | 8 +- .prettierignore | 4 +- .releaserc.js | 36 + .releaserc.json | 18 - CONTRIBUTING.md | 53 +- docs/0-Intro/0-Intro.mdx | 6 +- docs/0-Intro/1-Overview.mdx | 8 +- docs/1-Typesofchart/0-Bar.mdx | 10 +- docs/1-Typesofchart/1-Area.mdx | 16 +- docs/1-Typesofchart/2-Line.mdx | 16 +- docs/1-Typesofchart/3-Stacked.mdx | 4 +- docs/1-Typesofchart/4-Sunburts.mdx | 16 +- docs/1-Typesofchart/5-AnnotatingBars.mdx | 8 +- docs/1-Typesofchart/6-LegendsBars.mdx | 10 +- docs/1-Typesofchart/8-Donut.mdx | 10 +- docs/2-ChartPropTables/7-PropTables.mdx | 8 +- .../8-ConsolidatedSnippets.mdx | 22 +- docs/charts.tsx | 6 +- integration/helpers.ts | 2 +- integration/page_objects/common.ts | 2 +- .../server/generate/vrt_page_template.js | 2 +- integration/server/webpack.config.js | 2 +- integration/server/webpack.tsconfig.json | 2 +- integration/tests/annotations_stories.test.ts | 2 +- integration/tests/axis_stories.test.ts | 2 +- integration/tests/bar_stories.test.ts | 2 +- integration/tests/interactions.test.ts | 2 +- integration/tests/legend_stories.test.ts | 2 +- integration/tests/mixed_stories.test.ts | 2 +- integration/tests/scales_stories.test.ts | 2 +- integration/tests/stylings_stories.test.ts | 2 +- jest.config.js | 8 +- lerna.json | 7 + package.json | 74 +- packages/charts/.gitignore | 6 + .npmignore => packages/charts/.npmignore | 0 .../charts/api-extractor.jsonc | 4 +- {api => packages/charts/api}/charts.api.md | 0 packages/charts/package.json | 67 + .../charts/scripts}/concat_sass.js | 0 packages/charts/scripts/move_txt_files.js | 25 + packages/charts/src/_eui_imports.scss | 3 + .../goal_chart/layout/config/config.ts | 0 .../goal_chart/layout/types/config_types.ts | 0 .../layout/types/viewmodel_types.ts | 0 .../goal_chart/layout/viewmodel/viewmodel.ts | 0 .../renderer/canvas/canvas_renderers.ts | 0 .../renderer/canvas/connected_component.tsx | 0 .../chart_types/goal_chart/specs/constants.ts | 0 .../chart_types/goal_chart/specs/index.ts | 0 .../goal_chart/state/chart_state.tsx | 0 .../goal_chart/state/selectors/geometries.ts | 0 .../selectors/get_chart_type_description.ts | 0 .../goal_chart/state/selectors/goal_spec.ts | 0 .../state/selectors/is_tooltip_visible.ts | 0 .../selectors/on_element_click_caller.ts | 0 .../state/selectors/on_element_out_caller.ts | 0 .../state/selectors/on_element_over_caller.ts | 0 .../state/selectors/picked_shapes.ts | 0 .../goal_chart/state/selectors/scenegraph.ts | 0 .../goal_chart/state/selectors/tooltip.ts | 0 .../heatmap/layout/config/config.ts | 0 .../heatmap/layout/types/config_types.ts | 0 .../heatmap/layout/types/viewmodel_types.ts | 0 .../heatmap/layout/viewmodel/viewmodel.ts | 0 .../renderer/canvas/canvas_renderers.ts | 0 .../renderer/canvas/connected_component.tsx | 0 .../heatmap/renderer/dom/highlighter.tsx | 0 .../renderer/dom/highlighter_brush.tsx | 0 .../src}/chart_types/heatmap/specs/heatmap.ts | 0 .../src}/chart_types/heatmap/specs/index.ts | 0 .../heatmap/specs/scale_defaults.ts | 0 .../chart_types/heatmap/state/chart_state.tsx | 0 .../selectors/compute_chart_dimensions.ts | 0 .../heatmap/state/selectors/compute_legend.ts | 0 .../heatmap/state/selectors/geometries.ts | 0 .../heatmap/state/selectors/get_brush_area.ts | 0 .../get_brushed_highlighted_shapes.ts | 0 .../state/selectors/get_color_scale.ts | 0 .../state/selectors/get_cursor_pointer.ts | 0 .../state/selectors/get_debug_state.ts | 0 .../state/selectors/get_grid_full_height.ts | 0 .../state/selectors/get_heatmap_config.ts | 0 .../selectors/get_heatmap_container_size.ts | 0 .../state/selectors/get_heatmap_spec.ts | 0 .../state/selectors/get_heatmap_table.ts | 0 .../state/selectors/get_highlighted_area.ts | 0 .../selectors/get_legend_items_labels.ts | 0 .../state/selectors/get_picked_cells.ts | 0 .../state/selectors/get_tooltip_anchor.ts | 0 .../selectors/get_x_axis_right_overflow.ts | 0 .../heatmap/state/selectors/heatmap_spec.ts | 0 .../state/selectors/is_brush_available.ts | 0 .../heatmap/state/selectors/is_brushing.ts | 0 .../state/selectors/is_tooltip_visible.ts | 0 .../state/selectors/on_brush_end_caller.ts | 0 .../selectors/on_element_click_caller.ts | 0 .../state/selectors/on_element_out_caller.ts | 0 .../state/selectors/on_element_over_caller.ts | 0 .../heatmap/state/selectors/picked_shapes.ts | 0 .../heatmap/state/selectors/scenegraph.ts | 0 .../heatmap/state/selectors/tooltip.ts | 0 .../charts/src}/chart_types/index.ts | 0 .../partition_chart/layout/config.ts | 0 .../layout/types/config_types.ts | 0 .../layout/types/viewmodel_types.ts | 0 .../layout/utils/circline_geometry.ts | 0 .../layout/utils/group_by_rollup.ts | 0 .../layout/utils/highlighted_geoms.ts | 0 .../partition_chart/layout/utils/legend.ts | 0 .../layout/utils/legend_labels.ts | 0 .../partition_chart/layout/utils/sunburst.ts | 0 .../partition_chart/layout/utils/treemap.ts | 0 .../layout/viewmodel/fill_text_layout.test.ts | 0 .../layout/viewmodel/fill_text_layout.ts | 0 .../viewmodel/hierarchy_of_arrays.test.ts | 0 .../layout/viewmodel/hierarchy_of_arrays.ts | 0 .../layout/viewmodel/link_text_layout.ts | 0 .../layout/viewmodel/picked_shapes.ts | 0 .../layout/viewmodel/scenegraph.ts | 0 .../layout/viewmodel/tooltip_info.ts | 0 .../layout/viewmodel/viewmodel.ts | 0 .../partition_chart/partition.test.tsx | 0 .../partition_chart/renderer/_index.scss | 0 .../canvas/canvas_linear_renderers.ts | 0 .../renderer/canvas/canvas_renderers.ts | 0 .../renderer/canvas/partition.tsx | 0 .../renderer/dom/highlighter.tsx | 0 .../renderer/dom/highlighter_hover.tsx | 0 .../renderer/dom/highlighter_legend.tsx | 0 .../renderer/dom/layered_partition_chart.tsx | 0 .../partition_chart/specs/index.ts | 0 .../partition_chart/state/chart_state.tsx | 0 .../get_legend_items_extra.test.ts.snap | 0 .../state/selectors/compute_legend.ts | 0 .../state/selectors/drilldown_active.ts | 0 .../state/selectors/geometries.ts | 0 .../selectors/get_chart_type_description.ts | 0 .../state/selectors/get_debug_state.test.ts | 0 .../state/selectors/get_debug_state.ts | 0 .../state/selectors/get_highlighted_shapes.ts | 0 .../selectors/get_legend_items_extra.test.ts | 0 .../state/selectors/get_legend_items_extra.ts | 0 .../selectors/get_legend_items_labels.test.ts | 0 .../selectors/get_legend_items_labels.ts | 0 .../state/selectors/get_partition_specs.ts | 0 .../state/selectors/is_tooltip_visible.ts | 0 .../selectors/on_element_click_caller.ts | 0 .../state/selectors/on_element_out_caller.ts | 0 .../state/selectors/on_element_over_caller.ts | 0 .../state/selectors/partition_spec.ts | 0 .../state/selectors/picked_shapes.test.ts | 0 .../state/selectors/picked_shapes.ts | 0 .../state/selectors/tooltip.ts | 0 .../partition_chart/state/selectors/tree.ts | 0 .../charts/src}/chart_types/specs.ts | 0 .../wordcloud/layout/config/config.ts | 0 .../wordcloud/layout/types/config_types.ts | 0 .../wordcloud/layout/types/viewmodel_types.ts | 0 .../wordcloud/layout/viewmodel/viewmodel.ts | 0 .../renderer/svg/connected_component.tsx | 0 .../src}/chart_types/wordcloud/specs/index.ts | 0 .../wordcloud/state/chart_state.tsx | 0 .../wordcloud/state/selectors/geometries.ts | 0 .../selectors/on_element_click_caller.ts | 0 .../state/selectors/on_element_out_caller.ts | 0 .../state/selectors/on_element_over_caller.ts | 0 .../state/selectors/picked_shapes.ts | 0 .../wordcloud/state/selectors/scenegraph.ts | 0 .../state/selectors/wordcloud_spec.ts | 0 .../line/dimensions.integration.test.ts | 0 .../annotations/line/dimensions.test.ts | 0 .../xy_chart/annotations/line/dimensions.ts | 0 .../xy_chart/annotations/line/line.test.tsx | 0 .../annotations/line/tooltip.test.tsx | 0 .../xy_chart/annotations/line/types.ts | 0 .../rect/dimensions.integration.test.ts | 0 .../annotations/rect/dimensions.test.ts | 0 .../xy_chart/annotations/rect/dimensions.ts | 0 .../xy_chart/annotations/rect/tooltip.test.ts | 0 .../xy_chart/annotations/rect/tooltip.ts | 0 .../xy_chart/annotations/rect/types.ts | 0 .../xy_chart/annotations/tooltip.ts | 0 .../chart_types/xy_chart/annotations/types.ts | 0 .../xy_chart/annotations/utils.test.ts | 0 .../chart_types/xy_chart/annotations/utils.ts | 0 .../chart_types/xy_chart/axes/axes_sizes.ts | 0 .../xy_chart/crosshair/crosshair_line.test.ts | 0 .../crosshair_utils.linear_snap.test.ts | 0 .../crosshair_utils.ordinal_snap.test.ts | 0 .../xy_chart/crosshair/crosshair_utils.ts | 0 .../src}/chart_types/xy_chart/domains/nice.ts | 0 .../chart_types/xy_chart/domains/types.ts | 0 .../xy_chart/domains/x_domain.test.ts | 0 .../chart_types/xy_chart/domains/x_domain.ts | 0 .../xy_chart/domains/y_domain.test.ts | 0 .../chart_types/xy_chart/domains/y_domain.ts | 0 .../xy_chart/legend/legend.test.ts | 0 .../chart_types/xy_chart/legend/legend.ts | 0 .../chart_types/xy_chart/renderer/_index.scss | 0 .../renderer/canvas/annotations/index.ts | 0 .../renderer/canvas/annotations/lines.ts | 0 .../renderer/canvas/annotations/rect.ts | 0 .../xy_chart/renderer/canvas/areas.ts | 0 .../renderer/canvas/axes/global_title.ts | 0 .../xy_chart/renderer/canvas/axes/index.ts | 0 .../xy_chart/renderer/canvas/axes/line.ts | 0 .../renderer/canvas/axes/panel_title.ts | 0 .../xy_chart/renderer/canvas/axes/tick.ts | 0 .../renderer/canvas/axes/tick_label.ts | 0 .../xy_chart/renderer/canvas/bars.ts | 0 .../xy_chart/renderer/canvas/bubbles.ts | 0 .../xy_chart/renderer/canvas/grids.ts | 0 .../xy_chart/renderer/canvas/lines.ts | 0 .../xy_chart/renderer/canvas/panels/panels.ts | 0 .../xy_chart/renderer/canvas/points.ts | 0 .../renderer/canvas/primitives/arc.ts | 0 .../renderer/canvas/primitives/line.ts | 0 .../renderer/canvas/primitives/path.ts | 0 .../renderer/canvas/primitives/rect.ts | 0 .../renderer/canvas/primitives/shapes.ts | 0 .../renderer/canvas/primitives/text.ts | 0 .../renderer/canvas/primitives/utils.ts | 0 .../xy_chart/renderer/canvas/renderers.ts | 0 .../renderer/canvas/styles/area.test.ts | 0 .../xy_chart/renderer/canvas/styles/area.ts | 0 .../renderer/canvas/styles/bar.test.ts | 0 .../xy_chart/renderer/canvas/styles/bar.ts | 0 .../renderer/canvas/styles/line.test.ts | 0 .../xy_chart/renderer/canvas/styles/line.ts | 0 .../xy_chart/renderer/canvas/utils/debug.ts | 0 .../renderer/canvas/utils/panel_transform.ts | 0 .../xy_chart/renderer/canvas/values/bar.ts | 0 .../xy_chart/renderer/canvas/xy_chart.tsx | 0 .../xy_chart/renderer/dom/_crosshair.scss | 0 .../xy_chart/renderer/dom/_highlighter.scss | 0 .../xy_chart/renderer/dom/_index.scss | 0 .../xy_chart/renderer/dom/_screen_reader.scss | 0 .../dom/annotations/_annotations.scss | 0 .../renderer/dom/annotations/_index.scss | 0 .../dom/annotations/annotation_tooltip.tsx | 0 .../renderer/dom/annotations/annotations.tsx | 0 .../renderer/dom/annotations/index.ts | 0 .../renderer/dom/annotations/line_marker.tsx | 0 .../dom/annotations/tooltip_content.tsx | 0 .../xy_chart/renderer/dom/crosshair.tsx | 0 .../xy_chart/renderer/dom/highlighter.tsx | 0 .../xy_chart/renderer/shapes_paths.ts | 0 .../chart_types/xy_chart/rendering/area.ts | 0 .../chart_types/xy_chart/rendering/bars.ts | 0 .../chart_types/xy_chart/rendering/bubble.ts | 0 .../xy_chart/rendering/constants.ts | 0 .../chart_types/xy_chart/rendering/line.ts | 0 .../xy_chart/rendering/point_style.ts | 0 .../chart_types/xy_chart/rendering/points.ts | 0 .../rendering/rendering.areas.test.ts | 0 .../rendering/rendering.bands.test.ts | 0 .../xy_chart/rendering/rendering.bars.test.ts | 0 .../rendering/rendering.bubble.test.ts | 0 .../rendering/rendering.lines.test.ts | 0 .../xy_chart/rendering/rendering.test.ts | 0 .../chart_types/xy_chart/rendering/utils.ts | 0 .../xy_chart/scales/get_api_scales.ts | 0 .../xy_chart/scales/scale_defaults.ts | 0 .../xy_chart/specs/area_series.tsx | 0 .../src}/chart_types/xy_chart/specs/axis.tsx | 0 .../chart_types/xy_chart/specs/bar_series.tsx | 0 .../xy_chart/specs/bubble_series.tsx | 0 .../xy_chart/specs/histogram_bar_series.tsx | 0 .../src}/chart_types/xy_chart/specs/index.ts | 0 .../xy_chart/specs/line_annotation.test.tsx | 0 .../xy_chart/specs/line_annotation.tsx | 0 .../xy_chart/specs/line_series.tsx | 0 .../xy_chart/specs/rect_annotation.tsx | 0 .../state/chart_state.accessibility.test.ts | 0 .../state/chart_state.interactions.test.ts | 0 .../xy_chart/state/chart_state.specs.test.ts | 0 .../xy_chart/state/chart_state.test.ts | 0 .../state/chart_state.timescales.test.ts | 0 .../state/chart_state.tooltip.test.ts | 0 .../xy_chart/state/chart_state.tsx | 0 .../state/selectors/compute_annotations.ts | 0 .../selectors/compute_axes_geometries.ts | 0 .../compute_axis_ticks_dimensions.ts | 0 .../selectors/compute_chart_dimensions.ts | 0 .../selectors/compute_chart_transform.ts | 0 .../state/selectors/compute_grid_lines.ts | 0 .../state/selectors/compute_legend.ts | 0 .../state/selectors/compute_panels.ts | 0 .../selectors/compute_per_panel_axes_geoms.ts | 0 .../state/selectors/compute_series_domains.ts | 0 .../selectors/compute_series_geometries.ts | 0 .../compute_small_multiple_scales.ts | 0 .../state/selectors/count_bars_in_cluster.ts | 0 .../selectors/get_annotation_tooltip_state.ts | 0 .../selectors/get_api_scale_configs.test.ts | 0 .../state/selectors/get_api_scale_configs.ts | 0 .../state/selectors/get_axis_styles.ts | 0 .../state/selectors/get_bar_paddings.ts | 0 .../state/selectors/get_brush_area.test.ts | 0 .../state/selectors/get_brush_area.ts | 0 .../selectors/get_chart_type_description.ts | 0 .../state/selectors/get_computed_scales.ts | 0 .../state/selectors/get_cursor_band.ts | 0 .../state/selectors/get_cursor_line.ts | 0 .../state/selectors/get_cursor_pointer.ts | 0 .../state/selectors/get_debug_state.ts | 0 .../get_elements_at_cursor_pos.test.ts | 0 .../selectors/get_elements_at_cursor_pos.ts | 0 .../state/selectors/get_geometries_index.ts | 0 .../selectors/get_geometries_index_keys.ts | 0 .../state/selectors/get_grid_lines.ts | 0 .../state/selectors/get_highlighted_series.ts | 0 .../state/selectors/get_highlighted_values.ts | 0 .../selectors/get_legend_items_labels.ts | 0 ...get_oriented_projected_pointer_position.ts | 0 .../get_projected_pointer_position.ts | 0 .../selectors/get_projected_scaled_values.ts | 0 .../state/selectors/get_series_color_map.ts | 0 .../state/selectors/get_si_dataseries_map.ts | 0 .../state/selectors/get_specs.test.ts | 0 .../xy_chart/state/selectors/get_specs.ts | 0 .../state/selectors/get_tooltip_position.ts | 0 .../state/selectors/get_tooltip_snap.ts | 0 .../state/selectors/get_tooltip_type.ts | 0 ...t_tooltip_values_highlighted_geoms.test.ts | 0 .../get_tooltip_values_highlighted_geoms.ts | 0 .../state/selectors/has_single_series.ts | 0 .../is_annotation_tooltip_visible.ts | 0 .../state/selectors/is_brush_available.ts | 0 .../xy_chart/state/selectors/is_brushing.ts | 0 .../state/selectors/is_chart_animatable.ts | 0 .../state/selectors/is_chart_empty.ts | 0 .../selectors/is_histogram_mode_enabled.ts | 0 .../selectors/is_tooltip_snap_enabled.ts | 0 .../state/selectors/is_tooltip_visible.ts | 0 .../state/selectors/merge_y_custom_domains.ts | 0 .../state/selectors/on_brush_end_caller.ts | 0 .../state/selectors/on_click_caller.ts | 0 .../state/selectors/on_element_out_caller.ts | 0 .../state/selectors/on_element_over_caller.ts | 0 .../state/selectors/on_pointer_move_caller.ts | 0 .../utils/__snapshots__/utils.test.ts.snap | 0 .../xy_chart/state/utils/common.test.ts | 0 .../xy_chart/state/utils/common.ts | 0 .../xy_chart/state/utils/get_last_value.ts | 0 .../chart_types/xy_chart/state/utils/spec.ts | 0 .../chart_types/xy_chart/state/utils/types.ts | 0 .../xy_chart/state/utils/utils.test.ts | 0 .../chart_types/xy_chart/state/utils/utils.ts | 0 .../xy_chart/tooltip/tooltip.test.ts | 0 .../chart_types/xy_chart/tooltip/tooltip.ts | 0 .../__snapshots__/dimensions.test.ts.snap | 0 .../utils/__snapshots__/series.test.ts.snap | 0 .../xy_chart/utils/axis_type_utils.test.ts | 0 .../xy_chart/utils/axis_type_utils.ts | 0 .../xy_chart/utils/axis_utils.test.ts | 0 .../chart_types/xy_chart/utils/axis_utils.ts | 0 .../xy_chart/utils/default_series_sort_fn.ts | 0 .../xy_chart/utils/dimensions.test.ts | 0 .../chart_types/xy_chart/utils/dimensions.ts | 0 .../chart_types/xy_chart/utils/fill_series.ts | 0 .../xy_chart/utils/fit_function.test.ts | 0 .../xy_chart/utils/fit_function.ts | 0 .../xy_chart/utils/fit_function_utils.ts | 0 .../xy_chart/utils/grid_lines.test.ts | 0 .../chart_types/xy_chart/utils/grid_lines.ts | 0 .../xy_chart/utils/group_data_series.ts | 0 .../utils/indexed_geometry_linear_map.ts | 0 .../xy_chart/utils/indexed_geometry_map.ts | 0 .../utils/indexed_geometry_spatial_map.ts | 0 .../xy_chart/utils/interactions.test.ts | 0 .../xy_chart/utils/interactions.ts | 0 .../utils/nonstacked_series_utils.test.ts | 0 .../src}/chart_types/xy_chart/utils/panel.ts | 0 .../chart_types/xy_chart/utils/panel_utils.ts | 0 .../chart_types/xy_chart/utils/scales.test.ts | 0 .../src}/chart_types/xy_chart/utils/scales.ts | 0 .../chart_types/xy_chart/utils/series.test.ts | 0 .../src}/chart_types/xy_chart/utils/series.ts | 0 .../src}/chart_types/xy_chart/utils/specs.ts | 0 .../stacked_percent_series_utils.test.ts | 0 .../utils/stacked_series_utils.test.ts | 0 .../xy_chart/utils/stacked_series_utils.ts | 0 .../chart_types/xy_chart/utils/texture.ts | 0 .../charts/src}/common/__mocks__/calcs.ts | 0 .../__mocks__/color_library_wrappers.ts | 0 .../src}/common/__mocks__/fill_text_layout.ts | 0 .../src}/common/__mocks__/link_text_layout.ts | 0 .../charts/src}/common/category.ts | 0 .../charts/src}/common/color_calcs.test.ts | 0 .../charts/src}/common/color_calcs.ts | 0 .../common/color_library_wrappers.test.ts | 0 .../src}/common/color_library_wrappers.ts | 0 .../charts/src}/common/config_objects.ts | 0 .../charts/src}/common/constants.ts | 0 .../src}/common/event_handler_selectors.ts | 0 .../charts/src}/common/fill_text_color.ts | 0 .../charts/src}/common/geometry.ts | 0 .../charts/src}/common/iterables.ts | 0 {src => packages/charts/src}/common/legend.ts | 0 {src => packages/charts/src}/common/math.ts | 0 .../charts/src}/common/predicate.ts | 0 .../charts/src}/common/series_id.ts | 0 .../charts/src}/common/text_utils.ts | 0 .../__snapshots__/chart.test.tsx.snap | 0 .../charts/src}/components/_container.scss | 0 .../charts/src}/components/_global.scss | 0 .../charts/src}/components/_index.scss | 0 .../src}/components/_unavailable_chart.scss | 0 .../accessibility/accessibility.test.tsx | 0 .../components/accessibility/description.tsx | 0 .../src}/components/accessibility/index.ts | 0 .../src}/components/accessibility/label.tsx | 0 .../accessibility/screen_reader_summary.tsx | 0 .../src}/components/accessibility/types.tsx | 0 .../charts/src}/components/brush/_brush.scss | 0 .../charts/src}/components/brush/_index.scss | 0 .../charts/src}/components/brush/brush.tsx | 0 .../charts/src}/components/chart.snap.test.ts | 0 .../charts/src}/components/chart.test.tsx | 0 .../charts/src}/components/chart.tsx | 0 .../src}/components/chart_background.tsx | 0 .../src}/components/chart_container.tsx | 0 .../charts/src}/components/chart_resizer.tsx | 0 .../charts/src}/components/chart_status.tsx | 0 .../error_boundary/error_boundary.tsx | 0 .../src}/components/error_boundary/errors.ts | 0 .../src}/components/error_boundary/index.tsx | 0 .../charts/src}/components/icons/_icon.scss | 0 .../charts/src}/components/icons/_index.scss | 0 .../src}/components/icons/assets/alert.tsx | 0 .../src}/components/icons/assets/dot.tsx | 0 .../src}/components/icons/assets/empty.tsx | 0 .../src}/components/icons/assets/eye.tsx | 0 .../components/icons/assets/eye_closed.tsx | 0 .../src}/components/icons/assets/list.tsx | 0 .../icons/assets/question_in_circle.tsx | 0 .../charts/src}/components/icons/icon.tsx | 0 .../charts/src}/components/index.ts | 0 .../legend/__snapshots__/legend.test.tsx.snap | 0 .../charts/src}/components/legend/_index.scss | 0 .../src}/components/legend/_legend.scss | 0 .../src}/components/legend/_legend_item.scss | 0 .../src}/components/legend/_variables.scss | 0 .../charts/src}/components/legend/color.tsx | 0 .../charts/src}/components/legend/extra.tsx | 0 .../charts/src}/components/legend/label.tsx | 0 .../src}/components/legend/legend.test.tsx | 0 .../charts/src}/components/legend/legend.tsx | 0 .../src}/components/legend/legend_item.tsx | 0 .../src}/components/legend/position_style.ts | 0 .../src}/components/legend/style_utils.ts | 0 .../charts/src}/components/legend/utils.ts | 0 .../charts/src}/components/no_results.tsx | 0 .../charts/src}/components/portal/_index.scss | 0 .../src}/components/portal/_portal.scss | 0 .../charts/src}/components/portal/index.ts | 0 .../src}/components/portal/tooltip_portal.tsx | 0 .../charts/src}/components/portal/types.ts | 0 .../charts/src}/components/portal/utils.ts | 0 .../src}/components/tooltip/_index.scss | 0 .../src}/components/tooltip/_tooltip.scss | 0 .../tooltip/get_tooltip_settings.ts | 0 .../charts/src}/components/tooltip/index.ts | 0 .../src}/components/tooltip/tooltip.tsx | 0 .../charts/src}/components/tooltip/types.ts | 0 {src => packages/charts/src}/geoms/types.ts | 0 {src => packages/charts/src}/index.ts | 0 .../src}/mocks/annotations/annotations.ts | 0 {src => packages/charts/src}/mocks/canvas.ts | 0 .../charts/src}/mocks/geometries.ts | 0 .../hierarchical/cpu_profile_tree_mock.json | 0 .../mocks/hierarchical/dimension_codes.ts | 0 .../charts/src}/mocks/hierarchical/index.ts | 0 .../src}/mocks/hierarchical/many_pie.ts | 0 .../src}/mocks/hierarchical/mini_sunburst.ts | 0 .../mocks/hierarchical/observability_tree.ts | 0 .../src}/mocks/hierarchical/palettes.ts | 0 .../charts/src}/mocks/hierarchical/pie.ts | 0 .../src}/mocks/hierarchical/sunburst.ts | 0 {src => packages/charts/src}/mocks/index.ts | 0 .../charts/src}/mocks/scale/index.ts | 0 .../charts/src}/mocks/scale/scale.ts | 0 .../charts/src}/mocks/series/data.ts | 0 .../charts/src}/mocks/series/index.ts | 0 .../charts/src}/mocks/series/series.ts | 0 .../src}/mocks/series/series_identifiers.ts | 0 .../charts/src}/mocks/series/utils.ts | 0 .../charts/src}/mocks/specs/index.ts | 0 .../charts/src}/mocks/specs/specs.ts | 0 .../charts/src}/mocks/store/index.ts | 0 .../charts/src}/mocks/store/store.ts | 0 {src => packages/charts/src}/mocks/theme.ts | 0 {src => packages/charts/src}/mocks/utils.ts | 0 .../charts/src}/mocks/xy/domains.ts | 0 .../charts/src}/renderers/canvas/index.ts | 0 packages/charts/src/reset_dark.scss | 6 + packages/charts/src/reset_light.scss | 6 + .../charts/src}/scales/constants.ts | 0 {src => packages/charts/src}/scales/index.ts | 0 .../charts/src}/scales/scale_band.test.ts | 0 .../charts/src}/scales/scale_band.ts | 0 .../src}/scales/scale_continuous.test.ts | 0 .../charts/src}/scales/scale_continuous.ts | 0 .../charts/src}/scales/scale_time.test.ts | 0 .../charts/src}/scales/scales.test.ts | 0 {src => packages/charts/src}/scales/types.ts | 0 .../src}/solvers/monotonic_hill_climb.ts | 0 .../screenspace_marker_scale_compressor.ts | 0 .../charts/src}/specs/constants.ts | 0 .../charts/src}/specs/group_by.ts | 0 {src => packages/charts/src}/specs/index.ts | 0 .../charts/src}/specs/settings.test.tsx | 0 .../charts/src}/specs/settings.tsx | 0 .../charts/src}/specs/small_multiples.ts | 0 .../charts/src}/specs/specs_parser.test.tsx | 0 .../charts/src}/specs/specs_parser.tsx | 0 .../charts/src}/state/actions/chart.ts | 0 .../src}/state/actions/chart_settings.ts | 0 .../charts/src}/state/actions/colors.ts | 0 .../charts/src}/state/actions/dom_element.ts | 0 .../charts/src}/state/actions/events.ts | 0 .../charts/src}/state/actions/index.ts | 0 .../charts/src}/state/actions/key.ts | 0 .../charts/src}/state/actions/legend.ts | 0 .../charts/src}/state/actions/mouse.ts | 0 .../charts/src}/state/actions/specs.ts | 0 .../charts/src}/state/actions/z_index.ts | 0 .../charts/src}/state/chart_state.ts | 0 .../src}/state/reducers/interactions.ts | 0 .../selectors/get_accessibility_config.ts | 0 .../get_chart_container_dimensions.ts | 0 .../src}/state/selectors/get_chart_id.ts | 0 .../state/selectors/get_chart_rotation.ts | 0 .../src}/state/selectors/get_chart_theme.ts | 0 .../selectors/get_chart_type_components.ts | 0 .../selectors/get_chart_type_description.ts | 0 .../src}/state/selectors/get_debug_state.ts | 0 .../selectors/get_deselected_data_series.ts | 0 .../selectors/get_internal_brush_area.ts | 0 .../selectors/get_internal_cursor_pointer.ts | 0 .../selectors/get_internal_is_brushing.ts | 0 .../get_internal_is_brushing_available.ts | 0 .../selectors/get_internal_is_intialized.ts | 0 .../get_internal_is_tooltip_visible.ts | 0 .../get_internal_main_projection_area.ts | 0 .../get_internal_projection_container_area.ts | 0 .../get_internal_tooltip_anchor_position.ts | 0 .../selectors/get_internal_tooltip_info.ts | 0 .../src}/state/selectors/get_last_click.ts | 0 .../src}/state/selectors/get_last_drag.ts | 0 .../selectors/get_legend_config_selector.ts | 0 .../src}/state/selectors/get_legend_items.ts | 0 .../selectors/get_legend_items_labels.ts | 0 .../selectors/get_legend_items_values.ts | 0 .../src}/state/selectors/get_legend_size.ts | 0 .../selectors/get_settings_specs.test.ts | 0 .../state/selectors/get_settings_specs.ts | 0 .../selectors/get_small_multiples_spec.ts | 0 .../selectors/get_tooltip_header_formatter.ts | 0 .../selectors/has_external_pointer_event.ts | 0 .../src}/state/selectors/is_chart_empty.ts | 0 .../selectors/is_external_tooltip_visible.ts | 0 .../charts/src}/state/spec_factory.test.tsx | 0 .../charts/src}/state/spec_factory.ts | 0 {src => packages/charts/src}/state/types.ts | 0 .../charts/src}/state/utils.test.ts | 0 {src => packages/charts/src}/state/utils.ts | 0 packages/charts/src/theme_dark.scss | 7 + packages/charts/src/theme_light.scss | 7 + packages/charts/src/theme_only_dark.scss | 6 + packages/charts/src/theme_only_light.scss | 6 + .../charts/src}/utils/__mocks__/common.ts | 0 .../charts/src}/utils/accessor.ts | 0 .../charts/src}/utils/bbox/bbox_calculator.ts | 0 .../bbox/canvas_text_bbox_calculator.test.ts | 0 .../utils/bbox/canvas_text_bbox_calculator.ts | 0 .../utils/bbox/dom_text_bbox_calculator.ts | 0 .../utils/bbox/svg_text_bbox_calculator.ts | 0 .../charts/src}/utils/chart_size.test.ts | 0 .../charts/src}/utils/chart_size.ts | 0 .../charts/src}/utils/common.test.ts | 0 {src => packages/charts/src}/utils/common.tsx | 0 .../charts/src}/utils/curves.test.ts | 0 {src => packages/charts/src}/utils/curves.ts | 0 .../charts/src}/utils/d3-delaunay/index.ts | 2 - .../charts/src}/utils/data/date_time.ts | 0 .../charts/src}/utils/data/formatters.ts | 0 .../src}/utils/data/formatters.tz.test.ts | 0 .../src}/utils/data/formatters.tz.test.utc.ts | 0 .../utils/data_generators/data_generator.ts | 0 .../utils/data_generators/simple_noise.ts | 0 .../utils/data_samples/4_time_series.json | 0 .../src}/utils/data_samples/babynames.ts | 0 .../data_samples/test_anomaly_swim_lane.ts | 0 .../src}/utils/data_samples/test_dataset.ts | 0 .../utils/data_samples/test_dataset_github.ts | 0 .../utils/data_samples/test_dataset_kibana.ts | 0 .../utils/data_samples/test_dataset_random.ts | 0 .../utils/data_samples/test_dataset_tsvb.ts | 0 .../charts/src}/utils/dimensions.ts | 0 .../charts/src}/utils/domain.test.ts | 0 {src => packages/charts/src}/utils/domain.ts | 0 {src => packages/charts/src}/utils/events.ts | 0 .../charts/src}/utils/fast_deep_equal.ts | 0 .../charts/src}/utils/geometry.ts | 0 .../charts/src}/utils/ids.test.ts | 0 {src => packages/charts/src}/utils/ids.ts | 0 {src => packages/charts/src}/utils/legend.ts | 0 {src => packages/charts/src}/utils/logger.ts | 0 {src => packages/charts/src}/utils/point.ts | 0 .../charts/src}/utils/series_sort.ts | 0 .../charts/src}/utils/themes/colors.ts | 0 .../charts/src}/utils/themes/dark_theme.ts | 0 .../charts/src}/utils/themes/light_theme.ts | 0 .../charts/src}/utils/themes/merge_utils.ts | 0 .../charts/src}/utils/themes/theme.test.ts | 0 .../charts/src}/utils/themes/theme.ts | 0 .../charts/src}/utils/themes/theme_common.ts | 0 .../charts/tsconfig.check.json | 2 +- .../charts/tsconfig.json | 3 +- .../charts/tsconfig.nocomments.json | 2 +- packages/link_kibana/main.js | 17 +- packages/link_kibana/replace_modules.js | 34 +- packages/link_kibana/utils.js | 5 +- playground/index.tsx | 2 +- playground/playground.tsx | 2 +- playground/tsconfig.json | 2 +- src/_eui_imports.scss | 3 - src/reset_dark.scss | 6 - src/reset_light.scss | 6 - src/theme_dark.scss | 7 - src/theme_light.scss | 7 - src/theme_only_dark.scss | 6 - src/theme_only_light.scss | 6 - stories/annotations/lines/1_x_continuous.tsx | 6 +- stories/annotations/lines/2_x_ordinal.tsx | 6 +- stories/annotations/lines/3_x_time.tsx | 8 +- stories/annotations/lines/4_y_domain.tsx | 6 +- stories/annotations/lines/5_styling.tsx | 6 +- .../lines/6_test_single_bar_histogram.tsx | 12 +- .../annotations/lines/7_tooltip_options.tsx | 8 +- .../annotations/lines/8_advanced_markers.tsx | 4 +- .../annotations/rects/1_linear_bar_chart.tsx | 4 +- .../annotations/rects/2_ordinal_bar_chart.tsx | 4 +- .../annotations/rects/3_linear_line_chart.tsx | 14 +- stories/annotations/rects/4_styling.tsx | 6 +- .../annotations/rects/5_tooltip_options.tsx | 14 +- stories/annotations/rects/6_zero_domain.tsx | 4 +- stories/annotations/rects/7_with_group_id.tsx | 4 +- stories/area/10_stacked_same_naming.tsx | 4 +- stories/area/11_test_linear.tsx | 4 +- stories/area/12_test_time.tsx | 4 +- stories/area/13_band_area.tsx | 6 +- stories/area/14_stacked_band.tsx | 4 +- stories/area/15_stacked_grouped.tsx | 4 +- stories/area/16_test_stacked_with_missing.tsx | 2 +- stories/area/17_negative.tsx | 4 +- stories/area/18_negative_positive.tsx | 4 +- stories/area/19_negative_band.tsx | 2 +- stories/area/1_basic.tsx | 4 +- stories/area/2_with_time.tsx | 15 +- stories/area/3_with_linear.tsx | 4 +- stories/area/4_with_log.tsx | 4 +- stories/area/5_with_4_axes.tsx | 4 +- stories/area/6_with_axis_and_legend.tsx | 4 +- stories/area/7_stacked.tsx | 4 +- stories/area/8_stacked_percentage.tsx | 13 +- stories/area/8_stacked_percentage_zeros.tsx | 11 +- stories/area/9_stacked_separate_specs.tsx | 4 +- stories/axes/10_one_domain_bound.tsx | 2 +- stories/axes/11_fit_domain_extent.tsx | 4 +- stories/axes/12_duplicate_ticks.tsx | 12 +- stories/axes/13_label_formatting.tsx | 4 +- stories/axes/1_basic.tsx | 4 +- stories/axes/2_tick_label_rotation.tsx | 2 +- stories/axes/3_axis_4_axes.tsx | 2 +- stories/axes/4_multi_axis.tsx | 2 +- stories/axes/5_multi_axis_bar_lines.tsx | 2 +- stories/axes/6_different_tooltip.tsx | 2 +- .../axes/6a_different_tooltip_formatter.tsx | 2 +- stories/axes/7_many_tick_labels.tsx | 13 +- stories/axes/8_custom_domain.tsx | 11 +- stories/axes/9_custom_mixed_domain.tsx | 2 +- stories/bar/10_axis_and_legend.tsx | 2 +- .../bar/11_stacked_with_axis_and_legend.tsx | 2 +- stories/bar/12_stacked_as_percentage.tsx | 2 +- stories/bar/13_clustered.tsx | 2 +- stories/bar/14_clustered_multiple.tsx | 2 +- stories/bar/15_time_clustered.tsx | 13 +- stories/bar/17_time_stacked.tsx | 13 +- stories/bar/18_bar_chart_1y0g.tsx | 4 +- stories/bar/19_bar_chart_1y1g.tsx | 4 +- stories/bar/1_basic.tsx | 2 +- stories/bar/20_bar_chart_1y2g.tsx | 4 +- stories/bar/21_bar_chart_2y0g.tsx | 4 +- stories/bar/22_barchart_2y1g.tsx | 4 +- stories/bar/23_bar_chart_2y2g.tsx | 4 +- stories/bar/24_tooltip_visibility.tsx | 4 +- stories/bar/25_high_data_volume.tsx | 6 +- stories/bar/26_single_data_linear.tsx | 2 +- stories/bar/27_single_data_ordinal.tsx | 2 +- stories/bar/28_single_data_clustered.tsx | 2 +- stories/bar/29_single_data_stacked.tsx | 2 +- stories/bar/2_label_value.tsx | 4 +- stories/bar/30_stacked_to_extent.tsx | 2 +- .../bar/31_negative_and_positive_x_values.tsx | 2 +- stories/bar/32_scale_to_extent.tsx | 4 +- stories/bar/33_band_bar.tsx | 6 +- stories/bar/34_test_linear.tsx | 4 +- stories/bar/35_test_time.tsx | 4 +- stories/bar/36_test_linear_clustered.tsx | 4 +- stories/bar/37_test_time_clustered.tsx | 4 +- stories/bar/38_test_clustered_null_bars.tsx | 4 +- stories/bar/39_test_stacked_null.tsx | 4 +- stories/bar/3_with_axis.tsx | 11 +- stories/bar/40_test_switch.tsx | 2 +- stories/bar/41_test_histogram_linear.tsx | 4 +- stories/bar/42_test_histogram_ordinal.tsx | 2 +- stories/bar/43_test_discover.tsx | 2 +- stories/bar/44_test_single_histogram.tsx | 4 +- stories/bar/45_min_height.tsx | 2 +- stories/bar/46_test_min_height.tsx | 2 +- stories/bar/47_stacked_only_grouped.tsx | 4 +- stories/bar/48_test_tooltip.tsx | 4 +- stories/bar/49_test_dual_axis.tsx | 2 +- stories/bar/4_ordinal.tsx | 2 +- stories/bar/50_order_bins_by_sum.tsx | 2 +- stories/bar/51_label_value_advanced.tsx | 4 +- stories/bar/52_multi_group_same_domain.tsx | 2 +- .../53_use_domain_from_different_groupid.tsx | 2 +- stories/bar/54_functional_accessors.tsx | 13 +- stories/bar/55_tooltip_boundary.tsx | 4 +- stories/bar/56_test_use_dfl_gdomain.tsx | 2 +- stories/bar/5_linear.tsx | 2 +- stories/bar/6_linear_no_linear_interval.tsx | 2 +- stories/bar/7_with_time_xaxis.tsx | 13 +- stories/bar/8_with_log_yaxis.tsx | 2 +- stories/bar/9_with_stacked_log.tsx | 2 +- stories/bubble/1_simple.tsx | 13 +- stories/bubble/2_ordinal.tsx | 4 +- stories/bubble/3_multiple.tsx | 4 +- stories/bubble/4_mixed.tsx | 4 +- stories/debug/1_basic.tsx | 11 +- stories/debug/2_debug_state.tsx | 4 +- stories/goal/10_band_in_band.tsx | 10 +- stories/goal/11_gaps.tsx | 10 +- stories/goal/12_range.tsx | 10 +- stories/goal/13_confidence_level.tsx | 10 +- stories/goal/14_one_third.tsx | 8 +- stories/goal/15_half_circle.tsx | 8 +- stories/goal/16_two_thirds.tsx | 8 +- stories/goal/17_three_quarters.tsx | 8 +- stories/goal/17_total_circle.tsx | 8 +- stories/goal/17_very_small_gap.tsx | 8 +- stories/goal/18_side_gauge.tsx | 8 +- stories/goal/19_horizontal_negative.tsx | 10 +- stories/goal/20_vertical_negative.tsx | 10 +- stories/goal/21_goal_negative.tsx | 10 +- stories/goal/22_horizontal_plusminus.tsx | 10 +- stories/goal/23_vertical_plusminus.tsx | 10 +- stories/goal/24_goal_plusminus.tsx | 10 +- stories/goal/2_gauge_with_target.tsx | 8 +- stories/goal/3_horizontal_bullet.tsx | 10 +- stories/goal/4_vertical_bullet.tsx | 10 +- stories/goal/5_minimal.tsx | 10 +- stories/goal/6_minimal_horizontal.tsx | 10 +- stories/goal/7_horizontal_bar.tsx | 10 +- stories/goal/8_irregular_ticks.tsx | 10 +- stories/goal/9_minimal_band.tsx | 10 +- stories/grids/1_basic.tsx | 11 +- stories/grids/2_multiple_axes.tsx | 11 +- stories/grids/3_lines.tsx | 4 +- stories/heatmap/1_basic.tsx | 6 +- stories/heatmap/2_categorical.tsx | 4 +- stories/icicle/01_unix_icicle.tsx | 2 +- stories/icicle/02_unix_flame.tsx | 2 +- stories/icicle/03_cpu_profile_flame.tsx | 4 +- .../interactions/10_brush_selection_bar.tsx | 4 +- .../10a_brush_selection_bar_hist.tsx | 2 +- stories/interactions/11_brush_time.tsx | 2 +- stories/interactions/12_brush_time_hist.tsx | 4 +- .../13_brush_disabled_ordinal.tsx | 2 +- stories/interactions/14_crosshair_time.tsx | 4 +- stories/interactions/15_render_change.tsx | 2 +- .../interactions/16_cursor_update_action.tsx | 6 +- stories/interactions/17_png_export.tsx | 14 +- stories/interactions/1_bar_clicks.tsx | 11 +- stories/interactions/2_area_point_clicks.tsx | 2 +- stories/interactions/3_line_point_clicks.tsx | 2 +- .../interactions/4_line_area_bar_clicks.tsx | 11 +- .../interactions/4_sunburst_slice_clicks.tsx | 2 +- .../5_clicks_legend_items_bar.tsx | 4 +- .../6_clicks_legend_items_area.tsx | 2 +- .../7_clicks_legend_items_line.tsx | 2 +- .../8_clicks_legend_items_mixed.tsx | 2 +- .../interactions/9_brush_selection_linear.tsx | 2 +- .../9a_brush_selection_linear.tsx | 2 +- stories/legend/10_sunburst.tsx | 16 +- stories/legend/10_sunburst_repeated_label.tsx | 2 +- stories/legend/11_legend_actions.tsx | 4 +- stories/legend/12_legend_margins.tsx | 4 +- stories/legend/13_inside_chart.tsx | 6 +- stories/legend/1_legend_right.tsx | 4 +- stories/legend/2_legend_bottom.tsx | 4 +- stories/legend/3_legend_left.tsx | 4 +- stories/legend/4_legend_top.tsx | 4 +- stories/legend/5_changing_specs.tsx | 4 +- stories/legend/6_hide_legend.tsx | 2 +- stories/legend/7_display_values.tsx | 4 +- stories/legend/8_spacing_buffer.tsx | 2 +- stories/legend/9_color_picker.tsx | 4 +- stories/line/10_test_path_ordering.tsx | 2 +- stories/line/11_discontinuous_data_points.tsx | 12 +- stories/line/12_orphan_data_points.tsx | 12 +- stories/line/13_line_mark_accessor.tsx | 4 +- stories/line/14_point_shapes.tsx | 4 +- stories/line/1_basic.tsx | 4 +- stories/line/2_w_axis.tsx | 13 +- stories/line/3_ordinal.tsx | 13 +- stories/line/4_linear.tsx | 12 +- stories/line/5_w_axis_and_legend.tsx | 13 +- stories/line/6_curved.tsx | 4 +- stories/line/7_multiple.tsx | 4 +- stories/line/8_stacked.tsx | 4 +- stories/line/9_multi_series.tsx | 6 +- stories/mixed/1_bars_and_lines.tsx | 2 +- stories/mixed/2_lines_and_areas.tsx | 2 +- stories/mixed/3_areas_and_bars.tsx | 11 +- stories/mixed/4_test_bar.tsx | 2 +- stories/mixed/5_test_bar_time.tsx | 4 +- stories/mixed/6_fitting.tsx | 2 +- stories/mixed/6_fitting_stacked.tsx | 14 +- stories/mixed/7_marks.tsx | 4 +- stories/mosaic/10_mosaic_simple.tsx | 8 +- stories/mosaic/20_mosaic_with_other.tsx | 4 +- stories/rotations/1_ordinal.tsx | 2 +- stories/rotations/2_negative_ordinal.tsx | 2 +- stories/rotations/3_rotations_ordinal.tsx | 2 +- stories/rotations/4_90_ordinal.tsx | 2 +- stories/rotations/5_180_ordinal.tsx | 2 +- stories/rotations/6_negative_linear.tsx | 2 +- stories/rotations/7_rotations_linear.tsx | 2 +- stories/rotations/8_90_deg_linear.tsx | 2 +- stories/rotations/9_180_deg_linear.tsx | 2 +- stories/scales/1_different_timezones.tsx | 2 +- stories/scales/2_local_tooltip.tsx | 2 +- stories/scales/3_utc_tooltip.tsx | 2 +- stories/scales/4_specified_timezone.tsx | 2 +- stories/scales/5_remove_duplicates.tsx | 2 +- stories/scales/6_x_scale_fallback.tsx | 2 +- stories/scales/7_log_scale_options.tsx | 14 +- stories/shared.ts | 2 +- stories/small_multiples/1_grid.tsx | 4 +- stories/small_multiples/2_vertical_areas.tsx | 4 +- stories/small_multiples/3_grid_lines.tsx | 6 +- stories/small_multiples/4_horizontal_bars.tsx | 4 +- stories/small_multiples/4_vertical_bars.tsx | 6 +- stories/small_multiples/5_histogram_bars.tsx | 11 +- .../6_heterogeneous_cartesians.tsx | 4 +- stories/small_multiples/7_sunbursts.tsx | 8 +- stories/streamgraph/1_basic.tsx | 4 +- stories/stylings/10_custom_bars.tsx | 4 +- stories/stylings/11_custom_lines.tsx | 2 +- stories/stylings/12_custom_area.tsx | 2 +- stories/stylings/13_custom_series_name.tsx | 4 +- .../stylings/13_custom_series_name_config.tsx | 12 +- .../14_custom_series_name_formatting.tsx | 2 +- stories/stylings/15_tick_label.tsx | 2 +- stories/stylings/16_style_accessor.tsx | 2 +- .../stylings/17_bar_series_color_variant.tsx | 6 +- .../stylings/18_line_series_color_variant.tsx | 6 +- .../stylings/19_area_series_color_variant.tsx | 6 +- stories/stylings/1_chart_size.tsx | 6 +- stories/stylings/20_partition_background.tsx | 8 +- stories/stylings/21_partition_labels.tsx | 6 +- stories/stylings/22_dark_theme.tsx | 4 +- stories/stylings/23_with_texture.tsx | 4 +- .../stylings/24_texture_multiple_series.tsx | 4 +- stories/stylings/2_margins.tsx | 2 +- stories/stylings/3_axis.tsx | 2 +- stories/stylings/4_theme_styling.tsx | 6 +- stories/stylings/5_partial_custom_theme.tsx | 4 +- stories/stylings/6_partial_and_base.tsx | 13 +- stories/stylings/7_multiple_custom.tsx | 4 +- .../stylings/8_custom_series_colors_array.tsx | 4 +- .../9_custom_series_colors_function.tsx | 13 +- stories/sunburst/10_2_slice.tsx | 6 +- stories/sunburst/11_small_large.tsx | 4 +- stories/sunburst/12_very_small.tsx | 4 +- stories/sunburst/13_empty.tsx | 4 +- stories/sunburst/14_full_zero.tsx | 4 +- stories/sunburst/15_single.tsx | 6 +- stories/sunburst/15_single_sunburst.tsx | 8 +- stories/sunburst/16_single_small.tsx | 6 +- stories/sunburst/17_single_very_small.tsx | 6 +- stories/sunburst/18_no_sliced.tsx | 4 +- stories/sunburst/19_negative.tsx | 6 +- stories/sunburst/1_simple.tsx | 6 +- stories/sunburst/20_total_zero.tsx | 6 +- stories/sunburst/21_high_pie.tsx | 6 +- stories/sunburst/22_counter_clockwise.tsx | 6 +- stories/sunburst/23_clockwise.tsx | 6 +- stories/sunburst/24_linked_label.tsx | 6 +- stories/sunburst/25_no_labels.tsx | 6 +- stories/sunburst/26_percentage.tsx | 8 +- stories/sunburst/27_heterogeneous_depth.tsx | 10 +- stories/sunburst/28_not_a_number.tsx | 6 +- stories/sunburst/29_custom_stroke.tsx | 6 +- stories/sunburst/2_value_formatted.tsx | 6 +- stories/sunburst/30_largest_circle.tsx | 6 +- stories/sunburst/31_bold_link_value.tsx | 6 +- stories/sunburst/32_custom_tooltip.tsx | 6 +- stories/sunburst/33_ordered_slices.tsx | 12 +- stories/sunburst/3_value_formatted_2.tsx | 8 +- stories/sunburst/4_fill_labels.tsx | 6 +- stories/sunburst/5_donut.tsx | 6 +- stories/sunburst/6_pie_chart_labels.tsx | 4 +- .../sunburst/6_pie_chart_linked_labels.tsx | 4 +- stories/sunburst/7_zero_slice.tsx | 6 +- stories/sunburst/8_sunburst_two_layers.tsx | 6 +- stories/sunburst/9_sunburst_three_layers.tsx | 8 +- stories/test_cases/1_no_series.tsx | 2 +- stories/test_cases/2_chrome_path_bug_fix.tsx | 2 +- stories/test_cases/3_no_axes_annotation.tsx | 2 +- .../test_cases/4_filter_zero_values_log.tsx | 2 +- .../test_cases/5_legend_scroll_bar_sizing.tsx | 2 +- .../test_cases/6_a11y_custom_description.tsx | 4 +- stories/treemap/10_three_layers.tsx | 14 +- stories/treemap/1_one_layer.tsx | 12 +- stories/treemap/2_one_layer_2.tsx | 12 +- stories/treemap/3_mid_two.tsx | 14 +- stories/treemap/4_two_layer_stress.tsx | 14 +- stories/treemap/5_multicolor.tsx | 12 +- stories/treemap/6_custom_style.tsx | 10 +- stories/treemap/7_percentage.tsx | 14 +- stories/treemap/8_groove_text.tsx | 14 +- stories/treemap/9_zero_values.tsx | 12 +- stories/utils/formatters.ts | 2 +- stories/utils/hierarchical_input_utils.tsx | 8 +- stories/utils/knobs.ts | 6 +- stories/utils/utils.ts | 10 +- stories/wordcloud/1_wordcloud.tsx | 8 +- storybook-docs/theme_service.ts | 4 +- storybook-docs/tsconfig.json | 2 +- storybook-docs/webpack.config.js | 9 +- storybook/theme_service.ts | 4 +- storybook/tsconfig.json | 2 +- tsconfig.jest.json | 2 +- tsconfig.json | 3 +- tslint.yaml | 15 - wiki/theming.md | 4 +- yarn.lock | 1299 ++++++++++++++++- 958 files changed, 2664 insertions(+), 1077 deletions(-) create mode 100644 .releaserc.js delete mode 100644 .releaserc.json create mode 100644 lerna.json create mode 100644 packages/charts/.gitignore rename .npmignore => packages/charts/.npmignore (100%) rename api-extractor.json => packages/charts/api-extractor.jsonc (99%) rename {api => packages/charts/api}/charts.api.md (100%) create mode 100644 packages/charts/package.json rename {scripts => packages/charts/scripts}/concat_sass.js (100%) create mode 100644 packages/charts/scripts/move_txt_files.js create mode 100644 packages/charts/src/_eui_imports.scss rename {src => packages/charts/src}/chart_types/goal_chart/layout/config/config.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/layout/types/config_types.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/layout/types/viewmodel_types.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/layout/viewmodel/viewmodel.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/renderer/canvas/canvas_renderers.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/renderer/canvas/connected_component.tsx (100%) rename {src => packages/charts/src}/chart_types/goal_chart/specs/constants.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/specs/index.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/chart_state.tsx (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/geometries.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/get_chart_type_description.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/goal_spec.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/is_tooltip_visible.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/on_element_click_caller.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/on_element_out_caller.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/on_element_over_caller.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/picked_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/scenegraph.ts (100%) rename {src => packages/charts/src}/chart_types/goal_chart/state/selectors/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/layout/config/config.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/layout/types/config_types.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/layout/types/viewmodel_types.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/layout/viewmodel/viewmodel.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/renderer/canvas/canvas_renderers.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/renderer/canvas/connected_component.tsx (100%) rename {src => packages/charts/src}/chart_types/heatmap/renderer/dom/highlighter.tsx (100%) rename {src => packages/charts/src}/chart_types/heatmap/renderer/dom/highlighter_brush.tsx (100%) rename {src => packages/charts/src}/chart_types/heatmap/specs/heatmap.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/specs/index.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/specs/scale_defaults.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/chart_state.tsx (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/compute_chart_dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/compute_legend.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/geometries.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_brush_area.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_color_scale.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_cursor_pointer.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_debug_state.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_grid_full_height.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_heatmap_config.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_heatmap_container_size.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_heatmap_spec.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_heatmap_table.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_highlighted_area.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_legend_items_labels.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_picked_cells.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_tooltip_anchor.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/get_x_axis_right_overflow.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/heatmap_spec.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/is_brush_available.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/is_brushing.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/is_tooltip_visible.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/on_brush_end_caller.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/on_element_click_caller.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/on_element_out_caller.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/on_element_over_caller.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/picked_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/scenegraph.ts (100%) rename {src => packages/charts/src}/chart_types/heatmap/state/selectors/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/index.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/config.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/types/config_types.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/types/viewmodel_types.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/circline_geometry.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/group_by_rollup.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/highlighted_geoms.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/legend.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/legend_labels.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/sunburst.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/utils/treemap.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/fill_text_layout.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/fill_text_layout.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/picked_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/scenegraph.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/tooltip_info.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/layout/viewmodel/viewmodel.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/partition.test.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/_index.scss (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/canvas/canvas_renderers.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/canvas/partition.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/dom/highlighter.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/dom/highlighter_hover.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/dom/highlighter_legend.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/renderer/dom/layered_partition_chart.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/specs/index.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/chart_state.tsx (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/__snapshots__/get_legend_items_extra.test.ts.snap (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/compute_legend.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/drilldown_active.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/geometries.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_chart_type_description.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_debug_state.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_debug_state.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_highlighted_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_legend_items_extra.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_legend_items_extra.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_legend_items_labels.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_legend_items_labels.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/get_partition_specs.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/is_tooltip_visible.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/on_element_click_caller.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/on_element_out_caller.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/on_element_over_caller.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/partition_spec.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/picked_shapes.test.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/picked_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/partition_chart/state/selectors/tree.ts (100%) rename {src => packages/charts/src}/chart_types/specs.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/layout/config/config.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/layout/types/config_types.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/layout/types/viewmodel_types.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/layout/viewmodel/viewmodel.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/renderer/svg/connected_component.tsx (100%) rename {src => packages/charts/src}/chart_types/wordcloud/specs/index.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/chart_state.tsx (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/geometries.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/on_element_click_caller.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/on_element_out_caller.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/on_element_over_caller.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/picked_shapes.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/scenegraph.ts (100%) rename {src => packages/charts/src}/chart_types/wordcloud/state/selectors/wordcloud_spec.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/dimensions.integration.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/dimensions.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/line.test.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/tooltip.test.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/line/types.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/dimensions.integration.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/dimensions.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/tooltip.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/rect/types.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/types.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/annotations/utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/axes/axes_sizes.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/crosshair/crosshair_line.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/crosshair/crosshair_utils.linear_snap.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/crosshair/crosshair_utils.ordinal_snap.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/crosshair/crosshair_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/nice.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/types.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/x_domain.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/x_domain.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/y_domain.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/domains/y_domain.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/legend/legend.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/legend/legend.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/_index.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/annotations/index.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/annotations/lines.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/annotations/rect.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/areas.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/global_title.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/index.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/line.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/panel_title.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/tick.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/axes/tick_label.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/bars.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/bubbles.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/grids.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/lines.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/panels/panels.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/points.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/arc.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/line.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/path.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/rect.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/shapes.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/text.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/primitives/utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/renderers.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/area.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/area.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/bar.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/bar.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/line.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/styles/line.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/utils/debug.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/utils/panel_transform.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/values/bar.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/canvas/xy_chart.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/_crosshair.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/_highlighter.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/_index.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/_screen_reader.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/_annotations.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/_index.scss (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/annotations.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/index.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/line_marker.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/crosshair.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/dom/highlighter.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/renderer/shapes_paths.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/area.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/bars.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/bubble.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/constants.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/line.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/point_style.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/points.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.areas.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.bands.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.bars.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.bubble.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.lines.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/rendering.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/rendering/utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/scales/get_api_scales.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/scales/scale_defaults.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/area_series.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/axis.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/bar_series.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/bubble_series.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/histogram_bar_series.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/index.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/line_annotation.test.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/line_annotation.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/line_series.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/specs/rect_annotation.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.accessibility.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.interactions.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.specs.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.timescales.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.tooltip.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/chart_state.tsx (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_annotations.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_axes_geometries.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_chart_dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_chart_transform.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_grid_lines.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_legend.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_panels.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_series_domains.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_series_geometries.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/compute_small_multiple_scales.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/count_bars_in_cluster.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_api_scale_configs.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_api_scale_configs.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_axis_styles.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_bar_paddings.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_brush_area.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_brush_area.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_chart_type_description.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_computed_scales.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_cursor_band.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_cursor_line.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_cursor_pointer.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_debug_state.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_geometries_index.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_geometries_index_keys.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_grid_lines.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_highlighted_series.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_highlighted_values.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_legend_items_labels.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_projected_pointer_position.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_series_color_map.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_si_dataseries_map.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_specs.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_specs.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_tooltip_position.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_tooltip_snap.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_tooltip_type.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/has_single_series.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_brush_available.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_brushing.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_chart_animatable.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_chart_empty.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/is_tooltip_visible.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/merge_y_custom_domains.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/on_click_caller.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/on_element_out_caller.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/on_element_over_caller.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/__snapshots__/utils.test.ts.snap (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/common.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/common.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/get_last_value.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/spec.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/types.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/state/utils/utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/tooltip/tooltip.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/tooltip/tooltip.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/__snapshots__/dimensions.test.ts.snap (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/__snapshots__/series.test.ts.snap (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/axis_type_utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/axis_type_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/axis_utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/axis_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/default_series_sort_fn.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/dimensions.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/dimensions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/fill_series.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/fit_function.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/fit_function.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/fit_function_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/grid_lines.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/grid_lines.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/group_data_series.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/indexed_geometry_linear_map.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/indexed_geometry_map.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/indexed_geometry_spatial_map.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/interactions.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/interactions.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/nonstacked_series_utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/panel.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/panel_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/scales.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/scales.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/series.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/series.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/specs.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/stacked_percent_series_utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/stacked_series_utils.test.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/stacked_series_utils.ts (100%) rename {src => packages/charts/src}/chart_types/xy_chart/utils/texture.ts (100%) rename {src => packages/charts/src}/common/__mocks__/calcs.ts (100%) rename {src => packages/charts/src}/common/__mocks__/color_library_wrappers.ts (100%) rename {src => packages/charts/src}/common/__mocks__/fill_text_layout.ts (100%) rename {src => packages/charts/src}/common/__mocks__/link_text_layout.ts (100%) rename {src => packages/charts/src}/common/category.ts (100%) rename {src => packages/charts/src}/common/color_calcs.test.ts (100%) rename {src => packages/charts/src}/common/color_calcs.ts (100%) rename {src => packages/charts/src}/common/color_library_wrappers.test.ts (100%) rename {src => packages/charts/src}/common/color_library_wrappers.ts (100%) rename {src => packages/charts/src}/common/config_objects.ts (100%) rename {src => packages/charts/src}/common/constants.ts (100%) rename {src => packages/charts/src}/common/event_handler_selectors.ts (100%) rename {src => packages/charts/src}/common/fill_text_color.ts (100%) rename {src => packages/charts/src}/common/geometry.ts (100%) rename {src => packages/charts/src}/common/iterables.ts (100%) rename {src => packages/charts/src}/common/legend.ts (100%) rename {src => packages/charts/src}/common/math.ts (100%) rename {src => packages/charts/src}/common/predicate.ts (100%) rename {src => packages/charts/src}/common/series_id.ts (100%) rename {src => packages/charts/src}/common/text_utils.ts (100%) rename {src => packages/charts/src}/components/__snapshots__/chart.test.tsx.snap (100%) rename {src => packages/charts/src}/components/_container.scss (100%) rename {src => packages/charts/src}/components/_global.scss (100%) rename {src => packages/charts/src}/components/_index.scss (100%) rename {src => packages/charts/src}/components/_unavailable_chart.scss (100%) rename {src => packages/charts/src}/components/accessibility/accessibility.test.tsx (100%) rename {src => packages/charts/src}/components/accessibility/description.tsx (100%) rename {src => packages/charts/src}/components/accessibility/index.ts (100%) rename {src => packages/charts/src}/components/accessibility/label.tsx (100%) rename {src => packages/charts/src}/components/accessibility/screen_reader_summary.tsx (100%) rename {src => packages/charts/src}/components/accessibility/types.tsx (100%) rename {src => packages/charts/src}/components/brush/_brush.scss (100%) rename {src => packages/charts/src}/components/brush/_index.scss (100%) rename {src => packages/charts/src}/components/brush/brush.tsx (100%) rename {src => packages/charts/src}/components/chart.snap.test.ts (100%) rename {src => packages/charts/src}/components/chart.test.tsx (100%) rename {src => packages/charts/src}/components/chart.tsx (100%) rename {src => packages/charts/src}/components/chart_background.tsx (100%) rename {src => packages/charts/src}/components/chart_container.tsx (100%) rename {src => packages/charts/src}/components/chart_resizer.tsx (100%) rename {src => packages/charts/src}/components/chart_status.tsx (100%) rename {src => packages/charts/src}/components/error_boundary/error_boundary.tsx (100%) rename {src => packages/charts/src}/components/error_boundary/errors.ts (100%) rename {src => packages/charts/src}/components/error_boundary/index.tsx (100%) rename {src => packages/charts/src}/components/icons/_icon.scss (100%) rename {src => packages/charts/src}/components/icons/_index.scss (100%) rename {src => packages/charts/src}/components/icons/assets/alert.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/dot.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/empty.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/eye.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/eye_closed.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/list.tsx (100%) rename {src => packages/charts/src}/components/icons/assets/question_in_circle.tsx (100%) rename {src => packages/charts/src}/components/icons/icon.tsx (100%) rename {src => packages/charts/src}/components/index.ts (100%) rename {src => packages/charts/src}/components/legend/__snapshots__/legend.test.tsx.snap (100%) rename {src => packages/charts/src}/components/legend/_index.scss (100%) rename {src => packages/charts/src}/components/legend/_legend.scss (100%) rename {src => packages/charts/src}/components/legend/_legend_item.scss (100%) rename {src => packages/charts/src}/components/legend/_variables.scss (100%) rename {src => packages/charts/src}/components/legend/color.tsx (100%) rename {src => packages/charts/src}/components/legend/extra.tsx (100%) rename {src => packages/charts/src}/components/legend/label.tsx (100%) rename {src => packages/charts/src}/components/legend/legend.test.tsx (100%) rename {src => packages/charts/src}/components/legend/legend.tsx (100%) rename {src => packages/charts/src}/components/legend/legend_item.tsx (100%) rename {src => packages/charts/src}/components/legend/position_style.ts (100%) rename {src => packages/charts/src}/components/legend/style_utils.ts (100%) rename {src => packages/charts/src}/components/legend/utils.ts (100%) rename {src => packages/charts/src}/components/no_results.tsx (100%) rename {src => packages/charts/src}/components/portal/_index.scss (100%) rename {src => packages/charts/src}/components/portal/_portal.scss (100%) rename {src => packages/charts/src}/components/portal/index.ts (100%) rename {src => packages/charts/src}/components/portal/tooltip_portal.tsx (100%) rename {src => packages/charts/src}/components/portal/types.ts (100%) rename {src => packages/charts/src}/components/portal/utils.ts (100%) rename {src => packages/charts/src}/components/tooltip/_index.scss (100%) rename {src => packages/charts/src}/components/tooltip/_tooltip.scss (100%) rename {src => packages/charts/src}/components/tooltip/get_tooltip_settings.ts (100%) rename {src => packages/charts/src}/components/tooltip/index.ts (100%) rename {src => packages/charts/src}/components/tooltip/tooltip.tsx (100%) rename {src => packages/charts/src}/components/tooltip/types.ts (100%) rename {src => packages/charts/src}/geoms/types.ts (100%) rename {src => packages/charts/src}/index.ts (100%) rename {src => packages/charts/src}/mocks/annotations/annotations.ts (100%) rename {src => packages/charts/src}/mocks/canvas.ts (100%) rename {src => packages/charts/src}/mocks/geometries.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/cpu_profile_tree_mock.json (100%) rename {src => packages/charts/src}/mocks/hierarchical/dimension_codes.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/index.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/many_pie.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/mini_sunburst.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/observability_tree.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/palettes.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/pie.ts (100%) rename {src => packages/charts/src}/mocks/hierarchical/sunburst.ts (100%) rename {src => packages/charts/src}/mocks/index.ts (100%) rename {src => packages/charts/src}/mocks/scale/index.ts (100%) rename {src => packages/charts/src}/mocks/scale/scale.ts (100%) rename {src => packages/charts/src}/mocks/series/data.ts (100%) rename {src => packages/charts/src}/mocks/series/index.ts (100%) rename {src => packages/charts/src}/mocks/series/series.ts (100%) rename {src => packages/charts/src}/mocks/series/series_identifiers.ts (100%) rename {src => packages/charts/src}/mocks/series/utils.ts (100%) rename {src => packages/charts/src}/mocks/specs/index.ts (100%) rename {src => packages/charts/src}/mocks/specs/specs.ts (100%) rename {src => packages/charts/src}/mocks/store/index.ts (100%) rename {src => packages/charts/src}/mocks/store/store.ts (100%) rename {src => packages/charts/src}/mocks/theme.ts (100%) rename {src => packages/charts/src}/mocks/utils.ts (100%) rename {src => packages/charts/src}/mocks/xy/domains.ts (100%) rename {src => packages/charts/src}/renderers/canvas/index.ts (100%) create mode 100644 packages/charts/src/reset_dark.scss create mode 100644 packages/charts/src/reset_light.scss rename {src => packages/charts/src}/scales/constants.ts (100%) rename {src => packages/charts/src}/scales/index.ts (100%) rename {src => packages/charts/src}/scales/scale_band.test.ts (100%) rename {src => packages/charts/src}/scales/scale_band.ts (100%) rename {src => packages/charts/src}/scales/scale_continuous.test.ts (100%) rename {src => packages/charts/src}/scales/scale_continuous.ts (100%) rename {src => packages/charts/src}/scales/scale_time.test.ts (100%) rename {src => packages/charts/src}/scales/scales.test.ts (100%) rename {src => packages/charts/src}/scales/types.ts (100%) rename {src => packages/charts/src}/solvers/monotonic_hill_climb.ts (100%) rename {src => packages/charts/src}/solvers/screenspace_marker_scale_compressor.ts (100%) rename {src => packages/charts/src}/specs/constants.ts (100%) rename {src => packages/charts/src}/specs/group_by.ts (100%) rename {src => packages/charts/src}/specs/index.ts (100%) rename {src => packages/charts/src}/specs/settings.test.tsx (100%) rename {src => packages/charts/src}/specs/settings.tsx (100%) rename {src => packages/charts/src}/specs/small_multiples.ts (100%) rename {src => packages/charts/src}/specs/specs_parser.test.tsx (100%) rename {src => packages/charts/src}/specs/specs_parser.tsx (100%) rename {src => packages/charts/src}/state/actions/chart.ts (100%) rename {src => packages/charts/src}/state/actions/chart_settings.ts (100%) rename {src => packages/charts/src}/state/actions/colors.ts (100%) rename {src => packages/charts/src}/state/actions/dom_element.ts (100%) rename {src => packages/charts/src}/state/actions/events.ts (100%) rename {src => packages/charts/src}/state/actions/index.ts (100%) rename {src => packages/charts/src}/state/actions/key.ts (100%) rename {src => packages/charts/src}/state/actions/legend.ts (100%) rename {src => packages/charts/src}/state/actions/mouse.ts (100%) rename {src => packages/charts/src}/state/actions/specs.ts (100%) rename {src => packages/charts/src}/state/actions/z_index.ts (100%) rename {src => packages/charts/src}/state/chart_state.ts (100%) rename {src => packages/charts/src}/state/reducers/interactions.ts (100%) rename {src => packages/charts/src}/state/selectors/get_accessibility_config.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_container_dimensions.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_id.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_rotation.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_theme.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_type_components.ts (100%) rename {src => packages/charts/src}/state/selectors/get_chart_type_description.ts (100%) rename {src => packages/charts/src}/state/selectors/get_debug_state.ts (100%) rename {src => packages/charts/src}/state/selectors/get_deselected_data_series.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_brush_area.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_cursor_pointer.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_is_brushing.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_is_brushing_available.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_is_intialized.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_is_tooltip_visible.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_main_projection_area.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_projection_container_area.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_tooltip_anchor_position.ts (100%) rename {src => packages/charts/src}/state/selectors/get_internal_tooltip_info.ts (100%) rename {src => packages/charts/src}/state/selectors/get_last_click.ts (100%) rename {src => packages/charts/src}/state/selectors/get_last_drag.ts (100%) rename {src => packages/charts/src}/state/selectors/get_legend_config_selector.ts (100%) rename {src => packages/charts/src}/state/selectors/get_legend_items.ts (100%) rename {src => packages/charts/src}/state/selectors/get_legend_items_labels.ts (100%) rename {src => packages/charts/src}/state/selectors/get_legend_items_values.ts (100%) rename {src => packages/charts/src}/state/selectors/get_legend_size.ts (100%) rename {src => packages/charts/src}/state/selectors/get_settings_specs.test.ts (100%) rename {src => packages/charts/src}/state/selectors/get_settings_specs.ts (100%) rename {src => packages/charts/src}/state/selectors/get_small_multiples_spec.ts (100%) rename {src => packages/charts/src}/state/selectors/get_tooltip_header_formatter.ts (100%) rename {src => packages/charts/src}/state/selectors/has_external_pointer_event.ts (100%) rename {src => packages/charts/src}/state/selectors/is_chart_empty.ts (100%) rename {src => packages/charts/src}/state/selectors/is_external_tooltip_visible.ts (100%) rename {src => packages/charts/src}/state/spec_factory.test.tsx (100%) rename {src => packages/charts/src}/state/spec_factory.ts (100%) rename {src => packages/charts/src}/state/types.ts (100%) rename {src => packages/charts/src}/state/utils.test.ts (100%) rename {src => packages/charts/src}/state/utils.ts (100%) create mode 100644 packages/charts/src/theme_dark.scss create mode 100644 packages/charts/src/theme_light.scss create mode 100644 packages/charts/src/theme_only_dark.scss create mode 100644 packages/charts/src/theme_only_light.scss rename {src => packages/charts/src}/utils/__mocks__/common.ts (100%) rename {src => packages/charts/src}/utils/accessor.ts (100%) rename {src => packages/charts/src}/utils/bbox/bbox_calculator.ts (100%) rename {src => packages/charts/src}/utils/bbox/canvas_text_bbox_calculator.test.ts (100%) rename {src => packages/charts/src}/utils/bbox/canvas_text_bbox_calculator.ts (100%) rename {src => packages/charts/src}/utils/bbox/dom_text_bbox_calculator.ts (100%) rename {src => packages/charts/src}/utils/bbox/svg_text_bbox_calculator.ts (100%) rename {src => packages/charts/src}/utils/chart_size.test.ts (100%) rename {src => packages/charts/src}/utils/chart_size.ts (100%) rename {src => packages/charts/src}/utils/common.test.ts (100%) rename {src => packages/charts/src}/utils/common.tsx (100%) rename {src => packages/charts/src}/utils/curves.test.ts (100%) rename {src => packages/charts/src}/utils/curves.ts (100%) rename {src => packages/charts/src}/utils/d3-delaunay/index.ts (99%) rename {src => packages/charts/src}/utils/data/date_time.ts (100%) rename {src => packages/charts/src}/utils/data/formatters.ts (100%) rename {src => packages/charts/src}/utils/data/formatters.tz.test.ts (100%) rename {src => packages/charts/src}/utils/data/formatters.tz.test.utc.ts (100%) rename {src => packages/charts/src}/utils/data_generators/data_generator.ts (100%) rename {src => packages/charts/src}/utils/data_generators/simple_noise.ts (100%) rename {src => packages/charts/src}/utils/data_samples/4_time_series.json (100%) rename {src => packages/charts/src}/utils/data_samples/babynames.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_anomaly_swim_lane.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_dataset.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_dataset_github.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_dataset_kibana.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_dataset_random.ts (100%) rename {src => packages/charts/src}/utils/data_samples/test_dataset_tsvb.ts (100%) rename {src => packages/charts/src}/utils/dimensions.ts (100%) rename {src => packages/charts/src}/utils/domain.test.ts (100%) rename {src => packages/charts/src}/utils/domain.ts (100%) rename {src => packages/charts/src}/utils/events.ts (100%) rename {src => packages/charts/src}/utils/fast_deep_equal.ts (100%) rename {src => packages/charts/src}/utils/geometry.ts (100%) rename {src => packages/charts/src}/utils/ids.test.ts (100%) rename {src => packages/charts/src}/utils/ids.ts (100%) rename {src => packages/charts/src}/utils/legend.ts (100%) rename {src => packages/charts/src}/utils/logger.ts (100%) rename {src => packages/charts/src}/utils/point.ts (100%) rename {src => packages/charts/src}/utils/series_sort.ts (100%) rename {src => packages/charts/src}/utils/themes/colors.ts (100%) rename {src => packages/charts/src}/utils/themes/dark_theme.ts (100%) rename {src => packages/charts/src}/utils/themes/light_theme.ts (100%) rename {src => packages/charts/src}/utils/themes/merge_utils.ts (100%) rename {src => packages/charts/src}/utils/themes/theme.test.ts (100%) rename {src => packages/charts/src}/utils/themes/theme.ts (100%) rename {src => packages/charts/src}/utils/themes/theme_common.ts (100%) rename tsconfig.lib-check.json => packages/charts/tsconfig.check.json (86%) rename tsconfig.lib.json => packages/charts/tsconfig.json (80%) rename tsconfig.lib-nocomments.json => packages/charts/tsconfig.nocomments.json (80%) delete mode 100644 src/_eui_imports.scss delete mode 100644 src/reset_dark.scss delete mode 100644 src/reset_light.scss delete mode 100644 src/theme_dark.scss delete mode 100644 src/theme_light.scss delete mode 100644 src/theme_only_dark.scss delete mode 100644 src/theme_only_light.scss delete mode 100644 tslint.yaml diff --git a/.ci/jobs/elastic+elastic-charts+pull-request.yml b/.ci/jobs/elastic+elastic-charts+pull-request.yml index 571feffec2..f1e480d8cb 100644 --- a/.ci/jobs/elastic+elastic-charts+pull-request.yml +++ b/.ci/jobs/elastic+elastic-charts+pull-request.yml @@ -13,7 +13,7 @@ allow-whitelist-orgs-as-admins: true trigger-phrase: '(.*(?:jenkins\W+)?test\W+(?:this|it)(?:\W+please)?.*)|^retest$' github-hooks: true - status-context: "@elastic/charts CI" + status-context: '@elastic/charts CI' cancel-builds-on-update: true builders: - multijob: diff --git a/.eslintignore b/.eslintignore index f7292e1a66..4f8f70c318 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,9 +1,10 @@ # Force include !.*.js +!packages/charts/.*.js # Ignore wiki -node_modules +**/node_modules coverage license_header.js @@ -14,8 +15,8 @@ license_header.js .git # Compiled source -src/utils/d3-delaunay/* +packages/charts/src/utils/d3-delaunay **/dist # auto generated directories -integration/tmp +**/tmp diff --git a/.eslintrc.js b/.eslintrc.js index dbb10ed19b..c43905a8bf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -319,7 +319,7 @@ module.exports = { 'import/resolver': { node: { extensions: ['.mjs', '.js', '.json', '.ts', '.d.ts', '.tsx'], - moduleDirectory: ['node_modules', 'src/'], + moduleDirectory: ['node_modules', 'packages/charts/src/'], }, }, react: { @@ -328,7 +328,7 @@ module.exports = { }, overrides: [ { - files: ['src/**/*.{ts?(x),js}'], + files: ['packages/charts/src/**/*.{ts?(x),js}'], rules: { /* * Custom elastic-charts rules @@ -349,27 +349,20 @@ module.exports = { 'error', { zones: [ - { target: './src', from: './src/index.ts' }, - { target: './src', from: './', except: ['./src', './node_modules/'] }, + { target: './packages/charts/src', from: './packages/charts/src/index.ts' }, + { + target: './packages/charts/src', + from: './', + except: ['./packages/charts/src', 'node_modules'], + }, ], }, ] : 0, - 'import/no-internal-modules': [ - 'error', - { - allow: ['**/src/**'], - }, - ], 'no-underscore-dangle': 2, 'import/no-unresolved': 'error', - 'import/no-extraneous-dependencies': [ - 'error', - { - devDependencies: ['**/*.test.ts?(x)', 'src/mocks/**/*.ts?(x)'], - }, - ], + 'import/no-extraneous-dependencies': 2, 'prefer-destructuring': [ 'warn', { @@ -431,12 +424,15 @@ module.exports = { }, }, { - files: ['*.test.ts?(x)', '**/__mocks__/**/*.ts?(x)'], + files: ['*.test.ts?(x)', '**/__mocks__/**/*.ts?(x)', 'packages/charts/src/mocks/**'], rules: { 'elastic-charts/require-release-tag': 0, 'elastic-charts/require-tsdocs': 0, 'elastic-charts/require-documentation': 0, 'unicorn/error-message': 0, + // Cannot check extraneous deps in test files with this mono setup + // see https://github.com/benmosher/eslint-plugin-import/issues/1174 + 'import/no-extraneous-dependencies': 0, }, }, { diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 53b0124762..8e093444bd 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -47,7 +47,7 @@ - [ ] The proper chart type label was added (e.g. :xy, :partition) if the PR involves a specific chart type - [ ] The proper feature label was added (e.g. :interactions, :axis) if the PR involves a specific chart feature - [ ] Whenever possible, please check if the closing issue is connected to a running GH project -- [ ] Any consumer-facing exports were added to `src/index.ts` (and stories only import from `../src` except for test data & storybook) +- [ ] Any consumer-facing exports were added to `packages/charts/src/index.ts` (and stories only import from `../src` except for test data & storybook) - [ ] This was checked for cross-browser compatibility - [ ] Proper documentation or storybook story was added for features that require explanation or tutorials - [ ] Unit tests were updated or added to match the most common scenarios diff --git a/.gitignore b/.gitignore index 36759fa78d..5fd8d08ab7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,14 @@ .idea -node_modules/ +**/node_modules/ test/spec/screenshots/baseline/**/*.png test/spec/screenshots/diff/**/*.png test/spec/screenshots/screen/**/*.png test/failure-screenshots/**/*.png reports/ -tmp/ +**/tmp/ .temp/ -dist/ +**/dist/ coverage/ .out/ .idea @@ -18,6 +18,6 @@ coverage/ .yo-rc.json npm-debug.log yarn-error.log -./playground/playground.tsx +playground/playground.tsx **/__diff_output__/ diff --git a/.prettierignore b/.prettierignore index c974fde9ad..8310bd2a8e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,6 +4,6 @@ .idea/ .vscode/ .temp/ -dist/ +**/dist/ coverage/ -tmp/ +**/tmp/ diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000000..52742488d8 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,36 @@ +const isDryRun = process.argv.includes('--dry-run'); + +/** + * Semantic release is currently a 1:1 relationship between repo and package. + * This is fine for our use case as we currently only publish a single package. + * In the future if/when we publish more than one package we would need to switch + * to another similar release framework. + * + * see https://github.com/semantic-release/semantic-release/issues/193 + */ +module.exports = { + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/changelog', + '@semantic-release/github', + [ + '@semantic-release/npm', + { + // must point to the child package + pkgRoot: 'packages/charts', + }, + ], + '@semantic-release/git', + ...(isDryRun + ? [] + : [ + 'semantic-release-slack-bot', + { + notifyOnSuccess: true, + notifyOnFail: true, + markdownReleaseNotes: true, + }, + ]), + ], +}; diff --git a/.releaserc.json b/.releaserc.json deleted file mode 100644 index e7979f60cf..0000000000 --- a/.releaserc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/github", - "@semantic-release/npm", - "@semantic-release/git", - [ - "semantic-release-slack-bot", - { - "notifyOnSuccess": true, - "notifyOnFail": true, - "markdownReleaseNotes": true - } - ] - ] -} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 46d7864cfe..dc70634116 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,7 +62,7 @@ This is an example that cover all cases: ``` feat(brush): add multi axis brushing (#625) -This commit allows the consumer to configure the direction used for the brush tool. The direction is, by default, along the X-axis, but can be changed to be along the Y-axis or have a rectangular selection along both axes. +This commit allows the consumer to configure the direction used for the brush tool. The direction is, by default, along the X-axis, but can be changed to be along the Y-axis or have a rectangular selection along both axes. For each Y-axis defined (usually determined by an associated `groupId`) we return a scaled set of `[min, max]` values. BREAKING CHANGE: The type used by the `BrushEndListener` is now in the following form `{ x?: [number, number]; }` where `x` contains an array of `[min, max]` values, and the `y` property is an optional array of objects, containing the `GroupId` and the values of the brush for that specific axis. @@ -116,39 +116,40 @@ This will automatically generate a pr to merge into the target branch. Once the > Note: The version will __ONLY__ be published from branches following the [maintenance branch convention](https://github.com/semantic-release/semantic-release/blob/0785a844fa8ac1320383452ce531898be3b01f92/docs/recipes/maintenance-releases.md#publishing-maintenance-releases) -## Linking to Application +## Linking to Kibana -There are two ways to "link" a local version of `@elastic/charts` to your application. The following examples have steps that are kibana-specific denoted with ☈. +To link `@elastic/charts` to kibana we need to perform a few workarounds. Fortunately, this is done automatically by a custom built linking scripts. -### Package library and install in app +### Linking -Easy but time-consuming in terms of repeated runs. -1. Run `npm pack` from `@elastic/charts` root to package the library into a gzip file -1. Locate the full path the the gzip file, typically at the same level of the target library `package.json` -1. Run `yarn add ` from Kibana. This will install `@elastic/charts` using that version not the one from the package.json. +In order to create link run... -Notice that you would need to repeat all these steps for any changes in charts to be reflected in Kibana. +``` +yarn link:kibana +``` + +This will prompt you for the following inputs: -> If running repeated runs and you notice changes not being updated after a new install you _may_ need to increment the `@elastic/charts` version for kibana/npm/??? to pick up the changes. This should NOT be commited. +- Select the `Link` action +- Select the path to kibana (default: `../kibana`) +- Confirm kibana is running -#### Uninstalling -1. Reset changes to `package.json`. -1. Run `yarn kbn bootstrap` ☈. Or `yarn install --force` +The reset is handled automatically! If any errors occur in the build method, they will be surfaced in the terminal and pause the build process until corrected. -### Symlink the library and build in watch mode +If you encounter and issue or close the watch mode following the linking process, you can run the script is watch mode. Do so by running... -The second is a little trickier but the preferred option, especially for debugging. +``` +yarn link:kibana +``` -1. Run `yarn build:watch` from `@elastic/charts`. This builds the scss and other files and then will _watch_ for changes in typescript files and recompile. If you don't run watch and try to rebuild after each change the link _may_ break. -1. ☈ In Kibana there is a package called [`@kbn/ui-shared-deps`](https://github.com/elastic/kibana/tree/master/packages/kbn-ui-shared-deps) that optimizes importing shared modules. This causes a _lot_ of complications when linking. The easiest way to fix this is to just remove any and all references of `@elastic/charts` in this directory and then run `yarn kbn bootstrap`. -1. Run `yarn link @elastic/charts` in Kibana. -1. If you application uses react hooks, you must link your application react module to `@elastic/charts`. The issue with react hooks is that react requires there only be a single instance of react. This should be solved in your app at build time using yarn [resolutions](https://classic.yarnpkg.com/en/docs/selective-version-resolutions/) to resolve any differing version in the dependency tree to a single version of react. But when symlinking the local `@elastic/charts`, `@elastic/charts` is still using `@elastic/charts/node_modules/react` and not `/node_modules/react`. To fix this you need to run `npm link /node_modules/react` from `@elastic/charts`. Now elastic-charts and kibana will be using the same instance of react. -1. At this point you can make changes to `@elastic/charts` wait for the new hash to complete and refresh the application to see the changes, it does _not_ hot reload. +- Select the `Watch mode` action -#### Unlinking +### Unlinking + +In order to remove the link and restore kibana to state prior to linking, run... + +``` +yarn link:kibana +``` -1. Remove react symlink by running `npm unlink /node_modules/react` from `@elastic/charts`. -1. Run `yarn unlink @elastic/charts` in Kibana. -1. ☈ Restore changes to [`@kbn/ui-shared-deps`](https://github.com/elastic/kibana/tree/master/packages/kbn-ui-shared-deps) -1. For good measure, delete `@elastic/charts` in kibana `node_modules`. Run `rm -fr /node_modules/@elastic/charts`. -1. Run `yarn kbn bootstrap` ☈. Or `yarn install --force` +- Select the `Unlink` action diff --git a/docs/0-Intro/0-Intro.mdx b/docs/0-Intro/0-Intro.mdx index 6b961f0a6c..e9fdba8ed8 100644 --- a/docs/0-Intro/0-Intro.mdx +++ b/docs/0-Intro/0-Intro.mdx @@ -2,14 +2,14 @@ import { Meta, Story } from "@storybook/addon-docs/blocks"; -# Introduction -This storybook is comprised of the main charts within [Elastic Charts](https://github.com/elastic/elastic-charts). +# Introduction +This storybook is comprised of the main charts within [Elastic Charts](https://github.com/elastic/elastic-charts). You can see the stories used for visual regression testing [here](https://elastic.github.io/elastic-charts). This storybook is intended to be useful for a consumer of the Elastic Charts library. -The components within elastic charts are divided in the `src/chart_types` directory. Currently, bars, lines, and area charts are in the `xy_chart` directory while `partition_chart` contains sunbursts (including pie charts and donut charts) and treemaps. +The components within elastic charts are divided in the `packages/charts/src/chart_types` directory. Currently, bars, lines, and area charts are in the `xy_chart` directory while `partition_chart` contains sunbursts (including pie charts and donut charts) and treemaps. You can import Chart components from the top-level Elastic Chart module. diff --git a/docs/0-Intro/1-Overview.mdx b/docs/0-Intro/1-Overview.mdx index e93cfcf861..2dca277964 100644 --- a/docs/0-Intro/1-Overview.mdx +++ b/docs/0-Intro/1-Overview.mdx @@ -1,7 +1,7 @@ -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { mocks } from '../../src/mocks/hierarchical/index'; -import { config } from '../../src/chart_types/partition_chart/layout/config/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical/index'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; import { categoricalFillColor, colorBrewerCategoricalStark9, diff --git a/docs/1-Typesofchart/0-Bar.mdx b/docs/1-Typesofchart/0-Bar.mdx index 302246a58f..8071e221e8 100644 --- a/docs/1-Typesofchart/0-Bar.mdx +++ b/docs/1-Typesofchart/0-Bar.mdx @@ -11,8 +11,8 @@ import { Position, timeFormatter, niceTimeFormatByDay, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import BarSeriesPropsTable from '../2-ChartPropTables/9-BarProps.md'; import BarWAxisPropsTable from '../2-ChartPropTables/10-BarWAxisProps.md'; @@ -71,9 +71,9 @@ Bar charts provide a visual presentation of categorical data. Categorical data i Additonal prop tables for the following bar charts can be found in `Chart References > Prop Tables` *** -# Bar Chart with Axes +# Bar Chart with Axes -This chart now includes x and y axes. These axes can be `linear`, `ordinal` or `time`. +This chart now includes x and y axes. These axes can be `linear`, `ordinal` or `time`. @@ -158,7 +158,7 @@ And below is an example of an `ordinal` x axis bar chart /> -
+
```js diff --git a/docs/1-Typesofchart/1-Area.mdx b/docs/1-Typesofchart/1-Area.mdx index ca663885b5..fb7be82822 100644 --- a/docs/1-Typesofchart/1-Area.mdx +++ b/docs/1-Typesofchart/1-Area.mdx @@ -10,13 +10,13 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; # Basic Area Chart -Below is a very basic area chart from Elastic Charts. An Area Chart (or area graph) is basically a line graph with the area below the lined filled with colors or textures. +Below is a very basic area chart from Elastic Charts. An Area Chart (or area graph) is basically a line graph with the area below the lined filled with colors or textures. Like line graphs area charts are used to represent the development of quantitative values over a time period. It can also be used to compare two or more categories and is similar to the Stacked Area Chart. Area charts often used to show overall trends over time rather than specific values. @@ -34,11 +34,11 @@ Area charts often used to show overall trends over time rather than specific val /> -*** +*** -The code snippet for the area chart above is found in the details section below. +The code snippet for the area chart above is found in the details section below. -
+
```js @@ -118,5 +118,5 @@ To only have an area chart without axes, do not include the `` components
*** -There is a stacked area chart in the `Stacked Charts` section if you are interested. -Prop tables can be found in `Chart References > Prop Tables` \ No newline at end of file +There is a stacked area chart in the `Stacked Charts` section if you are interested. +Prop tables can be found in `Chart References > Prop Tables` diff --git a/docs/1-Typesofchart/2-Line.mdx b/docs/1-Typesofchart/2-Line.mdx index bd695aca3a..de1e58574d 100644 --- a/docs/1-Typesofchart/2-Line.mdx +++ b/docs/1-Typesofchart/2-Line.mdx @@ -9,9 +9,9 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src/'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; @@ -53,7 +53,7 @@ The data is generated from kibana metrics data ```
-Here is a `linear x axis` line chart +Here is a `linear x axis` line chart ` includes a tickFormat prop to achieve the percentages. +Notice how the `` includes a tickFormat prop to achieve the percentages.
@@ -121,5 +121,5 @@ Notice how the `` includes a tickFormat prop to *** -The props table for line charts can be found in the `Chart References > Prop Tables` section -Also, check out the `Stacked Charts` section for an example of stacked line charts. \ No newline at end of file +The props table for line charts can be found in the `Chart References > Prop Tables` section +Also, check out the `Stacked Charts` section for an example of stacked line charts. diff --git a/docs/1-Typesofchart/3-Stacked.mdx b/docs/1-Typesofchart/3-Stacked.mdx index 49162be3b2..a0d4380751 100644 --- a/docs/1-Typesofchart/3-Stacked.mdx +++ b/docs/1-Typesofchart/3-Stacked.mdx @@ -14,8 +14,8 @@ import { Position, timeFormatter, niceTimeFormatByDay, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; diff --git a/docs/1-Typesofchart/4-Sunburts.mdx b/docs/1-Typesofchart/4-Sunburts.mdx index 617f4b436e..c2d7fc7231 100644 --- a/docs/1-Typesofchart/4-Sunburts.mdx +++ b/docs/1-Typesofchart/4-Sunburts.mdx @@ -1,7 +1,7 @@ -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { mocks } from '../../src/mocks/hierarchical/index'; -import { config } from '../../src/chart_types/partition_chart/layout/config/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical/index'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; import { categoricalFillColor, colorBrewerCategoricalPastel12, @@ -16,7 +16,7 @@ import { -# A very simple pie chart +# A very simple pie chart -The code sample can be found within the details below. +The code sample can be found within the details below.
@@ -63,9 +63,9 @@ The code sample can be found within the details below. ```
-## Props table for a basic sunburst chart +## Props table for a basic sunburst chart -These props are for the `` component as seen in the code snippet above +These props are for the `` component as seen in the code snippet above | Prop | Type | Default | Note | |:------|:------:|:---------:|:------| diff --git a/docs/1-Typesofchart/5-AnnotatingBars.mdx b/docs/1-Typesofchart/5-AnnotatingBars.mdx index 4bff68e918..22b29ba785 100644 --- a/docs/1-Typesofchart/5-AnnotatingBars.mdx +++ b/docs/1-Typesofchart/5-AnnotatingBars.mdx @@ -13,10 +13,10 @@ import { Settings, timeFormatter, Position, -} from '../../src'; -import { Icon } from '../../src/components/icons/icon'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; -import { BandedAccessorType } from '../../src/utils/geometry'; +} from '../../packages/charts/src'; +import { Icon } from '../../packages/charts/src/components/icons/icon'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; +import { BandedAccessorType } from '../../packages/charts/src/utils/geometry'; import { getChartRotationKnob, generateAnnotationData, arrayKnobs } from '../../docs/charts' diff --git a/docs/1-Typesofchart/6-LegendsBars.mdx b/docs/1-Typesofchart/6-LegendsBars.mdx index 5a3476fd86..8333297f1b 100644 --- a/docs/1-Typesofchart/6-LegendsBars.mdx +++ b/docs/1-Typesofchart/6-LegendsBars.mdx @@ -10,9 +10,9 @@ import { ScaleType, Settings, PartialTheme, -} from '../../src/'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; @@ -49,7 +49,7 @@ What you should pay attention to: * Legend specific props are included in the `` component * `showLegend={true}` * `legendPosition={Position.Right}` -* The tick tickFormat prop within the `` component +* The tick tickFormat prop within the `` component
@@ -75,4 +75,4 @@ What you should pay attention to: /> ``` -
\ No newline at end of file +
diff --git a/docs/1-Typesofchart/8-Donut.mdx b/docs/1-Typesofchart/8-Donut.mdx index 1e12c79aab..326d655e61 100644 --- a/docs/1-Typesofchart/8-Donut.mdx +++ b/docs/1-Typesofchart/8-Donut.mdx @@ -1,7 +1,7 @@ -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { mocks } from '../../src/mocks/hierarchical/index'; -import { config } from '../../src/chart_types/partition_chart/layout/config/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical/index'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; import { categoricalFillColor, colorBrewerCategoricalPastel12, @@ -97,4 +97,4 @@ import { />
``` -
\ No newline at end of file +
diff --git a/docs/2-ChartPropTables/7-PropTables.mdx b/docs/2-ChartPropTables/7-PropTables.mdx index 8375c19eb9..ec822ae213 100644 --- a/docs/2-ChartPropTables/7-PropTables.mdx +++ b/docs/2-ChartPropTables/7-PropTables.mdx @@ -11,9 +11,9 @@ import { ScaleType, Settings, PartialTheme, -} from '../../src/'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; import BarSeriesPropsTable from './9-BarProps.md'; import BarWAxisPropsTable from './10-BarWAxisProps.md'; import SettingsPropsTable from './11-SettingsProps.md'; @@ -25,7 +25,7 @@ import LinePropsTable from './14-LineProps.md'; *** -Please also see the `Elastic Charts Overview` section in the Introduction for a heartier explanation for some of these props. +Please also see the `Elastic Charts Overview` section in the Introduction for a heartier explanation for some of these props. diff --git a/docs/2-ChartPropTables/8-ConsolidatedSnippets.mdx b/docs/2-ChartPropTables/8-ConsolidatedSnippets.mdx index 4c1397fd2c..cf3b0abdc4 100644 --- a/docs/2-ChartPropTables/8-ConsolidatedSnippets.mdx +++ b/docs/2-ChartPropTables/8-ConsolidatedSnippets.mdx @@ -10,9 +10,9 @@ import { ScaleType, Settings, PartialTheme, -} from '../../src/'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; @@ -63,7 +63,7 @@ Bar with axes ``` -Stacked bar chart +Stacked bar chart ```js @@ -96,7 +96,7 @@ Stacked bar chart ``` -Basic area chart +Basic area chart ```js ``` -Area chart with axes components +Area chart with axes components ```js ``` -Stacked area chart +Stacked area chart ```js @@ -153,7 +153,7 @@ Stacked area chart title={KIBANA_METRICS.metrics.kibana_os_load[0].metric.title} position={Position.Left} tickFormat={(d) => Number(d).toFixed(2)} - /> + /> ``` -Linear x axis line chart +Linear x axis line chart ```js ``` -Stacked line chart +Stacked line chart ```js @@ -275,4 +275,4 @@ Stacked line chart stackAccessors={[0]} /> -``` \ No newline at end of file +``` diff --git a/docs/charts.tsx b/docs/charts.tsx index fd055003f3..8f41c9e522 100644 --- a/docs/charts.tsx +++ b/docs/charts.tsx @@ -31,9 +31,9 @@ import { AnnotationDomainType, Axis, LineAnnotationDatum, -} from '../src'; -import { Icon } from '../src/components/icons/icon'; -import { KIBANA_METRICS } from '../src/utils/data_samples/test_dataset_kibana'; +} from '../packages/charts/src'; +import { Icon } from '../packages/charts/src/components/icons/icon'; +import { KIBANA_METRICS } from '../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { arrayKnobs, getChartRotationKnob } from '../stories/utils/knobs'; export default { diff --git a/integration/helpers.ts b/integration/helpers.ts index 47ce936a9c..613b5bd456 100644 --- a/integration/helpers.ts +++ b/integration/helpers.ts @@ -24,7 +24,7 @@ import path from 'path'; import { getStorybook, configure } from '@storybook/react'; -import { Rotation } from '../src'; +import { Rotation } from '../packages/charts/src'; // @ts-ignore import { isLegacyVRTServer } from './config'; diff --git a/integration/page_objects/common.ts b/integration/page_objects/common.ts index 301f116674..f8ed614c4e 100644 --- a/integration/page_objects/common.ts +++ b/integration/page_objects/common.ts @@ -22,7 +22,7 @@ import Url from 'url'; import { JSDOM } from 'jsdom'; import { AXNode } from 'puppeteer'; -import { DRAG_DETECTION_TIMEOUT } from '../../src/state/reducers/interactions'; +import { DRAG_DETECTION_TIMEOUT } from '../../packages/charts/src/state/reducers/interactions'; // @ts-ignore import { port, hostname, debug, isLegacyVRTServer } from '../config'; import { toMatchImageSnapshot } from '../jest_env_setup'; diff --git a/integration/server/generate/vrt_page_template.js b/integration/server/generate/vrt_page_template.js index 196097aca5..5b6127372d 100644 --- a/integration/server/generate/vrt_page_template.js +++ b/integration/server/generate/vrt_page_template.js @@ -25,7 +25,7 @@ const compileRouteTemplate = require('./route_template'); function indexTemplate() { return ` -import '../../src/theme_light.scss'; +import '../../packages/charts/src/theme_light.scss'; import '../../storybook/style.scss'; import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/integration/server/webpack.config.js b/integration/server/webpack.config.js index cef9b012da..1043da86a1 100644 --- a/integration/server/webpack.config.js +++ b/integration/server/webpack.config.js @@ -29,7 +29,7 @@ module.exports = { output: { filename: '[name].bundle.js', chunkFilename: '[name].chunk.js', - path: path.resolve(__dirname, 'dist'), + path: path.resolve(__dirname, 'packages/charts/dist'), }, devServer: { host: '0.0.0.0', diff --git a/integration/server/webpack.tsconfig.json b/integration/server/webpack.tsconfig.json index 4a23583c69..d2c62282fa 100644 --- a/integration/server/webpack.tsconfig.json +++ b/integration/server/webpack.tsconfig.json @@ -5,6 +5,6 @@ "target": "ES5", "module": "ESNext" }, - "include": ["../../src/**/*", "./**/*"], + "include": ["../../packages/charts/src/**/*", "./**/*"], "exclude": ["../../**/*.test.*"] } diff --git a/integration/tests/annotations_stories.test.ts b/integration/tests/annotations_stories.test.ts index 9dcebe1a45..0bde1287a9 100644 --- a/integration/tests/annotations_stories.test.ts +++ b/integration/tests/annotations_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Position } from '../../src'; +import { Position } from '../../packages/charts/src'; import { eachRotation } from '../helpers'; import { common } from '../page_objects'; diff --git a/integration/tests/axis_stories.test.ts b/integration/tests/axis_stories.test.ts index 2ca54c6590..52b8b1ff33 100644 --- a/integration/tests/axis_stories.test.ts +++ b/integration/tests/axis_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Position } from '../../src'; +import { Position } from '../../packages/charts/src'; import { eachRotation } from '../helpers'; import { common } from '../page_objects'; diff --git a/integration/tests/bar_stories.test.ts b/integration/tests/bar_stories.test.ts index 1e582901f0..6a28af629f 100644 --- a/integration/tests/bar_stories.test.ts +++ b/integration/tests/bar_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { DisplayValueStyle, HorizontalAlignment, VerticalAlignment } from '../../src'; +import { DisplayValueStyle, HorizontalAlignment, VerticalAlignment } from '../../packages/charts/src'; import { eachRotation } from '../helpers'; import { common } from '../page_objects'; diff --git a/integration/tests/interactions.test.ts b/integration/tests/interactions.test.ts index 6749c15aed..7cfb4abda8 100644 --- a/integration/tests/interactions.test.ts +++ b/integration/tests/interactions.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Placement } from '../../src'; +import { Placement } from '../../packages/charts/src'; import { eachRotation } from '../helpers'; import { common } from '../page_objects'; diff --git a/integration/tests/legend_stories.test.ts b/integration/tests/legend_stories.test.ts index 4e22ed8fdc..4d01298bab 100644 --- a/integration/tests/legend_stories.test.ts +++ b/integration/tests/legend_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { PartitionLayout, Position } from '../../src'; +import { PartitionLayout, Position } from '../../packages/charts/src'; import { common } from '../page_objects'; describe('Legend stories', () => { diff --git a/integration/tests/mixed_stories.test.ts b/integration/tests/mixed_stories.test.ts index b0715d805c..6a6e2b9e22 100644 --- a/integration/tests/mixed_stories.test.ts +++ b/integration/tests/mixed_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { Fit } from '../../src'; +import { Fit } from '../../packages/charts/src'; import { common } from '../page_objects'; describe('Mixed series stories', () => { diff --git a/integration/tests/scales_stories.test.ts b/integration/tests/scales_stories.test.ts index 58d9de4983..d9f5074209 100644 --- a/integration/tests/scales_stories.test.ts +++ b/integration/tests/scales_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { LogBase } from '../../src/scales/scale_continuous'; +import { LogBase } from '../../packages/charts/src/scales/scale_continuous'; import { common } from '../page_objects'; describe('Scales stories', () => { diff --git a/integration/tests/stylings_stories.test.ts b/integration/tests/stylings_stories.test.ts index f9fb769311..60e15a9fec 100644 --- a/integration/tests/stylings_stories.test.ts +++ b/integration/tests/stylings_stories.test.ts @@ -17,7 +17,7 @@ * under the License. */ -import { SeriesType } from '../../src'; +import { SeriesType } from '../../packages/charts/src'; import { common } from '../page_objects'; describe('Stylings stories', () => { diff --git a/jest.config.js b/jest.config.js index a8f0ed46bf..3c77e7e480 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,10 +19,14 @@ module.exports = { testMatch: ['**/?(*.)+(test).[jt]s?(x)'], - roots: ['/src'], + roots: ['/packages/charts/src'], preset: 'ts-jest', setupFilesAfterEnv: ['/scripts/setup_enzyme.ts', '/scripts/custom_matchers.ts'], - coveragePathIgnorePatterns: ['/src/mocks/', '/node_modules/'], + coveragePathIgnorePatterns: [ + '/packages/charts/src/mocks', + '/packages/charts/src/utils/d3-delaunay', + '/node_modules/', + ], clearMocks: true, globals: { 'ts-jest': { diff --git a/lerna.json b/lerna.json new file mode 100644 index 0000000000..df24e8ccaf --- /dev/null +++ b/lerna.json @@ -0,0 +1,7 @@ +{ + "lerna": "3.20.2", + "packages": ["packages/*"], + "npmClient": "yarn", + "useWorkspaces": true, + "version": "independent" +} diff --git a/package.json b/package.json index aaf44d10b3..b51fc3ec6d 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,34 @@ { - "name": "@elastic/charts", - "description": "Elastic-Charts data visualization library", - "version": "30.0.0", - "author": "Marco Vettorello ", + "name": "elastic-charts-mono", + "description": "Mono repo for @elastic/charts", + "author": "Elastic DataVis", "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/index.js", - "types": "dist/index.d.ts", + "private": "true", "repository": "git@github.com:elastic/elastic-charts.git", - "publishConfig": { - "access": "public" - }, - "files": [ - "dist/**/*" + "workspaces": [ + "packages/*" ], "scripts": { - "autoprefix:css": "echo 'Autoprefixing...' && yarn postcss dist/*.css --no-map --use autoprefixer -d dist", - "api:check": "yarn build:ts && yarn api:extract", - "api:check:local": "yarn api:check --local", - "api:extract": "yarn api-extractor run --verbose", + "prepack": "echo 'This package is not published, see pacakges/*' && exit 1", + "autoprefix:css": "lerna run --loglevel=silent --scope @elastic/charts autoprefix:css", + "api:check": "lerna run --loglevel=silent --scope @elastic/charts api:check", + "api:check:local": "lerna run --loglevel=silent --scope @elastic/charts api:check:local", + "api:extract": "lerna run --loglevel=silent --scope @elastic/charts api:extract", "backport": "backport", - "build": "yarn build:ts && yarn build:css", - "build:ts": "yarn build:clean && yarn build:compile && yarn build:check", - "build:css": "yarn build:sass && yarn autoprefix:css && yarn concat:sass", - "build:clean": "echo 'Cleaning dist...' && rm -rf ./dist", - "build:compile": "echo 'Compiling...' && tsc -p ./tsconfig.lib.json && tsc -p ./tsconfig.lib-nocomments.json", - "build:sass": "echo 'Building sass...' && node-sass src/theme_light.scss dist/theme_light.css --output-style compressed && node-sass src/theme_dark.scss dist/theme_dark.css --output-style compressed && node-sass src/theme_only_light.scss dist/theme_only_light.css --output-style compressed && node-sass src/theme_only_dark.scss dist/theme_only_dark.css --output-style compressed", - "build:check": "echo 'Type checking dist...' && tsc -p ./tsconfig.lib-check.json", - "build:watch": "echo 'Watching build...' && yarn build:clean && yarn build:css && tsc -p ./tsconfig.lib.json -w", - "concat:sass": "echo 'Concat SASS...' && node scripts/concat_sass.js", + "build": "lerna run --loglevel=silent --scope @elastic/charts build", + "build:ts": "lerna run --loglevel=silent --scope @elastic/charts build:ts", + "build:css": "lerna run --loglevel=silent --scope @elastic/charts build:css", + "build:clean": "lerna run --loglevel=silent --scope @elastic/charts build:clean", + "build:compile": "lerna run --loglevel=silent --scope @elastic/charts build:compile", + "build:sass": "lerna run --loglevel=silent --scope @elastic/charts build:sass", + "build:check": "lerna run --loglevel=silent --scope @elastic/charts build:check", + "build:watch": "lerna run --loglevel=silent --scope @elastic/charts build:watch", + "concat:sass": "lerna run --loglevel=silent --scope @elastic/charts concat:sass", "cz": "git-cz", "lint": "NODE_ENV=production eslint --quiet --ext .tsx,.ts,.js .", "lint:fix": "yarn lint --fix", "prettier:check": "prettier --check \"**/*.{json,html,css,scss}\"", "playground": "cd playground && webpack serve", - "playground:ie": "cd playground && webpack serve --host=0.0.0.0 --disable-host-check --useLocalIp", "pq": "pretty-quick", "semantic-release": "semantic-release", "start": "yarn storybook", @@ -55,10 +49,9 @@ "test:integration:generate:examples": "./scripts/extract_examples.sh", "test:integration:generate:page": "./scripts/compile_vrt_page.sh", "test:integration:server": "cd integration/server && RNG_SEED='elastic-charts' webpack serve --content-base integration/server", - "typecheck:src": "yarn build:ts --noEmit", + "typecheck:src": "lerna run --loglevel=silent --scope @elastic/charts typecheck", "typecheck:all": "tsc -p ./tsconfig.json --noEmit", "ts:prune": "ts-prune", - "watch": "yarn test --watch", "link:kibana": "node ./packages/link_kibana" }, "dependencies": { @@ -97,6 +90,7 @@ "@microsoft/api-extractor": "^7.13.1", "@semantic-release/changelog": "^5.0.1", "@semantic-release/commit-analyzer": "^8.0.1", + "@semantic-release/exec": "^5.0.0", "@semantic-release/git": "^9.0.0", "@semantic-release/github": "^7.2.1", "@semantic-release/npm": "^7.1.1", @@ -142,7 +136,7 @@ "@typescript-eslint/eslint-plugin": "^4.12.0", "@typescript-eslint/parser": "^4.12.0", "@webpack-cli/serve": "^1.3.1", - "autoprefixer": "^10.2.5", + "autoprefixer": "^9.0.0", "babel-loader": "^8.1.0", "backport": "^5.6.6", "canvas": "^2.6.1", @@ -177,6 +171,7 @@ "jest-matcher-utils": "^26.6.2", "jest-puppeteer": "^4.4.0", "jest-puppeteer-docker": "^1.4.2", + "lerna": "^4.0.0", "link-kibana": "link:./packages/link_kibana", "lint-staged": "^10.5.3", "lodash": "^4.17.15", @@ -186,7 +181,7 @@ "moment-timezone": "^0.5.32", "node-sass": "^4.14.1", "numeral": "^2.0.6", - "postcss": "^8.2.10", + "postcss": "^8.3.0", "postcss-cli": "^8.3.1", "prettier": "^2.2.1", "pretty-quick": "^3.1.0", @@ -213,24 +208,13 @@ "webpack-cli": "^4.6.0", "webpack-dev-server": "^3.11.2" }, - "peerDependencies": { - "moment": "^2.29.1", - "moment-timezone": "^0.5.32", - "react": "^16.12.0", - "react-dom": "^16.12.0" + "engines": { + "node": ">=10", + "yarn": ">=1" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } - }, - "resolutions": { - "conventional-changelog-conventionalcommits": "^4.3.0", - "refractor": "~3.1.0", - "postcss": "^8.2.10" - }, - "browserslist": [ - "last 2 versions", - "ie 11" - ] + } } diff --git a/packages/charts/.gitignore b/packages/charts/.gitignore new file mode 100644 index 0000000000..bd5df212b8 --- /dev/null +++ b/packages/charts/.gitignore @@ -0,0 +1,6 @@ +# Copied files to include in final package +# remove when bundled other than tsc +LICENSE.txt +CHANGELOG.md +NOTICE.txt +README.md diff --git a/.npmignore b/packages/charts/.npmignore similarity index 100% rename from .npmignore rename to packages/charts/.npmignore diff --git a/api-extractor.json b/packages/charts/api-extractor.jsonc similarity index 99% rename from api-extractor.json rename to packages/charts/api-extractor.jsonc index 50d4e5a717..e72bc020b6 100644 --- a/api-extractor.json +++ b/packages/charts/api-extractor.jsonc @@ -33,7 +33,7 @@ * SUPPORTED TOKENS: * DEFAULT VALUE: "" */ - // "projectFolder": "..", + "projectFolder": "./", /** * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor @@ -78,7 +78,7 @@ * SUPPORTED TOKENS: , , * DEFAULT VALUE: "/tsconfig.json" */ - "tsconfigFilePath": "/tsconfig.lib.json", + "tsconfigFilePath": "/tsconfig.json", /** * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. * The object must conform to the TypeScript tsconfig schema: diff --git a/api/charts.api.md b/packages/charts/api/charts.api.md similarity index 100% rename from api/charts.api.md rename to packages/charts/api/charts.api.md diff --git a/packages/charts/package.json b/packages/charts/package.json new file mode 100644 index 0000000000..a984e98fb9 --- /dev/null +++ b/packages/charts/package.json @@ -0,0 +1,67 @@ +{ + "name": "@elastic/charts", + "description": "Elastic-Charts data visualization library", + "version": "30.0.0", + "author": "Elastic DataVis", + "license": "Apache-2.0", + "main": "dist/index.js", + "module": "dist/index.js", + "types": "dist/index.d.ts", + "repository": "git@github.com:elastic/elastic-charts.git", + "publishConfig": { + "access": "public" + }, + "files": [ + "dist/**/*" + ], + "scripts": { + "autoprefix:css": "echo 'Autoprefixing...' && yarn postcss dist/*.css --no-map --use autoprefixer -d dist", + "api:check": "yarn build:ts && yarn api:extract", + "api:check:local": "yarn api:check --local", + "api:extract": "yarn api-extractor run -c ./api-extractor.jsonc --verbose", + "build": "yarn build:ts && yarn build:css && yarn build:txt", + "build:ts": "yarn build:clean && yarn build:compile && yarn build:check", + "build:css": "yarn build:sass && yarn autoprefix:css && yarn concat:sass", + "build:clean": "echo 'Cleaning dist...' && rm -rf ./dist", + "build:compile": "echo 'Compiling...' && tsc -p ./tsconfig.json && tsc -p ./tsconfig.nocomments.json", + "build:sass": "echo 'Building sass...' && node-sass src/theme_light.scss dist/theme_light.css --output-style compressed && node-sass src/theme_dark.scss dist/theme_dark.css --output-style compressed && node-sass src/theme_only_light.scss dist/theme_only_light.css --output-style compressed && node-sass src/theme_only_dark.scss dist/theme_only_dark.css --output-style compressed", + "build:check": "echo 'Type checking dist...' && tsc -p ./tsconfig.check.json", + "build:watch": "echo 'Watching build...' && yarn build:clean && yarn build:css && tsc -p ./tsconfig.json -w", + "concat:sass": "echo 'Concat SASS...' && node scripts/concat_sass.js", + "build:txt": "node scripts/move_txt_files.js", + "semantic-release": "semantic-release", + "typecheck": "tsc -p ./tsconfig.json --noEmit && tsc -p ./tsconfig.nocomments.json --noEmit" + }, + "dependencies": { + "@popperjs/core": "^2.4.0", + "chroma-js": "^2.1.0", + "classnames": "^2.2.6", + "d3-array": "^1.2.4", + "d3-cloud": "^1.2.5", + "d3-collection": "^1.0.7", + "d3-color": "^1.4.0", + "d3-interpolate": "^1.4.0", + "d3-scale": "^1.0.7", + "d3-shape": "^1.3.4", + "newtype-ts": "^0.2.4", + "prop-types": "^15.7.2", + "re-reselect": "^3.4.0", + "react-redux": "^7.1.0", + "redux": "^4.0.4", + "reselect": "^4.0.0", + "resize-observer-polyfill": "^1.5.1", + "ts-debounce": "^1.0.0", + "utility-types": "^3.10.0", + "uuid": "^3.3.2" + }, + "peerDependencies": { + "moment": "^2.29.1", + "moment-timezone": "^0.5.32", + "react": "^16.12.0", + "react-dom": "^16.12.0" + }, + "browserslist": [ + "last 2 versions", + "ie 11" + ] +} diff --git a/scripts/concat_sass.js b/packages/charts/scripts/concat_sass.js similarity index 100% rename from scripts/concat_sass.js rename to packages/charts/scripts/concat_sass.js diff --git a/packages/charts/scripts/move_txt_files.js b/packages/charts/scripts/move_txt_files.js new file mode 100644 index 0000000000..c80826b03a --- /dev/null +++ b/packages/charts/scripts/move_txt_files.js @@ -0,0 +1,25 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +const fs = require('fs'); + +fs.copyFileSync('../../README.md', './README.md'); +fs.copyFileSync('../../LICENSE.txt', './LICENSE.txt'); +fs.copyFileSync('../../NOTICE.txt', './NOTICE.txt'); +fs.copyFileSync('../../CHANGELOG.md', './CHANGELOG.md'); diff --git a/packages/charts/src/_eui_imports.scss b/packages/charts/src/_eui_imports.scss new file mode 100644 index 0000000000..8f77ad4cd2 --- /dev/null +++ b/packages/charts/src/_eui_imports.scss @@ -0,0 +1,3 @@ +@import '../../../node_modules/@elastic/eui/src/global_styling/functions/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/variables/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/mixins/index'; diff --git a/src/chart_types/goal_chart/layout/config/config.ts b/packages/charts/src/chart_types/goal_chart/layout/config/config.ts similarity index 100% rename from src/chart_types/goal_chart/layout/config/config.ts rename to packages/charts/src/chart_types/goal_chart/layout/config/config.ts diff --git a/src/chart_types/goal_chart/layout/types/config_types.ts b/packages/charts/src/chart_types/goal_chart/layout/types/config_types.ts similarity index 100% rename from src/chart_types/goal_chart/layout/types/config_types.ts rename to packages/charts/src/chart_types/goal_chart/layout/types/config_types.ts diff --git a/src/chart_types/goal_chart/layout/types/viewmodel_types.ts b/packages/charts/src/chart_types/goal_chart/layout/types/viewmodel_types.ts similarity index 100% rename from src/chart_types/goal_chart/layout/types/viewmodel_types.ts rename to packages/charts/src/chart_types/goal_chart/layout/types/viewmodel_types.ts diff --git a/src/chart_types/goal_chart/layout/viewmodel/viewmodel.ts b/packages/charts/src/chart_types/goal_chart/layout/viewmodel/viewmodel.ts similarity index 100% rename from src/chart_types/goal_chart/layout/viewmodel/viewmodel.ts rename to packages/charts/src/chart_types/goal_chart/layout/viewmodel/viewmodel.ts diff --git a/src/chart_types/goal_chart/renderer/canvas/canvas_renderers.ts b/packages/charts/src/chart_types/goal_chart/renderer/canvas/canvas_renderers.ts similarity index 100% rename from src/chart_types/goal_chart/renderer/canvas/canvas_renderers.ts rename to packages/charts/src/chart_types/goal_chart/renderer/canvas/canvas_renderers.ts diff --git a/src/chart_types/goal_chart/renderer/canvas/connected_component.tsx b/packages/charts/src/chart_types/goal_chart/renderer/canvas/connected_component.tsx similarity index 100% rename from src/chart_types/goal_chart/renderer/canvas/connected_component.tsx rename to packages/charts/src/chart_types/goal_chart/renderer/canvas/connected_component.tsx diff --git a/src/chart_types/goal_chart/specs/constants.ts b/packages/charts/src/chart_types/goal_chart/specs/constants.ts similarity index 100% rename from src/chart_types/goal_chart/specs/constants.ts rename to packages/charts/src/chart_types/goal_chart/specs/constants.ts diff --git a/src/chart_types/goal_chart/specs/index.ts b/packages/charts/src/chart_types/goal_chart/specs/index.ts similarity index 100% rename from src/chart_types/goal_chart/specs/index.ts rename to packages/charts/src/chart_types/goal_chart/specs/index.ts diff --git a/src/chart_types/goal_chart/state/chart_state.tsx b/packages/charts/src/chart_types/goal_chart/state/chart_state.tsx similarity index 100% rename from src/chart_types/goal_chart/state/chart_state.tsx rename to packages/charts/src/chart_types/goal_chart/state/chart_state.tsx diff --git a/src/chart_types/goal_chart/state/selectors/geometries.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/geometries.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/geometries.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/geometries.ts diff --git a/src/chart_types/goal_chart/state/selectors/get_chart_type_description.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/get_chart_type_description.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/get_chart_type_description.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/get_chart_type_description.ts diff --git a/src/chart_types/goal_chart/state/selectors/goal_spec.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/goal_spec.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/goal_spec.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/goal_spec.ts diff --git a/src/chart_types/goal_chart/state/selectors/is_tooltip_visible.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/is_tooltip_visible.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/is_tooltip_visible.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/is_tooltip_visible.ts diff --git a/src/chart_types/goal_chart/state/selectors/on_element_click_caller.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/on_element_click_caller.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/on_element_click_caller.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/on_element_click_caller.ts diff --git a/src/chart_types/goal_chart/state/selectors/on_element_out_caller.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/on_element_out_caller.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/on_element_out_caller.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/on_element_out_caller.ts diff --git a/src/chart_types/goal_chart/state/selectors/on_element_over_caller.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/on_element_over_caller.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/on_element_over_caller.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/on_element_over_caller.ts diff --git a/src/chart_types/goal_chart/state/selectors/picked_shapes.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/picked_shapes.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/picked_shapes.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/picked_shapes.ts diff --git a/src/chart_types/goal_chart/state/selectors/scenegraph.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/scenegraph.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/scenegraph.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/scenegraph.ts diff --git a/src/chart_types/goal_chart/state/selectors/tooltip.ts b/packages/charts/src/chart_types/goal_chart/state/selectors/tooltip.ts similarity index 100% rename from src/chart_types/goal_chart/state/selectors/tooltip.ts rename to packages/charts/src/chart_types/goal_chart/state/selectors/tooltip.ts diff --git a/src/chart_types/heatmap/layout/config/config.ts b/packages/charts/src/chart_types/heatmap/layout/config/config.ts similarity index 100% rename from src/chart_types/heatmap/layout/config/config.ts rename to packages/charts/src/chart_types/heatmap/layout/config/config.ts diff --git a/src/chart_types/heatmap/layout/types/config_types.ts b/packages/charts/src/chart_types/heatmap/layout/types/config_types.ts similarity index 100% rename from src/chart_types/heatmap/layout/types/config_types.ts rename to packages/charts/src/chart_types/heatmap/layout/types/config_types.ts diff --git a/src/chart_types/heatmap/layout/types/viewmodel_types.ts b/packages/charts/src/chart_types/heatmap/layout/types/viewmodel_types.ts similarity index 100% rename from src/chart_types/heatmap/layout/types/viewmodel_types.ts rename to packages/charts/src/chart_types/heatmap/layout/types/viewmodel_types.ts diff --git a/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts b/packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts similarity index 100% rename from src/chart_types/heatmap/layout/viewmodel/viewmodel.ts rename to packages/charts/src/chart_types/heatmap/layout/viewmodel/viewmodel.ts diff --git a/src/chart_types/heatmap/renderer/canvas/canvas_renderers.ts b/packages/charts/src/chart_types/heatmap/renderer/canvas/canvas_renderers.ts similarity index 100% rename from src/chart_types/heatmap/renderer/canvas/canvas_renderers.ts rename to packages/charts/src/chart_types/heatmap/renderer/canvas/canvas_renderers.ts diff --git a/src/chart_types/heatmap/renderer/canvas/connected_component.tsx b/packages/charts/src/chart_types/heatmap/renderer/canvas/connected_component.tsx similarity index 100% rename from src/chart_types/heatmap/renderer/canvas/connected_component.tsx rename to packages/charts/src/chart_types/heatmap/renderer/canvas/connected_component.tsx diff --git a/src/chart_types/heatmap/renderer/dom/highlighter.tsx b/packages/charts/src/chart_types/heatmap/renderer/dom/highlighter.tsx similarity index 100% rename from src/chart_types/heatmap/renderer/dom/highlighter.tsx rename to packages/charts/src/chart_types/heatmap/renderer/dom/highlighter.tsx diff --git a/src/chart_types/heatmap/renderer/dom/highlighter_brush.tsx b/packages/charts/src/chart_types/heatmap/renderer/dom/highlighter_brush.tsx similarity index 100% rename from src/chart_types/heatmap/renderer/dom/highlighter_brush.tsx rename to packages/charts/src/chart_types/heatmap/renderer/dom/highlighter_brush.tsx diff --git a/src/chart_types/heatmap/specs/heatmap.ts b/packages/charts/src/chart_types/heatmap/specs/heatmap.ts similarity index 100% rename from src/chart_types/heatmap/specs/heatmap.ts rename to packages/charts/src/chart_types/heatmap/specs/heatmap.ts diff --git a/src/chart_types/heatmap/specs/index.ts b/packages/charts/src/chart_types/heatmap/specs/index.ts similarity index 100% rename from src/chart_types/heatmap/specs/index.ts rename to packages/charts/src/chart_types/heatmap/specs/index.ts diff --git a/src/chart_types/heatmap/specs/scale_defaults.ts b/packages/charts/src/chart_types/heatmap/specs/scale_defaults.ts similarity index 100% rename from src/chart_types/heatmap/specs/scale_defaults.ts rename to packages/charts/src/chart_types/heatmap/specs/scale_defaults.ts diff --git a/src/chart_types/heatmap/state/chart_state.tsx b/packages/charts/src/chart_types/heatmap/state/chart_state.tsx similarity index 100% rename from src/chart_types/heatmap/state/chart_state.tsx rename to packages/charts/src/chart_types/heatmap/state/chart_state.tsx diff --git a/src/chart_types/heatmap/state/selectors/compute_chart_dimensions.ts b/packages/charts/src/chart_types/heatmap/state/selectors/compute_chart_dimensions.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/compute_chart_dimensions.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/compute_chart_dimensions.ts diff --git a/src/chart_types/heatmap/state/selectors/compute_legend.ts b/packages/charts/src/chart_types/heatmap/state/selectors/compute_legend.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/compute_legend.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/compute_legend.ts diff --git a/src/chart_types/heatmap/state/selectors/geometries.ts b/packages/charts/src/chart_types/heatmap/state/selectors/geometries.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/geometries.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/geometries.ts diff --git a/src/chart_types/heatmap/state/selectors/get_brush_area.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_brush_area.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_brush_area.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_brush_area.ts diff --git a/src/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_brushed_highlighted_shapes.ts diff --git a/src/chart_types/heatmap/state/selectors/get_color_scale.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_color_scale.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_color_scale.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_color_scale.ts diff --git a/src/chart_types/heatmap/state/selectors/get_cursor_pointer.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_cursor_pointer.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_cursor_pointer.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_cursor_pointer.ts diff --git a/src/chart_types/heatmap/state/selectors/get_debug_state.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_debug_state.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_debug_state.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_debug_state.ts diff --git a/src/chart_types/heatmap/state/selectors/get_grid_full_height.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_grid_full_height.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_grid_full_height.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_grid_full_height.ts diff --git a/src/chart_types/heatmap/state/selectors/get_heatmap_config.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_config.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_heatmap_config.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_config.ts diff --git a/src/chart_types/heatmap/state/selectors/get_heatmap_container_size.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_container_size.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_heatmap_container_size.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_container_size.ts diff --git a/src/chart_types/heatmap/state/selectors/get_heatmap_spec.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_spec.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_heatmap_spec.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_spec.ts diff --git a/src/chart_types/heatmap/state/selectors/get_heatmap_table.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_table.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_heatmap_table.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_heatmap_table.ts diff --git a/src/chart_types/heatmap/state/selectors/get_highlighted_area.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_highlighted_area.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_highlighted_area.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_highlighted_area.ts diff --git a/src/chart_types/heatmap/state/selectors/get_legend_items_labels.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_legend_items_labels.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_legend_items_labels.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_legend_items_labels.ts diff --git a/src/chart_types/heatmap/state/selectors/get_picked_cells.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_picked_cells.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_picked_cells.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_picked_cells.ts diff --git a/src/chart_types/heatmap/state/selectors/get_tooltip_anchor.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_tooltip_anchor.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_tooltip_anchor.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_tooltip_anchor.ts diff --git a/src/chart_types/heatmap/state/selectors/get_x_axis_right_overflow.ts b/packages/charts/src/chart_types/heatmap/state/selectors/get_x_axis_right_overflow.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/get_x_axis_right_overflow.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/get_x_axis_right_overflow.ts diff --git a/src/chart_types/heatmap/state/selectors/heatmap_spec.ts b/packages/charts/src/chart_types/heatmap/state/selectors/heatmap_spec.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/heatmap_spec.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/heatmap_spec.ts diff --git a/src/chart_types/heatmap/state/selectors/is_brush_available.ts b/packages/charts/src/chart_types/heatmap/state/selectors/is_brush_available.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/is_brush_available.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/is_brush_available.ts diff --git a/src/chart_types/heatmap/state/selectors/is_brushing.ts b/packages/charts/src/chart_types/heatmap/state/selectors/is_brushing.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/is_brushing.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/is_brushing.ts diff --git a/src/chart_types/heatmap/state/selectors/is_tooltip_visible.ts b/packages/charts/src/chart_types/heatmap/state/selectors/is_tooltip_visible.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/is_tooltip_visible.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/is_tooltip_visible.ts diff --git a/src/chart_types/heatmap/state/selectors/on_brush_end_caller.ts b/packages/charts/src/chart_types/heatmap/state/selectors/on_brush_end_caller.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/on_brush_end_caller.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/on_brush_end_caller.ts diff --git a/src/chart_types/heatmap/state/selectors/on_element_click_caller.ts b/packages/charts/src/chart_types/heatmap/state/selectors/on_element_click_caller.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/on_element_click_caller.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/on_element_click_caller.ts diff --git a/src/chart_types/heatmap/state/selectors/on_element_out_caller.ts b/packages/charts/src/chart_types/heatmap/state/selectors/on_element_out_caller.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/on_element_out_caller.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/on_element_out_caller.ts diff --git a/src/chart_types/heatmap/state/selectors/on_element_over_caller.ts b/packages/charts/src/chart_types/heatmap/state/selectors/on_element_over_caller.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/on_element_over_caller.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/on_element_over_caller.ts diff --git a/src/chart_types/heatmap/state/selectors/picked_shapes.ts b/packages/charts/src/chart_types/heatmap/state/selectors/picked_shapes.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/picked_shapes.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/picked_shapes.ts diff --git a/src/chart_types/heatmap/state/selectors/scenegraph.ts b/packages/charts/src/chart_types/heatmap/state/selectors/scenegraph.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/scenegraph.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/scenegraph.ts diff --git a/src/chart_types/heatmap/state/selectors/tooltip.ts b/packages/charts/src/chart_types/heatmap/state/selectors/tooltip.ts similarity index 100% rename from src/chart_types/heatmap/state/selectors/tooltip.ts rename to packages/charts/src/chart_types/heatmap/state/selectors/tooltip.ts diff --git a/src/chart_types/index.ts b/packages/charts/src/chart_types/index.ts similarity index 100% rename from src/chart_types/index.ts rename to packages/charts/src/chart_types/index.ts diff --git a/src/chart_types/partition_chart/layout/config.ts b/packages/charts/src/chart_types/partition_chart/layout/config.ts similarity index 100% rename from src/chart_types/partition_chart/layout/config.ts rename to packages/charts/src/chart_types/partition_chart/layout/config.ts diff --git a/src/chart_types/partition_chart/layout/types/config_types.ts b/packages/charts/src/chart_types/partition_chart/layout/types/config_types.ts similarity index 100% rename from src/chart_types/partition_chart/layout/types/config_types.ts rename to packages/charts/src/chart_types/partition_chart/layout/types/config_types.ts diff --git a/src/chart_types/partition_chart/layout/types/viewmodel_types.ts b/packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types.ts similarity index 100% rename from src/chart_types/partition_chart/layout/types/viewmodel_types.ts rename to packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types.ts diff --git a/src/chart_types/partition_chart/layout/utils/circline_geometry.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/circline_geometry.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/circline_geometry.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/circline_geometry.ts diff --git a/src/chart_types/partition_chart/layout/utils/group_by_rollup.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/group_by_rollup.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/group_by_rollup.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/group_by_rollup.ts diff --git a/src/chart_types/partition_chart/layout/utils/highlighted_geoms.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/highlighted_geoms.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/highlighted_geoms.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/highlighted_geoms.ts diff --git a/src/chart_types/partition_chart/layout/utils/legend.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/legend.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/legend.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/legend.ts diff --git a/src/chart_types/partition_chart/layout/utils/legend_labels.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/legend_labels.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/legend_labels.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/legend_labels.ts diff --git a/src/chart_types/partition_chart/layout/utils/sunburst.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/sunburst.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/sunburst.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/sunburst.ts diff --git a/src/chart_types/partition_chart/layout/utils/treemap.ts b/packages/charts/src/chart_types/partition_chart/layout/utils/treemap.ts similarity index 100% rename from src/chart_types/partition_chart/layout/utils/treemap.ts rename to packages/charts/src/chart_types/partition_chart/layout/utils/treemap.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.test.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.test.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.test.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.test.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/fill_text_layout.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.test.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.test.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.test.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.test.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/hierarchy_of_arrays.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/link_text_layout.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/picked_shapes.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/picked_shapes.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/picked_shapes.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/picked_shapes.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/scenegraph.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/scenegraph.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/scenegraph.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/scenegraph.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/tooltip_info.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/tooltip_info.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/tooltip_info.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/tooltip_info.ts diff --git a/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts b/packages/charts/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts similarity index 100% rename from src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts rename to packages/charts/src/chart_types/partition_chart/layout/viewmodel/viewmodel.ts diff --git a/src/chart_types/partition_chart/partition.test.tsx b/packages/charts/src/chart_types/partition_chart/partition.test.tsx similarity index 100% rename from src/chart_types/partition_chart/partition.test.tsx rename to packages/charts/src/chart_types/partition_chart/partition.test.tsx diff --git a/src/chart_types/partition_chart/renderer/_index.scss b/packages/charts/src/chart_types/partition_chart/renderer/_index.scss similarity index 100% rename from src/chart_types/partition_chart/renderer/_index.scss rename to packages/charts/src/chart_types/partition_chart/renderer/_index.scss diff --git a/src/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.ts b/packages/charts/src/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.ts similarity index 100% rename from src/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.ts rename to packages/charts/src/chart_types/partition_chart/renderer/canvas/canvas_linear_renderers.ts diff --git a/src/chart_types/partition_chart/renderer/canvas/canvas_renderers.ts b/packages/charts/src/chart_types/partition_chart/renderer/canvas/canvas_renderers.ts similarity index 100% rename from src/chart_types/partition_chart/renderer/canvas/canvas_renderers.ts rename to packages/charts/src/chart_types/partition_chart/renderer/canvas/canvas_renderers.ts diff --git a/src/chart_types/partition_chart/renderer/canvas/partition.tsx b/packages/charts/src/chart_types/partition_chart/renderer/canvas/partition.tsx similarity index 100% rename from src/chart_types/partition_chart/renderer/canvas/partition.tsx rename to packages/charts/src/chart_types/partition_chart/renderer/canvas/partition.tsx diff --git a/src/chart_types/partition_chart/renderer/dom/highlighter.tsx b/packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter.tsx similarity index 100% rename from src/chart_types/partition_chart/renderer/dom/highlighter.tsx rename to packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter.tsx diff --git a/src/chart_types/partition_chart/renderer/dom/highlighter_hover.tsx b/packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter_hover.tsx similarity index 100% rename from src/chart_types/partition_chart/renderer/dom/highlighter_hover.tsx rename to packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter_hover.tsx diff --git a/src/chart_types/partition_chart/renderer/dom/highlighter_legend.tsx b/packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter_legend.tsx similarity index 100% rename from src/chart_types/partition_chart/renderer/dom/highlighter_legend.tsx rename to packages/charts/src/chart_types/partition_chart/renderer/dom/highlighter_legend.tsx diff --git a/src/chart_types/partition_chart/renderer/dom/layered_partition_chart.tsx b/packages/charts/src/chart_types/partition_chart/renderer/dom/layered_partition_chart.tsx similarity index 100% rename from src/chart_types/partition_chart/renderer/dom/layered_partition_chart.tsx rename to packages/charts/src/chart_types/partition_chart/renderer/dom/layered_partition_chart.tsx diff --git a/src/chart_types/partition_chart/specs/index.ts b/packages/charts/src/chart_types/partition_chart/specs/index.ts similarity index 100% rename from src/chart_types/partition_chart/specs/index.ts rename to packages/charts/src/chart_types/partition_chart/specs/index.ts diff --git a/src/chart_types/partition_chart/state/chart_state.tsx b/packages/charts/src/chart_types/partition_chart/state/chart_state.tsx similarity index 100% rename from src/chart_types/partition_chart/state/chart_state.tsx rename to packages/charts/src/chart_types/partition_chart/state/chart_state.tsx diff --git a/src/chart_types/partition_chart/state/selectors/__snapshots__/get_legend_items_extra.test.ts.snap b/packages/charts/src/chart_types/partition_chart/state/selectors/__snapshots__/get_legend_items_extra.test.ts.snap similarity index 100% rename from src/chart_types/partition_chart/state/selectors/__snapshots__/get_legend_items_extra.test.ts.snap rename to packages/charts/src/chart_types/partition_chart/state/selectors/__snapshots__/get_legend_items_extra.test.ts.snap diff --git a/src/chart_types/partition_chart/state/selectors/compute_legend.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/compute_legend.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/compute_legend.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/compute_legend.ts diff --git a/src/chart_types/partition_chart/state/selectors/drilldown_active.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/drilldown_active.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/drilldown_active.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/drilldown_active.ts diff --git a/src/chart_types/partition_chart/state/selectors/geometries.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/geometries.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/geometries.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/geometries.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_chart_type_description.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_chart_type_description.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_chart_type_description.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_chart_type_description.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_debug_state.test.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_debug_state.test.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_debug_state.test.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_debug_state.test.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_debug_state.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_debug_state.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_debug_state.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_debug_state.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_highlighted_shapes.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_highlighted_shapes.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_highlighted_shapes.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_highlighted_shapes.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.test.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.test.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_legend_items_extra.test.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.test.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_legend_items_extra.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_extra.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.test.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.test.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_legend_items_labels.test.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.test.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_legend_items_labels.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_legend_items_labels.ts diff --git a/src/chart_types/partition_chart/state/selectors/get_partition_specs.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/get_partition_specs.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/get_partition_specs.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/get_partition_specs.ts diff --git a/src/chart_types/partition_chart/state/selectors/is_tooltip_visible.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/is_tooltip_visible.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/is_tooltip_visible.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/is_tooltip_visible.ts diff --git a/src/chart_types/partition_chart/state/selectors/on_element_click_caller.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/on_element_click_caller.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/on_element_click_caller.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/on_element_click_caller.ts diff --git a/src/chart_types/partition_chart/state/selectors/on_element_out_caller.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/on_element_out_caller.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/on_element_out_caller.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/on_element_out_caller.ts diff --git a/src/chart_types/partition_chart/state/selectors/on_element_over_caller.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/on_element_over_caller.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/on_element_over_caller.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/on_element_over_caller.ts diff --git a/src/chart_types/partition_chart/state/selectors/partition_spec.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/partition_spec.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/partition_spec.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/partition_spec.ts diff --git a/src/chart_types/partition_chart/state/selectors/picked_shapes.test.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/picked_shapes.test.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/picked_shapes.test.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/picked_shapes.test.ts diff --git a/src/chart_types/partition_chart/state/selectors/picked_shapes.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/picked_shapes.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/picked_shapes.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/picked_shapes.ts diff --git a/src/chart_types/partition_chart/state/selectors/tooltip.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/tooltip.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/tooltip.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/tooltip.ts diff --git a/src/chart_types/partition_chart/state/selectors/tree.ts b/packages/charts/src/chart_types/partition_chart/state/selectors/tree.ts similarity index 100% rename from src/chart_types/partition_chart/state/selectors/tree.ts rename to packages/charts/src/chart_types/partition_chart/state/selectors/tree.ts diff --git a/src/chart_types/specs.ts b/packages/charts/src/chart_types/specs.ts similarity index 100% rename from src/chart_types/specs.ts rename to packages/charts/src/chart_types/specs.ts diff --git a/src/chart_types/wordcloud/layout/config/config.ts b/packages/charts/src/chart_types/wordcloud/layout/config/config.ts similarity index 100% rename from src/chart_types/wordcloud/layout/config/config.ts rename to packages/charts/src/chart_types/wordcloud/layout/config/config.ts diff --git a/src/chart_types/wordcloud/layout/types/config_types.ts b/packages/charts/src/chart_types/wordcloud/layout/types/config_types.ts similarity index 100% rename from src/chart_types/wordcloud/layout/types/config_types.ts rename to packages/charts/src/chart_types/wordcloud/layout/types/config_types.ts diff --git a/src/chart_types/wordcloud/layout/types/viewmodel_types.ts b/packages/charts/src/chart_types/wordcloud/layout/types/viewmodel_types.ts similarity index 100% rename from src/chart_types/wordcloud/layout/types/viewmodel_types.ts rename to packages/charts/src/chart_types/wordcloud/layout/types/viewmodel_types.ts diff --git a/src/chart_types/wordcloud/layout/viewmodel/viewmodel.ts b/packages/charts/src/chart_types/wordcloud/layout/viewmodel/viewmodel.ts similarity index 100% rename from src/chart_types/wordcloud/layout/viewmodel/viewmodel.ts rename to packages/charts/src/chart_types/wordcloud/layout/viewmodel/viewmodel.ts diff --git a/src/chart_types/wordcloud/renderer/svg/connected_component.tsx b/packages/charts/src/chart_types/wordcloud/renderer/svg/connected_component.tsx similarity index 100% rename from src/chart_types/wordcloud/renderer/svg/connected_component.tsx rename to packages/charts/src/chart_types/wordcloud/renderer/svg/connected_component.tsx diff --git a/src/chart_types/wordcloud/specs/index.ts b/packages/charts/src/chart_types/wordcloud/specs/index.ts similarity index 100% rename from src/chart_types/wordcloud/specs/index.ts rename to packages/charts/src/chart_types/wordcloud/specs/index.ts diff --git a/src/chart_types/wordcloud/state/chart_state.tsx b/packages/charts/src/chart_types/wordcloud/state/chart_state.tsx similarity index 100% rename from src/chart_types/wordcloud/state/chart_state.tsx rename to packages/charts/src/chart_types/wordcloud/state/chart_state.tsx diff --git a/src/chart_types/wordcloud/state/selectors/geometries.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/geometries.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/geometries.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/geometries.ts diff --git a/src/chart_types/wordcloud/state/selectors/on_element_click_caller.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/on_element_click_caller.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/on_element_click_caller.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/on_element_click_caller.ts diff --git a/src/chart_types/wordcloud/state/selectors/on_element_out_caller.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/on_element_out_caller.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/on_element_out_caller.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/on_element_out_caller.ts diff --git a/src/chart_types/wordcloud/state/selectors/on_element_over_caller.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/on_element_over_caller.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/on_element_over_caller.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/on_element_over_caller.ts diff --git a/src/chart_types/wordcloud/state/selectors/picked_shapes.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/picked_shapes.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/picked_shapes.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/picked_shapes.ts diff --git a/src/chart_types/wordcloud/state/selectors/scenegraph.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/scenegraph.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/scenegraph.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/scenegraph.ts diff --git a/src/chart_types/wordcloud/state/selectors/wordcloud_spec.ts b/packages/charts/src/chart_types/wordcloud/state/selectors/wordcloud_spec.ts similarity index 100% rename from src/chart_types/wordcloud/state/selectors/wordcloud_spec.ts rename to packages/charts/src/chart_types/wordcloud/state/selectors/wordcloud_spec.ts diff --git a/src/chart_types/xy_chart/annotations/line/dimensions.integration.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.integration.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/line/dimensions.integration.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.integration.test.ts diff --git a/src/chart_types/xy_chart/annotations/line/dimensions.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/line/dimensions.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.test.ts diff --git a/src/chart_types/xy_chart/annotations/line/dimensions.ts b/packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/line/dimensions.ts rename to packages/charts/src/chart_types/xy_chart/annotations/line/dimensions.ts diff --git a/src/chart_types/xy_chart/annotations/line/line.test.tsx b/packages/charts/src/chart_types/xy_chart/annotations/line/line.test.tsx similarity index 100% rename from src/chart_types/xy_chart/annotations/line/line.test.tsx rename to packages/charts/src/chart_types/xy_chart/annotations/line/line.test.tsx diff --git a/src/chart_types/xy_chart/annotations/line/tooltip.test.tsx b/packages/charts/src/chart_types/xy_chart/annotations/line/tooltip.test.tsx similarity index 100% rename from src/chart_types/xy_chart/annotations/line/tooltip.test.tsx rename to packages/charts/src/chart_types/xy_chart/annotations/line/tooltip.test.tsx diff --git a/src/chart_types/xy_chart/annotations/line/types.ts b/packages/charts/src/chart_types/xy_chart/annotations/line/types.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/line/types.ts rename to packages/charts/src/chart_types/xy_chart/annotations/line/types.ts diff --git a/src/chart_types/xy_chart/annotations/rect/dimensions.integration.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.integration.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/dimensions.integration.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.integration.test.ts diff --git a/src/chart_types/xy_chart/annotations/rect/dimensions.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/dimensions.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.test.ts diff --git a/src/chart_types/xy_chart/annotations/rect/dimensions.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/dimensions.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/dimensions.ts diff --git a/src/chart_types/xy_chart/annotations/rect/tooltip.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/tooltip.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/tooltip.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/tooltip.test.ts diff --git a/src/chart_types/xy_chart/annotations/rect/tooltip.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/tooltip.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/tooltip.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/tooltip.ts diff --git a/src/chart_types/xy_chart/annotations/rect/types.ts b/packages/charts/src/chart_types/xy_chart/annotations/rect/types.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/rect/types.ts rename to packages/charts/src/chart_types/xy_chart/annotations/rect/types.ts diff --git a/src/chart_types/xy_chart/annotations/tooltip.ts b/packages/charts/src/chart_types/xy_chart/annotations/tooltip.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/tooltip.ts rename to packages/charts/src/chart_types/xy_chart/annotations/tooltip.ts diff --git a/src/chart_types/xy_chart/annotations/types.ts b/packages/charts/src/chart_types/xy_chart/annotations/types.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/types.ts rename to packages/charts/src/chart_types/xy_chart/annotations/types.ts diff --git a/src/chart_types/xy_chart/annotations/utils.test.ts b/packages/charts/src/chart_types/xy_chart/annotations/utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/utils.test.ts rename to packages/charts/src/chart_types/xy_chart/annotations/utils.test.ts diff --git a/src/chart_types/xy_chart/annotations/utils.ts b/packages/charts/src/chart_types/xy_chart/annotations/utils.ts similarity index 100% rename from src/chart_types/xy_chart/annotations/utils.ts rename to packages/charts/src/chart_types/xy_chart/annotations/utils.ts diff --git a/src/chart_types/xy_chart/axes/axes_sizes.ts b/packages/charts/src/chart_types/xy_chart/axes/axes_sizes.ts similarity index 100% rename from src/chart_types/xy_chart/axes/axes_sizes.ts rename to packages/charts/src/chart_types/xy_chart/axes/axes_sizes.ts diff --git a/src/chart_types/xy_chart/crosshair/crosshair_line.test.ts b/packages/charts/src/chart_types/xy_chart/crosshair/crosshair_line.test.ts similarity index 100% rename from src/chart_types/xy_chart/crosshair/crosshair_line.test.ts rename to packages/charts/src/chart_types/xy_chart/crosshair/crosshair_line.test.ts diff --git a/src/chart_types/xy_chart/crosshair/crosshair_utils.linear_snap.test.ts b/packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.linear_snap.test.ts similarity index 100% rename from src/chart_types/xy_chart/crosshair/crosshair_utils.linear_snap.test.ts rename to packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.linear_snap.test.ts diff --git a/src/chart_types/xy_chart/crosshair/crosshair_utils.ordinal_snap.test.ts b/packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.ordinal_snap.test.ts similarity index 100% rename from src/chart_types/xy_chart/crosshair/crosshair_utils.ordinal_snap.test.ts rename to packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.ordinal_snap.test.ts diff --git a/src/chart_types/xy_chart/crosshair/crosshair_utils.ts b/packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.ts similarity index 100% rename from src/chart_types/xy_chart/crosshair/crosshair_utils.ts rename to packages/charts/src/chart_types/xy_chart/crosshair/crosshair_utils.ts diff --git a/src/chart_types/xy_chart/domains/nice.ts b/packages/charts/src/chart_types/xy_chart/domains/nice.ts similarity index 100% rename from src/chart_types/xy_chart/domains/nice.ts rename to packages/charts/src/chart_types/xy_chart/domains/nice.ts diff --git a/src/chart_types/xy_chart/domains/types.ts b/packages/charts/src/chart_types/xy_chart/domains/types.ts similarity index 100% rename from src/chart_types/xy_chart/domains/types.ts rename to packages/charts/src/chart_types/xy_chart/domains/types.ts diff --git a/src/chart_types/xy_chart/domains/x_domain.test.ts b/packages/charts/src/chart_types/xy_chart/domains/x_domain.test.ts similarity index 100% rename from src/chart_types/xy_chart/domains/x_domain.test.ts rename to packages/charts/src/chart_types/xy_chart/domains/x_domain.test.ts diff --git a/src/chart_types/xy_chart/domains/x_domain.ts b/packages/charts/src/chart_types/xy_chart/domains/x_domain.ts similarity index 100% rename from src/chart_types/xy_chart/domains/x_domain.ts rename to packages/charts/src/chart_types/xy_chart/domains/x_domain.ts diff --git a/src/chart_types/xy_chart/domains/y_domain.test.ts b/packages/charts/src/chart_types/xy_chart/domains/y_domain.test.ts similarity index 100% rename from src/chart_types/xy_chart/domains/y_domain.test.ts rename to packages/charts/src/chart_types/xy_chart/domains/y_domain.test.ts diff --git a/src/chart_types/xy_chart/domains/y_domain.ts b/packages/charts/src/chart_types/xy_chart/domains/y_domain.ts similarity index 100% rename from src/chart_types/xy_chart/domains/y_domain.ts rename to packages/charts/src/chart_types/xy_chart/domains/y_domain.ts diff --git a/src/chart_types/xy_chart/legend/legend.test.ts b/packages/charts/src/chart_types/xy_chart/legend/legend.test.ts similarity index 100% rename from src/chart_types/xy_chart/legend/legend.test.ts rename to packages/charts/src/chart_types/xy_chart/legend/legend.test.ts diff --git a/src/chart_types/xy_chart/legend/legend.ts b/packages/charts/src/chart_types/xy_chart/legend/legend.ts similarity index 100% rename from src/chart_types/xy_chart/legend/legend.ts rename to packages/charts/src/chart_types/xy_chart/legend/legend.ts diff --git a/src/chart_types/xy_chart/renderer/_index.scss b/packages/charts/src/chart_types/xy_chart/renderer/_index.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/_index.scss rename to packages/charts/src/chart_types/xy_chart/renderer/_index.scss diff --git a/src/chart_types/xy_chart/renderer/canvas/annotations/index.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/index.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/annotations/index.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/index.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/annotations/lines.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/lines.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/annotations/lines.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/lines.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/annotations/rect.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/rect.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/annotations/rect.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/annotations/rect.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/areas.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/areas.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/areas.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/areas.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/global_title.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/global_title.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/global_title.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/global_title.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/index.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/index.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/index.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/index.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/line.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/line.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/line.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/line.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/panel_title.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/panel_title.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/panel_title.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/panel_title.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/tick.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/tick.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/tick.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/tick.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/axes/tick_label.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/tick_label.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/axes/tick_label.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/axes/tick_label.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/bars.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/bars.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/bars.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/bars.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/bubbles.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/bubbles.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/bubbles.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/bubbles.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/grids.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/grids.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/grids.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/grids.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/lines.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/lines.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/lines.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/lines.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/panels/panels.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/panels/panels.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/panels/panels.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/panels/panels.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/points.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/points.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/points.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/points.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/arc.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/arc.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/arc.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/arc.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/line.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/line.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/line.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/line.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/path.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/path.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/path.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/path.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/rect.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/rect.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/rect.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/rect.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/shapes.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/shapes.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/shapes.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/shapes.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/text.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/text.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/text.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/text.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/primitives/utils.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/utils.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/primitives/utils.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/primitives/utils.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/renderers.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/renderers.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/renderers.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/renderers.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/area.test.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/area.test.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/area.test.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/area.test.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/area.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/area.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/area.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/area.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/bar.test.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/bar.test.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/bar.test.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/bar.test.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/bar.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/bar.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/bar.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/bar.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/line.test.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/line.test.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/line.test.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/line.test.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/styles/line.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/line.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/styles/line.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/styles/line.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/utils/debug.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/utils/debug.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/utils/debug.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/utils/debug.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/utils/panel_transform.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/utils/panel_transform.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/utils/panel_transform.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/utils/panel_transform.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/values/bar.ts b/packages/charts/src/chart_types/xy_chart/renderer/canvas/values/bar.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/values/bar.ts rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/values/bar.ts diff --git a/src/chart_types/xy_chart/renderer/canvas/xy_chart.tsx b/packages/charts/src/chart_types/xy_chart/renderer/canvas/xy_chart.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/canvas/xy_chart.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/canvas/xy_chart.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/_crosshair.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/_crosshair.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/_crosshair.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/_crosshair.scss diff --git a/src/chart_types/xy_chart/renderer/dom/_highlighter.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/_highlighter.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/_highlighter.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/_highlighter.scss diff --git a/src/chart_types/xy_chart/renderer/dom/_index.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/_index.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/_index.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/_index.scss diff --git a/src/chart_types/xy_chart/renderer/dom/_screen_reader.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/_screen_reader.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/_screen_reader.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/_screen_reader.scss diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/_annotations.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/_annotations.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/_annotations.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/_annotations.scss diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/_index.scss b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/_index.scss similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/_index.scss rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/_index.scss diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/annotation_tooltip.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/annotations.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/annotations.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/annotations.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/annotations.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/index.ts b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/index.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/index.ts rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/index.ts diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/line_marker.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/line_marker.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/line_marker.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/line_marker.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/annotations/tooltip_content.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/crosshair.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/crosshair.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/crosshair.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/crosshair.tsx diff --git a/src/chart_types/xy_chart/renderer/dom/highlighter.tsx b/packages/charts/src/chart_types/xy_chart/renderer/dom/highlighter.tsx similarity index 100% rename from src/chart_types/xy_chart/renderer/dom/highlighter.tsx rename to packages/charts/src/chart_types/xy_chart/renderer/dom/highlighter.tsx diff --git a/src/chart_types/xy_chart/renderer/shapes_paths.ts b/packages/charts/src/chart_types/xy_chart/renderer/shapes_paths.ts similarity index 100% rename from src/chart_types/xy_chart/renderer/shapes_paths.ts rename to packages/charts/src/chart_types/xy_chart/renderer/shapes_paths.ts diff --git a/src/chart_types/xy_chart/rendering/area.ts b/packages/charts/src/chart_types/xy_chart/rendering/area.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/area.ts rename to packages/charts/src/chart_types/xy_chart/rendering/area.ts diff --git a/src/chart_types/xy_chart/rendering/bars.ts b/packages/charts/src/chart_types/xy_chart/rendering/bars.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/bars.ts rename to packages/charts/src/chart_types/xy_chart/rendering/bars.ts diff --git a/src/chart_types/xy_chart/rendering/bubble.ts b/packages/charts/src/chart_types/xy_chart/rendering/bubble.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/bubble.ts rename to packages/charts/src/chart_types/xy_chart/rendering/bubble.ts diff --git a/src/chart_types/xy_chart/rendering/constants.ts b/packages/charts/src/chart_types/xy_chart/rendering/constants.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/constants.ts rename to packages/charts/src/chart_types/xy_chart/rendering/constants.ts diff --git a/src/chart_types/xy_chart/rendering/line.ts b/packages/charts/src/chart_types/xy_chart/rendering/line.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/line.ts rename to packages/charts/src/chart_types/xy_chart/rendering/line.ts diff --git a/src/chart_types/xy_chart/rendering/point_style.ts b/packages/charts/src/chart_types/xy_chart/rendering/point_style.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/point_style.ts rename to packages/charts/src/chart_types/xy_chart/rendering/point_style.ts diff --git a/src/chart_types/xy_chart/rendering/points.ts b/packages/charts/src/chart_types/xy_chart/rendering/points.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/points.ts rename to packages/charts/src/chart_types/xy_chart/rendering/points.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.areas.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.areas.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.areas.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.areas.test.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.bands.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.bands.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.bands.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.bands.test.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.bars.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.bars.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.bars.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.bars.test.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.bubble.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.bubble.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.bubble.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.bubble.test.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.lines.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.lines.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.lines.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.lines.test.ts diff --git a/src/chart_types/xy_chart/rendering/rendering.test.ts b/packages/charts/src/chart_types/xy_chart/rendering/rendering.test.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/rendering.test.ts rename to packages/charts/src/chart_types/xy_chart/rendering/rendering.test.ts diff --git a/src/chart_types/xy_chart/rendering/utils.ts b/packages/charts/src/chart_types/xy_chart/rendering/utils.ts similarity index 100% rename from src/chart_types/xy_chart/rendering/utils.ts rename to packages/charts/src/chart_types/xy_chart/rendering/utils.ts diff --git a/src/chart_types/xy_chart/scales/get_api_scales.ts b/packages/charts/src/chart_types/xy_chart/scales/get_api_scales.ts similarity index 100% rename from src/chart_types/xy_chart/scales/get_api_scales.ts rename to packages/charts/src/chart_types/xy_chart/scales/get_api_scales.ts diff --git a/src/chart_types/xy_chart/scales/scale_defaults.ts b/packages/charts/src/chart_types/xy_chart/scales/scale_defaults.ts similarity index 100% rename from src/chart_types/xy_chart/scales/scale_defaults.ts rename to packages/charts/src/chart_types/xy_chart/scales/scale_defaults.ts diff --git a/src/chart_types/xy_chart/specs/area_series.tsx b/packages/charts/src/chart_types/xy_chart/specs/area_series.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/area_series.tsx rename to packages/charts/src/chart_types/xy_chart/specs/area_series.tsx diff --git a/src/chart_types/xy_chart/specs/axis.tsx b/packages/charts/src/chart_types/xy_chart/specs/axis.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/axis.tsx rename to packages/charts/src/chart_types/xy_chart/specs/axis.tsx diff --git a/src/chart_types/xy_chart/specs/bar_series.tsx b/packages/charts/src/chart_types/xy_chart/specs/bar_series.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/bar_series.tsx rename to packages/charts/src/chart_types/xy_chart/specs/bar_series.tsx diff --git a/src/chart_types/xy_chart/specs/bubble_series.tsx b/packages/charts/src/chart_types/xy_chart/specs/bubble_series.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/bubble_series.tsx rename to packages/charts/src/chart_types/xy_chart/specs/bubble_series.tsx diff --git a/src/chart_types/xy_chart/specs/histogram_bar_series.tsx b/packages/charts/src/chart_types/xy_chart/specs/histogram_bar_series.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/histogram_bar_series.tsx rename to packages/charts/src/chart_types/xy_chart/specs/histogram_bar_series.tsx diff --git a/src/chart_types/xy_chart/specs/index.ts b/packages/charts/src/chart_types/xy_chart/specs/index.ts similarity index 100% rename from src/chart_types/xy_chart/specs/index.ts rename to packages/charts/src/chart_types/xy_chart/specs/index.ts diff --git a/src/chart_types/xy_chart/specs/line_annotation.test.tsx b/packages/charts/src/chart_types/xy_chart/specs/line_annotation.test.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/line_annotation.test.tsx rename to packages/charts/src/chart_types/xy_chart/specs/line_annotation.test.tsx diff --git a/src/chart_types/xy_chart/specs/line_annotation.tsx b/packages/charts/src/chart_types/xy_chart/specs/line_annotation.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/line_annotation.tsx rename to packages/charts/src/chart_types/xy_chart/specs/line_annotation.tsx diff --git a/src/chart_types/xy_chart/specs/line_series.tsx b/packages/charts/src/chart_types/xy_chart/specs/line_series.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/line_series.tsx rename to packages/charts/src/chart_types/xy_chart/specs/line_series.tsx diff --git a/src/chart_types/xy_chart/specs/rect_annotation.tsx b/packages/charts/src/chart_types/xy_chart/specs/rect_annotation.tsx similarity index 100% rename from src/chart_types/xy_chart/specs/rect_annotation.tsx rename to packages/charts/src/chart_types/xy_chart/specs/rect_annotation.tsx diff --git a/src/chart_types/xy_chart/state/chart_state.accessibility.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.accessibility.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.accessibility.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.accessibility.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.interactions.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.interactions.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.interactions.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.interactions.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.specs.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.specs.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.specs.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.specs.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.timescales.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.timescales.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.timescales.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.timescales.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.tooltip.test.ts b/packages/charts/src/chart_types/xy_chart/state/chart_state.tooltip.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.tooltip.test.ts rename to packages/charts/src/chart_types/xy_chart/state/chart_state.tooltip.test.ts diff --git a/src/chart_types/xy_chart/state/chart_state.tsx b/packages/charts/src/chart_types/xy_chart/state/chart_state.tsx similarity index 100% rename from src/chart_types/xy_chart/state/chart_state.tsx rename to packages/charts/src/chart_types/xy_chart/state/chart_state.tsx diff --git a/src/chart_types/xy_chart/state/selectors/compute_annotations.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_annotations.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_annotations.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_annotations.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_axes_geometries.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_axes_geometries.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_axes_geometries.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_axes_geometries.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_axis_ticks_dimensions.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_chart_dimensions.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_chart_dimensions.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_chart_dimensions.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_chart_dimensions.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_chart_transform.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_chart_transform.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_chart_transform.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_chart_transform.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_grid_lines.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_grid_lines.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_grid_lines.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_grid_lines.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_legend.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_legend.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_legend.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_legend.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_panels.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_panels.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_panels.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_panels.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_per_panel_axes_geoms.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_series_domains.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_series_domains.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_series_domains.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_series_domains.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_series_geometries.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_series_geometries.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_series_geometries.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_series_geometries.ts diff --git a/src/chart_types/xy_chart/state/selectors/compute_small_multiple_scales.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/compute_small_multiple_scales.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/compute_small_multiple_scales.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/compute_small_multiple_scales.ts diff --git a/src/chart_types/xy_chart/state/selectors/count_bars_in_cluster.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/count_bars_in_cluster.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/count_bars_in_cluster.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/count_bars_in_cluster.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_annotation_tooltip_state.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.test.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_api_scale_configs.test.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.test.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_api_scale_configs.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_api_scale_configs.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_axis_styles.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_axis_styles.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_axis_styles.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_axis_styles.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_bar_paddings.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_bar_paddings.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_bar_paddings.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_bar_paddings.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_brush_area.test.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_brush_area.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_brush_area.test.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_brush_area.test.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_brush_area.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_brush_area.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_brush_area.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_brush_area.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_chart_type_description.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_chart_type_description.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_chart_type_description.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_chart_type_description.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_computed_scales.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_computed_scales.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_computed_scales.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_computed_scales.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_cursor_band.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_band.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_cursor_band.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_band.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_cursor_line.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_line.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_cursor_line.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_line.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_cursor_pointer.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_pointer.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_cursor_pointer.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_cursor_pointer.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_debug_state.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_debug_state.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_debug_state.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_debug_state.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.test.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.test.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.test.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_elements_at_cursor_pos.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_geometries_index.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_geometries_index.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_geometries_index.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_geometries_index.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_geometries_index_keys.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_geometries_index_keys.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_geometries_index_keys.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_geometries_index_keys.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_grid_lines.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_grid_lines.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_grid_lines.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_grid_lines.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_highlighted_series.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_highlighted_series.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_highlighted_series.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_highlighted_series.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_highlighted_values.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_highlighted_values.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_highlighted_values.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_highlighted_values.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_legend_items_labels.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_legend_items_labels.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_legend_items_labels.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_legend_items_labels.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_oriented_projected_pointer_position.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_projected_pointer_position.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_pointer_position.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_projected_pointer_position.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_pointer_position.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_projected_scaled_values.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_series_color_map.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_series_color_map.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_series_color_map.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_series_color_map.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_si_dataseries_map.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_si_dataseries_map.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_si_dataseries_map.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_si_dataseries_map.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_specs.test.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_specs.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_specs.test.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_specs.test.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_specs.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_specs.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_specs.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_specs.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_tooltip_position.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_position.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_tooltip_position.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_position.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_tooltip_snap.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_snap.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_tooltip_snap.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_snap.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_tooltip_type.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_type.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_tooltip_type.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_type.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.test.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.test.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.test.ts diff --git a/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts diff --git a/src/chart_types/xy_chart/state/selectors/has_single_series.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/has_single_series.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/has_single_series.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/has_single_series.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_annotation_tooltip_visible.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_brush_available.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_brush_available.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_brush_available.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_brush_available.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_brushing.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_brushing.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_brushing.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_brushing.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_chart_animatable.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_chart_animatable.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_chart_animatable.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_chart_animatable.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_chart_empty.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_chart_empty.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_chart_empty.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_chart_empty.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_histogram_mode_enabled.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_tooltip_snap_enabled.ts diff --git a/src/chart_types/xy_chart/state/selectors/is_tooltip_visible.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/is_tooltip_visible.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/is_tooltip_visible.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/is_tooltip_visible.ts diff --git a/src/chart_types/xy_chart/state/selectors/merge_y_custom_domains.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/merge_y_custom_domains.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/merge_y_custom_domains.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/merge_y_custom_domains.ts diff --git a/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/on_brush_end_caller.ts diff --git a/src/chart_types/xy_chart/state/selectors/on_click_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_click_caller.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/on_click_caller.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/on_click_caller.ts diff --git a/src/chart_types/xy_chart/state/selectors/on_element_out_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_element_out_caller.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/on_element_out_caller.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/on_element_out_caller.ts diff --git a/src/chart_types/xy_chart/state/selectors/on_element_over_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_element_over_caller.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/on_element_over_caller.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/on_element_over_caller.ts diff --git a/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts b/packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts similarity index 100% rename from src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts rename to packages/charts/src/chart_types/xy_chart/state/selectors/on_pointer_move_caller.ts diff --git a/src/chart_types/xy_chart/state/utils/__snapshots__/utils.test.ts.snap b/packages/charts/src/chart_types/xy_chart/state/utils/__snapshots__/utils.test.ts.snap similarity index 100% rename from src/chart_types/xy_chart/state/utils/__snapshots__/utils.test.ts.snap rename to packages/charts/src/chart_types/xy_chart/state/utils/__snapshots__/utils.test.ts.snap diff --git a/src/chart_types/xy_chart/state/utils/common.test.ts b/packages/charts/src/chart_types/xy_chart/state/utils/common.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/common.test.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/common.test.ts diff --git a/src/chart_types/xy_chart/state/utils/common.ts b/packages/charts/src/chart_types/xy_chart/state/utils/common.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/common.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/common.ts diff --git a/src/chart_types/xy_chart/state/utils/get_last_value.ts b/packages/charts/src/chart_types/xy_chart/state/utils/get_last_value.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/get_last_value.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/get_last_value.ts diff --git a/src/chart_types/xy_chart/state/utils/spec.ts b/packages/charts/src/chart_types/xy_chart/state/utils/spec.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/spec.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/spec.ts diff --git a/src/chart_types/xy_chart/state/utils/types.ts b/packages/charts/src/chart_types/xy_chart/state/utils/types.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/types.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/types.ts diff --git a/src/chart_types/xy_chart/state/utils/utils.test.ts b/packages/charts/src/chart_types/xy_chart/state/utils/utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/utils.test.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/utils.test.ts diff --git a/src/chart_types/xy_chart/state/utils/utils.ts b/packages/charts/src/chart_types/xy_chart/state/utils/utils.ts similarity index 100% rename from src/chart_types/xy_chart/state/utils/utils.ts rename to packages/charts/src/chart_types/xy_chart/state/utils/utils.ts diff --git a/src/chart_types/xy_chart/tooltip/tooltip.test.ts b/packages/charts/src/chart_types/xy_chart/tooltip/tooltip.test.ts similarity index 100% rename from src/chart_types/xy_chart/tooltip/tooltip.test.ts rename to packages/charts/src/chart_types/xy_chart/tooltip/tooltip.test.ts diff --git a/src/chart_types/xy_chart/tooltip/tooltip.ts b/packages/charts/src/chart_types/xy_chart/tooltip/tooltip.ts similarity index 100% rename from src/chart_types/xy_chart/tooltip/tooltip.ts rename to packages/charts/src/chart_types/xy_chart/tooltip/tooltip.ts diff --git a/src/chart_types/xy_chart/utils/__snapshots__/dimensions.test.ts.snap b/packages/charts/src/chart_types/xy_chart/utils/__snapshots__/dimensions.test.ts.snap similarity index 100% rename from src/chart_types/xy_chart/utils/__snapshots__/dimensions.test.ts.snap rename to packages/charts/src/chart_types/xy_chart/utils/__snapshots__/dimensions.test.ts.snap diff --git a/src/chart_types/xy_chart/utils/__snapshots__/series.test.ts.snap b/packages/charts/src/chart_types/xy_chart/utils/__snapshots__/series.test.ts.snap similarity index 100% rename from src/chart_types/xy_chart/utils/__snapshots__/series.test.ts.snap rename to packages/charts/src/chart_types/xy_chart/utils/__snapshots__/series.test.ts.snap diff --git a/src/chart_types/xy_chart/utils/axis_type_utils.test.ts b/packages/charts/src/chart_types/xy_chart/utils/axis_type_utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/axis_type_utils.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/axis_type_utils.test.ts diff --git a/src/chart_types/xy_chart/utils/axis_type_utils.ts b/packages/charts/src/chart_types/xy_chart/utils/axis_type_utils.ts similarity index 100% rename from src/chart_types/xy_chart/utils/axis_type_utils.ts rename to packages/charts/src/chart_types/xy_chart/utils/axis_type_utils.ts diff --git a/src/chart_types/xy_chart/utils/axis_utils.test.ts b/packages/charts/src/chart_types/xy_chart/utils/axis_utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/axis_utils.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/axis_utils.test.ts diff --git a/src/chart_types/xy_chart/utils/axis_utils.ts b/packages/charts/src/chart_types/xy_chart/utils/axis_utils.ts similarity index 100% rename from src/chart_types/xy_chart/utils/axis_utils.ts rename to packages/charts/src/chart_types/xy_chart/utils/axis_utils.ts diff --git a/src/chart_types/xy_chart/utils/default_series_sort_fn.ts b/packages/charts/src/chart_types/xy_chart/utils/default_series_sort_fn.ts similarity index 100% rename from src/chart_types/xy_chart/utils/default_series_sort_fn.ts rename to packages/charts/src/chart_types/xy_chart/utils/default_series_sort_fn.ts diff --git a/src/chart_types/xy_chart/utils/dimensions.test.ts b/packages/charts/src/chart_types/xy_chart/utils/dimensions.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/dimensions.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/dimensions.test.ts diff --git a/src/chart_types/xy_chart/utils/dimensions.ts b/packages/charts/src/chart_types/xy_chart/utils/dimensions.ts similarity index 100% rename from src/chart_types/xy_chart/utils/dimensions.ts rename to packages/charts/src/chart_types/xy_chart/utils/dimensions.ts diff --git a/src/chart_types/xy_chart/utils/fill_series.ts b/packages/charts/src/chart_types/xy_chart/utils/fill_series.ts similarity index 100% rename from src/chart_types/xy_chart/utils/fill_series.ts rename to packages/charts/src/chart_types/xy_chart/utils/fill_series.ts diff --git a/src/chart_types/xy_chart/utils/fit_function.test.ts b/packages/charts/src/chart_types/xy_chart/utils/fit_function.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/fit_function.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/fit_function.test.ts diff --git a/src/chart_types/xy_chart/utils/fit_function.ts b/packages/charts/src/chart_types/xy_chart/utils/fit_function.ts similarity index 100% rename from src/chart_types/xy_chart/utils/fit_function.ts rename to packages/charts/src/chart_types/xy_chart/utils/fit_function.ts diff --git a/src/chart_types/xy_chart/utils/fit_function_utils.ts b/packages/charts/src/chart_types/xy_chart/utils/fit_function_utils.ts similarity index 100% rename from src/chart_types/xy_chart/utils/fit_function_utils.ts rename to packages/charts/src/chart_types/xy_chart/utils/fit_function_utils.ts diff --git a/src/chart_types/xy_chart/utils/grid_lines.test.ts b/packages/charts/src/chart_types/xy_chart/utils/grid_lines.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/grid_lines.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/grid_lines.test.ts diff --git a/src/chart_types/xy_chart/utils/grid_lines.ts b/packages/charts/src/chart_types/xy_chart/utils/grid_lines.ts similarity index 100% rename from src/chart_types/xy_chart/utils/grid_lines.ts rename to packages/charts/src/chart_types/xy_chart/utils/grid_lines.ts diff --git a/src/chart_types/xy_chart/utils/group_data_series.ts b/packages/charts/src/chart_types/xy_chart/utils/group_data_series.ts similarity index 100% rename from src/chart_types/xy_chart/utils/group_data_series.ts rename to packages/charts/src/chart_types/xy_chart/utils/group_data_series.ts diff --git a/src/chart_types/xy_chart/utils/indexed_geometry_linear_map.ts b/packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_linear_map.ts similarity index 100% rename from src/chart_types/xy_chart/utils/indexed_geometry_linear_map.ts rename to packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_linear_map.ts diff --git a/src/chart_types/xy_chart/utils/indexed_geometry_map.ts b/packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_map.ts similarity index 100% rename from src/chart_types/xy_chart/utils/indexed_geometry_map.ts rename to packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_map.ts diff --git a/src/chart_types/xy_chart/utils/indexed_geometry_spatial_map.ts b/packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_spatial_map.ts similarity index 100% rename from src/chart_types/xy_chart/utils/indexed_geometry_spatial_map.ts rename to packages/charts/src/chart_types/xy_chart/utils/indexed_geometry_spatial_map.ts diff --git a/src/chart_types/xy_chart/utils/interactions.test.ts b/packages/charts/src/chart_types/xy_chart/utils/interactions.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/interactions.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/interactions.test.ts diff --git a/src/chart_types/xy_chart/utils/interactions.ts b/packages/charts/src/chart_types/xy_chart/utils/interactions.ts similarity index 100% rename from src/chart_types/xy_chart/utils/interactions.ts rename to packages/charts/src/chart_types/xy_chart/utils/interactions.ts diff --git a/src/chart_types/xy_chart/utils/nonstacked_series_utils.test.ts b/packages/charts/src/chart_types/xy_chart/utils/nonstacked_series_utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/nonstacked_series_utils.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/nonstacked_series_utils.test.ts diff --git a/src/chart_types/xy_chart/utils/panel.ts b/packages/charts/src/chart_types/xy_chart/utils/panel.ts similarity index 100% rename from src/chart_types/xy_chart/utils/panel.ts rename to packages/charts/src/chart_types/xy_chart/utils/panel.ts diff --git a/src/chart_types/xy_chart/utils/panel_utils.ts b/packages/charts/src/chart_types/xy_chart/utils/panel_utils.ts similarity index 100% rename from src/chart_types/xy_chart/utils/panel_utils.ts rename to packages/charts/src/chart_types/xy_chart/utils/panel_utils.ts diff --git a/src/chart_types/xy_chart/utils/scales.test.ts b/packages/charts/src/chart_types/xy_chart/utils/scales.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/scales.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/scales.test.ts diff --git a/src/chart_types/xy_chart/utils/scales.ts b/packages/charts/src/chart_types/xy_chart/utils/scales.ts similarity index 100% rename from src/chart_types/xy_chart/utils/scales.ts rename to packages/charts/src/chart_types/xy_chart/utils/scales.ts diff --git a/src/chart_types/xy_chart/utils/series.test.ts b/packages/charts/src/chart_types/xy_chart/utils/series.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/series.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/series.test.ts diff --git a/src/chart_types/xy_chart/utils/series.ts b/packages/charts/src/chart_types/xy_chart/utils/series.ts similarity index 100% rename from src/chart_types/xy_chart/utils/series.ts rename to packages/charts/src/chart_types/xy_chart/utils/series.ts diff --git a/src/chart_types/xy_chart/utils/specs.ts b/packages/charts/src/chart_types/xy_chart/utils/specs.ts similarity index 100% rename from src/chart_types/xy_chart/utils/specs.ts rename to packages/charts/src/chart_types/xy_chart/utils/specs.ts diff --git a/src/chart_types/xy_chart/utils/stacked_percent_series_utils.test.ts b/packages/charts/src/chart_types/xy_chart/utils/stacked_percent_series_utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/stacked_percent_series_utils.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/stacked_percent_series_utils.test.ts diff --git a/src/chart_types/xy_chart/utils/stacked_series_utils.test.ts b/packages/charts/src/chart_types/xy_chart/utils/stacked_series_utils.test.ts similarity index 100% rename from src/chart_types/xy_chart/utils/stacked_series_utils.test.ts rename to packages/charts/src/chart_types/xy_chart/utils/stacked_series_utils.test.ts diff --git a/src/chart_types/xy_chart/utils/stacked_series_utils.ts b/packages/charts/src/chart_types/xy_chart/utils/stacked_series_utils.ts similarity index 100% rename from src/chart_types/xy_chart/utils/stacked_series_utils.ts rename to packages/charts/src/chart_types/xy_chart/utils/stacked_series_utils.ts diff --git a/src/chart_types/xy_chart/utils/texture.ts b/packages/charts/src/chart_types/xy_chart/utils/texture.ts similarity index 100% rename from src/chart_types/xy_chart/utils/texture.ts rename to packages/charts/src/chart_types/xy_chart/utils/texture.ts diff --git a/src/common/__mocks__/calcs.ts b/packages/charts/src/common/__mocks__/calcs.ts similarity index 100% rename from src/common/__mocks__/calcs.ts rename to packages/charts/src/common/__mocks__/calcs.ts diff --git a/src/common/__mocks__/color_library_wrappers.ts b/packages/charts/src/common/__mocks__/color_library_wrappers.ts similarity index 100% rename from src/common/__mocks__/color_library_wrappers.ts rename to packages/charts/src/common/__mocks__/color_library_wrappers.ts diff --git a/src/common/__mocks__/fill_text_layout.ts b/packages/charts/src/common/__mocks__/fill_text_layout.ts similarity index 100% rename from src/common/__mocks__/fill_text_layout.ts rename to packages/charts/src/common/__mocks__/fill_text_layout.ts diff --git a/src/common/__mocks__/link_text_layout.ts b/packages/charts/src/common/__mocks__/link_text_layout.ts similarity index 100% rename from src/common/__mocks__/link_text_layout.ts rename to packages/charts/src/common/__mocks__/link_text_layout.ts diff --git a/src/common/category.ts b/packages/charts/src/common/category.ts similarity index 100% rename from src/common/category.ts rename to packages/charts/src/common/category.ts diff --git a/src/common/color_calcs.test.ts b/packages/charts/src/common/color_calcs.test.ts similarity index 100% rename from src/common/color_calcs.test.ts rename to packages/charts/src/common/color_calcs.test.ts diff --git a/src/common/color_calcs.ts b/packages/charts/src/common/color_calcs.ts similarity index 100% rename from src/common/color_calcs.ts rename to packages/charts/src/common/color_calcs.ts diff --git a/src/common/color_library_wrappers.test.ts b/packages/charts/src/common/color_library_wrappers.test.ts similarity index 100% rename from src/common/color_library_wrappers.test.ts rename to packages/charts/src/common/color_library_wrappers.test.ts diff --git a/src/common/color_library_wrappers.ts b/packages/charts/src/common/color_library_wrappers.ts similarity index 100% rename from src/common/color_library_wrappers.ts rename to packages/charts/src/common/color_library_wrappers.ts diff --git a/src/common/config_objects.ts b/packages/charts/src/common/config_objects.ts similarity index 100% rename from src/common/config_objects.ts rename to packages/charts/src/common/config_objects.ts diff --git a/src/common/constants.ts b/packages/charts/src/common/constants.ts similarity index 100% rename from src/common/constants.ts rename to packages/charts/src/common/constants.ts diff --git a/src/common/event_handler_selectors.ts b/packages/charts/src/common/event_handler_selectors.ts similarity index 100% rename from src/common/event_handler_selectors.ts rename to packages/charts/src/common/event_handler_selectors.ts diff --git a/src/common/fill_text_color.ts b/packages/charts/src/common/fill_text_color.ts similarity index 100% rename from src/common/fill_text_color.ts rename to packages/charts/src/common/fill_text_color.ts diff --git a/src/common/geometry.ts b/packages/charts/src/common/geometry.ts similarity index 100% rename from src/common/geometry.ts rename to packages/charts/src/common/geometry.ts diff --git a/src/common/iterables.ts b/packages/charts/src/common/iterables.ts similarity index 100% rename from src/common/iterables.ts rename to packages/charts/src/common/iterables.ts diff --git a/src/common/legend.ts b/packages/charts/src/common/legend.ts similarity index 100% rename from src/common/legend.ts rename to packages/charts/src/common/legend.ts diff --git a/src/common/math.ts b/packages/charts/src/common/math.ts similarity index 100% rename from src/common/math.ts rename to packages/charts/src/common/math.ts diff --git a/src/common/predicate.ts b/packages/charts/src/common/predicate.ts similarity index 100% rename from src/common/predicate.ts rename to packages/charts/src/common/predicate.ts diff --git a/src/common/series_id.ts b/packages/charts/src/common/series_id.ts similarity index 100% rename from src/common/series_id.ts rename to packages/charts/src/common/series_id.ts diff --git a/src/common/text_utils.ts b/packages/charts/src/common/text_utils.ts similarity index 100% rename from src/common/text_utils.ts rename to packages/charts/src/common/text_utils.ts diff --git a/src/components/__snapshots__/chart.test.tsx.snap b/packages/charts/src/components/__snapshots__/chart.test.tsx.snap similarity index 100% rename from src/components/__snapshots__/chart.test.tsx.snap rename to packages/charts/src/components/__snapshots__/chart.test.tsx.snap diff --git a/src/components/_container.scss b/packages/charts/src/components/_container.scss similarity index 100% rename from src/components/_container.scss rename to packages/charts/src/components/_container.scss diff --git a/src/components/_global.scss b/packages/charts/src/components/_global.scss similarity index 100% rename from src/components/_global.scss rename to packages/charts/src/components/_global.scss diff --git a/src/components/_index.scss b/packages/charts/src/components/_index.scss similarity index 100% rename from src/components/_index.scss rename to packages/charts/src/components/_index.scss diff --git a/src/components/_unavailable_chart.scss b/packages/charts/src/components/_unavailable_chart.scss similarity index 100% rename from src/components/_unavailable_chart.scss rename to packages/charts/src/components/_unavailable_chart.scss diff --git a/src/components/accessibility/accessibility.test.tsx b/packages/charts/src/components/accessibility/accessibility.test.tsx similarity index 100% rename from src/components/accessibility/accessibility.test.tsx rename to packages/charts/src/components/accessibility/accessibility.test.tsx diff --git a/src/components/accessibility/description.tsx b/packages/charts/src/components/accessibility/description.tsx similarity index 100% rename from src/components/accessibility/description.tsx rename to packages/charts/src/components/accessibility/description.tsx diff --git a/src/components/accessibility/index.ts b/packages/charts/src/components/accessibility/index.ts similarity index 100% rename from src/components/accessibility/index.ts rename to packages/charts/src/components/accessibility/index.ts diff --git a/src/components/accessibility/label.tsx b/packages/charts/src/components/accessibility/label.tsx similarity index 100% rename from src/components/accessibility/label.tsx rename to packages/charts/src/components/accessibility/label.tsx diff --git a/src/components/accessibility/screen_reader_summary.tsx b/packages/charts/src/components/accessibility/screen_reader_summary.tsx similarity index 100% rename from src/components/accessibility/screen_reader_summary.tsx rename to packages/charts/src/components/accessibility/screen_reader_summary.tsx diff --git a/src/components/accessibility/types.tsx b/packages/charts/src/components/accessibility/types.tsx similarity index 100% rename from src/components/accessibility/types.tsx rename to packages/charts/src/components/accessibility/types.tsx diff --git a/src/components/brush/_brush.scss b/packages/charts/src/components/brush/_brush.scss similarity index 100% rename from src/components/brush/_brush.scss rename to packages/charts/src/components/brush/_brush.scss diff --git a/src/components/brush/_index.scss b/packages/charts/src/components/brush/_index.scss similarity index 100% rename from src/components/brush/_index.scss rename to packages/charts/src/components/brush/_index.scss diff --git a/src/components/brush/brush.tsx b/packages/charts/src/components/brush/brush.tsx similarity index 100% rename from src/components/brush/brush.tsx rename to packages/charts/src/components/brush/brush.tsx diff --git a/src/components/chart.snap.test.ts b/packages/charts/src/components/chart.snap.test.ts similarity index 100% rename from src/components/chart.snap.test.ts rename to packages/charts/src/components/chart.snap.test.ts diff --git a/src/components/chart.test.tsx b/packages/charts/src/components/chart.test.tsx similarity index 100% rename from src/components/chart.test.tsx rename to packages/charts/src/components/chart.test.tsx diff --git a/src/components/chart.tsx b/packages/charts/src/components/chart.tsx similarity index 100% rename from src/components/chart.tsx rename to packages/charts/src/components/chart.tsx diff --git a/src/components/chart_background.tsx b/packages/charts/src/components/chart_background.tsx similarity index 100% rename from src/components/chart_background.tsx rename to packages/charts/src/components/chart_background.tsx diff --git a/src/components/chart_container.tsx b/packages/charts/src/components/chart_container.tsx similarity index 100% rename from src/components/chart_container.tsx rename to packages/charts/src/components/chart_container.tsx diff --git a/src/components/chart_resizer.tsx b/packages/charts/src/components/chart_resizer.tsx similarity index 100% rename from src/components/chart_resizer.tsx rename to packages/charts/src/components/chart_resizer.tsx diff --git a/src/components/chart_status.tsx b/packages/charts/src/components/chart_status.tsx similarity index 100% rename from src/components/chart_status.tsx rename to packages/charts/src/components/chart_status.tsx diff --git a/src/components/error_boundary/error_boundary.tsx b/packages/charts/src/components/error_boundary/error_boundary.tsx similarity index 100% rename from src/components/error_boundary/error_boundary.tsx rename to packages/charts/src/components/error_boundary/error_boundary.tsx diff --git a/src/components/error_boundary/errors.ts b/packages/charts/src/components/error_boundary/errors.ts similarity index 100% rename from src/components/error_boundary/errors.ts rename to packages/charts/src/components/error_boundary/errors.ts diff --git a/src/components/error_boundary/index.tsx b/packages/charts/src/components/error_boundary/index.tsx similarity index 100% rename from src/components/error_boundary/index.tsx rename to packages/charts/src/components/error_boundary/index.tsx diff --git a/src/components/icons/_icon.scss b/packages/charts/src/components/icons/_icon.scss similarity index 100% rename from src/components/icons/_icon.scss rename to packages/charts/src/components/icons/_icon.scss diff --git a/src/components/icons/_index.scss b/packages/charts/src/components/icons/_index.scss similarity index 100% rename from src/components/icons/_index.scss rename to packages/charts/src/components/icons/_index.scss diff --git a/src/components/icons/assets/alert.tsx b/packages/charts/src/components/icons/assets/alert.tsx similarity index 100% rename from src/components/icons/assets/alert.tsx rename to packages/charts/src/components/icons/assets/alert.tsx diff --git a/src/components/icons/assets/dot.tsx b/packages/charts/src/components/icons/assets/dot.tsx similarity index 100% rename from src/components/icons/assets/dot.tsx rename to packages/charts/src/components/icons/assets/dot.tsx diff --git a/src/components/icons/assets/empty.tsx b/packages/charts/src/components/icons/assets/empty.tsx similarity index 100% rename from src/components/icons/assets/empty.tsx rename to packages/charts/src/components/icons/assets/empty.tsx diff --git a/src/components/icons/assets/eye.tsx b/packages/charts/src/components/icons/assets/eye.tsx similarity index 100% rename from src/components/icons/assets/eye.tsx rename to packages/charts/src/components/icons/assets/eye.tsx diff --git a/src/components/icons/assets/eye_closed.tsx b/packages/charts/src/components/icons/assets/eye_closed.tsx similarity index 100% rename from src/components/icons/assets/eye_closed.tsx rename to packages/charts/src/components/icons/assets/eye_closed.tsx diff --git a/src/components/icons/assets/list.tsx b/packages/charts/src/components/icons/assets/list.tsx similarity index 100% rename from src/components/icons/assets/list.tsx rename to packages/charts/src/components/icons/assets/list.tsx diff --git a/src/components/icons/assets/question_in_circle.tsx b/packages/charts/src/components/icons/assets/question_in_circle.tsx similarity index 100% rename from src/components/icons/assets/question_in_circle.tsx rename to packages/charts/src/components/icons/assets/question_in_circle.tsx diff --git a/src/components/icons/icon.tsx b/packages/charts/src/components/icons/icon.tsx similarity index 100% rename from src/components/icons/icon.tsx rename to packages/charts/src/components/icons/icon.tsx diff --git a/src/components/index.ts b/packages/charts/src/components/index.ts similarity index 100% rename from src/components/index.ts rename to packages/charts/src/components/index.ts diff --git a/src/components/legend/__snapshots__/legend.test.tsx.snap b/packages/charts/src/components/legend/__snapshots__/legend.test.tsx.snap similarity index 100% rename from src/components/legend/__snapshots__/legend.test.tsx.snap rename to packages/charts/src/components/legend/__snapshots__/legend.test.tsx.snap diff --git a/src/components/legend/_index.scss b/packages/charts/src/components/legend/_index.scss similarity index 100% rename from src/components/legend/_index.scss rename to packages/charts/src/components/legend/_index.scss diff --git a/src/components/legend/_legend.scss b/packages/charts/src/components/legend/_legend.scss similarity index 100% rename from src/components/legend/_legend.scss rename to packages/charts/src/components/legend/_legend.scss diff --git a/src/components/legend/_legend_item.scss b/packages/charts/src/components/legend/_legend_item.scss similarity index 100% rename from src/components/legend/_legend_item.scss rename to packages/charts/src/components/legend/_legend_item.scss diff --git a/src/components/legend/_variables.scss b/packages/charts/src/components/legend/_variables.scss similarity index 100% rename from src/components/legend/_variables.scss rename to packages/charts/src/components/legend/_variables.scss diff --git a/src/components/legend/color.tsx b/packages/charts/src/components/legend/color.tsx similarity index 100% rename from src/components/legend/color.tsx rename to packages/charts/src/components/legend/color.tsx diff --git a/src/components/legend/extra.tsx b/packages/charts/src/components/legend/extra.tsx similarity index 100% rename from src/components/legend/extra.tsx rename to packages/charts/src/components/legend/extra.tsx diff --git a/src/components/legend/label.tsx b/packages/charts/src/components/legend/label.tsx similarity index 100% rename from src/components/legend/label.tsx rename to packages/charts/src/components/legend/label.tsx diff --git a/src/components/legend/legend.test.tsx b/packages/charts/src/components/legend/legend.test.tsx similarity index 100% rename from src/components/legend/legend.test.tsx rename to packages/charts/src/components/legend/legend.test.tsx diff --git a/src/components/legend/legend.tsx b/packages/charts/src/components/legend/legend.tsx similarity index 100% rename from src/components/legend/legend.tsx rename to packages/charts/src/components/legend/legend.tsx diff --git a/src/components/legend/legend_item.tsx b/packages/charts/src/components/legend/legend_item.tsx similarity index 100% rename from src/components/legend/legend_item.tsx rename to packages/charts/src/components/legend/legend_item.tsx diff --git a/src/components/legend/position_style.ts b/packages/charts/src/components/legend/position_style.ts similarity index 100% rename from src/components/legend/position_style.ts rename to packages/charts/src/components/legend/position_style.ts diff --git a/src/components/legend/style_utils.ts b/packages/charts/src/components/legend/style_utils.ts similarity index 100% rename from src/components/legend/style_utils.ts rename to packages/charts/src/components/legend/style_utils.ts diff --git a/src/components/legend/utils.ts b/packages/charts/src/components/legend/utils.ts similarity index 100% rename from src/components/legend/utils.ts rename to packages/charts/src/components/legend/utils.ts diff --git a/src/components/no_results.tsx b/packages/charts/src/components/no_results.tsx similarity index 100% rename from src/components/no_results.tsx rename to packages/charts/src/components/no_results.tsx diff --git a/src/components/portal/_index.scss b/packages/charts/src/components/portal/_index.scss similarity index 100% rename from src/components/portal/_index.scss rename to packages/charts/src/components/portal/_index.scss diff --git a/src/components/portal/_portal.scss b/packages/charts/src/components/portal/_portal.scss similarity index 100% rename from src/components/portal/_portal.scss rename to packages/charts/src/components/portal/_portal.scss diff --git a/src/components/portal/index.ts b/packages/charts/src/components/portal/index.ts similarity index 100% rename from src/components/portal/index.ts rename to packages/charts/src/components/portal/index.ts diff --git a/src/components/portal/tooltip_portal.tsx b/packages/charts/src/components/portal/tooltip_portal.tsx similarity index 100% rename from src/components/portal/tooltip_portal.tsx rename to packages/charts/src/components/portal/tooltip_portal.tsx diff --git a/src/components/portal/types.ts b/packages/charts/src/components/portal/types.ts similarity index 100% rename from src/components/portal/types.ts rename to packages/charts/src/components/portal/types.ts diff --git a/src/components/portal/utils.ts b/packages/charts/src/components/portal/utils.ts similarity index 100% rename from src/components/portal/utils.ts rename to packages/charts/src/components/portal/utils.ts diff --git a/src/components/tooltip/_index.scss b/packages/charts/src/components/tooltip/_index.scss similarity index 100% rename from src/components/tooltip/_index.scss rename to packages/charts/src/components/tooltip/_index.scss diff --git a/src/components/tooltip/_tooltip.scss b/packages/charts/src/components/tooltip/_tooltip.scss similarity index 100% rename from src/components/tooltip/_tooltip.scss rename to packages/charts/src/components/tooltip/_tooltip.scss diff --git a/src/components/tooltip/get_tooltip_settings.ts b/packages/charts/src/components/tooltip/get_tooltip_settings.ts similarity index 100% rename from src/components/tooltip/get_tooltip_settings.ts rename to packages/charts/src/components/tooltip/get_tooltip_settings.ts diff --git a/src/components/tooltip/index.ts b/packages/charts/src/components/tooltip/index.ts similarity index 100% rename from src/components/tooltip/index.ts rename to packages/charts/src/components/tooltip/index.ts diff --git a/src/components/tooltip/tooltip.tsx b/packages/charts/src/components/tooltip/tooltip.tsx similarity index 100% rename from src/components/tooltip/tooltip.tsx rename to packages/charts/src/components/tooltip/tooltip.tsx diff --git a/src/components/tooltip/types.ts b/packages/charts/src/components/tooltip/types.ts similarity index 100% rename from src/components/tooltip/types.ts rename to packages/charts/src/components/tooltip/types.ts diff --git a/src/geoms/types.ts b/packages/charts/src/geoms/types.ts similarity index 100% rename from src/geoms/types.ts rename to packages/charts/src/geoms/types.ts diff --git a/src/index.ts b/packages/charts/src/index.ts similarity index 100% rename from src/index.ts rename to packages/charts/src/index.ts diff --git a/src/mocks/annotations/annotations.ts b/packages/charts/src/mocks/annotations/annotations.ts similarity index 100% rename from src/mocks/annotations/annotations.ts rename to packages/charts/src/mocks/annotations/annotations.ts diff --git a/src/mocks/canvas.ts b/packages/charts/src/mocks/canvas.ts similarity index 100% rename from src/mocks/canvas.ts rename to packages/charts/src/mocks/canvas.ts diff --git a/src/mocks/geometries.ts b/packages/charts/src/mocks/geometries.ts similarity index 100% rename from src/mocks/geometries.ts rename to packages/charts/src/mocks/geometries.ts diff --git a/src/mocks/hierarchical/cpu_profile_tree_mock.json b/packages/charts/src/mocks/hierarchical/cpu_profile_tree_mock.json similarity index 100% rename from src/mocks/hierarchical/cpu_profile_tree_mock.json rename to packages/charts/src/mocks/hierarchical/cpu_profile_tree_mock.json diff --git a/src/mocks/hierarchical/dimension_codes.ts b/packages/charts/src/mocks/hierarchical/dimension_codes.ts similarity index 100% rename from src/mocks/hierarchical/dimension_codes.ts rename to packages/charts/src/mocks/hierarchical/dimension_codes.ts diff --git a/src/mocks/hierarchical/index.ts b/packages/charts/src/mocks/hierarchical/index.ts similarity index 100% rename from src/mocks/hierarchical/index.ts rename to packages/charts/src/mocks/hierarchical/index.ts diff --git a/src/mocks/hierarchical/many_pie.ts b/packages/charts/src/mocks/hierarchical/many_pie.ts similarity index 100% rename from src/mocks/hierarchical/many_pie.ts rename to packages/charts/src/mocks/hierarchical/many_pie.ts diff --git a/src/mocks/hierarchical/mini_sunburst.ts b/packages/charts/src/mocks/hierarchical/mini_sunburst.ts similarity index 100% rename from src/mocks/hierarchical/mini_sunburst.ts rename to packages/charts/src/mocks/hierarchical/mini_sunburst.ts diff --git a/src/mocks/hierarchical/observability_tree.ts b/packages/charts/src/mocks/hierarchical/observability_tree.ts similarity index 100% rename from src/mocks/hierarchical/observability_tree.ts rename to packages/charts/src/mocks/hierarchical/observability_tree.ts diff --git a/src/mocks/hierarchical/palettes.ts b/packages/charts/src/mocks/hierarchical/palettes.ts similarity index 100% rename from src/mocks/hierarchical/palettes.ts rename to packages/charts/src/mocks/hierarchical/palettes.ts diff --git a/src/mocks/hierarchical/pie.ts b/packages/charts/src/mocks/hierarchical/pie.ts similarity index 100% rename from src/mocks/hierarchical/pie.ts rename to packages/charts/src/mocks/hierarchical/pie.ts diff --git a/src/mocks/hierarchical/sunburst.ts b/packages/charts/src/mocks/hierarchical/sunburst.ts similarity index 100% rename from src/mocks/hierarchical/sunburst.ts rename to packages/charts/src/mocks/hierarchical/sunburst.ts diff --git a/src/mocks/index.ts b/packages/charts/src/mocks/index.ts similarity index 100% rename from src/mocks/index.ts rename to packages/charts/src/mocks/index.ts diff --git a/src/mocks/scale/index.ts b/packages/charts/src/mocks/scale/index.ts similarity index 100% rename from src/mocks/scale/index.ts rename to packages/charts/src/mocks/scale/index.ts diff --git a/src/mocks/scale/scale.ts b/packages/charts/src/mocks/scale/scale.ts similarity index 100% rename from src/mocks/scale/scale.ts rename to packages/charts/src/mocks/scale/scale.ts diff --git a/src/mocks/series/data.ts b/packages/charts/src/mocks/series/data.ts similarity index 100% rename from src/mocks/series/data.ts rename to packages/charts/src/mocks/series/data.ts diff --git a/src/mocks/series/index.ts b/packages/charts/src/mocks/series/index.ts similarity index 100% rename from src/mocks/series/index.ts rename to packages/charts/src/mocks/series/index.ts diff --git a/src/mocks/series/series.ts b/packages/charts/src/mocks/series/series.ts similarity index 100% rename from src/mocks/series/series.ts rename to packages/charts/src/mocks/series/series.ts diff --git a/src/mocks/series/series_identifiers.ts b/packages/charts/src/mocks/series/series_identifiers.ts similarity index 100% rename from src/mocks/series/series_identifiers.ts rename to packages/charts/src/mocks/series/series_identifiers.ts diff --git a/src/mocks/series/utils.ts b/packages/charts/src/mocks/series/utils.ts similarity index 100% rename from src/mocks/series/utils.ts rename to packages/charts/src/mocks/series/utils.ts diff --git a/src/mocks/specs/index.ts b/packages/charts/src/mocks/specs/index.ts similarity index 100% rename from src/mocks/specs/index.ts rename to packages/charts/src/mocks/specs/index.ts diff --git a/src/mocks/specs/specs.ts b/packages/charts/src/mocks/specs/specs.ts similarity index 100% rename from src/mocks/specs/specs.ts rename to packages/charts/src/mocks/specs/specs.ts diff --git a/src/mocks/store/index.ts b/packages/charts/src/mocks/store/index.ts similarity index 100% rename from src/mocks/store/index.ts rename to packages/charts/src/mocks/store/index.ts diff --git a/src/mocks/store/store.ts b/packages/charts/src/mocks/store/store.ts similarity index 100% rename from src/mocks/store/store.ts rename to packages/charts/src/mocks/store/store.ts diff --git a/src/mocks/theme.ts b/packages/charts/src/mocks/theme.ts similarity index 100% rename from src/mocks/theme.ts rename to packages/charts/src/mocks/theme.ts diff --git a/src/mocks/utils.ts b/packages/charts/src/mocks/utils.ts similarity index 100% rename from src/mocks/utils.ts rename to packages/charts/src/mocks/utils.ts diff --git a/src/mocks/xy/domains.ts b/packages/charts/src/mocks/xy/domains.ts similarity index 100% rename from src/mocks/xy/domains.ts rename to packages/charts/src/mocks/xy/domains.ts diff --git a/src/renderers/canvas/index.ts b/packages/charts/src/renderers/canvas/index.ts similarity index 100% rename from src/renderers/canvas/index.ts rename to packages/charts/src/renderers/canvas/index.ts diff --git a/packages/charts/src/reset_dark.scss b/packages/charts/src/reset_dark.scss new file mode 100644 index 0000000000..f0319f8d10 --- /dev/null +++ b/packages/charts/src/reset_dark.scss @@ -0,0 +1,6 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; +@import 'style/themes/colors_dark'; +@import '../../../node_modules/@elastic/eui/src/global_styling/functions/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/variables/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/mixins/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/reset/index'; diff --git a/packages/charts/src/reset_light.scss b/packages/charts/src/reset_light.scss new file mode 100644 index 0000000000..e3206f48ff --- /dev/null +++ b/packages/charts/src/reset_light.scss @@ -0,0 +1,6 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; +@import 'style/themes/colors_light'; +@import '../../../node_modules/@elastic/eui/src/global_styling/functions/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/variables/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/mixins/index'; +@import '../../../node_modules/@elastic/eui/src/global_styling/reset/index'; diff --git a/src/scales/constants.ts b/packages/charts/src/scales/constants.ts similarity index 100% rename from src/scales/constants.ts rename to packages/charts/src/scales/constants.ts diff --git a/src/scales/index.ts b/packages/charts/src/scales/index.ts similarity index 100% rename from src/scales/index.ts rename to packages/charts/src/scales/index.ts diff --git a/src/scales/scale_band.test.ts b/packages/charts/src/scales/scale_band.test.ts similarity index 100% rename from src/scales/scale_band.test.ts rename to packages/charts/src/scales/scale_band.test.ts diff --git a/src/scales/scale_band.ts b/packages/charts/src/scales/scale_band.ts similarity index 100% rename from src/scales/scale_band.ts rename to packages/charts/src/scales/scale_band.ts diff --git a/src/scales/scale_continuous.test.ts b/packages/charts/src/scales/scale_continuous.test.ts similarity index 100% rename from src/scales/scale_continuous.test.ts rename to packages/charts/src/scales/scale_continuous.test.ts diff --git a/src/scales/scale_continuous.ts b/packages/charts/src/scales/scale_continuous.ts similarity index 100% rename from src/scales/scale_continuous.ts rename to packages/charts/src/scales/scale_continuous.ts diff --git a/src/scales/scale_time.test.ts b/packages/charts/src/scales/scale_time.test.ts similarity index 100% rename from src/scales/scale_time.test.ts rename to packages/charts/src/scales/scale_time.test.ts diff --git a/src/scales/scales.test.ts b/packages/charts/src/scales/scales.test.ts similarity index 100% rename from src/scales/scales.test.ts rename to packages/charts/src/scales/scales.test.ts diff --git a/src/scales/types.ts b/packages/charts/src/scales/types.ts similarity index 100% rename from src/scales/types.ts rename to packages/charts/src/scales/types.ts diff --git a/src/solvers/monotonic_hill_climb.ts b/packages/charts/src/solvers/monotonic_hill_climb.ts similarity index 100% rename from src/solvers/monotonic_hill_climb.ts rename to packages/charts/src/solvers/monotonic_hill_climb.ts diff --git a/src/solvers/screenspace_marker_scale_compressor.ts b/packages/charts/src/solvers/screenspace_marker_scale_compressor.ts similarity index 100% rename from src/solvers/screenspace_marker_scale_compressor.ts rename to packages/charts/src/solvers/screenspace_marker_scale_compressor.ts diff --git a/src/specs/constants.ts b/packages/charts/src/specs/constants.ts similarity index 100% rename from src/specs/constants.ts rename to packages/charts/src/specs/constants.ts diff --git a/src/specs/group_by.ts b/packages/charts/src/specs/group_by.ts similarity index 100% rename from src/specs/group_by.ts rename to packages/charts/src/specs/group_by.ts diff --git a/src/specs/index.ts b/packages/charts/src/specs/index.ts similarity index 100% rename from src/specs/index.ts rename to packages/charts/src/specs/index.ts diff --git a/src/specs/settings.test.tsx b/packages/charts/src/specs/settings.test.tsx similarity index 100% rename from src/specs/settings.test.tsx rename to packages/charts/src/specs/settings.test.tsx diff --git a/src/specs/settings.tsx b/packages/charts/src/specs/settings.tsx similarity index 100% rename from src/specs/settings.tsx rename to packages/charts/src/specs/settings.tsx diff --git a/src/specs/small_multiples.ts b/packages/charts/src/specs/small_multiples.ts similarity index 100% rename from src/specs/small_multiples.ts rename to packages/charts/src/specs/small_multiples.ts diff --git a/src/specs/specs_parser.test.tsx b/packages/charts/src/specs/specs_parser.test.tsx similarity index 100% rename from src/specs/specs_parser.test.tsx rename to packages/charts/src/specs/specs_parser.test.tsx diff --git a/src/specs/specs_parser.tsx b/packages/charts/src/specs/specs_parser.tsx similarity index 100% rename from src/specs/specs_parser.tsx rename to packages/charts/src/specs/specs_parser.tsx diff --git a/src/state/actions/chart.ts b/packages/charts/src/state/actions/chart.ts similarity index 100% rename from src/state/actions/chart.ts rename to packages/charts/src/state/actions/chart.ts diff --git a/src/state/actions/chart_settings.ts b/packages/charts/src/state/actions/chart_settings.ts similarity index 100% rename from src/state/actions/chart_settings.ts rename to packages/charts/src/state/actions/chart_settings.ts diff --git a/src/state/actions/colors.ts b/packages/charts/src/state/actions/colors.ts similarity index 100% rename from src/state/actions/colors.ts rename to packages/charts/src/state/actions/colors.ts diff --git a/src/state/actions/dom_element.ts b/packages/charts/src/state/actions/dom_element.ts similarity index 100% rename from src/state/actions/dom_element.ts rename to packages/charts/src/state/actions/dom_element.ts diff --git a/src/state/actions/events.ts b/packages/charts/src/state/actions/events.ts similarity index 100% rename from src/state/actions/events.ts rename to packages/charts/src/state/actions/events.ts diff --git a/src/state/actions/index.ts b/packages/charts/src/state/actions/index.ts similarity index 100% rename from src/state/actions/index.ts rename to packages/charts/src/state/actions/index.ts diff --git a/src/state/actions/key.ts b/packages/charts/src/state/actions/key.ts similarity index 100% rename from src/state/actions/key.ts rename to packages/charts/src/state/actions/key.ts diff --git a/src/state/actions/legend.ts b/packages/charts/src/state/actions/legend.ts similarity index 100% rename from src/state/actions/legend.ts rename to packages/charts/src/state/actions/legend.ts diff --git a/src/state/actions/mouse.ts b/packages/charts/src/state/actions/mouse.ts similarity index 100% rename from src/state/actions/mouse.ts rename to packages/charts/src/state/actions/mouse.ts diff --git a/src/state/actions/specs.ts b/packages/charts/src/state/actions/specs.ts similarity index 100% rename from src/state/actions/specs.ts rename to packages/charts/src/state/actions/specs.ts diff --git a/src/state/actions/z_index.ts b/packages/charts/src/state/actions/z_index.ts similarity index 100% rename from src/state/actions/z_index.ts rename to packages/charts/src/state/actions/z_index.ts diff --git a/src/state/chart_state.ts b/packages/charts/src/state/chart_state.ts similarity index 100% rename from src/state/chart_state.ts rename to packages/charts/src/state/chart_state.ts diff --git a/src/state/reducers/interactions.ts b/packages/charts/src/state/reducers/interactions.ts similarity index 100% rename from src/state/reducers/interactions.ts rename to packages/charts/src/state/reducers/interactions.ts diff --git a/src/state/selectors/get_accessibility_config.ts b/packages/charts/src/state/selectors/get_accessibility_config.ts similarity index 100% rename from src/state/selectors/get_accessibility_config.ts rename to packages/charts/src/state/selectors/get_accessibility_config.ts diff --git a/src/state/selectors/get_chart_container_dimensions.ts b/packages/charts/src/state/selectors/get_chart_container_dimensions.ts similarity index 100% rename from src/state/selectors/get_chart_container_dimensions.ts rename to packages/charts/src/state/selectors/get_chart_container_dimensions.ts diff --git a/src/state/selectors/get_chart_id.ts b/packages/charts/src/state/selectors/get_chart_id.ts similarity index 100% rename from src/state/selectors/get_chart_id.ts rename to packages/charts/src/state/selectors/get_chart_id.ts diff --git a/src/state/selectors/get_chart_rotation.ts b/packages/charts/src/state/selectors/get_chart_rotation.ts similarity index 100% rename from src/state/selectors/get_chart_rotation.ts rename to packages/charts/src/state/selectors/get_chart_rotation.ts diff --git a/src/state/selectors/get_chart_theme.ts b/packages/charts/src/state/selectors/get_chart_theme.ts similarity index 100% rename from src/state/selectors/get_chart_theme.ts rename to packages/charts/src/state/selectors/get_chart_theme.ts diff --git a/src/state/selectors/get_chart_type_components.ts b/packages/charts/src/state/selectors/get_chart_type_components.ts similarity index 100% rename from src/state/selectors/get_chart_type_components.ts rename to packages/charts/src/state/selectors/get_chart_type_components.ts diff --git a/src/state/selectors/get_chart_type_description.ts b/packages/charts/src/state/selectors/get_chart_type_description.ts similarity index 100% rename from src/state/selectors/get_chart_type_description.ts rename to packages/charts/src/state/selectors/get_chart_type_description.ts diff --git a/src/state/selectors/get_debug_state.ts b/packages/charts/src/state/selectors/get_debug_state.ts similarity index 100% rename from src/state/selectors/get_debug_state.ts rename to packages/charts/src/state/selectors/get_debug_state.ts diff --git a/src/state/selectors/get_deselected_data_series.ts b/packages/charts/src/state/selectors/get_deselected_data_series.ts similarity index 100% rename from src/state/selectors/get_deselected_data_series.ts rename to packages/charts/src/state/selectors/get_deselected_data_series.ts diff --git a/src/state/selectors/get_internal_brush_area.ts b/packages/charts/src/state/selectors/get_internal_brush_area.ts similarity index 100% rename from src/state/selectors/get_internal_brush_area.ts rename to packages/charts/src/state/selectors/get_internal_brush_area.ts diff --git a/src/state/selectors/get_internal_cursor_pointer.ts b/packages/charts/src/state/selectors/get_internal_cursor_pointer.ts similarity index 100% rename from src/state/selectors/get_internal_cursor_pointer.ts rename to packages/charts/src/state/selectors/get_internal_cursor_pointer.ts diff --git a/src/state/selectors/get_internal_is_brushing.ts b/packages/charts/src/state/selectors/get_internal_is_brushing.ts similarity index 100% rename from src/state/selectors/get_internal_is_brushing.ts rename to packages/charts/src/state/selectors/get_internal_is_brushing.ts diff --git a/src/state/selectors/get_internal_is_brushing_available.ts b/packages/charts/src/state/selectors/get_internal_is_brushing_available.ts similarity index 100% rename from src/state/selectors/get_internal_is_brushing_available.ts rename to packages/charts/src/state/selectors/get_internal_is_brushing_available.ts diff --git a/src/state/selectors/get_internal_is_intialized.ts b/packages/charts/src/state/selectors/get_internal_is_intialized.ts similarity index 100% rename from src/state/selectors/get_internal_is_intialized.ts rename to packages/charts/src/state/selectors/get_internal_is_intialized.ts diff --git a/src/state/selectors/get_internal_is_tooltip_visible.ts b/packages/charts/src/state/selectors/get_internal_is_tooltip_visible.ts similarity index 100% rename from src/state/selectors/get_internal_is_tooltip_visible.ts rename to packages/charts/src/state/selectors/get_internal_is_tooltip_visible.ts diff --git a/src/state/selectors/get_internal_main_projection_area.ts b/packages/charts/src/state/selectors/get_internal_main_projection_area.ts similarity index 100% rename from src/state/selectors/get_internal_main_projection_area.ts rename to packages/charts/src/state/selectors/get_internal_main_projection_area.ts diff --git a/src/state/selectors/get_internal_projection_container_area.ts b/packages/charts/src/state/selectors/get_internal_projection_container_area.ts similarity index 100% rename from src/state/selectors/get_internal_projection_container_area.ts rename to packages/charts/src/state/selectors/get_internal_projection_container_area.ts diff --git a/src/state/selectors/get_internal_tooltip_anchor_position.ts b/packages/charts/src/state/selectors/get_internal_tooltip_anchor_position.ts similarity index 100% rename from src/state/selectors/get_internal_tooltip_anchor_position.ts rename to packages/charts/src/state/selectors/get_internal_tooltip_anchor_position.ts diff --git a/src/state/selectors/get_internal_tooltip_info.ts b/packages/charts/src/state/selectors/get_internal_tooltip_info.ts similarity index 100% rename from src/state/selectors/get_internal_tooltip_info.ts rename to packages/charts/src/state/selectors/get_internal_tooltip_info.ts diff --git a/src/state/selectors/get_last_click.ts b/packages/charts/src/state/selectors/get_last_click.ts similarity index 100% rename from src/state/selectors/get_last_click.ts rename to packages/charts/src/state/selectors/get_last_click.ts diff --git a/src/state/selectors/get_last_drag.ts b/packages/charts/src/state/selectors/get_last_drag.ts similarity index 100% rename from src/state/selectors/get_last_drag.ts rename to packages/charts/src/state/selectors/get_last_drag.ts diff --git a/src/state/selectors/get_legend_config_selector.ts b/packages/charts/src/state/selectors/get_legend_config_selector.ts similarity index 100% rename from src/state/selectors/get_legend_config_selector.ts rename to packages/charts/src/state/selectors/get_legend_config_selector.ts diff --git a/src/state/selectors/get_legend_items.ts b/packages/charts/src/state/selectors/get_legend_items.ts similarity index 100% rename from src/state/selectors/get_legend_items.ts rename to packages/charts/src/state/selectors/get_legend_items.ts diff --git a/src/state/selectors/get_legend_items_labels.ts b/packages/charts/src/state/selectors/get_legend_items_labels.ts similarity index 100% rename from src/state/selectors/get_legend_items_labels.ts rename to packages/charts/src/state/selectors/get_legend_items_labels.ts diff --git a/src/state/selectors/get_legend_items_values.ts b/packages/charts/src/state/selectors/get_legend_items_values.ts similarity index 100% rename from src/state/selectors/get_legend_items_values.ts rename to packages/charts/src/state/selectors/get_legend_items_values.ts diff --git a/src/state/selectors/get_legend_size.ts b/packages/charts/src/state/selectors/get_legend_size.ts similarity index 100% rename from src/state/selectors/get_legend_size.ts rename to packages/charts/src/state/selectors/get_legend_size.ts diff --git a/src/state/selectors/get_settings_specs.test.ts b/packages/charts/src/state/selectors/get_settings_specs.test.ts similarity index 100% rename from src/state/selectors/get_settings_specs.test.ts rename to packages/charts/src/state/selectors/get_settings_specs.test.ts diff --git a/src/state/selectors/get_settings_specs.ts b/packages/charts/src/state/selectors/get_settings_specs.ts similarity index 100% rename from src/state/selectors/get_settings_specs.ts rename to packages/charts/src/state/selectors/get_settings_specs.ts diff --git a/src/state/selectors/get_small_multiples_spec.ts b/packages/charts/src/state/selectors/get_small_multiples_spec.ts similarity index 100% rename from src/state/selectors/get_small_multiples_spec.ts rename to packages/charts/src/state/selectors/get_small_multiples_spec.ts diff --git a/src/state/selectors/get_tooltip_header_formatter.ts b/packages/charts/src/state/selectors/get_tooltip_header_formatter.ts similarity index 100% rename from src/state/selectors/get_tooltip_header_formatter.ts rename to packages/charts/src/state/selectors/get_tooltip_header_formatter.ts diff --git a/src/state/selectors/has_external_pointer_event.ts b/packages/charts/src/state/selectors/has_external_pointer_event.ts similarity index 100% rename from src/state/selectors/has_external_pointer_event.ts rename to packages/charts/src/state/selectors/has_external_pointer_event.ts diff --git a/src/state/selectors/is_chart_empty.ts b/packages/charts/src/state/selectors/is_chart_empty.ts similarity index 100% rename from src/state/selectors/is_chart_empty.ts rename to packages/charts/src/state/selectors/is_chart_empty.ts diff --git a/src/state/selectors/is_external_tooltip_visible.ts b/packages/charts/src/state/selectors/is_external_tooltip_visible.ts similarity index 100% rename from src/state/selectors/is_external_tooltip_visible.ts rename to packages/charts/src/state/selectors/is_external_tooltip_visible.ts diff --git a/src/state/spec_factory.test.tsx b/packages/charts/src/state/spec_factory.test.tsx similarity index 100% rename from src/state/spec_factory.test.tsx rename to packages/charts/src/state/spec_factory.test.tsx diff --git a/src/state/spec_factory.ts b/packages/charts/src/state/spec_factory.ts similarity index 100% rename from src/state/spec_factory.ts rename to packages/charts/src/state/spec_factory.ts diff --git a/src/state/types.ts b/packages/charts/src/state/types.ts similarity index 100% rename from src/state/types.ts rename to packages/charts/src/state/types.ts diff --git a/src/state/utils.test.ts b/packages/charts/src/state/utils.test.ts similarity index 100% rename from src/state/utils.test.ts rename to packages/charts/src/state/utils.test.ts diff --git a/src/state/utils.ts b/packages/charts/src/state/utils.ts similarity index 100% rename from src/state/utils.ts rename to packages/charts/src/state/utils.ts diff --git a/packages/charts/src/theme_dark.scss b/packages/charts/src/theme_dark.scss new file mode 100644 index 0000000000..6177655f5a --- /dev/null +++ b/packages/charts/src/theme_dark.scss @@ -0,0 +1,7 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; + +@import 'eui_imports'; +@import '../../../node_modules/@elastic/eui/src/global_styling/reset/index'; + +// Components +@import 'components/index'; diff --git a/packages/charts/src/theme_light.scss b/packages/charts/src/theme_light.scss new file mode 100644 index 0000000000..541c9167ee --- /dev/null +++ b/packages/charts/src/theme_light.scss @@ -0,0 +1,7 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; + +@import 'eui_imports'; +@import '../../../node_modules/@elastic/eui/src/global_styling/reset/index'; + +// Components +@import 'components/index'; diff --git a/packages/charts/src/theme_only_dark.scss b/packages/charts/src/theme_only_dark.scss new file mode 100644 index 0000000000..04cff458c1 --- /dev/null +++ b/packages/charts/src/theme_only_dark.scss @@ -0,0 +1,6 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; + +@import 'eui_imports'; + +// Components +@import 'components/index'; diff --git a/packages/charts/src/theme_only_light.scss b/packages/charts/src/theme_only_light.scss new file mode 100644 index 0000000000..ba976692e0 --- /dev/null +++ b/packages/charts/src/theme_only_light.scss @@ -0,0 +1,6 @@ +@import '../../../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; + +@import 'eui_imports'; + +// Components +@import 'components/index'; diff --git a/src/utils/__mocks__/common.ts b/packages/charts/src/utils/__mocks__/common.ts similarity index 100% rename from src/utils/__mocks__/common.ts rename to packages/charts/src/utils/__mocks__/common.ts diff --git a/src/utils/accessor.ts b/packages/charts/src/utils/accessor.ts similarity index 100% rename from src/utils/accessor.ts rename to packages/charts/src/utils/accessor.ts diff --git a/src/utils/bbox/bbox_calculator.ts b/packages/charts/src/utils/bbox/bbox_calculator.ts similarity index 100% rename from src/utils/bbox/bbox_calculator.ts rename to packages/charts/src/utils/bbox/bbox_calculator.ts diff --git a/src/utils/bbox/canvas_text_bbox_calculator.test.ts b/packages/charts/src/utils/bbox/canvas_text_bbox_calculator.test.ts similarity index 100% rename from src/utils/bbox/canvas_text_bbox_calculator.test.ts rename to packages/charts/src/utils/bbox/canvas_text_bbox_calculator.test.ts diff --git a/src/utils/bbox/canvas_text_bbox_calculator.ts b/packages/charts/src/utils/bbox/canvas_text_bbox_calculator.ts similarity index 100% rename from src/utils/bbox/canvas_text_bbox_calculator.ts rename to packages/charts/src/utils/bbox/canvas_text_bbox_calculator.ts diff --git a/src/utils/bbox/dom_text_bbox_calculator.ts b/packages/charts/src/utils/bbox/dom_text_bbox_calculator.ts similarity index 100% rename from src/utils/bbox/dom_text_bbox_calculator.ts rename to packages/charts/src/utils/bbox/dom_text_bbox_calculator.ts diff --git a/src/utils/bbox/svg_text_bbox_calculator.ts b/packages/charts/src/utils/bbox/svg_text_bbox_calculator.ts similarity index 100% rename from src/utils/bbox/svg_text_bbox_calculator.ts rename to packages/charts/src/utils/bbox/svg_text_bbox_calculator.ts diff --git a/src/utils/chart_size.test.ts b/packages/charts/src/utils/chart_size.test.ts similarity index 100% rename from src/utils/chart_size.test.ts rename to packages/charts/src/utils/chart_size.test.ts diff --git a/src/utils/chart_size.ts b/packages/charts/src/utils/chart_size.ts similarity index 100% rename from src/utils/chart_size.ts rename to packages/charts/src/utils/chart_size.ts diff --git a/src/utils/common.test.ts b/packages/charts/src/utils/common.test.ts similarity index 100% rename from src/utils/common.test.ts rename to packages/charts/src/utils/common.test.ts diff --git a/src/utils/common.tsx b/packages/charts/src/utils/common.tsx similarity index 100% rename from src/utils/common.tsx rename to packages/charts/src/utils/common.tsx diff --git a/src/utils/curves.test.ts b/packages/charts/src/utils/curves.test.ts similarity index 100% rename from src/utils/curves.test.ts rename to packages/charts/src/utils/curves.test.ts diff --git a/src/utils/curves.ts b/packages/charts/src/utils/curves.ts similarity index 100% rename from src/utils/curves.ts rename to packages/charts/src/utils/curves.ts diff --git a/src/utils/d3-delaunay/index.ts b/packages/charts/src/utils/d3-delaunay/index.ts similarity index 99% rename from src/utils/d3-delaunay/index.ts rename to packages/charts/src/utils/d3-delaunay/index.ts index f4cd87770a..eae4d0d23c 100644 --- a/src/utils/d3-delaunay/index.ts +++ b/packages/charts/src/utils/d3-delaunay/index.ts @@ -1,5 +1,3 @@ -/* eslint-disable file-header/file-header */ - /** * @notice * This product includes code that is adapted d3-delaunay@5.2.1, diff --git a/src/utils/data/date_time.ts b/packages/charts/src/utils/data/date_time.ts similarity index 100% rename from src/utils/data/date_time.ts rename to packages/charts/src/utils/data/date_time.ts diff --git a/src/utils/data/formatters.ts b/packages/charts/src/utils/data/formatters.ts similarity index 100% rename from src/utils/data/formatters.ts rename to packages/charts/src/utils/data/formatters.ts diff --git a/src/utils/data/formatters.tz.test.ts b/packages/charts/src/utils/data/formatters.tz.test.ts similarity index 100% rename from src/utils/data/formatters.tz.test.ts rename to packages/charts/src/utils/data/formatters.tz.test.ts diff --git a/src/utils/data/formatters.tz.test.utc.ts b/packages/charts/src/utils/data/formatters.tz.test.utc.ts similarity index 100% rename from src/utils/data/formatters.tz.test.utc.ts rename to packages/charts/src/utils/data/formatters.tz.test.utc.ts diff --git a/src/utils/data_generators/data_generator.ts b/packages/charts/src/utils/data_generators/data_generator.ts similarity index 100% rename from src/utils/data_generators/data_generator.ts rename to packages/charts/src/utils/data_generators/data_generator.ts diff --git a/src/utils/data_generators/simple_noise.ts b/packages/charts/src/utils/data_generators/simple_noise.ts similarity index 100% rename from src/utils/data_generators/simple_noise.ts rename to packages/charts/src/utils/data_generators/simple_noise.ts diff --git a/src/utils/data_samples/4_time_series.json b/packages/charts/src/utils/data_samples/4_time_series.json similarity index 100% rename from src/utils/data_samples/4_time_series.json rename to packages/charts/src/utils/data_samples/4_time_series.json diff --git a/src/utils/data_samples/babynames.ts b/packages/charts/src/utils/data_samples/babynames.ts similarity index 100% rename from src/utils/data_samples/babynames.ts rename to packages/charts/src/utils/data_samples/babynames.ts diff --git a/src/utils/data_samples/test_anomaly_swim_lane.ts b/packages/charts/src/utils/data_samples/test_anomaly_swim_lane.ts similarity index 100% rename from src/utils/data_samples/test_anomaly_swim_lane.ts rename to packages/charts/src/utils/data_samples/test_anomaly_swim_lane.ts diff --git a/src/utils/data_samples/test_dataset.ts b/packages/charts/src/utils/data_samples/test_dataset.ts similarity index 100% rename from src/utils/data_samples/test_dataset.ts rename to packages/charts/src/utils/data_samples/test_dataset.ts diff --git a/src/utils/data_samples/test_dataset_github.ts b/packages/charts/src/utils/data_samples/test_dataset_github.ts similarity index 100% rename from src/utils/data_samples/test_dataset_github.ts rename to packages/charts/src/utils/data_samples/test_dataset_github.ts diff --git a/src/utils/data_samples/test_dataset_kibana.ts b/packages/charts/src/utils/data_samples/test_dataset_kibana.ts similarity index 100% rename from src/utils/data_samples/test_dataset_kibana.ts rename to packages/charts/src/utils/data_samples/test_dataset_kibana.ts diff --git a/src/utils/data_samples/test_dataset_random.ts b/packages/charts/src/utils/data_samples/test_dataset_random.ts similarity index 100% rename from src/utils/data_samples/test_dataset_random.ts rename to packages/charts/src/utils/data_samples/test_dataset_random.ts diff --git a/src/utils/data_samples/test_dataset_tsvb.ts b/packages/charts/src/utils/data_samples/test_dataset_tsvb.ts similarity index 100% rename from src/utils/data_samples/test_dataset_tsvb.ts rename to packages/charts/src/utils/data_samples/test_dataset_tsvb.ts diff --git a/src/utils/dimensions.ts b/packages/charts/src/utils/dimensions.ts similarity index 100% rename from src/utils/dimensions.ts rename to packages/charts/src/utils/dimensions.ts diff --git a/src/utils/domain.test.ts b/packages/charts/src/utils/domain.test.ts similarity index 100% rename from src/utils/domain.test.ts rename to packages/charts/src/utils/domain.test.ts diff --git a/src/utils/domain.ts b/packages/charts/src/utils/domain.ts similarity index 100% rename from src/utils/domain.ts rename to packages/charts/src/utils/domain.ts diff --git a/src/utils/events.ts b/packages/charts/src/utils/events.ts similarity index 100% rename from src/utils/events.ts rename to packages/charts/src/utils/events.ts diff --git a/src/utils/fast_deep_equal.ts b/packages/charts/src/utils/fast_deep_equal.ts similarity index 100% rename from src/utils/fast_deep_equal.ts rename to packages/charts/src/utils/fast_deep_equal.ts diff --git a/src/utils/geometry.ts b/packages/charts/src/utils/geometry.ts similarity index 100% rename from src/utils/geometry.ts rename to packages/charts/src/utils/geometry.ts diff --git a/src/utils/ids.test.ts b/packages/charts/src/utils/ids.test.ts similarity index 100% rename from src/utils/ids.test.ts rename to packages/charts/src/utils/ids.test.ts diff --git a/src/utils/ids.ts b/packages/charts/src/utils/ids.ts similarity index 100% rename from src/utils/ids.ts rename to packages/charts/src/utils/ids.ts diff --git a/src/utils/legend.ts b/packages/charts/src/utils/legend.ts similarity index 100% rename from src/utils/legend.ts rename to packages/charts/src/utils/legend.ts diff --git a/src/utils/logger.ts b/packages/charts/src/utils/logger.ts similarity index 100% rename from src/utils/logger.ts rename to packages/charts/src/utils/logger.ts diff --git a/src/utils/point.ts b/packages/charts/src/utils/point.ts similarity index 100% rename from src/utils/point.ts rename to packages/charts/src/utils/point.ts diff --git a/src/utils/series_sort.ts b/packages/charts/src/utils/series_sort.ts similarity index 100% rename from src/utils/series_sort.ts rename to packages/charts/src/utils/series_sort.ts diff --git a/src/utils/themes/colors.ts b/packages/charts/src/utils/themes/colors.ts similarity index 100% rename from src/utils/themes/colors.ts rename to packages/charts/src/utils/themes/colors.ts diff --git a/src/utils/themes/dark_theme.ts b/packages/charts/src/utils/themes/dark_theme.ts similarity index 100% rename from src/utils/themes/dark_theme.ts rename to packages/charts/src/utils/themes/dark_theme.ts diff --git a/src/utils/themes/light_theme.ts b/packages/charts/src/utils/themes/light_theme.ts similarity index 100% rename from src/utils/themes/light_theme.ts rename to packages/charts/src/utils/themes/light_theme.ts diff --git a/src/utils/themes/merge_utils.ts b/packages/charts/src/utils/themes/merge_utils.ts similarity index 100% rename from src/utils/themes/merge_utils.ts rename to packages/charts/src/utils/themes/merge_utils.ts diff --git a/src/utils/themes/theme.test.ts b/packages/charts/src/utils/themes/theme.test.ts similarity index 100% rename from src/utils/themes/theme.test.ts rename to packages/charts/src/utils/themes/theme.test.ts diff --git a/src/utils/themes/theme.ts b/packages/charts/src/utils/themes/theme.ts similarity index 100% rename from src/utils/themes/theme.ts rename to packages/charts/src/utils/themes/theme.ts diff --git a/src/utils/themes/theme_common.ts b/packages/charts/src/utils/themes/theme_common.ts similarity index 100% rename from src/utils/themes/theme_common.ts rename to packages/charts/src/utils/themes/theme_common.ts diff --git a/tsconfig.lib-check.json b/packages/charts/tsconfig.check.json similarity index 86% rename from tsconfig.lib-check.json rename to packages/charts/tsconfig.check.json index 2a9f6bd4e4..1346a420c5 100644 --- a/tsconfig.lib-check.json +++ b/packages/charts/tsconfig.check.json @@ -1,5 +1,5 @@ { - "extends": "./tsconfig", + "extends": "../../tsconfig", "compilerOptions": { "noUnusedLocals": true, "removeComments": true, diff --git a/tsconfig.lib.json b/packages/charts/tsconfig.json similarity index 80% rename from tsconfig.lib.json rename to packages/charts/tsconfig.json index 822a5bbca1..4bc17507a5 100644 --- a/tsconfig.lib.json +++ b/packages/charts/tsconfig.json @@ -1,6 +1,7 @@ { - "extends": "./tsconfig", + "extends": "../../tsconfig", "compilerOptions": { + "outDir": "dist", "noUnusedLocals": true, "removeComments": false }, diff --git a/tsconfig.lib-nocomments.json b/packages/charts/tsconfig.nocomments.json similarity index 80% rename from tsconfig.lib-nocomments.json rename to packages/charts/tsconfig.nocomments.json index 1efea37f5a..d35b77b18e 100644 --- a/tsconfig.lib-nocomments.json +++ b/packages/charts/tsconfig.nocomments.json @@ -1,5 +1,5 @@ { - "extends": "./tsconfig.lib", + "extends": "./tsconfig", "compilerOptions": { "removeComments": true, "declaration": false, diff --git a/packages/link_kibana/main.js b/packages/link_kibana/main.js index 473acae889..a2320002b2 100644 --- a/packages/link_kibana/main.js +++ b/packages/link_kibana/main.js @@ -53,7 +53,8 @@ module.exports = async () => { process.on('SIGTERM', cleanExit); // catch kill const debug = process.argv.includes('--debug'); - const echDir = process.cwd(); + const cwd = process.cwd(); + const echDir = path.resolve(cwd, 'packages/charts'); const echPackageContent = await getPackageInfo(echDir); const packageName = echPackageContent.name; @@ -62,7 +63,7 @@ module.exports = async () => { throw new Error('No name defined in package.json'); } - const tempDir = await getTempDir(echDir, packageName); + const tempDir = await getTempDir(cwd, packageName); const linkInfo = await getLinkInfo(tempDir); const linkedPackages = ['react', 'react-dom', 'redux', 'react-redux']; @@ -80,9 +81,11 @@ module.exports = async () => { message: 'Enter path to application directory to link', default: '../kibana', }); - const kibanaPath = path.resolve(echDir, appLinkRelativePath); + const kibanaPath = path.resolve(cwd, appLinkRelativePath); const kibanaPackageInfo = await getPackageInfo(kibanaPath); + if (debug) console.debug({ cwd, echDir, kibanaPath }); + if (kibanaPackageInfo.name !== 'kibana') { console.log(` Expected app name to be ${chalk.cyan('kibana')}, found ${chalk.cyan(kibanaPackageInfo.name)}. @@ -149,13 +152,13 @@ to link charts with another application use ${chalk.cyan( errorStr: 'error TS', stopStr: 'Found 0 errors. Watching for file changes', startStr: 'File change detected. Starting incremental compilation', - onUpdate: () => replaceModules(echDir, kibanaPath, linkedPackages), + onUpdate: () => replaceModules(echDir, linkedPackages, packageName), }, ), ); // must be run after first build so all assests are visibile to kibana - await linkPackage(echDir, kibanaPath, packageName); + await linkPackage(cwd, echDir, kibanaPath, packageName); const kbnSharedPackage = path.join(kibanaPath, 'packages/kbn-ui-shared-deps'); cps.push( @@ -188,6 +191,8 @@ to link charts with another application use ${chalk.cyan( return; } + if (debug) console.debug({ cwd, echDir, kibanaPath }); + if (action === 'Watch mode') { cps.push( await spawnWatch( @@ -199,7 +204,7 @@ to link charts with another application use ${chalk.cyan( errorStr: ': error TS', stopStr: 'Found 0 errors. Watching for file changes', startStr: 'File change detected. Starting incremental compilation', - onUpdate: () => replaceModules(echDir, kibanaPath, linkedPackages), + onUpdate: () => replaceModules(echDir, linkedPackages, packageName), }, ), ); diff --git a/packages/link_kibana/replace_modules.js b/packages/link_kibana/replace_modules.js index 8f355cec40..6c609138c0 100644 --- a/packages/link_kibana/replace_modules.js +++ b/packages/link_kibana/replace_modules.js @@ -50,18 +50,29 @@ console.log( } }; -const replaceModules = async (libDir, appDir, linkedPackages) => { +/** + * Replaces module `require` statements with relative paths. + * This will use the local node_modules wherever the pacakge + * is linked to for all `linkedPackages` defined. + * + * example: + * + * ```js + * // kibana/node_modules/lib/file.js + * require('react'); + * // replaced with... + * require('../react'); // points at kibana/node_modules/react + * ``` + */ +const replaceModules = async (libDir, linkedPackages, packageName) => { if (linkedPackages.length === 0) return; const spinner = ora(`Replacing package links ${chalk.dim(`(${linkedPackages.join(',')})`)}`).start(); + const cwd = path.join(libDir, 'dist'); + const nodeModulesDir = path.join(libDir, 'node_modules'); + const re = new RegExp(`require\\("(?:.*?\\/)*(${linkedPackages.join('|')})"\\)`, 'g'); await new Promise((resolve, reject) => { - const cwd = path.join(libDir, 'dist'); - // TODO find out why this path doesn't work with the linked lib - // const moduleDir = path.join(appDir, 'node_modules'); - const moduleDir = path.join(path.dirname(appDir), '../../', path.basename(appDir), 'node_modules'); - const re = new RegExp(`require\\("(?:.*?\\/)*(${linkedPackages.join('|')})"\\)`, 'g'); - glob('**/*.js', { ignore: ['**/*.map.js'], cwd }, (error, files) => { if (error) { spinner.fail(error); @@ -69,14 +80,15 @@ const replaceModules = async (libDir, appDir, linkedPackages) => { } files.forEach((file) => { - const fullPath = path.join(cwd, file); - const fileContent = fs.readFileSync(fullPath, { encoding: 'utf8' }); - const relativeModulesPath = path.relative(fullPath, moduleDir); + const filePath = path.join(cwd, file); + const fileModulePath = path.join(nodeModulesDir, packageName, file); + const fileContent = fs.readFileSync(filePath, { encoding: 'utf8' }); + const relativeModulesPath = path.relative(fileModulePath, nodeModulesDir); if (re.test(fileContent)) { const newFileContent = fileContent.replace(re, `require("${relativeModulesPath}/$1")`); - fs.writeFileSync(fullPath, newFileContent); + fs.writeFileSync(filePath, newFileContent); } }); addConsoleFlag(libDir); diff --git a/packages/link_kibana/utils.js b/packages/link_kibana/utils.js index 0af1298daf..23810be096 100644 --- a/packages/link_kibana/utils.js +++ b/packages/link_kibana/utils.js @@ -133,9 +133,10 @@ const restorePackage = async (appDir, packageName, debug) => { } }; -const linkPackage = async (target, linkPath, packageName) => { +const linkPackage = async (cwd, target, linkPath, packageName) => { const linkPackagePath = path.join(linkPath, 'node_modules', packageName); - const relativeLinkPath = path.relative(target, linkPackagePath); + const relativeLinkPath = path.relative(cwd, linkPackagePath); + if (await exists(linkPackagePath)) { await fs.promises.rm(linkPackagePath, { recursive: true, force: true }); } diff --git a/playground/index.tsx b/playground/index.tsx index 71056e9ecc..603c3cb840 100644 --- a/playground/index.tsx +++ b/playground/index.tsx @@ -21,7 +21,7 @@ import 'core-js'; import React from 'react'; import ReactDOM from 'react-dom'; -import '../src/theme_light.scss'; +import '../packages/charts/src/theme_light.scss'; import '../node_modules/@elastic/eui/dist/eui_theme_light.css'; import { Playground } from './playground'; diff --git a/playground/playground.tsx b/playground/playground.tsx index b897b0fa20..af1a3aa089 100644 --- a/playground/playground.tsx +++ b/playground/playground.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Chart, AreaSeries, LineSeries, BarSeries, ScaleType, Settings } from '../src'; +import { Chart, AreaSeries, LineSeries, BarSeries, ScaleType, Settings } from '../packages/charts/src'; export class Playground extends React.Component { render() { diff --git a/playground/tsconfig.json b/playground/tsconfig.json index 43092af6f0..eb9ba55eaf 100644 --- a/playground/tsconfig.json +++ b/playground/tsconfig.json @@ -5,6 +5,6 @@ "target": "es5", "resolveJsonModule": true }, - "include": ["../src/**/*", "./**/*", "../**/*.d.ts", "../scripts/custom_matchers.ts"], + "include": ["../packages/charts/src/**/*", "./**/*", "../**/*.d.ts", "../scripts/custom_matchers.ts"], "exclude": ["../**/*.test.*"] } diff --git a/src/_eui_imports.scss b/src/_eui_imports.scss deleted file mode 100644 index 0e43b955d5..0000000000 --- a/src/_eui_imports.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import '../node_modules/@elastic/eui/src/global_styling/functions/index'; -@import '../node_modules/@elastic/eui/src/global_styling/variables/index'; -@import '../node_modules/@elastic/eui/src/global_styling/mixins/index'; diff --git a/src/reset_dark.scss b/src/reset_dark.scss deleted file mode 100644 index 4b47d4719f..0000000000 --- a/src/reset_dark.scss +++ /dev/null @@ -1,6 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; -@import 'style/themes/colors_dark'; -@import '../node_modules/@elastic/eui/src/global_styling/functions/index'; -@import '../node_modules/@elastic/eui/src/global_styling/variables/index'; -@import '../node_modules/@elastic/eui/src/global_styling/mixins/index'; -@import '../node_modules/@elastic/eui/src/global_styling/reset/index'; diff --git a/src/reset_light.scss b/src/reset_light.scss deleted file mode 100644 index 1a2912d866..0000000000 --- a/src/reset_light.scss +++ /dev/null @@ -1,6 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; -@import 'style/themes/colors_light'; -@import '../node_modules/@elastic/eui/src/global_styling/functions/index'; -@import '../node_modules/@elastic/eui/src/global_styling/variables/index'; -@import '../node_modules/@elastic/eui/src/global_styling/mixins/index'; -@import '../node_modules/@elastic/eui/src/global_styling/reset/index'; diff --git a/src/theme_dark.scss b/src/theme_dark.scss deleted file mode 100644 index 97a9b76596..0000000000 --- a/src/theme_dark.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; - -@import 'eui_imports'; -@import '../node_modules/@elastic/eui/src/global_styling/reset/index'; - -// Components -@import 'components/index'; diff --git a/src/theme_light.scss b/src/theme_light.scss deleted file mode 100644 index fbd90d28a1..0000000000 --- a/src/theme_light.scss +++ /dev/null @@ -1,7 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; - -@import 'eui_imports'; -@import '../node_modules/@elastic/eui/src/global_styling/reset/index'; - -// Components -@import 'components/index'; diff --git a/src/theme_only_dark.scss b/src/theme_only_dark.scss deleted file mode 100644 index 2c9127193e..0000000000 --- a/src/theme_only_dark.scss +++ /dev/null @@ -1,6 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_dark'; - -@import 'eui_imports'; - -// Components -@import 'components/index'; diff --git a/src/theme_only_light.scss b/src/theme_only_light.scss deleted file mode 100644 index 41ad876e70..0000000000 --- a/src/theme_only_light.scss +++ /dev/null @@ -1,6 +0,0 @@ -@import '../node_modules/@elastic/eui/src/themes/eui/eui_colors_light'; - -@import 'eui_imports'; - -// Components -@import 'components/index'; diff --git a/stories/annotations/lines/1_x_continuous.tsx b/stories/annotations/lines/1_x_continuous.tsx index 0697c9c9d8..8899c232fa 100644 --- a/stories/annotations/lines/1_x_continuous.tsx +++ b/stories/annotations/lines/1_x_continuous.tsx @@ -29,9 +29,9 @@ import { LineAnnotationDatum, ScaleType, Settings, -} from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +} from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob, arrayKnobs } from '../../utils/knobs'; function generateAnnotationData(values: any[]): LineAnnotationDatum[] { diff --git a/stories/annotations/lines/2_x_ordinal.tsx b/stories/annotations/lines/2_x_ordinal.tsx index 1389267e1c..2b56ed1f38 100644 --- a/stories/annotations/lines/2_x_ordinal.tsx +++ b/stories/annotations/lines/2_x_ordinal.tsx @@ -29,9 +29,9 @@ import { LineAnnotationDatum, ScaleType, Settings, -} from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +} from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob, arrayKnobs } from '../../utils/knobs'; function generateAnnotationData(values: any[]): LineAnnotationDatum[] { diff --git a/stories/annotations/lines/3_x_time.tsx b/stories/annotations/lines/3_x_time.tsx index 6ae5a838a0..f8276bbc90 100644 --- a/stories/annotations/lines/3_x_time.tsx +++ b/stories/annotations/lines/3_x_time.tsx @@ -30,10 +30,10 @@ import { ScaleType, Settings, timeFormatter, -} from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; -import { KIBANA_METRICS } from '../../../src/utils/data_samples/test_dataset_kibana'; +} from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; +import { KIBANA_METRICS } from '../../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { getChartRotationKnob } from '../../utils/knobs'; const dateFormatter = timeFormatter('HH:mm:ss'); diff --git a/stories/annotations/lines/4_y_domain.tsx b/stories/annotations/lines/4_y_domain.tsx index 8de1038522..cdbab441a2 100644 --- a/stories/annotations/lines/4_y_domain.tsx +++ b/stories/annotations/lines/4_y_domain.tsx @@ -29,9 +29,9 @@ import { LineAnnotationDatum, ScaleType, Settings, -} from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +} from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob, arrayKnobs } from '../../utils/knobs'; function generateAnnotationData(values: any[]): LineAnnotationDatum[] { diff --git a/stories/annotations/lines/5_styling.tsx b/stories/annotations/lines/5_styling.tsx index 64ee8cef84..964e0d6aab 100644 --- a/stories/annotations/lines/5_styling.tsx +++ b/stories/annotations/lines/5_styling.tsx @@ -30,9 +30,9 @@ import { ScaleType, Settings, LineAnnotationStyle, -} from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +} from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob } from '../../utils/knobs'; function generateAnnotationData(values: any[]): LineAnnotationDatum[] { diff --git a/stories/annotations/lines/6_test_single_bar_histogram.tsx b/stories/annotations/lines/6_test_single_bar_histogram.tsx index 199ec182d3..05c51c8f81 100644 --- a/stories/annotations/lines/6_test_single_bar_histogram.tsx +++ b/stories/annotations/lines/6_test_single_bar_histogram.tsx @@ -20,8 +20,16 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { AnnotationDomainType, Axis, BarSeries, Chart, LineAnnotation, ScaleType, Settings } from '../../../src'; -import { Position } from '../../../src/utils/common'; +import { + AnnotationDomainType, + Axis, + BarSeries, + Chart, + LineAnnotation, + ScaleType, + Settings, +} from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/lines/7_tooltip_options.tsx b/stories/annotations/lines/7_tooltip_options.tsx index 68b6193e81..743abb68f4 100644 --- a/stories/annotations/lines/7_tooltip_options.tsx +++ b/stories/annotations/lines/7_tooltip_options.tsx @@ -30,10 +30,10 @@ import { LineAnnotation, AnnotationDomainType, LineAnnotationDatum, -} from '../../../src'; -import { CustomAnnotationTooltip } from '../../../src/chart_types/xy_chart/annotations/types'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +} from '../../../packages/charts/src'; +import { CustomAnnotationTooltip } from '../../../packages/charts/src/chart_types/xy_chart/annotations/types'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { arrayKnobs, getBoundaryKnob, diff --git a/stories/annotations/lines/8_advanced_markers.tsx b/stories/annotations/lines/8_advanced_markers.tsx index da578c48de..241114e5e3 100644 --- a/stories/annotations/lines/8_advanced_markers.tsx +++ b/stories/annotations/lines/8_advanced_markers.tsx @@ -32,8 +32,8 @@ import { LineAnnotation, AnnotationDomainType, LineAnnotationSpec, -} from '../../../src'; -import { isVerticalAxis } from '../../../src/chart_types/xy_chart/utils/axis_type_utils'; +} from '../../../packages/charts/src'; +import { isVerticalAxis } from '../../../packages/charts/src/chart_types/xy_chart/utils/axis_type_utils'; import { getChartRotationKnob, getPositionKnob } from '../../utils/knobs'; import { SB_KNOBS_PANEL } from '../../utils/storybook'; diff --git a/stories/annotations/rects/1_linear_bar_chart.tsx b/stories/annotations/rects/1_linear_bar_chart.tsx index 1838e97fe6..ba540cf637 100644 --- a/stories/annotations/rects/1_linear_bar_chart.tsx +++ b/stories/annotations/rects/1_linear_bar_chart.tsx @@ -20,8 +20,8 @@ import { boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../src'; -import { Position } from '../../../src/utils/common'; +import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/rects/2_ordinal_bar_chart.tsx b/stories/annotations/rects/2_ordinal_bar_chart.tsx index be3b421ee0..416db01617 100644 --- a/stories/annotations/rects/2_ordinal_bar_chart.tsx +++ b/stories/annotations/rects/2_ordinal_bar_chart.tsx @@ -20,8 +20,8 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../src'; -import { Position } from '../../../src/utils/common'; +import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/rects/3_linear_line_chart.tsx b/stories/annotations/rects/3_linear_line_chart.tsx index 4e0ffdc41c..89bddf5934 100644 --- a/stories/annotations/rects/3_linear_line_chart.tsx +++ b/stories/annotations/rects/3_linear_line_chart.tsx @@ -20,9 +20,17 @@ import { boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, LineSeries, RectAnnotation, ScaleType, Settings, RectAnnotationDatum } from '../../../src'; -import { Position } from '../../../src/utils/common'; -import { BandedAccessorType } from '../../../src/utils/geometry'; +import { + Axis, + Chart, + LineSeries, + RectAnnotation, + ScaleType, + Settings, + RectAnnotationDatum, +} from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; +import { BandedAccessorType } from '../../../packages/charts/src/utils/geometry'; import { getChartRotationKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/rects/4_styling.tsx b/stories/annotations/rects/4_styling.tsx index 38422f689c..3f65b8930f 100644 --- a/stories/annotations/rects/4_styling.tsx +++ b/stories/annotations/rects/4_styling.tsx @@ -20,9 +20,9 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, LineSeries, RectAnnotation, ScaleType, Settings } from '../../../src'; -import { Icon } from '../../../src/components/icons/icon'; -import { Position } from '../../../src/utils/common'; +import { Axis, Chart, LineSeries, RectAnnotation, ScaleType, Settings } from '../../../packages/charts/src'; +import { Icon } from '../../../packages/charts/src/components/icons/icon'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getChartRotationKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/rects/5_tooltip_options.tsx b/stories/annotations/rects/5_tooltip_options.tsx index ccaf04ce12..764532ef89 100644 --- a/stories/annotations/rects/5_tooltip_options.tsx +++ b/stories/annotations/rects/5_tooltip_options.tsx @@ -20,9 +20,17 @@ import { boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { AnnotationTooltipFormatter, Axis, BarSeries, Chart, ScaleType, RectAnnotation, Settings } from '../../../src'; -import { CustomAnnotationTooltip } from '../../../src/chart_types/xy_chart/annotations/types'; -import { Position } from '../../../src/utils/common'; +import { + AnnotationTooltipFormatter, + Axis, + BarSeries, + Chart, + ScaleType, + RectAnnotation, + Settings, +} from '../../../packages/charts/src'; +import { CustomAnnotationTooltip } from '../../../packages/charts/src/chart_types/xy_chart/annotations/types'; +import { Position } from '../../../packages/charts/src/utils/common'; import { getBoundaryKnob, getChartRotationKnob, getFallbackPlacementsKnob, getPlacementKnob } from '../../utils/knobs'; export const Example = () => { diff --git a/stories/annotations/rects/6_zero_domain.tsx b/stories/annotations/rects/6_zero_domain.tsx index ce03441ac5..f81b28008b 100644 --- a/stories/annotations/rects/6_zero_domain.tsx +++ b/stories/annotations/rects/6_zero_domain.tsx @@ -20,8 +20,8 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../src'; -import { Position } from '../../../src/utils/common'; +import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; const getKnobs = () => { const minY = number('min y', 0); diff --git a/stories/annotations/rects/7_with_group_id.tsx b/stories/annotations/rects/7_with_group_id.tsx index 059d935687..8889b754a0 100644 --- a/stories/annotations/rects/7_with_group_id.tsx +++ b/stories/annotations/rects/7_with_group_id.tsx @@ -20,8 +20,8 @@ import { select, boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../src'; -import { Position } from '../../../src/utils/common'; +import { Axis, BarSeries, Chart, RectAnnotation, ScaleType, Settings } from '../../../packages/charts/src'; +import { Position } from '../../../packages/charts/src/utils/common'; const getKnobs = () => { const enabled = boolean('enable annotation', true); diff --git a/stories/area/10_stacked_same_naming.tsx b/stories/area/10_stacked_same_naming.tsx index f5b0508d3f..61a74158a0 100644 --- a/stories/area/10_stacked_same_naming.tsx +++ b/stories/area/10_stacked_same_naming.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/11_test_linear.tsx b/stories/area/11_test_linear.tsx index edb87f88f9..8be9bd4d42 100644 --- a/stories/area/11_test_linear.tsx +++ b/stories/area/11_test_linear.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/area/12_test_time.tsx b/stories/area/12_test_time.tsx index 99fcb1f0d3..69acfc7e6f 100644 --- a/stories/area/12_test_time.tsx +++ b/stories/area/12_test_time.tsx @@ -20,8 +20,8 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/13_band_area.tsx b/stories/area/13_band_area.tsx index 1ab5e8be1c..19e772f6cb 100644 --- a/stories/area/13_band_area.tsx +++ b/stories/area/13_band_area.tsx @@ -30,9 +30,9 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/14_stacked_band.tsx b/stories/area/14_stacked_band.tsx index 69c75111ab..61fe2e964f 100644 --- a/stories/area/14_stacked_band.tsx +++ b/stories/area/14_stacked_band.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/15_stacked_grouped.tsx b/stories/area/15_stacked_grouped.tsx index 6e327bb1c8..5780330dd5 100644 --- a/stories/area/15_stacked_grouped.tsx +++ b/stories/area/15_stacked_grouped.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/area/16_test_stacked_with_missing.tsx b/stories/area/16_test_stacked_with_missing.tsx index 53d3565bce..492823cf4d 100644 --- a/stories/area/16_test_stacked_with_missing.tsx +++ b/stories/area/16_test_stacked_with_missing.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Chart, CurveType, AreaSeries, Position, Axis, ScaleType } from '../../src'; +import { Chart, CurveType, AreaSeries, Position, Axis, ScaleType } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/area/17_negative.tsx b/stories/area/17_negative.tsx index dabdb73897..2c058ffa41 100644 --- a/stories/area/17_negative.tsx +++ b/stories/area/17_negative.tsx @@ -20,8 +20,8 @@ import { select, number } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/18_negative_positive.tsx b/stories/area/18_negative_positive.tsx index 2609e7830c..d60aa7c139 100644 --- a/stories/area/18_negative_positive.tsx +++ b/stories/area/18_negative_positive.tsx @@ -20,8 +20,8 @@ import { select, number } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/19_negative_band.tsx b/stories/area/19_negative_band.tsx index 664fa6d898..5ab14770e6 100644 --- a/stories/area/19_negative_band.tsx +++ b/stories/area/19_negative_band.tsx @@ -20,7 +20,7 @@ import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Fit, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { AreaSeries, Axis, Chart, Fit, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/area/1_basic.tsx b/stories/area/1_basic.tsx index dd9e56becc..f9b1dac64d 100644 --- a/stories/area/1_basic.tsx +++ b/stories/area/1_basic.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Chart, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Chart, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/area/2_with_time.tsx b/stories/area/2_with_time.tsx index c29bc2cf6f..50eea12488 100644 --- a/stories/area/2_with_time.tsx +++ b/stories/area/2_with_time.tsx @@ -20,9 +20,18 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Placement, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { isDefined } from '../../src/utils/common'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + AreaSeries, + Axis, + Chart, + Placement, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { isDefined } from '../../packages/charts/src/utils/common'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { getChartRotationKnob, getPlacementKnob, getStickToKnob } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/area/3_with_linear.tsx b/stories/area/3_with_linear.tsx index b79611e401..6dad815b27 100644 --- a/stories/area/3_with_linear.tsx +++ b/stories/area/3_with_linear.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/area/4_with_log.tsx b/stories/area/4_with_log.tsx index 194aed6876..6df9b67122 100644 --- a/stories/area/4_with_log.tsx +++ b/stories/area/4_with_log.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/5_with_4_axes.tsx b/stories/area/5_with_4_axes.tsx index 8137af1c9b..eecdb236ec 100644 --- a/stories/area/5_with_4_axes.tsx +++ b/stories/area/5_with_4_axes.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/6_with_axis_and_legend.tsx b/stories/area/6_with_axis_and_legend.tsx index 541519c8a5..74acd957eb 100644 --- a/stories/area/6_with_axis_and_legend.tsx +++ b/stories/area/6_with_axis_and_legend.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/7_stacked.tsx b/stories/area/7_stacked.tsx index 74e3b60163..14ac7b1df6 100644 --- a/stories/area/7_stacked.tsx +++ b/stories/area/7_stacked.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/area/8_stacked_percentage.tsx b/stories/area/8_stacked_percentage.tsx index b884962fe5..78ac2e4554 100644 --- a/stories/area/8_stacked_percentage.tsx +++ b/stories/area/8_stacked_percentage.tsx @@ -20,8 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, niceTimeFormatter, Position, ScaleType, Settings, StackMode } from '../../src'; -import DATA from '../../src/utils/data_samples/4_time_series.json'; +import { + AreaSeries, + Axis, + Chart, + niceTimeFormatter, + Position, + ScaleType, + Settings, + StackMode, +} from '../../packages/charts/src'; +import DATA from '../../packages/charts/src/utils/data_samples/4_time_series.json'; const dataNames = Object.keys(DATA); export const Example = () => { diff --git a/stories/area/8_stacked_percentage_zeros.tsx b/stories/area/8_stacked_percentage_zeros.tsx index 89bdd030ff..d56bf500ee 100644 --- a/stories/area/8_stacked_percentage_zeros.tsx +++ b/stories/area/8_stacked_percentage_zeros.tsx @@ -19,7 +19,16 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, niceTimeFormatter, StackMode } from '../../src'; +import { + AreaSeries, + Axis, + Chart, + Position, + ScaleType, + Settings, + niceTimeFormatter, + StackMode, +} from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/area/9_stacked_separate_specs.tsx b/stories/area/9_stacked_separate_specs.tsx index 9ad0a784ec..bc997d20c3 100644 --- a/stories/area/9_stacked_separate_specs.tsx +++ b/stories/area/9_stacked_separate_specs.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm'); diff --git a/stories/axes/10_one_domain_bound.tsx b/stories/axes/10_one_domain_bound.tsx index d3acef7e1b..3d28b75633 100644 --- a/stories/axes/10_one_domain_bound.tsx +++ b/stories/axes/10_one_domain_bound.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => { const leftDomain = { diff --git a/stories/axes/11_fit_domain_extent.tsx b/stories/axes/11_fit_domain_extent.tsx index 8ffe7a8cbd..c8395a9856 100644 --- a/stories/axes/11_fit_domain_extent.tsx +++ b/stories/axes/11_fit_domain_extent.tsx @@ -20,8 +20,8 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, DomainPaddingUnit, LineSeries, Position, ScaleType } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, Chart, DomainPaddingUnit, LineSeries, Position, ScaleType } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { getKnobsFromEnum } from '../utils/knobs'; export const Example = () => { diff --git a/stories/axes/12_duplicate_ticks.tsx b/stories/axes/12_duplicate_ticks.tsx index fd44f1c98a..8e1ee868f5 100644 --- a/stories/axes/12_duplicate_ticks.tsx +++ b/stories/axes/12_duplicate_ticks.tsx @@ -22,8 +22,16 @@ import { DateTime } from 'luxon'; import moment from 'moment-timezone'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, niceTimeFormatter, TickFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + Chart, + LineSeries, + Position, + ScaleType, + niceTimeFormatter, + TickFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const now = DateTime.fromISO('2019-01-11T00:00:00.000').setZone('utc+1').toMillis(); diff --git a/stories/axes/13_label_formatting.tsx b/stories/axes/13_label_formatting.tsx index b78337db7a..52a581056a 100644 --- a/stories/axes/13_label_formatting.tsx +++ b/stories/axes/13_label_formatting.tsx @@ -21,8 +21,8 @@ import { text } from '@storybook/addon-knobs'; import numeral from 'numeral'; import React from 'react'; -import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/axes/1_basic.tsx b/stories/axes/1_basic.tsx index 4805909da5..05813d39b8 100644 --- a/stories/axes/1_basic.tsx +++ b/stories/axes/1_basic.tsx @@ -30,8 +30,8 @@ import { niceTimeFormatter, RecursivePartial, AxisStyle, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const customStyle: RecursivePartial = { diff --git a/stories/axes/2_tick_label_rotation.tsx b/stories/axes/2_tick_label_rotation.tsx index e708bcc74d..1116dec0cd 100644 --- a/stories/axes/2_tick_label_rotation.tsx +++ b/stories/axes/2_tick_label_rotation.tsx @@ -31,7 +31,7 @@ import { RecursivePartial, DEFAULT_CHART_MARGINS, DEFAULT_CHART_PADDING, -} from '../../src'; +} from '../../packages/charts/src'; import { getVerticalTextAlignmentKnob, getHorizontalTextAlignmentKnob, getPositiveNumberKnob } from '../utils/knobs'; const getAxisKnobs = (group?: string, gridLines = false): RecursivePartial => ({ diff --git a/stories/axes/3_axis_4_axes.tsx b/stories/axes/3_axis_4_axes.tsx index ff922de378..a76c011864 100644 --- a/stories/axes/3_axis_4_axes.tsx +++ b/stories/axes/3_axis_4_axes.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/axes/4_multi_axis.tsx b/stories/axes/4_multi_axis.tsx index c214f6a490..1d577be0be 100644 --- a/stories/axes/4_multi_axis.tsx +++ b/stories/axes/4_multi_axis.tsx @@ -30,7 +30,7 @@ import { Position, ScaleType, Settings, -} from '../../src'; +} from '../../packages/charts/src'; function createThemeAction(title: string, min: number, max: number, value: number) { return number( diff --git a/stories/axes/5_multi_axis_bar_lines.tsx b/stories/axes/5_multi_axis_bar_lines.tsx index eb55668644..5e062e35d8 100644 --- a/stories/axes/5_multi_axis_bar_lines.tsx +++ b/stories/axes/5_multi_axis_bar_lines.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/axes/6_different_tooltip.tsx b/stories/axes/6_different_tooltip.tsx index 51b3bdeb62..bd508274a5 100644 --- a/stories/axes/6_different_tooltip.tsx +++ b/stories/axes/6_different_tooltip.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/axes/6a_different_tooltip_formatter.tsx b/stories/axes/6a_different_tooltip_formatter.tsx index 37724f676f..6a61770cac 100644 --- a/stories/axes/6a_different_tooltip_formatter.tsx +++ b/stories/axes/6a_different_tooltip_formatter.tsx @@ -21,7 +21,7 @@ import { text, boolean } from '@storybook/addon-knobs'; import numeral from 'numeral'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/axes/7_many_tick_labels.tsx b/stories/axes/7_many_tick_labels.tsx index e2ea7353de..0f9b59672e 100644 --- a/stories/axes/7_many_tick_labels.tsx +++ b/stories/axes/7_many_tick_labels.tsx @@ -20,8 +20,17 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, RecursivePartial, AxisStyle } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { + AreaSeries, + Axis, + Chart, + Position, + ScaleType, + Settings, + RecursivePartial, + AxisStyle, +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; export const Example = () => { const dg = new SeededDataGenerator(); diff --git a/stories/axes/8_custom_domain.tsx b/stories/axes/8_custom_domain.tsx index b172f64aff..f7ca4ff0a9 100644 --- a/stories/axes/8_custom_domain.tsx +++ b/stories/axes/8_custom_domain.tsx @@ -20,7 +20,16 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LIGHT_THEME, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { + Axis, + BarSeries, + Chart, + LIGHT_THEME, + LineSeries, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; export const Example = () => { const customXDomain = boolean('customize X domain', true, 'X axis'); diff --git a/stories/axes/9_custom_mixed_domain.tsx b/stories/axes/9_custom_mixed_domain.tsx index 7b6779e527..fa64b8e290 100644 --- a/stories/axes/9_custom_mixed_domain.tsx +++ b/stories/axes/9_custom_mixed_domain.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { arrayKnobs } from '../utils/knobs'; export const Example = () => { diff --git a/stories/bar/10_axis_and_legend.tsx b/stories/bar/10_axis_and_legend.tsx index 94e394942e..0a6c457546 100644 --- a/stories/bar/10_axis_and_legend.tsx +++ b/stories/bar/10_axis_and_legend.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/11_stacked_with_axis_and_legend.tsx b/stories/bar/11_stacked_with_axis_and_legend.tsx index f6b1d126a7..1470972198 100644 --- a/stories/bar/11_stacked_with_axis_and_legend.tsx +++ b/stories/bar/11_stacked_with_axis_and_legend.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/12_stacked_as_percentage.tsx b/stories/bar/12_stacked_as_percentage.tsx index fa52864365..48e0de3b96 100644 --- a/stories/bar/12_stacked_as_percentage.tsx +++ b/stories/bar/12_stacked_as_percentage.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, StackMode } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, StackMode } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/13_clustered.tsx b/stories/bar/13_clustered.tsx index d8e2ee8ff5..29cc1d440c 100644 --- a/stories/bar/13_clustered.tsx +++ b/stories/bar/13_clustered.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LIGHT_THEME, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LIGHT_THEME, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/bar/14_clustered_multiple.tsx b/stories/bar/14_clustered_multiple.tsx index f0c5f20123..3442cba5fc 100644 --- a/stories/bar/14_clustered_multiple.tsx +++ b/stories/bar/14_clustered_multiple.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/15_time_clustered.tsx b/stories/bar/15_time_clustered.tsx index 2bc93588d2..5eed9263c0 100644 --- a/stories/bar/15_time_clustered.tsx +++ b/stories/bar/15_time_clustered.tsx @@ -20,8 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + BarSeries, + Chart, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const formatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/bar/17_time_stacked.tsx b/stories/bar/17_time_stacked.tsx index 05805fce31..b8d6e791ba 100644 --- a/stories/bar/17_time_stacked.tsx +++ b/stories/bar/17_time_stacked.tsx @@ -20,8 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + BarSeries, + Chart, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const formatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/bar/18_bar_chart_1y0g.tsx b/stories/bar/18_bar_chart_1y0g.tsx index c0cf5eac90..b707aa4c82 100644 --- a/stories/bar/18_bar_chart_1y0g.tsx +++ b/stories/bar/18_bar_chart_1y0g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/19_bar_chart_1y1g.tsx b/stories/bar/19_bar_chart_1y1g.tsx index e9f2aab0f2..2f38aa1b46 100644 --- a/stories/bar/19_bar_chart_1y1g.tsx +++ b/stories/bar/19_bar_chart_1y1g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/1_basic.tsx b/stories/bar/1_basic.tsx index 1dec743da2..360209c003 100644 --- a/stories/bar/1_basic.tsx +++ b/stories/bar/1_basic.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { BarSeries, Chart, ScaleType, Settings, DARK_THEME, LIGHT_THEME } from '../../src'; +import { BarSeries, Chart, ScaleType, Settings, DARK_THEME, LIGHT_THEME } from '../../packages/charts/src'; export const Example = () => { const darkmode = boolean('darkmode', false); diff --git a/stories/bar/20_bar_chart_1y2g.tsx b/stories/bar/20_bar_chart_1y2g.tsx index 2d41806a84..c36a683c52 100644 --- a/stories/bar/20_bar_chart_1y2g.tsx +++ b/stories/bar/20_bar_chart_1y2g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/21_bar_chart_2y0g.tsx b/stories/bar/21_bar_chart_2y0g.tsx index 681ac641f4..63c30a1cbf 100644 --- a/stories/bar/21_bar_chart_2y0g.tsx +++ b/stories/bar/21_bar_chart_2y0g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/22_barchart_2y1g.tsx b/stories/bar/22_barchart_2y1g.tsx index 611eede490..8c9faf6be0 100644 --- a/stories/bar/22_barchart_2y1g.tsx +++ b/stories/bar/22_barchart_2y1g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/23_bar_chart_2y2g.tsx b/stories/bar/23_bar_chart_2y2g.tsx index 75252f5a1e..ba3f50d479 100644 --- a/stories/bar/23_bar_chart_2y2g.tsx +++ b/stories/bar/23_bar_chart_2y2g.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/24_tooltip_visibility.tsx b/stories/bar/24_tooltip_visibility.tsx index 497c1376c2..517be928a4 100644 --- a/stories/bar/24_tooltip_visibility.tsx +++ b/stories/bar/24_tooltip_visibility.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, FilterPredicate } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, FilterPredicate } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/25_high_data_volume.tsx b/stories/bar/25_high_data_volume.tsx index c6d4bb4e34..51755f41e2 100644 --- a/stories/bar/25_high_data_volume.tsx +++ b/stories/bar/25_high_data_volume.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; -import { TooltipType } from '../../src/specs/constants'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; +import { TooltipType } from '../../packages/charts/src/specs/constants'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/26_single_data_linear.tsx b/stories/bar/26_single_data_linear.tsx index efa197b6c4..4992ca1a29 100644 --- a/stories/bar/26_single_data_linear.tsx +++ b/stories/bar/26_single_data_linear.tsx @@ -20,7 +20,7 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/bar/27_single_data_ordinal.tsx b/stories/bar/27_single_data_ordinal.tsx index 38f8a24bca..c379a7a1f6 100644 --- a/stories/bar/27_single_data_ordinal.tsx +++ b/stories/bar/27_single_data_ordinal.tsx @@ -20,7 +20,7 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/bar/28_single_data_clustered.tsx b/stories/bar/28_single_data_clustered.tsx index ab5ae18003..6560cd2bf8 100644 --- a/stories/bar/28_single_data_clustered.tsx +++ b/stories/bar/28_single_data_clustered.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/29_single_data_stacked.tsx b/stories/bar/29_single_data_stacked.tsx index c24cb9d999..58ef588953 100644 --- a/stories/bar/29_single_data_stacked.tsx +++ b/stories/bar/29_single_data_stacked.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/2_label_value.tsx b/stories/bar/2_label_value.tsx index 904b8ac7a8..7fe3768743 100644 --- a/stories/bar/2_label_value.tsx +++ b/stories/bar/2_label_value.tsx @@ -20,8 +20,8 @@ import { boolean, color, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { getChartRotationKnob, getPositionKnob } from '../utils/knobs'; const dataGen = new SeededDataGenerator(); diff --git a/stories/bar/30_stacked_to_extent.tsx b/stories/bar/30_stacked_to_extent.tsx index 0c65434f49..97dfb4d995 100644 --- a/stories/bar/30_stacked_to_extent.tsx +++ b/stories/bar/30_stacked_to_extent.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/31_negative_and_positive_x_values.tsx b/stories/bar/31_negative_and_positive_x_values.tsx index 2aa2f614b8..ef25fea873 100644 --- a/stories/bar/31_negative_and_positive_x_values.tsx +++ b/stories/bar/31_negative_and_positive_x_values.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/32_scale_to_extent.tsx b/stories/bar/32_scale_to_extent.tsx index 0465df7942..1e647ce761 100644 --- a/stories/bar/32_scale_to_extent.tsx +++ b/stories/bar/32_scale_to_extent.tsx @@ -20,8 +20,8 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, DomainPaddingUnit, Position, ScaleType } from '../../src'; -import { computeContinuousDataDomain } from '../../src/utils/domain'; +import { Axis, Chart, DomainPaddingUnit, Position, ScaleType } from '../../packages/charts/src'; +import { computeContinuousDataDomain } from '../../packages/charts/src/utils/domain'; import { getKnobsFromEnum, getXYSeriesKnob } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/bar/33_band_bar.tsx b/stories/bar/33_band_bar.tsx index d03f971935..d6263b5597 100644 --- a/stories/bar/33_band_bar.tsx +++ b/stories/bar/33_band_bar.tsx @@ -20,9 +20,9 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, timeFormatter } from '../../src'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter('HH:mm:ss'); diff --git a/stories/bar/34_test_linear.tsx b/stories/bar/34_test_linear.tsx index e8bbb809fb..fe320db8f4 100644 --- a/stories/bar/34_test_linear.tsx +++ b/stories/bar/34_test_linear.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/35_test_time.tsx b/stories/bar/35_test_time.tsx index d327acda63..037a4be476 100644 --- a/stories/bar/35_test_time.tsx +++ b/stories/bar/35_test_time.tsx @@ -20,8 +20,8 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm:ss'); diff --git a/stories/bar/36_test_linear_clustered.tsx b/stories/bar/36_test_linear_clustered.tsx index ec783c3869..953bdfbc53 100644 --- a/stories/bar/36_test_linear_clustered.tsx +++ b/stories/bar/36_test_linear_clustered.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/37_test_time_clustered.tsx b/stories/bar/37_test_time_clustered.tsx index 1f315b7411..45c12dc9d0 100644 --- a/stories/bar/37_test_time_clustered.tsx +++ b/stories/bar/37_test_time_clustered.tsx @@ -20,8 +20,8 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType, timeFormatter } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter('HH:mm:ss'); diff --git a/stories/bar/38_test_clustered_null_bars.tsx b/stories/bar/38_test_clustered_null_bars.tsx index 210fbd0056..948993dbc2 100644 --- a/stories/bar/38_test_clustered_null_bars.tsx +++ b/stories/bar/38_test_clustered_null_bars.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/39_test_stacked_null.tsx b/stories/bar/39_test_stacked_null.tsx index 19d508f33c..086f772d76 100644 --- a/stories/bar/39_test_stacked_null.tsx +++ b/stories/bar/39_test_stacked_null.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/3_with_axis.tsx b/stories/bar/3_with_axis.tsx index 19bd2badb4..9f1045446b 100644 --- a/stories/bar/3_with_axis.tsx +++ b/stories/bar/3_with_axis.tsx @@ -20,7 +20,16 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, DARK_THEME, LIGHT_THEME, Position, ScaleType, Settings } from '../../src'; +import { + Axis, + BarSeries, + Chart, + DARK_THEME, + LIGHT_THEME, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; export const Example = () => { const darkmode = boolean('darkmode', false); diff --git a/stories/bar/40_test_switch.tsx b/stories/bar/40_test_switch.tsx index 561889154c..87dbdb05a4 100644 --- a/stories/bar/40_test_switch.tsx +++ b/stories/bar/40_test_switch.tsx @@ -20,7 +20,7 @@ import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/41_test_histogram_linear.tsx b/stories/bar/41_test_histogram_linear.tsx index 1a9b7dd5b6..393ab8239f 100644 --- a/stories/bar/41_test_histogram_linear.tsx +++ b/stories/bar/41_test_histogram_linear.tsx @@ -34,8 +34,8 @@ import { RectAnnotation, ScaleType, Settings, -} from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { getChartRotationKnob } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/bar/42_test_histogram_ordinal.tsx b/stories/bar/42_test_histogram_ordinal.tsx index a1a1eaf67b..599dfa5dec 100644 --- a/stories/bar/42_test_histogram_ordinal.tsx +++ b/stories/bar/42_test_histogram_ordinal.tsx @@ -20,7 +20,7 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, HistogramBarSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, HistogramBarSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/bar/43_test_discover.tsx b/stories/bar/43_test_discover.tsx index eb3a51cbf4..f2bead58e2 100644 --- a/stories/bar/43_test_discover.tsx +++ b/stories/bar/43_test_discover.tsx @@ -29,7 +29,7 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; +} from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const TEST_DATASET_DISCOVER = { diff --git a/stories/bar/44_test_single_histogram.tsx b/stories/bar/44_test_single_histogram.tsx index b3b437b2fa..93f211adde 100644 --- a/stories/bar/44_test_single_histogram.tsx +++ b/stories/bar/44_test_single_histogram.tsx @@ -28,8 +28,8 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/45_min_height.tsx b/stories/bar/45_min_height.tsx index bfe378028e..d85cb2b6a8 100644 --- a/stories/bar/45_min_height.tsx +++ b/stories/bar/45_min_height.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/46_test_min_height.tsx b/stories/bar/46_test_min_height.tsx index 769e3f5c05..de9f3e7730 100644 --- a/stories/bar/46_test_min_height.tsx +++ b/stories/bar/46_test_min_height.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; // for testing purposes only diff --git a/stories/bar/47_stacked_only_grouped.tsx b/stories/bar/47_stacked_only_grouped.tsx index be9a7b5f2a..bda6de9e1b 100644 --- a/stories/bar/47_stacked_only_grouped.tsx +++ b/stories/bar/47_stacked_only_grouped.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/48_test_tooltip.tsx b/stories/bar/48_test_tooltip.tsx index 5fca5832b3..578a7cb0e7 100644 --- a/stories/bar/48_test_tooltip.tsx +++ b/stories/bar/48_test_tooltip.tsx @@ -20,8 +20,8 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { getBoundaryKnob, getChartRotationKnob, diff --git a/stories/bar/49_test_dual_axis.tsx b/stories/bar/49_test_dual_axis.tsx index 9f4efefbd7..2d8bd33739 100644 --- a/stories/bar/49_test_dual_axis.tsx +++ b/stories/bar/49_test_dual_axis.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => { const stack13 = boolean('Stack bars1 and bars3', true); diff --git a/stories/bar/4_ordinal.tsx b/stories/bar/4_ordinal.tsx index 0c7d468f98..28265c86d0 100644 --- a/stories/bar/4_ordinal.tsx +++ b/stories/bar/4_ordinal.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/50_order_bins_by_sum.tsx b/stories/bar/50_order_bins_by_sum.tsx index 834af224a6..68bcb43078 100644 --- a/stories/bar/50_order_bins_by_sum.tsx +++ b/stories/bar/50_order_bins_by_sum.tsx @@ -20,7 +20,7 @@ import { select, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, BinAgg, Direction } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, BinAgg, Direction } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const data = [ diff --git a/stories/bar/51_label_value_advanced.tsx b/stories/bar/51_label_value_advanced.tsx index ffe1001366..1697feb9b1 100644 --- a/stories/bar/51_label_value_advanced.tsx +++ b/stories/bar/51_label_value_advanced.tsx @@ -20,8 +20,8 @@ import { boolean, color, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { getChartRotationKnob } from '../utils/knobs'; const dataGen = new SeededDataGenerator(); diff --git a/stories/bar/52_multi_group_same_domain.tsx b/stories/bar/52_multi_group_same_domain.tsx index 1960755e06..660f75b5ff 100644 --- a/stories/bar/52_multi_group_same_domain.tsx +++ b/stories/bar/52_multi_group_same_domain.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Settings, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Settings, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_KNOBS_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/53_use_domain_from_different_groupid.tsx b/stories/bar/53_use_domain_from_different_groupid.tsx index 685f0a168b..0e614acf17 100644 --- a/stories/bar/53_use_domain_from_different_groupid.tsx +++ b/stories/bar/53_use_domain_from_different_groupid.tsx @@ -20,7 +20,7 @@ import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Settings, Chart, Position, ScaleType, DEFAULT_GLOBAL_ID } from '../../src'; +import { Axis, BarSeries, Settings, Chart, Position, ScaleType, DEFAULT_GLOBAL_ID } from '../../packages/charts/src'; import { SB_KNOBS_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/54_functional_accessors.tsx b/stories/bar/54_functional_accessors.tsx index 8cdd05888e..fac2139edd 100644 --- a/stories/bar/54_functional_accessors.tsx +++ b/stories/bar/54_functional_accessors.tsx @@ -21,8 +21,17 @@ import { action } from '@storybook/addon-actions'; import { text } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, AccessorFn, ElementClickListener } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { + Axis, + BarSeries, + Chart, + Position, + ScaleType, + Settings, + AccessorFn, + ElementClickListener, +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/bar/55_tooltip_boundary.tsx b/stories/bar/55_tooltip_boundary.tsx index 39cf20c22e..51c8e6e4a3 100644 --- a/stories/bar/55_tooltip_boundary.tsx +++ b/stories/bar/55_tooltip_boundary.tsx @@ -20,8 +20,8 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import React, { useRef } from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, TooltipProps } from '../../src'; -import { getRandomNumberGenerator, SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, TooltipProps } from '../../packages/charts/src'; +import { getRandomNumberGenerator, SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/bar/56_test_use_dfl_gdomain.tsx b/stories/bar/56_test_use_dfl_gdomain.tsx index 0c308bc77d..a0ed9fcc10 100644 --- a/stories/bar/56_test_use_dfl_gdomain.tsx +++ b/stories/bar/56_test_use_dfl_gdomain.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; export const Example = () => { return ( diff --git a/stories/bar/5_linear.tsx b/stories/bar/5_linear.tsx index 0cb1b15b56..b0e9b37022 100644 --- a/stories/bar/5_linear.tsx +++ b/stories/bar/5_linear.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LIGHT_THEME, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LIGHT_THEME, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/bar/6_linear_no_linear_interval.tsx b/stories/bar/6_linear_no_linear_interval.tsx index a5b5e98f0d..0d0aa1cae1 100644 --- a/stories/bar/6_linear_no_linear_interval.tsx +++ b/stories/bar/6_linear_no_linear_interval.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/7_with_time_xaxis.tsx b/stories/bar/7_with_time_xaxis.tsx index aa65403f6e..4c6237558d 100644 --- a/stories/bar/7_with_time_xaxis.tsx +++ b/stories/bar/7_with_time_xaxis.tsx @@ -20,8 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + BarSeries, + Chart, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const formatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/bar/8_with_log_yaxis.tsx b/stories/bar/8_with_log_yaxis.tsx index 4a23807e10..339ff630ef 100644 --- a/stories/bar/8_with_log_yaxis.tsx +++ b/stories/bar/8_with_log_yaxis.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bar/9_with_stacked_log.tsx b/stories/bar/9_with_stacked_log.tsx index a2d65121b5..59b4d2d077 100644 --- a/stories/bar/9_with_stacked_log.tsx +++ b/stories/bar/9_with_stacked_log.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/bubble/1_simple.tsx b/stories/bubble/1_simple.tsx index a41aef8f9c..11087df66b 100644 --- a/stories/bubble/1_simple.tsx +++ b/stories/bubble/1_simple.tsx @@ -21,8 +21,17 @@ import { action } from '@storybook/addon-actions'; import { number, boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, TooltipType, PointShape } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { + Axis, + Chart, + BubbleSeries, + Position, + ScaleType, + Settings, + TooltipType, + PointShape, +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/bubble/2_ordinal.tsx b/stories/bubble/2_ordinal.tsx index 4955c452cf..f8ca0f8591 100644 --- a/stories/bubble/2_ordinal.tsx +++ b/stories/bubble/2_ordinal.tsx @@ -21,8 +21,8 @@ import { action } from '@storybook/addon-actions'; import { number, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, TooltipType } from '../../src'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; +import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, TooltipType } from '../../packages/charts/src'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; const rng = getRandomNumberGenerator(); diff --git a/stories/bubble/3_multiple.tsx b/stories/bubble/3_multiple.tsx index 9d6e04bca3..b72c28bf63 100644 --- a/stories/bubble/3_multiple.tsx +++ b/stories/bubble/3_multiple.tsx @@ -21,8 +21,8 @@ import { action } from '@storybook/addon-actions'; import { number, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, TooltipType } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, TooltipType } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/bubble/4_mixed.tsx b/stories/bubble/4_mixed.tsx index a564a97191..224361b1f0 100644 --- a/stories/bubble/4_mixed.tsx +++ b/stories/bubble/4_mixed.tsx @@ -21,8 +21,8 @@ import { action } from '@storybook/addon-actions'; import { number, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, LineSeries } from '../../src'; -import { SeededDataGenerator, getRandomNumberGenerator } from '../../src/mocks/utils'; +import { Axis, Chart, BubbleSeries, Position, ScaleType, Settings, LineSeries } from '../../packages/charts/src'; +import { SeededDataGenerator, getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/debug/1_basic.tsx b/stories/debug/1_basic.tsx index 245644b343..582953273f 100644 --- a/stories/debug/1_basic.tsx +++ b/stories/debug/1_basic.tsx @@ -20,7 +20,16 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, ScaleType, Settings, Position, Axis, BarSeries, AreaSeries, CurveType } from '../../src'; +import { + Chart, + ScaleType, + Settings, + Position, + Axis, + BarSeries, + AreaSeries, + CurveType, +} from '../../packages/charts/src'; export const Example = () => { const debug = boolean('debug', true); diff --git a/stories/debug/2_debug_state.tsx b/stories/debug/2_debug_state.tsx index 6866fe5042..6b2c1f4c6d 100644 --- a/stories/debug/2_debug_state.tsx +++ b/stories/debug/2_debug_state.tsx @@ -34,8 +34,8 @@ import { Position, SeriesNameFn, DebugState, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; export const Example = () => { const debug = boolean('debug', false); diff --git a/stories/goal/10_band_in_band.tsx b/stories/goal/10_band_in_band.tsx index a53e2b99bc..c81d6c2e83 100644 --- a/stories/goal/10_band_in_band.tsx +++ b/stories/goal/10_band_in_band.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/11_gaps.tsx b/stories/goal/11_gaps.tsx index c480a882a5..6a42e40305 100644 --- a/stories/goal/11_gaps.tsx +++ b/stories/goal/11_gaps.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/12_range.tsx b/stories/goal/12_range.tsx index 2d4dd5cd76..98fba28e9e 100644 --- a/stories/goal/12_range.tsx +++ b/stories/goal/12_range.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/13_confidence_level.tsx b/stories/goal/13_confidence_level.tsx index 5276a81f38..e856648131 100644 --- a/stories/goal/13_confidence_level.tsx +++ b/stories/goal/13_confidence_level.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/14_one_third.tsx b/stories/goal/14_one_third.tsx index 3e95b9ba60..013a3555e6 100644 --- a/stories/goal/14_one_third.tsx +++ b/stories/goal/14_one_third.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/15_half_circle.tsx b/stories/goal/15_half_circle.tsx index 35fb2f8332..c5560aafa3 100644 --- a/stories/goal/15_half_circle.tsx +++ b/stories/goal/15_half_circle.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/16_two_thirds.tsx b/stories/goal/16_two_thirds.tsx index 9014280396..339083f577 100644 --- a/stories/goal/16_two_thirds.tsx +++ b/stories/goal/16_two_thirds.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/17_three_quarters.tsx b/stories/goal/17_three_quarters.tsx index 19ca49fcc3..e449a889ec 100644 --- a/stories/goal/17_three_quarters.tsx +++ b/stories/goal/17_three_quarters.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/17_total_circle.tsx b/stories/goal/17_total_circle.tsx index 3ed899a608..8a97bc1125 100644 --- a/stories/goal/17_total_circle.tsx +++ b/stories/goal/17_total_circle.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/17_very_small_gap.tsx b/stories/goal/17_very_small_gap.tsx index 39d8cd01df..d1c56c0246 100644 --- a/stories/goal/17_very_small_gap.tsx +++ b/stories/goal/17_very_small_gap.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/18_side_gauge.tsx b/stories/goal/18_side_gauge.tsx index 713799659f..4ce538963b 100644 --- a/stories/goal/18_side_gauge.tsx +++ b/stories/goal/18_side_gauge.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/19_horizontal_negative.tsx b/stories/goal/19_horizontal_negative.tsx index 2ae036143d..f3d4caf3c4 100644 --- a/stories/goal/19_horizontal_negative.tsx +++ b/stories/goal/19_horizontal_negative.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/20_vertical_negative.tsx b/stories/goal/20_vertical_negative.tsx index 3038925f90..c9e648cf51 100644 --- a/stories/goal/20_vertical_negative.tsx +++ b/stories/goal/20_vertical_negative.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/21_goal_negative.tsx b/stories/goal/21_goal_negative.tsx index 97348a8366..419ed5e246 100644 --- a/stories/goal/21_goal_negative.tsx +++ b/stories/goal/21_goal_negative.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/22_horizontal_plusminus.tsx b/stories/goal/22_horizontal_plusminus.tsx index 4d3bf82929..02209bffeb 100644 --- a/stories/goal/22_horizontal_plusminus.tsx +++ b/stories/goal/22_horizontal_plusminus.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/23_vertical_plusminus.tsx b/stories/goal/23_vertical_plusminus.tsx index 5cd1f0f5ec..338b5b4857 100644 --- a/stories/goal/23_vertical_plusminus.tsx +++ b/stories/goal/23_vertical_plusminus.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/24_goal_plusminus.tsx b/stories/goal/24_goal_plusminus.tsx index ad2245110e..429d079f45 100644 --- a/stories/goal/24_goal_plusminus.tsx +++ b/stories/goal/24_goal_plusminus.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/2_gauge_with_target.tsx b/stories/goal/2_gauge_with_target.tsx index 891490ef5a..628a99881b 100644 --- a/stories/goal/2_gauge_with_target.tsx +++ b/stories/goal/2_gauge_with_target.tsx @@ -20,10 +20,10 @@ import { number, color, array } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Goal } from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/3_horizontal_bullet.tsx b/stories/goal/3_horizontal_bullet.tsx index 76df8a4c57..82558a22f7 100644 --- a/stories/goal/3_horizontal_bullet.tsx +++ b/stories/goal/3_horizontal_bullet.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/4_vertical_bullet.tsx b/stories/goal/4_vertical_bullet.tsx index 3ccf150e70..bada0ce6f7 100644 --- a/stories/goal/4_vertical_bullet.tsx +++ b/stories/goal/4_vertical_bullet.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/5_minimal.tsx b/stories/goal/5_minimal.tsx index e63f1061f6..f75cf8523c 100644 --- a/stories/goal/5_minimal.tsx +++ b/stories/goal/5_minimal.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/6_minimal_horizontal.tsx b/stories/goal/6_minimal_horizontal.tsx index 706d2d940a..d5fdf2d12e 100644 --- a/stories/goal/6_minimal_horizontal.tsx +++ b/stories/goal/6_minimal_horizontal.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/7_horizontal_bar.tsx b/stories/goal/7_horizontal_bar.tsx index 68781ecb25..2b56b18e93 100644 --- a/stories/goal/7_horizontal_bar.tsx +++ b/stories/goal/7_horizontal_bar.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const q1 = 255 - 255 * 0.4; const q2 = 255 - 255 * 0.25; diff --git a/stories/goal/8_irregular_ticks.tsx b/stories/goal/8_irregular_ticks.tsx index dce9be8758..e837c715d2 100644 --- a/stories/goal/8_irregular_ticks.tsx +++ b/stories/goal/8_irregular_ticks.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/goal/9_minimal_band.tsx b/stories/goal/9_minimal_band.tsx index 5c8058b94a..bbcef0bc54 100644 --- a/stories/goal/9_minimal_band.tsx +++ b/stories/goal/9_minimal_band.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Goal } from '../../src'; -import { config } from '../../src/chart_types/goal_chart/layout/config/config'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { Color } from '../../src/utils/common'; +import { Chart, Goal } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/goal_chart/layout/config/config'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { Color } from '../../packages/charts/src/utils/common'; const subtype = GoalSubtype.Goal; diff --git a/stories/grids/1_basic.tsx b/stories/grids/1_basic.tsx index 9e8268ef01..f002d9e2db 100644 --- a/stories/grids/1_basic.tsx +++ b/stories/grids/1_basic.tsx @@ -20,7 +20,16 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, GridLineStyle, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { + Axis, + BarSeries, + Chart, + GridLineStyle, + LineSeries, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; function generateGridLineStyle(group: string, gridColor = 'purple'): GridLineStyle { const groupId = `${group} axis`; diff --git a/stories/grids/2_multiple_axes.tsx b/stories/grids/2_multiple_axes.tsx index 2225394866..432684127f 100644 --- a/stories/grids/2_multiple_axes.tsx +++ b/stories/grids/2_multiple_axes.tsx @@ -20,7 +20,16 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, GridLineStyle, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { + Axis, + BarSeries, + Chart, + GridLineStyle, + LineSeries, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; function generateGridLineStyle(group: string, gridColor = 'purple'): GridLineStyle { const groupId = `${group} axis`; diff --git a/stories/grids/3_lines.tsx b/stories/grids/3_lines.tsx index fc0974bdb4..710928127e 100644 --- a/stories/grids/3_lines.tsx +++ b/stories/grids/3_lines.tsx @@ -32,8 +32,8 @@ import { PartialTheme, StrokeStyle, StrokeDashArray, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { getTooltipTypeKnob } from '../utils/knobs'; const dg = new SeededDataGenerator(); diff --git a/stories/heatmap/1_basic.tsx b/stories/heatmap/1_basic.tsx index 21014dd171..46fec90f3d 100644 --- a/stories/heatmap/1_basic.tsx +++ b/stories/heatmap/1_basic.tsx @@ -31,9 +31,9 @@ import { RecursivePartial, ScaleType, Settings, -} from '../../src'; -import { Config } from '../../src/chart_types/heatmap/layout/types/config_types'; -import { SWIM_LANE_DATA } from '../../src/utils/data_samples/test_anomaly_swim_lane'; +} from '../../packages/charts/src'; +import { Config } from '../../packages/charts/src/chart_types/heatmap/layout/types/config_types'; +import { SWIM_LANE_DATA } from '../../packages/charts/src/utils/data_samples/test_anomaly_swim_lane'; export const Example = () => { const [selection, setSelection] = useState<{ x: (string | number)[]; y: (string | number)[] } | undefined>(); diff --git a/stories/heatmap/2_categorical.tsx b/stories/heatmap/2_categorical.tsx index 4a080fd52f..e251aeaa8f 100644 --- a/stories/heatmap/2_categorical.tsx +++ b/stories/heatmap/2_categorical.tsx @@ -21,8 +21,8 @@ import { action } from '@storybook/addon-actions'; import { extent } from 'd3-array'; import React from 'react'; -import { Chart, Heatmap, ScaleType, Settings } from '../../src'; -import { BABYNAME_DATA } from '../../src/utils/data_samples/babynames'; +import { Chart, Heatmap, ScaleType, Settings } from '../../packages/charts/src'; +import { BABYNAME_DATA } from '../../packages/charts/src/utils/data_samples/babynames'; export const Example = () => { const data = BABYNAME_DATA.filter(([year]) => year > 1950); diff --git a/stories/icicle/01_unix_icicle.tsx b/stories/icicle/01_unix_icicle.tsx index d4bbecdf3b..61f8fc22c9 100644 --- a/stories/icicle/01_unix_icicle.tsx +++ b/stories/icicle/01_unix_icicle.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { config, getFlatData, getLayerSpec, maxDepth } from '../utils/hierarchical_input_utils'; import { viridis18 as palette } from '../utils/utils'; diff --git a/stories/icicle/02_unix_flame.tsx b/stories/icicle/02_unix_flame.tsx index 3e60cb7eaf..d8bf01f59b 100644 --- a/stories/icicle/02_unix_flame.tsx +++ b/stories/icicle/02_unix_flame.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Chart, Datum, LegendStrategy, Partition, PartitionLayout, Settings } from '../../src'; +import { Chart, Datum, LegendStrategy, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { config, getFlatData, getLayerSpec, maxDepth } from '../utils/hierarchical_input_utils'; import { plasma18 as palette } from '../utils/utils'; diff --git a/stories/icicle/03_cpu_profile_flame.tsx b/stories/icicle/03_cpu_profile_flame.tsx index 10553c21f9..2826acb79a 100644 --- a/stories/icicle/03_cpu_profile_flame.tsx +++ b/stories/icicle/03_cpu_profile_flame.tsx @@ -20,8 +20,8 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, PrimitiveValue, Settings } from '../../src'; -import data from '../../src/mocks/hierarchical/cpu_profile_tree_mock.json'; +import { Chart, Datum, Partition, PartitionLayout, PrimitiveValue, Settings } from '../../packages/charts/src'; +import data from '../../packages/charts/src/mocks/hierarchical/cpu_profile_tree_mock.json'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { config } from '../utils/hierarchical_input_utils'; import { discreteColor, viridis18 as palette } from '../utils/utils'; diff --git a/stories/interactions/10_brush_selection_bar.tsx b/stories/interactions/10_brush_selection_bar.tsx index ca309b727b..12809c3c9a 100644 --- a/stories/interactions/10_brush_selection_bar.tsx +++ b/stories/interactions/10_brush_selection_bar.tsx @@ -20,8 +20,8 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { isVerticalRotation } from '../../src/chart_types/xy_chart/state/utils/common'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { isVerticalRotation } from '../../packages/charts/src/chart_types/xy_chart/state/utils/common'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/interactions/10a_brush_selection_bar_hist.tsx b/stories/interactions/10a_brush_selection_bar_hist.tsx index d62858e590..d630cf62ac 100644 --- a/stories/interactions/10a_brush_selection_bar_hist.tsx +++ b/stories/interactions/10a_brush_selection_bar_hist.tsx @@ -21,7 +21,7 @@ import { action } from '@storybook/addon-actions'; import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => ( diff --git a/stories/interactions/11_brush_time.tsx b/stories/interactions/11_brush_time.tsx index 3846368989..c615e04094 100644 --- a/stories/interactions/11_brush_time.tsx +++ b/stories/interactions/11_brush_time.tsx @@ -33,7 +33,7 @@ import { Position, ScaleType, Settings, -} from '../../src'; +} from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/interactions/12_brush_time_hist.tsx b/stories/interactions/12_brush_time_hist.tsx index 6e06f3b4fb..5a207b505d 100644 --- a/stories/interactions/12_brush_time_hist.tsx +++ b/stories/interactions/12_brush_time_hist.tsx @@ -31,8 +31,8 @@ import { Settings, HistogramBarSeries, BrushEndListener, -} from '../../src'; -import { isVerticalRotation } from '../../src/chart_types/xy_chart/state/utils/common'; +} from '../../packages/charts/src'; +import { isVerticalRotation } from '../../packages/charts/src/chart_types/xy_chart/state/utils/common'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/interactions/13_brush_disabled_ordinal.tsx b/stories/interactions/13_brush_disabled_ordinal.tsx index f4bef609c3..b0181409e4 100644 --- a/stories/interactions/13_brush_disabled_ordinal.tsx +++ b/stories/interactions/13_brush_disabled_ordinal.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => ( diff --git a/stories/interactions/14_crosshair_time.tsx b/stories/interactions/14_crosshair_time.tsx index 6665df15e7..104fff4541 100644 --- a/stories/interactions/14_crosshair_time.tsx +++ b/stories/interactions/14_crosshair_time.tsx @@ -33,8 +33,8 @@ import { Settings, timeFormatter, TooltipType, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { switchTheme } from '../../storybook/theme_service'; import { getChartRotationKnob } from '../utils/knobs'; import { SB_KNOBS_PANEL } from '../utils/storybook'; diff --git a/stories/interactions/15_render_change.tsx b/stories/interactions/15_render_change.tsx index 010e4b4772..fcd205a924 100644 --- a/stories/interactions/15_render_change.tsx +++ b/stories/interactions/15_render_change.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; const onRenderChange = action('onRenderChange'); diff --git a/stories/interactions/16_cursor_update_action.tsx b/stories/interactions/16_cursor_update_action.tsx index 09493cc873..2ce92a9eaa 100644 --- a/stories/interactions/16_cursor_update_action.tsx +++ b/stories/interactions/16_cursor_update_action.tsx @@ -34,9 +34,9 @@ import { TooltipType, LineSeries, AreaSeries, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; -import { palettes } from '../../src/utils/themes/colors'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; +import { palettes } from '../../packages/charts/src/utils/themes/colors'; import { getTooltipTypeKnob, getPlacementKnob } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/interactions/17_png_export.tsx b/stories/interactions/17_png_export.tsx index ec4cf4488c..c720cb3cfb 100644 --- a/stories/interactions/17_png_export.tsx +++ b/stories/interactions/17_png_export.tsx @@ -32,13 +32,13 @@ import { Datum, Goal, ChartType, -} from '../../src'; -import { BandFillColorAccessorInput } from '../../src/chart_types/goal_chart/specs'; -import { GoalSubtype } from '../../src/chart_types/goal_chart/specs/constants'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; -import { Color } from '../../src/utils/common'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { BandFillColorAccessorInput } from '../../packages/charts/src/chart_types/goal_chart/specs'; +import { GoalSubtype } from '../../packages/charts/src/chart_types/goal_chart/specs/constants'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { Color } from '../../packages/charts/src/utils/common'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_KNOBS_PANEL } from '../utils/storybook'; import { productLookup, indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; diff --git a/stories/interactions/1_bar_clicks.tsx b/stories/interactions/1_bar_clicks.tsx index f06e100fb4..b048d504ae 100644 --- a/stories/interactions/1_bar_clicks.tsx +++ b/stories/interactions/1_bar_clicks.tsx @@ -21,7 +21,16 @@ import { action } from '@storybook/addon-actions'; import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, TooltipValue, TooltipValueFormatter } from '../../src'; +import { + Axis, + BarSeries, + Chart, + Position, + ScaleType, + Settings, + TooltipValue, + TooltipValueFormatter, +} from '../../packages/charts/src'; const onElementListeners = { onElementClick: action('onElementClick'), diff --git a/stories/interactions/2_area_point_clicks.tsx b/stories/interactions/2_area_point_clicks.tsx index 778cf55643..d934a8a1a5 100644 --- a/stories/interactions/2_area_point_clicks.tsx +++ b/stories/interactions/2_area_point_clicks.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; const onElementListeners = { onElementClick: action('onElementClick'), diff --git a/stories/interactions/3_line_point_clicks.tsx b/stories/interactions/3_line_point_clicks.tsx index 4787ebd0de..45b219ec24 100644 --- a/stories/interactions/3_line_point_clicks.tsx +++ b/stories/interactions/3_line_point_clicks.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; const onElementListeners = { onElementClick: action('onElementClick'), diff --git a/stories/interactions/4_line_area_bar_clicks.tsx b/stories/interactions/4_line_area_bar_clicks.tsx index b43ee0758a..d76bb7585d 100644 --- a/stories/interactions/4_line_area_bar_clicks.tsx +++ b/stories/interactions/4_line_area_bar_clicks.tsx @@ -20,7 +20,16 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { AreaSeries, Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { + AreaSeries, + Axis, + BarSeries, + Chart, + LineSeries, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; const onElementListeners = { onElementClick: action('onElementClick'), diff --git a/stories/interactions/4_sunburst_slice_clicks.tsx b/stories/interactions/4_sunburst_slice_clicks.tsx index 2e05f5418d..6fe6a2bef7 100644 --- a/stories/interactions/4_sunburst_slice_clicks.tsx +++ b/stories/interactions/4_sunburst_slice_clicks.tsx @@ -21,7 +21,7 @@ import { action } from '@storybook/addon-actions'; import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Position, Settings, Partition, PartitionLayout } from '../../src'; +import { Chart, Position, Settings, Partition, PartitionLayout } from '../../packages/charts/src'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, diff --git a/stories/interactions/5_clicks_legend_items_bar.tsx b/stories/interactions/5_clicks_legend_items_bar.tsx index e18e6e77d0..573fad4d15 100644 --- a/stories/interactions/5_clicks_legend_items_bar.tsx +++ b/stories/interactions/5_clicks_legend_items_bar.tsx @@ -21,8 +21,8 @@ import { action } from '@storybook/addon-actions'; import { array, boolean, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { BARCHART_2Y2G } from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { BARCHART_2Y2G } from '../../packages/charts/src/utils/data_samples/test_dataset'; const onLegendItemListeners = { onLegendItemOver: action('onLegendItemOver'), diff --git a/stories/interactions/6_clicks_legend_items_area.tsx b/stories/interactions/6_clicks_legend_items_area.tsx index f34ed51ae8..f42a1486a7 100644 --- a/stories/interactions/6_clicks_legend_items_area.tsx +++ b/stories/interactions/6_clicks_legend_items_area.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/interactions/7_clicks_legend_items_line.tsx b/stories/interactions/7_clicks_legend_items_line.tsx index a67750341c..767c8bd342 100644 --- a/stories/interactions/7_clicks_legend_items_line.tsx +++ b/stories/interactions/7_clicks_legend_items_line.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, Chart, CurveType, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, CurveType, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/interactions/8_clicks_legend_items_mixed.tsx b/stories/interactions/8_clicks_legend_items_mixed.tsx index d2850f6495..88001d3f86 100644 --- a/stories/interactions/8_clicks_legend_items_mixed.tsx +++ b/stories/interactions/8_clicks_legend_items_mixed.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/interactions/9_brush_selection_linear.tsx b/stories/interactions/9_brush_selection_linear.tsx index 96dd49aa19..aece4f4bdb 100644 --- a/stories/interactions/9_brush_selection_linear.tsx +++ b/stories/interactions/9_brush_selection_linear.tsx @@ -20,7 +20,7 @@ import { action } from '@storybook/addon-actions'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => ( diff --git a/stories/interactions/9a_brush_selection_linear.tsx b/stories/interactions/9a_brush_selection_linear.tsx index dbbe87b669..f89713db85 100644 --- a/stories/interactions/9a_brush_selection_linear.tsx +++ b/stories/interactions/9a_brush_selection_linear.tsx @@ -21,7 +21,7 @@ import { action } from '@storybook/addon-actions'; import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, BrushAxis } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, BrushAxis } from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; export const Example = () => { diff --git a/stories/legend/10_sunburst.tsx b/stories/legend/10_sunburst.tsx index 276c46b6f2..602246bd00 100644 --- a/stories/legend/10_sunburst.tsx +++ b/stories/legend/10_sunburst.tsx @@ -20,10 +20,18 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, LegendStrategy, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { + Chart, + Datum, + LegendStrategy, + MODEL_KEY, + Partition, + PartitionLayout, + Settings, +} from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { discreteColor, diff --git a/stories/legend/10_sunburst_repeated_label.tsx b/stories/legend/10_sunburst_repeated_label.tsx index 159c1186a4..bebd1c5cdc 100644 --- a/stories/legend/10_sunburst_repeated_label.tsx +++ b/stories/legend/10_sunburst_repeated_label.tsx @@ -20,7 +20,7 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, LegendStrategy, Partition, Settings } from '../../src'; +import { Chart, LegendStrategy, Partition, Settings } from '../../packages/charts/src'; import { STORYBOOK_LIGHT_THEME } from '../shared'; export const Example = () => { diff --git a/stories/legend/11_legend_actions.tsx b/stories/legend/11_legend_actions.tsx index 43d0214589..3d3c83d56a 100644 --- a/stories/legend/11_legend_actions.tsx +++ b/stories/legend/11_legend_actions.tsx @@ -41,8 +41,8 @@ import { LegendAction, XYChartSeriesIdentifier, LegendColorPicker, -} from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { getPositionKnob, getEuiPopoverPositionKnob } from '../utils/knobs'; const getAction = (anchorPosition: PopoverAnchorPosition): LegendAction => ({ series, label }) => { diff --git a/stories/legend/12_legend_margins.tsx b/stories/legend/12_legend_margins.tsx index a0712cdb99..610a947b20 100644 --- a/stories/legend/12_legend_margins.tsx +++ b/stories/legend/12_legend_margins.tsx @@ -20,8 +20,8 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import { BARCHART_1Y1G } from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { BARCHART_1Y1G } from '../../packages/charts/src/utils/data_samples/test_dataset'; export const Example = () => ( diff --git a/stories/legend/13_inside_chart.tsx b/stories/legend/13_inside_chart.tsx index 12808b7635..5e96c98b99 100644 --- a/stories/legend/13_inside_chart.tsx +++ b/stories/legend/13_inside_chart.tsx @@ -33,9 +33,9 @@ import { VerticalAlignment, HorizontalAlignment, LayoutDirection, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { switchTheme } from '../../storybook/theme_service'; import { SB_KNOBS_PANEL } from '../utils/storybook'; diff --git a/stories/legend/1_legend_right.tsx b/stories/legend/1_legend_right.tsx index 829b17d2a7..c97a8695a2 100644 --- a/stories/legend/1_legend_right.tsx +++ b/stories/legend/1_legend_right.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/legend/2_legend_bottom.tsx b/stories/legend/2_legend_bottom.tsx index fe627b1305..d03f13a98b 100644 --- a/stories/legend/2_legend_bottom.tsx +++ b/stories/legend/2_legend_bottom.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/legend/3_legend_left.tsx b/stories/legend/3_legend_left.tsx index 0e50a979ca..25221c1e0e 100644 --- a/stories/legend/3_legend_left.tsx +++ b/stories/legend/3_legend_left.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/legend/4_legend_top.tsx b/stories/legend/4_legend_top.tsx index fecfef6335..29317dcb1a 100644 --- a/stories/legend/4_legend_top.tsx +++ b/stories/legend/4_legend_top.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/legend/5_changing_specs.tsx b/stories/legend/5_changing_specs.tsx index 370a5edd81..fb89565f1c 100644 --- a/stories/legend/5_changing_specs.tsx +++ b/stories/legend/5_changing_specs.tsx @@ -20,8 +20,8 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; export const Example = () => { const splitSeries = boolean('split series', true) ? ['g1', 'g2'] : undefined; diff --git a/stories/legend/6_hide_legend.tsx b/stories/legend/6_hide_legend.tsx index 1c95e5af88..b9dc9aeb1b 100644 --- a/stories/legend/6_hide_legend.tsx +++ b/stories/legend/6_hide_legend.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => { const hideBarSeriesInLegend = boolean('hide bar series in legend', false); diff --git a/stories/legend/7_display_values.tsx b/stories/legend/7_display_values.tsx index 295b0036c9..2f6ab4ebf0 100644 --- a/stories/legend/7_display_values.tsx +++ b/stories/legend/7_display_values.tsx @@ -20,8 +20,8 @@ import { boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType, Settings } from '../../src'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; import { arrayKnobs } from '../utils/knobs'; export const Example = () => { diff --git a/stories/legend/8_spacing_buffer.tsx b/stories/legend/8_spacing_buffer.tsx index e56f3ea641..c721b4009d 100644 --- a/stories/legend/8_spacing_buffer.tsx +++ b/stories/legend/8_spacing_buffer.tsx @@ -20,7 +20,7 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../packages/charts/src'; export const Example = () => { const theme: PartialTheme = { diff --git a/stories/legend/9_color_picker.tsx b/stories/legend/9_color_picker.tsx index b13b90543a..807cafb2c7 100644 --- a/stories/legend/9_color_picker.tsx +++ b/stories/legend/9_color_picker.tsx @@ -32,8 +32,8 @@ import { Color, SeriesKey, toEntries, -} from '../../src'; -import { BARCHART_1Y1G } from '../../src/utils/data_samples/test_dataset'; +} from '../../packages/charts/src'; +import { BARCHART_1Y1G } from '../../packages/charts/src/utils/data_samples/test_dataset'; const onChangeAction = action('onChange'); const onCloseAction = action('onClose'); diff --git a/stories/line/10_test_path_ordering.tsx b/stories/line/10_test_path_ordering.tsx index 8c4addd960..6a31635e3b 100644 --- a/stories/line/10_test_path_ordering.tsx +++ b/stories/line/10_test_path_ordering.tsx @@ -21,7 +21,7 @@ import { boolean } from '@storybook/addon-knobs'; import { shuffle } from 'lodash'; import React from 'react'; -import { Axis, LineSeries, Chart, Position, ScaleType, Settings, Direction } from '../../src'; +import { Axis, LineSeries, Chart, Position, ScaleType, Settings, Direction } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; /** diff --git a/stories/line/11_discontinuous_data_points.tsx b/stories/line/11_discontinuous_data_points.tsx index 58ebab2020..0a24b6a780 100644 --- a/stories/line/11_discontinuous_data_points.tsx +++ b/stories/line/11_discontinuous_data_points.tsx @@ -20,7 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, CurveType, LineSeries, Position, ScaleType, Settings, Fit, AreaSeries } from '../../src'; +import { + Axis, + Chart, + CurveType, + LineSeries, + Position, + ScaleType, + Settings, + Fit, + AreaSeries, +} from '../../packages/charts/src'; export const Example = () => { const fitEnabled = boolean('enable fit function', false); diff --git a/stories/line/12_orphan_data_points.tsx b/stories/line/12_orphan_data_points.tsx index c725dfc6cc..886eca3e5c 100644 --- a/stories/line/12_orphan_data_points.tsx +++ b/stories/line/12_orphan_data_points.tsx @@ -20,7 +20,17 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, CurveType, LineSeries, Position, ScaleType, Settings, Fit, AreaSeries } from '../../src'; +import { + Axis, + Chart, + CurveType, + LineSeries, + Position, + ScaleType, + Settings, + Fit, + AreaSeries, +} from '../../packages/charts/src'; export const Example = () => { const fitEnabled = boolean('enable fit function', false); diff --git a/stories/line/13_line_mark_accessor.tsx b/stories/line/13_line_mark_accessor.tsx index fdeb40c0b5..af88d594bb 100644 --- a/stories/line/13_line_mark_accessor.tsx +++ b/stories/line/13_line_mark_accessor.tsx @@ -20,8 +20,8 @@ import { number, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, Position, ScaleType, Settings, LineSeries } from '../../src'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; +import { Axis, Chart, Position, ScaleType, Settings, LineSeries } from '../../packages/charts/src'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; const rng = getRandomNumberGenerator(); const bubbleData = new Array(30).fill(0).map((_, i) => ({ diff --git a/stories/line/14_point_shapes.tsx b/stories/line/14_point_shapes.tsx index 1cfb60e911..ef63ceb2d9 100644 --- a/stories/line/14_point_shapes.tsx +++ b/stories/line/14_point_shapes.tsx @@ -30,8 +30,8 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); const data = KIBANA_METRICS.metrics.kibana_os_load[0].data.slice(0, 20); diff --git a/stories/line/1_basic.tsx b/stories/line/1_basic.tsx index 4aece75959..4ed3e3a824 100644 --- a/stories/line/1_basic.tsx +++ b/stories/line/1_basic.tsx @@ -20,8 +20,8 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, LineSeries, ScaleType } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { Chart, LineSeries, ScaleType } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const toggleSpec = boolean('toggle line spec', true); diff --git a/stories/line/2_w_axis.tsx b/stories/line/2_w_axis.tsx index 36c4c67cac..28d89b36be 100644 --- a/stories/line/2_w_axis.tsx +++ b/stories/line/2_w_axis.tsx @@ -19,8 +19,17 @@ import React from 'react'; -import { Axis, Chart, LineSeries, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + Chart, + LineSeries, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/3_ordinal.tsx b/stories/line/3_ordinal.tsx index 467bd3dd25..0019b3a73d 100644 --- a/stories/line/3_ordinal.tsx +++ b/stories/line/3_ordinal.tsx @@ -19,8 +19,17 @@ import React from 'react'; -import { Axis, Chart, LineSeries, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + Chart, + LineSeries, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; import { getChartRotationKnob } from '../utils/knobs'; import { SB_KNOBS_PANEL } from '../utils/storybook'; diff --git a/stories/line/4_linear.tsx b/stories/line/4_linear.tsx index e8a17e7902..2c000e79cd 100644 --- a/stories/line/4_linear.tsx +++ b/stories/line/4_linear.tsx @@ -19,8 +19,16 @@ import React from 'react'; -import { Axis, Chart, LineSeries, niceTimeFormatByDay, Position, ScaleType, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + Chart, + LineSeries, + niceTimeFormatByDay, + Position, + ScaleType, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/5_w_axis_and_legend.tsx b/stories/line/5_w_axis_and_legend.tsx index de67ed29cd..d0d8533493 100644 --- a/stories/line/5_w_axis_and_legend.tsx +++ b/stories/line/5_w_axis_and_legend.tsx @@ -19,8 +19,17 @@ import React from 'react'; -import { Axis, Chart, LineSeries, niceTimeFormatByDay, Position, ScaleType, Settings, timeFormatter } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { + Axis, + Chart, + LineSeries, + niceTimeFormatByDay, + Position, + ScaleType, + Settings, + timeFormatter, +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/6_curved.tsx b/stories/line/6_curved.tsx index f77dd5b2da..69fe4dc19e 100644 --- a/stories/line/6_curved.tsx +++ b/stories/line/6_curved.tsx @@ -29,8 +29,8 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/7_multiple.tsx b/stories/line/7_multiple.tsx index db7b60c7db..9ba61ed40b 100644 --- a/stories/line/7_multiple.tsx +++ b/stories/line/7_multiple.tsx @@ -29,8 +29,8 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/8_stacked.tsx b/stories/line/8_stacked.tsx index a5a4bd24c5..26ed12073c 100644 --- a/stories/line/8_stacked.tsx +++ b/stories/line/8_stacked.tsx @@ -29,8 +29,8 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/line/9_multi_series.tsx b/stories/line/9_multi_series.tsx index a7e487f5eb..e9ba58f555 100644 --- a/stories/line/9_multi_series.tsx +++ b/stories/line/9_multi_series.tsx @@ -29,9 +29,9 @@ import { ScaleType, Settings, timeFormatter, -} from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; -import { TSVB_DATASET } from '../../src/utils/data_samples/test_dataset_tsvb'; +} from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; +import { TSVB_DATASET } from '../../packages/charts/src/utils/data_samples/test_dataset_tsvb'; const dateFormatter = timeFormatter(niceTimeFormatByDay(1)); diff --git a/stories/mixed/1_bars_and_lines.tsx b/stories/mixed/1_bars_and_lines.tsx index 246384ab6a..7dad425845 100644 --- a/stories/mixed/1_bars_and_lines.tsx +++ b/stories/mixed/1_bars_and_lines.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/mixed/2_lines_and_areas.tsx b/stories/mixed/2_lines_and_areas.tsx index 5ce773c6ad..fa70d5a1c7 100644 --- a/stories/mixed/2_lines_and_areas.tsx +++ b/stories/mixed/2_lines_and_areas.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { AreaSeries, Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { AreaSeries, Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/mixed/3_areas_and_bars.tsx b/stories/mixed/3_areas_and_bars.tsx index c33e64b291..4d095db131 100644 --- a/stories/mixed/3_areas_and_bars.tsx +++ b/stories/mixed/3_areas_and_bars.tsx @@ -19,7 +19,16 @@ import React from 'react'; -import { AreaSeries, Axis, BarSeries, Chart, CurveType, Position, ScaleType, Settings } from '../../src'; +import { + AreaSeries, + Axis, + BarSeries, + Chart, + CurveType, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/mixed/4_test_bar.tsx b/stories/mixed/4_test_bar.tsx index 37de6ed9c2..ee505b1ea3 100644 --- a/stories/mixed/4_test_bar.tsx +++ b/stories/mixed/4_test_bar.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => { const data1 = [ diff --git a/stories/mixed/5_test_bar_time.tsx b/stories/mixed/5_test_bar_time.tsx index 4247ae0436..ddae4741ff 100644 --- a/stories/mixed/5_test_bar_time.tsx +++ b/stories/mixed/5_test_bar_time.tsx @@ -20,8 +20,8 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; -import { timeFormatter } from '../../src/utils/data/formatters'; +import { Axis, BarSeries, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { timeFormatter } from '../../packages/charts/src/utils/data/formatters'; export const Example = () => { const start = DateTime.fromISO('2019-01-01T00:00:00.000', { zone: 'utc' }); diff --git a/stories/mixed/6_fitting.tsx b/stories/mixed/6_fitting.tsx index 6a8ab91320..98f21a06f8 100644 --- a/stories/mixed/6_fitting.tsx +++ b/stories/mixed/6_fitting.tsx @@ -31,7 +31,7 @@ import { Settings, Fit, SeriesType, -} from '../../src'; +} from '../../packages/charts/src'; import { SB_KNOBS_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/mixed/6_fitting_stacked.tsx b/stories/mixed/6_fitting_stacked.tsx index 123082ddc8..aa545119e5 100644 --- a/stories/mixed/6_fitting_stacked.tsx +++ b/stories/mixed/6_fitting_stacked.tsx @@ -21,8 +21,18 @@ import { select, number, boolean } from '@storybook/addon-knobs'; import numeral from 'numeral'; import React from 'react'; -import { AreaSeries, Axis, Chart, CurveType, Position, ScaleType, Settings, Fit, StackMode } from '../../src'; -import { getRandomNumberGenerator, getRNGSeed } from '../../src/mocks/utils'; +import { + AreaSeries, + Axis, + Chart, + CurveType, + Position, + ScaleType, + Settings, + Fit, + StackMode, +} from '../../packages/charts/src'; +import { getRandomNumberGenerator, getRNGSeed } from '../../packages/charts/src/mocks/utils'; import { SB_KNOBS_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/mixed/7_marks.tsx b/stories/mixed/7_marks.tsx index f6e9c9be28..4a248e965d 100644 --- a/stories/mixed/7_marks.tsx +++ b/stories/mixed/7_marks.tsx @@ -22,8 +22,8 @@ import { number, boolean, text } from '@storybook/addon-knobs'; import numeral from 'numeral'; import React from 'react'; -import { AreaSeries, Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; +import { AreaSeries, Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; const getRandomNumber = getRandomNumberGenerator(); const data1 = new Array(100).fill(0).map((_, x) => ({ diff --git a/stories/mosaic/10_mosaic_simple.tsx b/stories/mosaic/10_mosaic_simple.tsx index af3289c283..6f3233e5c8 100644 --- a/stories/mosaic/10_mosaic_simple.tsx +++ b/stories/mosaic/10_mosaic_simple.tsx @@ -29,10 +29,10 @@ import { PartitionLayout, Settings, ShapeTreeNode, -} from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; -import { keepDistinct } from '../../src/utils/common'; +} from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { keepDistinct } from '../../packages/charts/src/utils/common'; import { countryLookup, colorBrewerCategoricalPastel12B, regionLookup } from '../utils/utils'; const productLookup: Record = { diff --git a/stories/mosaic/20_mosaic_with_other.tsx b/stories/mosaic/20_mosaic_with_other.tsx index a6d099c35d..0f33303517 100644 --- a/stories/mosaic/20_mosaic_with_other.tsx +++ b/stories/mosaic/20_mosaic_with_other.tsx @@ -28,8 +28,8 @@ import { Partition, PartitionLayout, ShapeTreeNode, -} from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +} from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { countryLookup } from '../utils/utils'; const categoricalColors = ['rgb(110,110,110)', 'rgb(123,123,123)', 'darkgrey', 'lightgrey']; diff --git a/stories/rotations/1_ordinal.tsx b/stories/rotations/1_ordinal.tsx index 67e6f8b218..b4504fed2f 100644 --- a/stories/rotations/1_ordinal.tsx +++ b/stories/rotations/1_ordinal.tsx @@ -20,7 +20,7 @@ import { boolean, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/rotations/2_negative_ordinal.tsx b/stories/rotations/2_negative_ordinal.tsx index bc1f6b571d..4f65c4ff3c 100644 --- a/stories/rotations/2_negative_ordinal.tsx +++ b/stories/rotations/2_negative_ordinal.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/3_rotations_ordinal.tsx b/stories/rotations/3_rotations_ordinal.tsx index 4bb93457f4..98dfd89b50 100644 --- a/stories/rotations/3_rotations_ordinal.tsx +++ b/stories/rotations/3_rotations_ordinal.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/4_90_ordinal.tsx b/stories/rotations/4_90_ordinal.tsx index 6634990b7b..d563b78d10 100644 --- a/stories/rotations/4_90_ordinal.tsx +++ b/stories/rotations/4_90_ordinal.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/5_180_ordinal.tsx b/stories/rotations/5_180_ordinal.tsx index 5d568c355d..0eb69588e3 100644 --- a/stories/rotations/5_180_ordinal.tsx +++ b/stories/rotations/5_180_ordinal.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/6_negative_linear.tsx b/stories/rotations/6_negative_linear.tsx index 630249b08f..5db36e97c5 100644 --- a/stories/rotations/6_negative_linear.tsx +++ b/stories/rotations/6_negative_linear.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/7_rotations_linear.tsx b/stories/rotations/7_rotations_linear.tsx index 1ab255cd68..a154370257 100644 --- a/stories/rotations/7_rotations_linear.tsx +++ b/stories/rotations/7_rotations_linear.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/8_90_deg_linear.tsx b/stories/rotations/8_90_deg_linear.tsx index a71da8eb39..a0bcab6b95 100644 --- a/stories/rotations/8_90_deg_linear.tsx +++ b/stories/rotations/8_90_deg_linear.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/rotations/9_180_deg_linear.tsx b/stories/rotations/9_180_deg_linear.tsx index 389f2084b6..adc910d17f 100644 --- a/stories/rotations/9_180_deg_linear.tsx +++ b/stories/rotations/9_180_deg_linear.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/scales/1_different_timezones.tsx b/stories/scales/1_different_timezones.tsx index 10e800838b..c381fa1b34 100644 --- a/stories/scales/1_different_timezones.tsx +++ b/stories/scales/1_different_timezones.tsx @@ -21,7 +21,7 @@ import { select } from '@storybook/addon-knobs'; import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType } from '../../packages/charts/src'; const today = Date.now(); const UTC_DATE = DateTime.fromISO('2019-01-01T00:00:00.000Z').toMillis(); diff --git a/stories/scales/2_local_tooltip.tsx b/stories/scales/2_local_tooltip.tsx index eea6ae971b..25b3950c38 100644 --- a/stories/scales/2_local_tooltip.tsx +++ b/stories/scales/2_local_tooltip.tsx @@ -20,7 +20,7 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const UTC_DATE = DateTime.fromISO('2019-01-01T00:00:00.000Z').toMillis(); diff --git a/stories/scales/3_utc_tooltip.tsx b/stories/scales/3_utc_tooltip.tsx index d9f9e1f5f7..9597ab6987 100644 --- a/stories/scales/3_utc_tooltip.tsx +++ b/stories/scales/3_utc_tooltip.tsx @@ -20,7 +20,7 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const UTC_DATE = DateTime.fromISO('2019-01-01T00:00:00.000Z').toMillis(); diff --git a/stories/scales/4_specified_timezone.tsx b/stories/scales/4_specified_timezone.tsx index 09ef2771b2..35391d412e 100644 --- a/stories/scales/4_specified_timezone.tsx +++ b/stories/scales/4_specified_timezone.tsx @@ -20,7 +20,7 @@ import { DateTime } from 'luxon'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/scales/5_remove_duplicates.tsx b/stories/scales/5_remove_duplicates.tsx index 16f030dbb9..f5d9df0673 100644 --- a/stories/scales/5_remove_duplicates.tsx +++ b/stories/scales/5_remove_duplicates.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => ( diff --git a/stories/scales/6_x_scale_fallback.tsx b/stories/scales/6_x_scale_fallback.tsx index a2e2ee8f92..48d35fce92 100644 --- a/stories/scales/6_x_scale_fallback.tsx +++ b/stories/scales/6_x_scale_fallback.tsx @@ -20,7 +20,7 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, BarSeries, Position, ScaleType, Settings } from '../../src'; +import { Axis, Chart, BarSeries, Position, ScaleType, Settings } from '../../packages/charts/src'; export const Example = () => { const includeString = boolean('include string is x data', true); diff --git a/stories/scales/7_log_scale_options.tsx b/stories/scales/7_log_scale_options.tsx index 902e4e85f2..416f131a62 100644 --- a/stories/scales/7_log_scale_options.tsx +++ b/stories/scales/7_log_scale_options.tsx @@ -21,8 +21,18 @@ import { boolean, number, select } from '@storybook/addon-knobs'; import { range } from 'lodash'; import React from 'react'; -import { Chart, Axis, LineSeries, Position, ScaleType, Settings, AreaSeries, CurveType, YDomainBase } from '../../src'; -import { LogBase, LogScaleOptions } from '../../src/scales/scale_continuous'; +import { + Chart, + Axis, + LineSeries, + Position, + ScaleType, + Settings, + AreaSeries, + CurveType, + YDomainBase, +} from '../../packages/charts/src'; +import { LogBase, LogScaleOptions } from '../../packages/charts/src/scales/scale_continuous'; import { logBaseMap, logFormatter } from '../utils/formatters'; import { getKnobsFromEnum } from '../utils/knobs'; import { SB_SOURCE_PANEL } from '../utils/storybook'; diff --git a/stories/shared.ts b/stories/shared.ts index 3319a694f5..549ad02f56 100644 --- a/stories/shared.ts +++ b/stories/shared.ts @@ -17,7 +17,7 @@ * under the License. */ -import { PartialTheme } from '../src'; +import { PartialTheme } from '../packages/charts/src'; export const STORYBOOK_DARK_THEME: PartialTheme = { background: { diff --git a/stories/small_multiples/1_grid.tsx b/stories/small_multiples/1_grid.tsx index 2d4e4a8651..8b7036028c 100644 --- a/stories/small_multiples/1_grid.tsx +++ b/stories/small_multiples/1_grid.tsx @@ -38,8 +38,8 @@ import { AnnotationDomainType, Rotation, RectAnnotation, -} from '../../src'; -import { getRandomNumberGenerator, SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { getRandomNumberGenerator, SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const getRandomNumber = getRandomNumberGenerator(); diff --git a/stories/small_multiples/2_vertical_areas.tsx b/stories/small_multiples/2_vertical_areas.tsx index 91d402176e..e2328ca3e3 100644 --- a/stories/small_multiples/2_vertical_areas.tsx +++ b/stories/small_multiples/2_vertical_areas.tsx @@ -35,8 +35,8 @@ import { niceTimeFormatByDay, timeFormatter, BrushAxis, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/small_multiples/3_grid_lines.tsx b/stories/small_multiples/3_grid_lines.tsx index 7e925841a8..e74b3ac5aa 100644 --- a/stories/small_multiples/3_grid_lines.tsx +++ b/stories/small_multiples/3_grid_lines.tsx @@ -35,9 +35,9 @@ import { niceTimeFormatByDay, timeFormatter, AxisSpec, -} from '../../src'; -import { isVerticalAxis } from '../../src/chart_types/xy_chart/utils/axis_type_utils'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { isVerticalAxis } from '../../packages/charts/src/chart_types/xy_chart/utils/axis_type_utils'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/small_multiples/4_horizontal_bars.tsx b/stories/small_multiples/4_horizontal_bars.tsx index d9995fdebe..9083676255 100644 --- a/stories/small_multiples/4_horizontal_bars.tsx +++ b/stories/small_multiples/4_horizontal_bars.tsx @@ -33,8 +33,8 @@ import { BarSeries, LineAnnotation, AnnotationDomainType, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/small_multiples/4_vertical_bars.tsx b/stories/small_multiples/4_vertical_bars.tsx index 14e54a9687..d20f913647 100644 --- a/stories/small_multiples/4_vertical_bars.tsx +++ b/stories/small_multiples/4_vertical_bars.tsx @@ -35,9 +35,9 @@ import { AnnotationDomainType, LIGHT_THEME, LineSeries, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; -import { ColorVariant } from '../../src/utils/common'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; +import { ColorVariant } from '../../packages/charts/src/utils/common'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/small_multiples/5_histogram_bars.tsx b/stories/small_multiples/5_histogram_bars.tsx index 7452e59181..572e599fb9 100644 --- a/stories/small_multiples/5_histogram_bars.tsx +++ b/stories/small_multiples/5_histogram_bars.tsx @@ -20,7 +20,16 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { ScaleType, Position, Chart, Axis, GroupBy, SmallMultiples, Settings, BarSeries } from '../../src'; +import { + ScaleType, + Position, + Chart, + Axis, + GroupBy, + SmallMultiples, + Settings, + BarSeries, +} from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const data = [ diff --git a/stories/small_multiples/6_heterogeneous_cartesians.tsx b/stories/small_multiples/6_heterogeneous_cartesians.tsx index 7ac3943115..b531aff891 100644 --- a/stories/small_multiples/6_heterogeneous_cartesians.tsx +++ b/stories/small_multiples/6_heterogeneous_cartesians.tsx @@ -36,8 +36,8 @@ import { LIGHT_THEME, LineSeries, AreaSeries, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/small_multiples/7_sunbursts.tsx b/stories/small_multiples/7_sunbursts.tsx index 0017b7ffec..a3d47ba840 100644 --- a/stories/small_multiples/7_sunbursts.tsx +++ b/stories/small_multiples/7_sunbursts.tsx @@ -31,10 +31,10 @@ import { Settings, ShapeTreeNode, SmallMultiples, -} from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; -import { keepDistinct } from '../../src/utils/common'; +} from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { keepDistinct } from '../../packages/charts/src/utils/common'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { colorBrewerCategoricalPastel12, countryLookup, productLookup, regionLookup } from '../utils/utils'; diff --git a/stories/streamgraph/1_basic.tsx b/stories/streamgraph/1_basic.tsx index afd545fb83..481489e15d 100644 --- a/stories/streamgraph/1_basic.tsx +++ b/stories/streamgraph/1_basic.tsx @@ -20,8 +20,8 @@ import { select } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Chart, ScaleType, StackMode, Axis, Position, CurveType } from '../../src'; -import { BABYNAME_DATA } from '../../src/utils/data_samples/babynames'; +import { AreaSeries, Chart, ScaleType, StackMode, Axis, Position, CurveType } from '../../packages/charts/src'; +import { BABYNAME_DATA } from '../../packages/charts/src/utils/data_samples/babynames'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/10_custom_bars.tsx b/stories/stylings/10_custom_bars.tsx index 035785e949..08a50b58d4 100644 --- a/stories/stylings/10_custom_bars.tsx +++ b/stories/stylings/10_custom_bars.tsx @@ -20,8 +20,8 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/11_custom_lines.tsx b/stories/stylings/11_custom_lines.tsx index a201a9ff2f..15822a6ce2 100644 --- a/stories/stylings/11_custom_lines.tsx +++ b/stories/stylings/11_custom_lines.tsx @@ -20,7 +20,7 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, Chart, LineSeries, Position, ScaleType, Settings, LineSeriesStyle } from '../../src'; +import { Axis, Chart, LineSeries, Position, ScaleType, Settings, LineSeriesStyle } from '../../packages/charts/src'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/12_custom_area.tsx b/stories/stylings/12_custom_area.tsx index 502f8ce5fa..211f0c0854 100644 --- a/stories/stylings/12_custom_area.tsx +++ b/stories/stylings/12_custom_area.tsx @@ -20,7 +20,7 @@ import { boolean, color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, LineSeriesStyle } from '../../src'; +import { AreaSeries, Axis, Chart, Position, ScaleType, Settings, LineSeriesStyle } from '../../packages/charts/src'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/13_custom_series_name.tsx b/stories/stylings/13_custom_series_name.tsx index 105bbabff2..9a46d5d3f2 100644 --- a/stories/stylings/13_custom_series_name.tsx +++ b/stories/stylings/13_custom_series_name.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, SeriesNameFn } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, SeriesNameFn } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/13_custom_series_name_config.tsx b/stories/stylings/13_custom_series_name_config.tsx index ce767dfcf0..c193bb1155 100644 --- a/stories/stylings/13_custom_series_name_config.tsx +++ b/stories/stylings/13_custom_series_name_config.tsx @@ -19,8 +19,16 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, SeriesNameConfigOptions } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { + Axis, + BarSeries, + Chart, + Position, + ScaleType, + Settings, + SeriesNameConfigOptions, +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/14_custom_series_name_formatting.tsx b/stories/stylings/14_custom_series_name_formatting.tsx index 6c9e8a49dc..d9204730b1 100644 --- a/stories/stylings/14_custom_series_name_formatting.tsx +++ b/stories/stylings/14_custom_series_name_formatting.tsx @@ -21,7 +21,7 @@ import { DateTime } from 'luxon'; import moment from 'moment'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, SeriesNameFn } from '../../src'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, SeriesNameFn } from '../../packages/charts/src'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/15_tick_label.tsx b/stories/stylings/15_tick_label.tsx index 9d6f5d4d00..664d6e63a4 100644 --- a/stories/stylings/15_tick_label.tsx +++ b/stories/stylings/15_tick_label.tsx @@ -30,7 +30,7 @@ import { Settings, RecursivePartial, AxisStyle, -} from '../../src'; +} from '../../packages/charts/src'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/16_style_accessor.tsx b/stories/stylings/16_style_accessor.tsx index d8fcecba06..47de9a2522 100644 --- a/stories/stylings/16_style_accessor.tsx +++ b/stories/stylings/16_style_accessor.tsx @@ -34,7 +34,7 @@ import { PointStyle, BarStyleAccessor, PointStyleAccessor, -} from '../../src'; +} from '../../packages/charts/src'; export const Example = () => { const hasThreshold = boolean('threshold', true); diff --git a/stories/stylings/17_bar_series_color_variant.tsx b/stories/stylings/17_bar_series_color_variant.tsx index 0b21836c06..8f0054aca7 100644 --- a/stories/stylings/17_bar_series_color_variant.tsx +++ b/stories/stylings/17_bar_series_color_variant.tsx @@ -20,9 +20,9 @@ import { select, color } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../src'; -import { ColorVariant } from '../../src/utils/common'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../packages/charts/src'; +import { ColorVariant } from '../../packages/charts/src/utils/common'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/18_line_series_color_variant.tsx b/stories/stylings/18_line_series_color_variant.tsx index cf068c2075..c0502647b8 100644 --- a/stories/stylings/18_line_series_color_variant.tsx +++ b/stories/stylings/18_line_series_color_variant.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Axis, LineSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../src'; -import { ColorVariant } from '../../src/utils/common'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, LineSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../packages/charts/src'; +import { ColorVariant } from '../../packages/charts/src/utils/common'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/19_area_series_color_variant.tsx b/stories/stylings/19_area_series_color_variant.tsx index 065ad92e43..6a98665618 100644 --- a/stories/stylings/19_area_series_color_variant.tsx +++ b/stories/stylings/19_area_series_color_variant.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Axis, AreaSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../src'; -import { ColorVariant } from '../../src/utils/common'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, AreaSeries, Chart, Position, ScaleType, Settings, PartialTheme } from '../../packages/charts/src'; +import { ColorVariant } from '../../packages/charts/src/utils/common'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/stylings/1_chart_size.tsx b/stories/stylings/1_chart_size.tsx index 82ae30c39a..80f6fe1be8 100644 --- a/stories/stylings/1_chart_size.tsx +++ b/stories/stylings/1_chart_size.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { BarSeries, Chart, ScaleType, Settings, RecursivePartial, Theme } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; -import { TooltipType } from '../../src/specs/constants'; +import { BarSeries, Chart, ScaleType, Settings, RecursivePartial, Theme } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; +import { TooltipType } from '../../packages/charts/src/specs/constants'; import { SB_SOURCE_PANEL } from '../utils/storybook'; const dg = new SeededDataGenerator(); diff --git a/stories/stylings/20_partition_background.tsx b/stories/stylings/20_partition_background.tsx index 92a87a09a9..ad83882aad 100644 --- a/stories/stylings/20_partition_background.tsx +++ b/stories/stylings/20_partition_background.tsx @@ -20,10 +20,10 @@ import { color, boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, PartialTheme, Settings, MODEL_KEY } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, PartialTheme, Settings, MODEL_KEY } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { discreteColor, colorBrewerCategoricalStark9, diff --git a/stories/stylings/21_partition_labels.tsx b/stories/stylings/21_partition_labels.tsx index c210e3bc64..6307d0c1a1 100644 --- a/stories/stylings/21_partition_labels.tsx +++ b/stories/stylings/21_partition_labels.tsx @@ -20,9 +20,9 @@ import { color } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => { diff --git a/stories/stylings/22_dark_theme.tsx b/stories/stylings/22_dark_theme.tsx index 58184922d7..bfe12d432f 100644 --- a/stories/stylings/22_dark_theme.tsx +++ b/stories/stylings/22_dark_theme.tsx @@ -33,8 +33,8 @@ import { LIGHT_THEME, DARK_THEME, TooltipType, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { switchTheme } from '../../storybook/theme_service'; const dg = new SeededDataGenerator(); diff --git a/stories/stylings/23_with_texture.tsx b/stories/stylings/23_with_texture.tsx index f0e5679403..0008d09a31 100644 --- a/stories/stylings/23_with_texture.tsx +++ b/stories/stylings/23_with_texture.tsx @@ -30,8 +30,8 @@ import { Settings, TextureShape, LIGHT_THEME, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; import { getKnobsFromEnum, getXYSeriesKnob } from '../utils/knobs'; import { SB_KNOBS_PANEL } from '../utils/storybook'; diff --git a/stories/stylings/24_texture_multiple_series.tsx b/stories/stylings/24_texture_multiple_series.tsx index b22e3fe75a..7e839eb0d0 100644 --- a/stories/stylings/24_texture_multiple_series.tsx +++ b/stories/stylings/24_texture_multiple_series.tsx @@ -20,8 +20,8 @@ import { boolean, color, number, button } from '@storybook/addon-knobs'; import React, { useState } from 'react'; -import { Axis, Chart, CurveType, Position, TexturedStyles, Settings, TextureShape } from '../../src'; -import { getRandomNumberGenerator, SeededDataGenerator, getRandomEntryFn } from '../../src/mocks/utils'; +import { Axis, Chart, CurveType, Position, TexturedStyles, Settings, TextureShape } from '../../packages/charts/src'; +import { getRandomNumberGenerator, SeededDataGenerator, getRandomEntryFn } from '../../packages/charts/src/mocks/utils'; import { getKnobsFromEnum, getXYSeriesKnob } from '../utils/knobs'; import { SB_KNOBS_PANEL } from '../utils/storybook'; diff --git a/stories/stylings/2_margins.tsx b/stories/stylings/2_margins.tsx index b2644ee457..9cd7f2f045 100644 --- a/stories/stylings/2_margins.tsx +++ b/stories/stylings/2_margins.tsx @@ -20,7 +20,7 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../packages/charts/src'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/3_axis.tsx b/stories/stylings/3_axis.tsx index 0ffc27e536..f94a22144d 100644 --- a/stories/stylings/3_axis.tsx +++ b/stories/stylings/3_axis.tsx @@ -20,7 +20,7 @@ import { boolean, color, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../src'; +import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../packages/charts/src'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/4_theme_styling.tsx b/stories/stylings/4_theme_styling.tsx index 2f41de45a6..06ceb6ecaf 100644 --- a/stories/stylings/4_theme_styling.tsx +++ b/stories/stylings/4_theme_styling.tsx @@ -34,9 +34,9 @@ import { Settings, LIGHT_THEME, DARK_THEME, -} from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; -import { palettes } from '../../src/utils/themes/colors'; +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; +import { palettes } from '../../packages/charts/src/utils/themes/colors'; import { switchTheme } from '../../storybook/theme_service'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { diff --git a/stories/stylings/5_partial_custom_theme.tsx b/stories/stylings/5_partial_custom_theme.tsx index fb52b390ec..52da563dcd 100644 --- a/stories/stylings/5_partial_custom_theme.tsx +++ b/stories/stylings/5_partial_custom_theme.tsx @@ -20,8 +20,8 @@ import { color } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; const dg = new SeededDataGenerator(); const data1 = dg.generateGroupedSeries(40, 4); diff --git a/stories/stylings/6_partial_and_base.tsx b/stories/stylings/6_partial_and_base.tsx index 473b434d65..f07af51094 100644 --- a/stories/stylings/6_partial_and_base.tsx +++ b/stories/stylings/6_partial_and_base.tsx @@ -20,8 +20,17 @@ import { color } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings, LIGHT_THEME } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { + Axis, + BarSeries, + Chart, + PartialTheme, + Position, + ScaleType, + Settings, + LIGHT_THEME, +} from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; const dg = new SeededDataGenerator(); const data1 = dg.generateGroupedSeries(40, 4); diff --git a/stories/stylings/7_multiple_custom.tsx b/stories/stylings/7_multiple_custom.tsx index c8c64cb828..36d9f42c0e 100644 --- a/stories/stylings/7_multiple_custom.tsx +++ b/stories/stylings/7_multiple_custom.tsx @@ -20,8 +20,8 @@ import { color, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../src'; -import { SeededDataGenerator } from '../../src/mocks/utils'; +import { Axis, BarSeries, Chart, PartialTheme, Position, ScaleType, Settings } from '../../packages/charts/src'; +import { SeededDataGenerator } from '../../packages/charts/src/mocks/utils'; function range(title: string, min: number, max: number, value: number, groupId?: string, step = 1) { return number( diff --git a/stories/stylings/8_custom_series_colors_array.tsx b/stories/stylings/8_custom_series_colors_array.tsx index 70c3c762d0..61e775e8c4 100644 --- a/stories/stylings/8_custom_series_colors_array.tsx +++ b/stories/stylings/8_custom_series_colors_array.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { Axis, BarSeries, Chart, Position, ScaleType, Settings } from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; import { SB_SOURCE_PANEL } from '../utils/storybook'; export const Example = () => ( diff --git a/stories/stylings/9_custom_series_colors_function.tsx b/stories/stylings/9_custom_series_colors_function.tsx index baab617a74..d83fe174fe 100644 --- a/stories/stylings/9_custom_series_colors_function.tsx +++ b/stories/stylings/9_custom_series_colors_function.tsx @@ -20,8 +20,17 @@ import { color } from '@storybook/addon-knobs'; import React from 'react'; -import { Axis, BarSeries, Chart, SeriesColorAccessor, LineSeries, Position, ScaleType, Settings } from '../../src'; -import * as TestDatasets from '../../src/utils/data_samples/test_dataset'; +import { + Axis, + BarSeries, + Chart, + SeriesColorAccessor, + LineSeries, + Position, + ScaleType, + Settings, +} from '../../packages/charts/src'; +import * as TestDatasets from '../../packages/charts/src/utils/data_samples/test_dataset'; export const Example = () => { const barColor = color('barSeriesColor', '#000'); diff --git a/stories/sunburst/10_2_slice.tsx b/stories/sunburst/10_2_slice.tsx index 1faf69f682..fc8e5bd1fc 100644 --- a/stories/sunburst/10_2_slice.tsx +++ b/stories/sunburst/10_2_slice.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/11_small_large.tsx b/stories/sunburst/11_small_large.tsx index 1ef820c0ae..264636194a 100644 --- a/stories/sunburst/11_small_large.tsx +++ b/stories/sunburst/11_small_large.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/12_very_small.tsx b/stories/sunburst/12_very_small.tsx index d62d990123..67a290f1d1 100644 --- a/stories/sunburst/12_very_small.tsx +++ b/stories/sunburst/12_very_small.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/13_empty.tsx b/stories/sunburst/13_empty.tsx index 5b785727bf..bee9d02898 100644 --- a/stories/sunburst/13_empty.tsx +++ b/stories/sunburst/13_empty.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/14_full_zero.tsx b/stories/sunburst/14_full_zero.tsx index e6bf8ade7f..44977408c0 100644 --- a/stories/sunburst/14_full_zero.tsx +++ b/stories/sunburst/14_full_zero.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/15_single.tsx b/stories/sunburst/15_single.tsx index 99739c11f3..72de16d570 100644 --- a/stories/sunburst/15_single.tsx +++ b/stories/sunburst/15_single.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/15_single_sunburst.tsx b/stories/sunburst/15_single_sunburst.tsx index 1b29168c53..88a726b50e 100644 --- a/stories/sunburst/15_single_sunburst.tsx +++ b/stories/sunburst/15_single_sunburst.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { discreteColor, diff --git a/stories/sunburst/16_single_small.tsx b/stories/sunburst/16_single_small.tsx index 9fcce828f1..947551128b 100644 --- a/stories/sunburst/16_single_small.tsx +++ b/stories/sunburst/16_single_small.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/17_single_very_small.tsx b/stories/sunburst/17_single_very_small.tsx index 0aadf0b156..dd02b2cb85 100644 --- a/stories/sunburst/17_single_very_small.tsx +++ b/stories/sunburst/17_single_very_small.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/18_no_sliced.tsx b/stories/sunburst/18_no_sliced.tsx index 00b8b3dda2..70c8ddcdb3 100644 --- a/stories/sunburst/18_no_sliced.tsx +++ b/stories/sunburst/18_no_sliced.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/19_negative.tsx b/stories/sunburst/19_negative.tsx index 8907eb4bb6..6cc11427c9 100644 --- a/stories/sunburst/19_negative.tsx +++ b/stories/sunburst/19_negative.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/1_simple.tsx b/stories/sunburst/1_simple.tsx index ed27f890a8..bcafb6b3a1 100644 --- a/stories/sunburst/1_simple.tsx +++ b/stories/sunburst/1_simple.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/20_total_zero.tsx b/stories/sunburst/20_total_zero.tsx index e63100d58d..52232dc898 100644 --- a/stories/sunburst/20_total_zero.tsx +++ b/stories/sunburst/20_total_zero.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/21_high_pie.tsx b/stories/sunburst/21_high_pie.tsx index 945a27fb54..70fa870c67 100644 --- a/stories/sunburst/21_high_pie.tsx +++ b/stories/sunburst/21_high_pie.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { countryLookup, indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/22_counter_clockwise.tsx b/stories/sunburst/22_counter_clockwise.tsx index bca85ae3f0..4f03745cc0 100644 --- a/stories/sunburst/22_counter_clockwise.tsx +++ b/stories/sunburst/22_counter_clockwise.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/23_clockwise.tsx b/stories/sunburst/23_clockwise.tsx index 7032658915..0e8d24c49c 100644 --- a/stories/sunburst/23_clockwise.tsx +++ b/stories/sunburst/23_clockwise.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings, LIGHT_THEME } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings, LIGHT_THEME } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/24_linked_label.tsx b/stories/sunburst/24_linked_label.tsx index 14984fe601..92aa347078 100644 --- a/stories/sunburst/24_linked_label.tsx +++ b/stories/sunburst/24_linked_label.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/25_no_labels.tsx b/stories/sunburst/25_no_labels.tsx index 6ca8d60017..6820762c5c 100644 --- a/stories/sunburst/25_no_labels.tsx +++ b/stories/sunburst/25_no_labels.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/26_percentage.tsx b/stories/sunburst/26_percentage.tsx index 718ba892b2..18147c81c0 100644 --- a/stories/sunburst/26_percentage.tsx +++ b/stories/sunburst/26_percentage.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { discreteColor, diff --git a/stories/sunburst/27_heterogeneous_depth.tsx b/stories/sunburst/27_heterogeneous_depth.tsx index edf545439e..b9a060806d 100644 --- a/stories/sunburst/27_heterogeneous_depth.tsx +++ b/stories/sunburst/27_heterogeneous_depth.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { PrimitiveValue } from '../../src/chart_types/partition_chart/layout/utils/group_by_rollup'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { PrimitiveValue } from '../../packages/charts/src/chart_types/partition_chart/layout/utils/group_by_rollup'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { discreteColor, diff --git a/stories/sunburst/28_not_a_number.tsx b/stories/sunburst/28_not_a_number.tsx index fbe41c74cc..f0a2535351 100644 --- a/stories/sunburst/28_not_a_number.tsx +++ b/stories/sunburst/28_not_a_number.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/29_custom_stroke.tsx b/stories/sunburst/29_custom_stroke.tsx index d63c5f2809..60554c71ce 100644 --- a/stories/sunburst/29_custom_stroke.tsx +++ b/stories/sunburst/29_custom_stroke.tsx @@ -20,9 +20,9 @@ import { color } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings, DARK_THEME } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings, DARK_THEME } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { countryLookup, indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => { diff --git a/stories/sunburst/2_value_formatted.tsx b/stories/sunburst/2_value_formatted.tsx index bcf9bc9134..7362debba7 100644 --- a/stories/sunburst/2_value_formatted.tsx +++ b/stories/sunburst/2_value_formatted.tsx @@ -20,9 +20,9 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorTurbo, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/30_largest_circle.tsx b/stories/sunburst/30_largest_circle.tsx index 60f4a9195f..a0bdf1e7a0 100644 --- a/stories/sunburst/30_largest_circle.tsx +++ b/stories/sunburst/30_largest_circle.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/31_bold_link_value.tsx b/stories/sunburst/31_bold_link_value.tsx index a5855b117a..352c3433b0 100644 --- a/stories/sunburst/31_bold_link_value.tsx +++ b/stories/sunburst/31_bold_link_value.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/32_custom_tooltip.tsx b/stories/sunburst/32_custom_tooltip.tsx index ff964e3907..635888a58e 100644 --- a/stories/sunburst/32_custom_tooltip.tsx +++ b/stories/sunburst/32_custom_tooltip.tsx @@ -20,9 +20,9 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings, CustomTooltip } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings, CustomTooltip } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { getPlacementKnob, getFallbackPlacementsKnob, getBoundaryKnob } from '../utils/knobs'; import { countryLookup, indexInterpolatedFillColor, interpolatorCET2s, regionLookup } from '../utils/utils'; diff --git a/stories/sunburst/33_ordered_slices.tsx b/stories/sunburst/33_ordered_slices.tsx index 281ebaa9d2..820a794361 100644 --- a/stories/sunburst/33_ordered_slices.tsx +++ b/stories/sunburst/33_ordered_slices.tsx @@ -20,8 +20,16 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { AdditiveNumber, ArrayEntry, Chart, Datum, MODEL_KEY, Partition, ShapeTreeNode } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { + AdditiveNumber, + ArrayEntry, + Chart, + Datum, + MODEL_KEY, + Partition, + ShapeTreeNode, +} from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { discreteColor, countryLookup, colorBrewerCategoricalPastel12B } from '../utils/utils'; const categoricalColors = colorBrewerCategoricalPastel12B.slice(3); diff --git a/stories/sunburst/3_value_formatted_2.tsx b/stories/sunburst/3_value_formatted_2.tsx index 3bc97160d7..652fa04eb9 100644 --- a/stories/sunburst/3_value_formatted_2.tsx +++ b/stories/sunburst/3_value_formatted_2.tsx @@ -19,10 +19,10 @@ import React from 'react'; -import { Chart, Datum, Partition } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { discreteColor, colorBrewerCategoricalPastel12, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/4_fill_labels.tsx b/stories/sunburst/4_fill_labels.tsx index 081a21e77f..3fba2a02c3 100644 --- a/stories/sunburst/4_fill_labels.tsx +++ b/stories/sunburst/4_fill_labels.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/5_donut.tsx b/stories/sunburst/5_donut.tsx index 894de81a7b..25e3c82bf5 100644 --- a/stories/sunburst/5_donut.tsx +++ b/stories/sunburst/5_donut.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; diff --git a/stories/sunburst/6_pie_chart_labels.tsx b/stories/sunburst/6_pie_chart_labels.tsx index 45fc9cb50c..4338fcb434 100644 --- a/stories/sunburst/6_pie_chart_labels.tsx +++ b/stories/sunburst/6_pie_chart_labels.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/6_pie_chart_linked_labels.tsx b/stories/sunburst/6_pie_chart_linked_labels.tsx index f0bf19502f..db18ab85bc 100644 --- a/stories/sunburst/6_pie_chart_linked_labels.tsx +++ b/stories/sunburst/6_pie_chart_linked_labels.tsx @@ -19,8 +19,8 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; import { indexInterpolatedFillColor, interpolatorCET2s } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/7_zero_slice.tsx b/stories/sunburst/7_zero_slice.tsx index be6355e082..56fe91a926 100644 --- a/stories/sunburst/7_zero_slice.tsx +++ b/stories/sunburst/7_zero_slice.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { indexInterpolatedFillColor, interpolatorCET2s, productLookup } from '../utils/utils'; export const Example = () => ( diff --git a/stories/sunburst/8_sunburst_two_layers.tsx b/stories/sunburst/8_sunburst_two_layers.tsx index e54a3436ca..c922328837 100644 --- a/stories/sunburst/8_sunburst_two_layers.tsx +++ b/stories/sunburst/8_sunburst_two_layers.tsx @@ -19,9 +19,9 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { countryLookup, indexInterpolatedFillColor, interpolatorCET2s, regionLookup } from '../utils/utils'; diff --git a/stories/sunburst/9_sunburst_three_layers.tsx b/stories/sunburst/9_sunburst_three_layers.tsx index 1272fd0bb8..20329518ea 100644 --- a/stories/sunburst/9_sunburst_three_layers.tsx +++ b/stories/sunburst/9_sunburst_three_layers.tsx @@ -20,10 +20,10 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { discreteColor, diff --git a/stories/test_cases/1_no_series.tsx b/stories/test_cases/1_no_series.tsx index bf1d31ef40..ca3bad5a14 100644 --- a/stories/test_cases/1_no_series.tsx +++ b/stories/test_cases/1_no_series.tsx @@ -21,7 +21,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSpacer } from '@elastic/eui'; import { boolean, text } from '@storybook/addon-knobs'; import React, { FC } from 'react'; -import { Chart, Settings, Axis, Position } from '../../src'; +import { Chart, Settings, Axis, Position } from '../../packages/charts/src'; const NoResults: FC<{ msg: string }> = ({ msg }) => ( diff --git a/stories/test_cases/2_chrome_path_bug_fix.tsx b/stories/test_cases/2_chrome_path_bug_fix.tsx index 5c08b81251..8e0826d6e2 100644 --- a/stories/test_cases/2_chrome_path_bug_fix.tsx +++ b/stories/test_cases/2_chrome_path_bug_fix.tsx @@ -20,7 +20,7 @@ import moment from 'moment'; import React from 'react'; -import { AreaSeries, Chart, ScaleType, Settings } from '../../src'; +import { AreaSeries, Chart, ScaleType, Settings } from '../../packages/charts/src'; import { SB_KNOBS_PANEL } from '../utils/storybook'; export const Example = () => { diff --git a/stories/test_cases/3_no_axes_annotation.tsx b/stories/test_cases/3_no_axes_annotation.tsx index d59be2e095..ed5e6bce3b 100644 --- a/stories/test_cases/3_no_axes_annotation.tsx +++ b/stories/test_cases/3_no_axes_annotation.tsx @@ -29,7 +29,7 @@ import { ScaleType, Position, Settings, -} from '../../src'; +} from '../../packages/charts/src'; import { getChartRotationKnob } from '../utils/knobs'; function generateAnnotationData(values: any[]): LineAnnotationDatum[] { diff --git a/stories/test_cases/4_filter_zero_values_log.tsx b/stories/test_cases/4_filter_zero_values_log.tsx index 2afcfe1896..e22944902d 100644 --- a/stories/test_cases/4_filter_zero_values_log.tsx +++ b/stories/test_cases/4_filter_zero_values_log.tsx @@ -20,7 +20,7 @@ import { boolean, number } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Axis, Position, AreaSeries, ScaleType, LogBase } from '../../src'; +import { Chart, Axis, Position, AreaSeries, ScaleType, LogBase } from '../../packages/charts/src'; import { logFormatter } from '../utils/formatters'; /** diff --git a/stories/test_cases/5_legend_scroll_bar_sizing.tsx b/stories/test_cases/5_legend_scroll_bar_sizing.tsx index 8b62ddbe32..ea48d23f51 100644 --- a/stories/test_cases/5_legend_scroll_bar_sizing.tsx +++ b/stories/test_cases/5_legend_scroll_bar_sizing.tsx @@ -19,7 +19,7 @@ import React from 'react'; -import { Chart, Axis, Position, BarSeries, ScaleType, Settings } from '../../src'; +import { Chart, Axis, Position, BarSeries, ScaleType, Settings } from '../../packages/charts/src'; const data = [ { g: 'AE', x: '2021-04-06 00:00', y: 1 }, diff --git a/stories/test_cases/6_a11y_custom_description.tsx b/stories/test_cases/6_a11y_custom_description.tsx index ae5bc09b92..d0310f8dbd 100644 --- a/stories/test_cases/6_a11y_custom_description.tsx +++ b/stories/test_cases/6_a11y_custom_description.tsx @@ -20,8 +20,8 @@ import { boolean, text, select } from '@storybook/addon-knobs'; import React from 'react'; -import { AreaSeries, Chart, ScaleType, Settings } from '../../src'; -import { KIBANA_METRICS } from '../../src/utils/data_samples/test_dataset_kibana'; +import { AreaSeries, Chart, ScaleType, Settings } from '../../packages/charts/src'; +import { KIBANA_METRICS } from '../../packages/charts/src/utils/data_samples/test_dataset_kibana'; export const Example = () => { const automatedSeries = boolean('Use the default generated series types of charts for screen readers', true); diff --git a/stories/treemap/10_three_layers.tsx b/stories/treemap/10_three_layers.tsx index 2b2394727d..052324ff09 100644 --- a/stories/treemap/10_three_layers.tsx +++ b/stories/treemap/10_three_layers.tsx @@ -20,13 +20,13 @@ import { boolean } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; -import { keepDistinct } from '../../src/utils/common'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; +import { keepDistinct } from '../../packages/charts/src/utils/common'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { countryLookup, productLookup, regionLookup } from '../utils/utils'; diff --git a/stories/treemap/1_one_layer.tsx b/stories/treemap/1_one_layer.tsx index 7776a7faf4..1e97a9f0fb 100644 --- a/stories/treemap/1_one_layer.tsx +++ b/stories/treemap/1_one_layer.tsx @@ -19,12 +19,12 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { productDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { productDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const productLookup = arrayToLookup((d: Datum) => d.sitc1, productDimension); diff --git a/stories/treemap/2_one_layer_2.tsx b/stories/treemap/2_one_layer_2.tsx index 5b0c7f9b14..81d641ecbe 100644 --- a/stories/treemap/2_one_layer_2.tsx +++ b/stories/treemap/2_one_layer_2.tsx @@ -19,12 +19,12 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { arrayToLookup } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { productDimension } from '../../src/mocks/hierarchical/dimension_codes'; +import { Chart, Datum, Partition, PartitionLayout } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { arrayToLookup } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { productDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; import { discreteColor, colorBrewerCategoricalPastel12 } from '../utils/utils'; const productLookup = arrayToLookup((d: Datum) => d.sitc1, productDimension); diff --git a/stories/treemap/3_mid_two.tsx b/stories/treemap/3_mid_two.tsx index 3058ec0ce2..e22245bbd0 100644 --- a/stories/treemap/3_mid_two.tsx +++ b/stories/treemap/3_mid_two.tsx @@ -19,13 +19,13 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension, regionDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension, regionDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const regionLookup = arrayToLookup((d: Datum) => d.region, regionDimension); diff --git a/stories/treemap/4_two_layer_stress.tsx b/stories/treemap/4_two_layer_stress.tsx index 6db4acd6a5..67434ab340 100644 --- a/stories/treemap/4_two_layer_stress.tsx +++ b/stories/treemap/4_two_layer_stress.tsx @@ -19,13 +19,13 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension, productDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension, productDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const productLookup = arrayToLookup((d: Datum) => d.sitc1, productDimension); diff --git a/stories/treemap/5_multicolor.tsx b/stories/treemap/5_multicolor.tsx index a77b31d65b..b9e2355a62 100644 --- a/stories/treemap/5_multicolor.tsx +++ b/stories/treemap/5_multicolor.tsx @@ -19,12 +19,12 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { regionLookup } from '../utils/utils'; diff --git a/stories/treemap/6_custom_style.tsx b/stories/treemap/6_custom_style.tsx index 2f428fd140..dd281ccab4 100644 --- a/stories/treemap/6_custom_style.tsx +++ b/stories/treemap/6_custom_style.tsx @@ -19,11 +19,11 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { arrayToLookup } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension } from '../../src/mocks/hierarchical/dimension_codes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { arrayToLookup } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; import { regionLookup } from '../utils/utils'; diff --git a/stories/treemap/7_percentage.tsx b/stories/treemap/7_percentage.tsx index 32b5038050..236548b13b 100644 --- a/stories/treemap/7_percentage.tsx +++ b/stories/treemap/7_percentage.tsx @@ -19,13 +19,13 @@ import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config, percentValueGetter } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension, regionDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config, percentValueGetter } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension, regionDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const regionLookup = arrayToLookup((d: Datum) => d.region, regionDimension); diff --git a/stories/treemap/8_groove_text.tsx b/stories/treemap/8_groove_text.tsx index 075798ca1d..dce416feac 100644 --- a/stories/treemap/8_groove_text.tsx +++ b/stories/treemap/8_groove_text.tsx @@ -20,13 +20,13 @@ import { number } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { ShapeTreeNode } from '../../src/chart_types/partition_chart/layout/types/viewmodel_types'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { countryDimension, regionDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, MODEL_KEY, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { ShapeTreeNode } from '../../packages/charts/src/chart_types/partition_chart/layout/types/viewmodel_types'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { countryDimension, regionDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const regionLookup = arrayToLookup((d: Datum) => d.region, regionDimension); diff --git a/stories/treemap/9_zero_values.tsx b/stories/treemap/9_zero_values.tsx index 6e3b0800a3..86342e60b0 100644 --- a/stories/treemap/9_zero_values.tsx +++ b/stories/treemap/9_zero_values.tsx @@ -19,12 +19,12 @@ import React from 'react'; -import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../src'; -import { config } from '../../src/chart_types/partition_chart/layout/config'; -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { mocks } from '../../src/mocks/hierarchical'; -import { productDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { Chart, Datum, Partition, PartitionLayout, Settings } from '../../packages/charts/src'; +import { config } from '../../packages/charts/src/chart_types/partition_chart/layout/config'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; +import { productDimension } from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; import { STORYBOOK_LIGHT_THEME } from '../shared'; const productLookup = arrayToLookup((d: Datum) => d.sitc1, productDimension); diff --git a/stories/utils/formatters.ts b/stories/utils/formatters.ts index 155b4540c5..e89fe044fd 100644 --- a/stories/utils/formatters.ts +++ b/stories/utils/formatters.ts @@ -19,7 +19,7 @@ import numeral from 'numeral'; -import { LogBase } from '../../src/scales/scale_continuous'; +import { LogBase } from '../../packages/charts/src/scales/scale_continuous'; const superStringMap: Record = { 0: '⁰', diff --git a/stories/utils/hierarchical_input_utils.tsx b/stories/utils/hierarchical_input_utils.tsx index 3d738036a8..f65f4fd89b 100644 --- a/stories/utils/hierarchical_input_utils.tsx +++ b/stories/utils/hierarchical_input_utils.tsx @@ -17,10 +17,10 @@ * under the License. */ -import { Datum, RecursivePartial } from '../../src'; -import { Config } from '../../src/chart_types/partition_chart/layout/types/config_types'; -import { PrimitiveValue } from '../../src/chart_types/partition_chart/layout/utils/group_by_rollup'; -import { mocks } from '../../src/mocks/hierarchical'; +import { Datum, RecursivePartial } from '../../packages/charts/src'; +import { Config } from '../../packages/charts/src/chart_types/partition_chart/layout/types/config_types'; +import { PrimitiveValue } from '../../packages/charts/src/chart_types/partition_chart/layout/utils/group_by_rollup'; +import { mocks } from '../../packages/charts/src/mocks/hierarchical'; import { discreteColor } from './utils'; const raw = mocks.observabilityTree; diff --git a/stories/utils/knobs.ts b/stories/utils/knobs.ts index 0e625da7ec..a641ebbf38 100644 --- a/stories/utils/knobs.ts +++ b/stories/utils/knobs.ts @@ -34,9 +34,9 @@ import { AreaSeries, BubbleSeries, TooltipStickTo, -} from '../../src'; -import { TooltipType } from '../../src/specs/constants'; -import { VerticalAlignment, HorizontalAlignment } from '../../src/utils/common'; +} from '../../packages/charts/src'; +import { TooltipType } from '../../packages/charts/src/specs/constants'; +import { VerticalAlignment, HorizontalAlignment } from '../../packages/charts/src/utils/common'; export const getPositiveNumberKnob = (name: string, value: number, groupId?: string) => number(name, value, { min: 0 }, groupId); diff --git a/stories/utils/utils.ts b/stories/utils/utils.ts index 6448a1a60d..ad32448f0a 100644 --- a/stories/utils/utils.ts +++ b/stories/utils/utils.ts @@ -17,9 +17,13 @@ * under the License. */ -import { arrayToLookup, hueInterpolator } from '../../src/common/color_calcs'; -import { countryDimension, productDimension, regionDimension } from '../../src/mocks/hierarchical/dimension_codes'; -import { palettes } from '../../src/mocks/hierarchical/palettes'; +import { arrayToLookup, hueInterpolator } from '../../packages/charts/src/common/color_calcs'; +import { + countryDimension, + productDimension, + regionDimension, +} from '../../packages/charts/src/mocks/hierarchical/dimension_codes'; +import { palettes } from '../../packages/charts/src/mocks/hierarchical/palettes'; export const productLookup = arrayToLookup((d: any) => d.sitc1, productDimension); export const regionLookup = arrayToLookup((d: any) => d.region, regionDimension); diff --git a/stories/wordcloud/1_wordcloud.tsx b/stories/wordcloud/1_wordcloud.tsx index 8d642e86fd..8264af2a22 100644 --- a/stories/wordcloud/1_wordcloud.tsx +++ b/stories/wordcloud/1_wordcloud.tsx @@ -21,10 +21,10 @@ import { action } from '@storybook/addon-actions'; import { color, number, select } from '@storybook/addon-knobs'; import React from 'react'; -import { Chart, Settings, Wordcloud } from '../../src'; -import { WeightFn, WordModel } from '../../src/chart_types/wordcloud/layout/types/viewmodel_types'; -import { getRandomNumberGenerator } from '../../src/mocks/utils'; -import { palettes as euiPalettes } from '../../src/utils/themes/colors'; +import { Chart, Settings, Wordcloud } from '../../packages/charts/src'; +import { WeightFn, WordModel } from '../../packages/charts/src/chart_types/wordcloud/layout/types/viewmodel_types'; +import { getRandomNumberGenerator } from '../../packages/charts/src/mocks/utils'; +import { palettes as euiPalettes } from '../../packages/charts/src/utils/themes/colors'; const text = 'Webtwo ipsum sifteo twones chegg lijit meevee spotify, joukuu wakoopa greplin. Sclipo octopart wufoo, balihoo. Kiko groupon fleck revver blyve joyent dogster, zoodles zooomr scribd dogster mog. Zinch orkut jabber trulia, sclipo. Chumby imvu rovio ning zoho akismet napster, kippt zillow mzinga zoho. ' + diff --git a/storybook-docs/theme_service.ts b/storybook-docs/theme_service.ts index d37119c584..7a461fc4c0 100644 --- a/storybook-docs/theme_service.ts +++ b/storybook-docs/theme_service.ts @@ -18,9 +18,9 @@ */ // @ts-ignore -import themeDark from '../src/theme_dark.scss?lazy'; +import themeDark from '../packages/charts/src/theme_dark.scss?lazy'; // @ts-ignore -import themeLight from '../src/theme_light.scss?lazy'; +import themeLight from '../packages/charts/src/theme_light.scss?lazy'; export function switchTheme(theme: string) { switch (theme) { diff --git a/storybook-docs/tsconfig.json b/storybook-docs/tsconfig.json index d165383705..fa61705c09 100644 --- a/storybook-docs/tsconfig.json +++ b/storybook-docs/tsconfig.json @@ -1,5 +1,5 @@ { "extends": "../tsconfig", - "include": ["../src/**/*", "../stories/**/*", "./**/*", "config.ts"], + "include": ["../packages/charts/src/**/*", "../stories/**/*", "./**/*", "config.ts"], "exclude": ["../**/*.test.*"] } diff --git a/storybook-docs/webpack.config.js b/storybook-docs/webpack.config.js index 84676457ab..8b1431f596 100644 --- a/storybook-docs/webpack.config.js +++ b/storybook-docs/webpack.config.js @@ -45,7 +45,7 @@ module.exports = async ({ config }) => { { loader: 'style-loader', options: { - attrs: { + attributes: { nonce, }, }, @@ -64,7 +64,7 @@ module.exports = async ({ config }) => { { loader: 'style-loader', options: { - attrs: { + attributes: { nonce, }, }, @@ -79,9 +79,10 @@ module.exports = async ({ config }) => { resourceQuery: /^\?lazy$/, use: [ { - loader: 'style-loader/useable', + loader: 'style-loader', options: { - attrs: { + injectType: 'lazyStyleTag', + attributes: { nonce, }, }, diff --git a/storybook/theme_service.ts b/storybook/theme_service.ts index 0bf7016f95..2c5ab6570e 100644 --- a/storybook/theme_service.ts +++ b/storybook/theme_service.ts @@ -19,9 +19,9 @@ /* eslint-disable import/no-unresolved */ // @ts-ignore -import themeDark from '../src/theme_dark.scss?lazy'; +import themeDark from '../packages/charts/src/theme_dark.scss?lazy'; // @ts-ignore -import themeLight from '../src/theme_light.scss?lazy'; +import themeLight from '../packages/charts/src/theme_light.scss?lazy'; /* eslint-enable */ export function switchTheme(theme: string) { diff --git a/storybook/tsconfig.json b/storybook/tsconfig.json index 550f2e5f15..52ded707a2 100644 --- a/storybook/tsconfig.json +++ b/storybook/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../tsconfig", "include": [ - "../src/**/*", + "../packages/charts/src/**/*", "../stories/**/*", "./**/*", "../storybook-docs/config.docs.ts", diff --git a/tsconfig.jest.json b/tsconfig.jest.json index 8d80e97a08..34de84698a 100644 --- a/tsconfig.jest.json +++ b/tsconfig.jest.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*", "scripts/setup_enzyme.ts", "scripts/custom_matchers.ts"] + "include": ["packages/charts/src/**/*", "scripts/setup_enzyme.ts", "scripts/custom_matchers.ts"] } diff --git a/tsconfig.json b/tsconfig.json index 6ca724b994..3448e612a0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,6 @@ "compilerOptions": { "declaration": true, "declarationMap": true, - "outDir": "./dist/", "noImplicitAny": true, "noUnusedLocals": false, "sourceMap": true, @@ -21,5 +20,5 @@ "resolveJsonModule": true, "typeRoots": ["./node_modules/@types", "./**/*.d.ts", "./scripts/custom_matchers.ts"] }, - "exclude": ["**/tmp"] + "exclude": ["**/tmp", "**/dist"] } diff --git a/tslint.yaml b/tslint.yaml deleted file mode 100644 index 5cce0dee6c..0000000000 --- a/tslint.yaml +++ /dev/null @@ -1,15 +0,0 @@ -extends: - - tslint:recommended - # - tslint-microsoft-contrib - -rulesDirectory: - # - node_modules/tslint-microsoft-contrib - -rules: - object-literal-sort-keys: false - interface-name: false - no-default-export: true - no-irregular-whitespace: true - no-unused-expression: true - quotemark: [true, 'single', 'jsx-double'] - member-access: [true, 'no-public'] diff --git a/wiki/theming.md b/wiki/theming.md index efe021f6dd..5df67603da 100644 --- a/wiki/theming.md +++ b/wiki/theming.md @@ -1,6 +1,6 @@ ## How Elastic Charts theming works -Elastic Charts can be easily themed by creating a JSON object with the same shape of the existing [Theme](../src/utils/themes/theme.ts) interface. Currently we maintain the following themes: +Elastic Charts can be easily themed by creating a JSON object with the same shape of the existing [Theme](../packages/charts/src/utils/themes/theme.ts) interface. Currently we maintain the following themes: - LIGHT_THEME (the default Elastic Chart theme) - DARK_THEME (the same theme in dark) @@ -11,7 +11,7 @@ Each of these themes simply include a series of variables that adjust colors, si ### Create a new theme -1. Copy one theme from `src/lib/themes/` directory and tweak it variables. +1. Copy one theme from `packages/charts/src/themes/` directory and tweak it variables. 2. Pass it to the `Setting` component: ``` diff --git a/yarn.lock b/yarn.lock index 12f9f710fb..ab90a9a299 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4072,6 +4072,677 @@ "@types/istanbul-reports" "^1.1.1" "@types/yargs" "^13.0.0" +"@lerna/add@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/add/-/add-4.0.0.tgz#c36f57d132502a57b9e7058d1548b7a565ef183f" + integrity sha512-cpmAH1iS3k8JBxNvnMqrGTTjbY/ZAiKa1ChJzFevMYY3eeqbvhsBKnBcxjRXtdrJ6bd3dCQM+ZtK+0i682Fhng== + dependencies: + "@lerna/bootstrap" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/npm-conf" "4.0.0" + "@lerna/validation-error" "4.0.0" + dedent "^0.7.0" + npm-package-arg "^8.1.0" + p-map "^4.0.0" + pacote "^11.2.6" + semver "^7.3.4" + +"@lerna/bootstrap@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/bootstrap/-/bootstrap-4.0.0.tgz#5f5c5e2c6cfc8fcec50cb2fbe569a8c607101891" + integrity sha512-RkS7UbeM2vu+kJnHzxNRCLvoOP9yGNgkzRdy4UV2hNalD7EP41bLvRVOwRYQ7fhc2QcbhnKNdOBihYRL0LcKtw== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/has-npm-version" "4.0.0" + "@lerna/npm-install" "4.0.0" + "@lerna/package-graph" "4.0.0" + "@lerna/pulse-till-done" "4.0.0" + "@lerna/rimraf-dir" "4.0.0" + "@lerna/run-lifecycle" "4.0.0" + "@lerna/run-topologically" "4.0.0" + "@lerna/symlink-binary" "4.0.0" + "@lerna/symlink-dependencies" "4.0.0" + "@lerna/validation-error" "4.0.0" + dedent "^0.7.0" + get-port "^5.1.1" + multimatch "^5.0.0" + npm-package-arg "^8.1.0" + npmlog "^4.1.2" + p-map "^4.0.0" + p-map-series "^2.1.0" + p-waterfall "^2.1.1" + read-package-tree "^5.3.1" + semver "^7.3.4" + +"@lerna/changed@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/changed/-/changed-4.0.0.tgz#b9fc76cea39b9292a6cd263f03eb57af85c9270b" + integrity sha512-cD+KuPRp6qiPOD+BO6S6SN5cARspIaWSOqGBpGnYzLb4uWT8Vk4JzKyYtc8ym1DIwyoFXHosXt8+GDAgR8QrgQ== + dependencies: + "@lerna/collect-updates" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/listable" "4.0.0" + "@lerna/output" "4.0.0" + +"@lerna/check-working-tree@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/check-working-tree/-/check-working-tree-4.0.0.tgz#257e36a602c00142e76082a19358e3e1ae8dbd58" + integrity sha512-/++bxM43jYJCshBiKP5cRlCTwSJdRSxVmcDAXM+1oUewlZJVSVlnks5eO0uLxokVFvLhHlC5kHMc7gbVFPHv6Q== + dependencies: + "@lerna/collect-uncommitted" "4.0.0" + "@lerna/describe-ref" "4.0.0" + "@lerna/validation-error" "4.0.0" + +"@lerna/child-process@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-4.0.0.tgz#341b96a57dffbd9705646d316e231df6fa4df6e1" + integrity sha512-XtCnmCT9eyVsUUHx6y/CTBYdV9g2Cr/VxyseTWBgfIur92/YKClfEtJTbOh94jRT62hlKLqSvux/UhxXVh613Q== + dependencies: + chalk "^4.1.0" + execa "^5.0.0" + strong-log-transformer "^2.1.0" + +"@lerna/clean@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/clean/-/clean-4.0.0.tgz#8f778b6f2617aa2a936a6b5e085ae62498e57dc5" + integrity sha512-uugG2iN9k45ITx2jtd8nEOoAtca8hNlDCUM0N3lFgU/b1mEQYAPRkqr1qs4FLRl/Y50ZJ41wUz1eazS+d/0osA== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/prompt" "4.0.0" + "@lerna/pulse-till-done" "4.0.0" + "@lerna/rimraf-dir" "4.0.0" + p-map "^4.0.0" + p-map-series "^2.1.0" + p-waterfall "^2.1.1" + +"@lerna/cli@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/cli/-/cli-4.0.0.tgz#8eabd334558836c1664df23f19acb95e98b5bbf3" + integrity sha512-Neaw3GzFrwZiRZv2g7g6NwFjs3er1vhraIniEs0jjVLPMNC4eata0na3GfE5yibkM/9d3gZdmihhZdZ3EBdvYA== + dependencies: + "@lerna/global-options" "4.0.0" + dedent "^0.7.0" + npmlog "^4.1.2" + yargs "^16.2.0" + +"@lerna/collect-uncommitted@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/collect-uncommitted/-/collect-uncommitted-4.0.0.tgz#855cd64612969371cfc2453b90593053ff1ba779" + integrity sha512-ufSTfHZzbx69YNj7KXQ3o66V4RC76ffOjwLX0q/ab//61bObJ41n03SiQEhSlmpP+gmFbTJ3/7pTe04AHX9m/g== + dependencies: + "@lerna/child-process" "4.0.0" + chalk "^4.1.0" + npmlog "^4.1.2" + +"@lerna/collect-updates@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/collect-updates/-/collect-updates-4.0.0.tgz#8e208b1bafd98a372ff1177f7a5e288f6bea8041" + integrity sha512-bnNGpaj4zuxsEkyaCZLka9s7nMs58uZoxrRIPJ+nrmrZYp1V5rrd+7/NYTuunOhY2ug1sTBvTAxj3NZQ+JKnOw== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/describe-ref" "4.0.0" + minimatch "^3.0.4" + npmlog "^4.1.2" + slash "^3.0.0" + +"@lerna/command@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/command/-/command-4.0.0.tgz#991c7971df8f5bf6ae6e42c808869a55361c1b98" + integrity sha512-LM9g3rt5FsPNFqIHUeRwWXLNHJ5NKzOwmVKZ8anSp4e1SPrv2HNc1V02/9QyDDZK/w+5POXH5lxZUI1CHaOK/A== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/package-graph" "4.0.0" + "@lerna/project" "4.0.0" + "@lerna/validation-error" "4.0.0" + "@lerna/write-log-file" "4.0.0" + clone-deep "^4.0.1" + dedent "^0.7.0" + execa "^5.0.0" + is-ci "^2.0.0" + npmlog "^4.1.2" + +"@lerna/conventional-commits@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/conventional-commits/-/conventional-commits-4.0.0.tgz#660fb2c7b718cb942ead70110df61f18c6f99750" + integrity sha512-CSUQRjJHFrH8eBn7+wegZLV3OrNc0Y1FehYfYGhjLE2SIfpCL4bmfu/ViYuHh9YjwHaA+4SX6d3hR+xkeseKmw== + dependencies: + "@lerna/validation-error" "4.0.0" + conventional-changelog-angular "^5.0.12" + conventional-changelog-core "^4.2.2" + conventional-recommended-bump "^6.1.0" + fs-extra "^9.1.0" + get-stream "^6.0.0" + lodash.template "^4.5.0" + npm-package-arg "^8.1.0" + npmlog "^4.1.2" + pify "^5.0.0" + semver "^7.3.4" + +"@lerna/create-symlink@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/create-symlink/-/create-symlink-4.0.0.tgz#8c5317ce5ae89f67825443bd7651bf4121786228" + integrity sha512-I0phtKJJdafUiDwm7BBlEUOtogmu8+taxq6PtIrxZbllV9hWg59qkpuIsiFp+no7nfRVuaasNYHwNUhDAVQBig== + dependencies: + cmd-shim "^4.1.0" + fs-extra "^9.1.0" + npmlog "^4.1.2" + +"@lerna/create@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/create/-/create-4.0.0.tgz#b6947e9b5dfb6530321952998948c3e63d64d730" + integrity sha512-mVOB1niKByEUfxlbKTM1UNECWAjwUdiioIbRQZEeEabtjCL69r9rscIsjlGyhGWCfsdAG5wfq4t47nlDXdLLag== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/npm-conf" "4.0.0" + "@lerna/validation-error" "4.0.0" + dedent "^0.7.0" + fs-extra "^9.1.0" + globby "^11.0.2" + init-package-json "^2.0.2" + npm-package-arg "^8.1.0" + p-reduce "^2.1.0" + pacote "^11.2.6" + pify "^5.0.0" + semver "^7.3.4" + slash "^3.0.0" + validate-npm-package-license "^3.0.4" + validate-npm-package-name "^3.0.0" + whatwg-url "^8.4.0" + yargs-parser "20.2.4" + +"@lerna/describe-ref@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/describe-ref/-/describe-ref-4.0.0.tgz#53c53b4ea65fdceffa072a62bfebe6772c45d9ec" + integrity sha512-eTU5+xC4C5Gcgz+Ey4Qiw9nV2B4JJbMulsYJMW8QjGcGh8zudib7Sduj6urgZXUYNyhYpRs+teci9M2J8u+UvQ== + dependencies: + "@lerna/child-process" "4.0.0" + npmlog "^4.1.2" + +"@lerna/diff@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/diff/-/diff-4.0.0.tgz#6d3071817aaa4205a07bf77cfc6e932796d48b92" + integrity sha512-jYPKprQVg41+MUMxx6cwtqsNm0Yxx9GDEwdiPLwcUTFx+/qKCEwifKNJ1oGIPBxyEHX2PFCOjkK39lHoj2qiag== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/validation-error" "4.0.0" + npmlog "^4.1.2" + +"@lerna/exec@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/exec/-/exec-4.0.0.tgz#eb6cb95cb92d42590e9e2d628fcaf4719d4a8be6" + integrity sha512-VGXtL/b/JfY84NB98VWZpIExfhLOzy0ozm/0XaS4a2SmkAJc5CeUfrhvHxxkxiTBLkU+iVQUyYEoAT0ulQ8PCw== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/profiler" "4.0.0" + "@lerna/run-topologically" "4.0.0" + "@lerna/validation-error" "4.0.0" + p-map "^4.0.0" + +"@lerna/filter-options@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/filter-options/-/filter-options-4.0.0.tgz#ac94cc515d7fa3b47e2f7d74deddeabb1de5e9e6" + integrity sha512-vV2ANOeZhOqM0rzXnYcFFCJ/kBWy/3OA58irXih9AMTAlQLymWAK0akWybl++sUJ4HB9Hx12TOqaXbYS2NM5uw== + dependencies: + "@lerna/collect-updates" "4.0.0" + "@lerna/filter-packages" "4.0.0" + dedent "^0.7.0" + npmlog "^4.1.2" + +"@lerna/filter-packages@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/filter-packages/-/filter-packages-4.0.0.tgz#b1f70d70e1de9cdd36a4e50caa0ac501f8d012f2" + integrity sha512-+4AJIkK7iIiOaqCiVTYJxh/I9qikk4XjNQLhE3kixaqgMuHl1NQ99qXRR0OZqAWB9mh8Z1HA9bM5K1HZLBTOqA== + dependencies: + "@lerna/validation-error" "4.0.0" + multimatch "^5.0.0" + npmlog "^4.1.2" + +"@lerna/get-npm-exec-opts@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/get-npm-exec-opts/-/get-npm-exec-opts-4.0.0.tgz#dc955be94a4ae75c374ef9bce91320887d34608f" + integrity sha512-yvmkerU31CTWS2c7DvmAWmZVeclPBqI7gPVr5VATUKNWJ/zmVcU4PqbYoLu92I9Qc4gY1TuUplMNdNuZTSL7IQ== + dependencies: + npmlog "^4.1.2" + +"@lerna/get-packed@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/get-packed/-/get-packed-4.0.0.tgz#0989d61624ac1f97e393bdad2137c49cd7a37823" + integrity sha512-rfWONRsEIGyPJTxFzC8ECb3ZbsDXJbfqWYyeeQQDrJRPnEJErlltRLPLgC2QWbxFgFPsoDLeQmFHJnf0iDfd8w== + dependencies: + fs-extra "^9.1.0" + ssri "^8.0.1" + tar "^6.1.0" + +"@lerna/github-client@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/github-client/-/github-client-4.0.0.tgz#2ced67721363ef70f8e12ffafce4410918f4a8a4" + integrity sha512-2jhsldZtTKXYUBnOm23Lb0Fx8G4qfSXF9y7UpyUgWUj+YZYd+cFxSuorwQIgk5P4XXrtVhsUesIsli+BYSThiw== + dependencies: + "@lerna/child-process" "4.0.0" + "@octokit/plugin-enterprise-rest" "^6.0.1" + "@octokit/rest" "^18.1.0" + git-url-parse "^11.4.4" + npmlog "^4.1.2" + +"@lerna/gitlab-client@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/gitlab-client/-/gitlab-client-4.0.0.tgz#00dad73379c7b38951d4b4ded043504c14e2b67d" + integrity sha512-OMUpGSkeDWFf7BxGHlkbb35T7YHqVFCwBPSIR6wRsszY8PAzCYahtH3IaJzEJyUg6vmZsNl0FSr3pdA2skhxqA== + dependencies: + node-fetch "^2.6.1" + npmlog "^4.1.2" + whatwg-url "^8.4.0" + +"@lerna/global-options@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/global-options/-/global-options-4.0.0.tgz#c7d8b0de6a01d8a845e2621ea89e7f60f18c6a5f" + integrity sha512-TRMR8afAHxuYBHK7F++Ogop2a82xQjoGna1dvPOY6ltj/pEx59pdgcJfYcynYqMkFIk8bhLJJN9/ndIfX29FTQ== + +"@lerna/has-npm-version@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/has-npm-version/-/has-npm-version-4.0.0.tgz#d3fc3292c545eb28bd493b36e6237cf0279f631c" + integrity sha512-LQ3U6XFH8ZmLCsvsgq1zNDqka0Xzjq5ibVN+igAI5ccRWNaUsE/OcmsyMr50xAtNQMYMzmpw5GVLAivT2/YzCg== + dependencies: + "@lerna/child-process" "4.0.0" + semver "^7.3.4" + +"@lerna/import@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/import/-/import-4.0.0.tgz#bde656c4a451fa87ae41733ff8a8da60547c5465" + integrity sha512-FaIhd+4aiBousKNqC7TX1Uhe97eNKf5/SC7c5WZANVWtC7aBWdmswwDt3usrzCNpj6/Wwr9EtEbYROzxKH8ffg== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/prompt" "4.0.0" + "@lerna/pulse-till-done" "4.0.0" + "@lerna/validation-error" "4.0.0" + dedent "^0.7.0" + fs-extra "^9.1.0" + p-map-series "^2.1.0" + +"@lerna/info@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/info/-/info-4.0.0.tgz#b9fb0e479d60efe1623603958a831a88b1d7f1fc" + integrity sha512-8Uboa12kaCSZEn4XRfPz5KU9XXoexSPS4oeYGj76s2UQb1O1GdnEyfjyNWoUl1KlJ2i/8nxUskpXIftoFYH0/Q== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/output" "4.0.0" + envinfo "^7.7.4" + +"@lerna/init@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/init/-/init-4.0.0.tgz#dadff67e6dfb981e8ccbe0e6a310e837962f6c7a" + integrity sha512-wY6kygop0BCXupzWj5eLvTUqdR7vIAm0OgyV9WHpMYQGfs1V22jhztt8mtjCloD/O0nEe4tJhdG62XU5aYmPNQ== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/command" "4.0.0" + fs-extra "^9.1.0" + p-map "^4.0.0" + write-json-file "^4.3.0" + +"@lerna/link@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/link/-/link-4.0.0.tgz#c3a38aabd44279d714e90f2451e31b63f0fb65ba" + integrity sha512-KlvPi7XTAcVOByfaLlOeYOfkkDcd+bejpHMCd1KcArcFTwijOwXOVi24DYomIeHvy6HsX/IUquJ4PPUJIeB4+w== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/package-graph" "4.0.0" + "@lerna/symlink-dependencies" "4.0.0" + p-map "^4.0.0" + slash "^3.0.0" + +"@lerna/list@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/list/-/list-4.0.0.tgz#24b4e6995bd73f81c556793fe502b847efd9d1d7" + integrity sha512-L2B5m3P+U4Bif5PultR4TI+KtW+SArwq1i75QZ78mRYxPc0U/piau1DbLOmwrdqr99wzM49t0Dlvl6twd7GHFg== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/listable" "4.0.0" + "@lerna/output" "4.0.0" + +"@lerna/listable@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/listable/-/listable-4.0.0.tgz#d00d6cb4809b403f2b0374fc521a78e318b01214" + integrity sha512-/rPOSDKsOHs5/PBLINZOkRIX1joOXUXEtyUs5DHLM8q6/RP668x/1lFhw6Dx7/U+L0+tbkpGtZ1Yt0LewCLgeQ== + dependencies: + "@lerna/query-graph" "4.0.0" + chalk "^4.1.0" + columnify "^1.5.4" + +"@lerna/log-packed@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/log-packed/-/log-packed-4.0.0.tgz#95168fe2e26ac6a71e42f4be857519b77e57a09f" + integrity sha512-+dpCiWbdzgMAtpajLToy9PO713IHoE6GV/aizXycAyA07QlqnkpaBNZ8DW84gHdM1j79TWockGJo9PybVhrrZQ== + dependencies: + byte-size "^7.0.0" + columnify "^1.5.4" + has-unicode "^2.0.1" + npmlog "^4.1.2" + +"@lerna/npm-conf@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/npm-conf/-/npm-conf-4.0.0.tgz#b259fd1e1cee2bf5402b236e770140ff9ade7fd2" + integrity sha512-uS7H02yQNq3oejgjxAxqq/jhwGEE0W0ntr8vM3EfpCW1F/wZruwQw+7bleJQ9vUBjmdXST//tk8mXzr5+JXCfw== + dependencies: + config-chain "^1.1.12" + pify "^5.0.0" + +"@lerna/npm-dist-tag@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/npm-dist-tag/-/npm-dist-tag-4.0.0.tgz#d1e99b4eccd3414142f0548ad331bf2d53f3257a" + integrity sha512-F20sg28FMYTgXqEQihgoqSfwmq+Id3zT23CnOwD+XQMPSy9IzyLf1fFVH319vXIw6NF6Pgs4JZN2Qty6/CQXGw== + dependencies: + "@lerna/otplease" "4.0.0" + npm-package-arg "^8.1.0" + npm-registry-fetch "^9.0.0" + npmlog "^4.1.2" + +"@lerna/npm-install@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/npm-install/-/npm-install-4.0.0.tgz#31180be3ab3b7d1818a1a0c206aec156b7094c78" + integrity sha512-aKNxq2j3bCH3eXl3Fmu4D54s/YLL9WSwV8W7X2O25r98wzrO38AUN6AB9EtmAx+LV/SP15et7Yueg9vSaanRWg== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/get-npm-exec-opts" "4.0.0" + fs-extra "^9.1.0" + npm-package-arg "^8.1.0" + npmlog "^4.1.2" + signal-exit "^3.0.3" + write-pkg "^4.0.0" + +"@lerna/npm-publish@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/npm-publish/-/npm-publish-4.0.0.tgz#84eb62e876fe949ae1fd62c60804423dbc2c4472" + integrity sha512-vQb7yAPRo5G5r77DRjHITc9piR9gvEKWrmfCH7wkfBnGWEqu7n8/4bFQ7lhnkujvc8RXOsYpvbMQkNfkYibD/w== + dependencies: + "@lerna/otplease" "4.0.0" + "@lerna/run-lifecycle" "4.0.0" + fs-extra "^9.1.0" + libnpmpublish "^4.0.0" + npm-package-arg "^8.1.0" + npmlog "^4.1.2" + pify "^5.0.0" + read-package-json "^3.0.0" + +"@lerna/npm-run-script@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/npm-run-script/-/npm-run-script-4.0.0.tgz#dfebf4f4601442e7c0b5214f9fb0d96c9350743b" + integrity sha512-Jmyh9/IwXJjOXqKfIgtxi0bxi1pUeKe5bD3S81tkcy+kyng/GNj9WSqD5ZggoNP2NP//s4CLDAtUYLdP7CU9rA== + dependencies: + "@lerna/child-process" "4.0.0" + "@lerna/get-npm-exec-opts" "4.0.0" + npmlog "^4.1.2" + +"@lerna/otplease@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/otplease/-/otplease-4.0.0.tgz#84972eb43448f8a1077435ba1c5e59233b725850" + integrity sha512-Sgzbqdk1GH4psNiT6hk+BhjOfIr/5KhGBk86CEfHNJTk9BK4aZYyJD4lpDbDdMjIV4g03G7pYoqHzH765T4fxw== + dependencies: + "@lerna/prompt" "4.0.0" + +"@lerna/output@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/output/-/output-4.0.0.tgz#b1d72215c0e35483e4f3e9994debc82c621851f2" + integrity sha512-Un1sHtO1AD7buDQrpnaYTi2EG6sLF+KOPEAMxeUYG5qG3khTs2Zgzq5WE3dt2N/bKh7naESt20JjIW6tBELP0w== + dependencies: + npmlog "^4.1.2" + +"@lerna/pack-directory@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/pack-directory/-/pack-directory-4.0.0.tgz#8b617db95d20792f043aaaa13a9ccc0e04cb4c74" + integrity sha512-NJrmZNmBHS+5aM+T8N6FVbaKFScVqKlQFJNY2k7nsJ/uklNKsLLl6VhTQBPwMTbf6Tf7l6bcKzpy7aePuq9UiQ== + dependencies: + "@lerna/get-packed" "4.0.0" + "@lerna/package" "4.0.0" + "@lerna/run-lifecycle" "4.0.0" + npm-packlist "^2.1.4" + npmlog "^4.1.2" + tar "^6.1.0" + temp-write "^4.0.0" + +"@lerna/package-graph@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/package-graph/-/package-graph-4.0.0.tgz#16a00253a8ac810f72041481cb46bcee8d8123dd" + integrity sha512-QED2ZCTkfXMKFoTGoccwUzjHtZMSf3UKX14A4/kYyBms9xfFsesCZ6SLI5YeySEgcul8iuIWfQFZqRw+Qrjraw== + dependencies: + "@lerna/prerelease-id-from-version" "4.0.0" + "@lerna/validation-error" "4.0.0" + npm-package-arg "^8.1.0" + npmlog "^4.1.2" + semver "^7.3.4" + +"@lerna/package@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/package/-/package-4.0.0.tgz#1b4c259c4bcff45c876ee1d591a043aacbc0d6b7" + integrity sha512-l0M/izok6FlyyitxiQKr+gZLVFnvxRQdNhzmQ6nRnN9dvBJWn+IxxpM+cLqGACatTnyo9LDzNTOj2Db3+s0s8Q== + dependencies: + load-json-file "^6.2.0" + npm-package-arg "^8.1.0" + write-pkg "^4.0.0" + +"@lerna/prerelease-id-from-version@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/prerelease-id-from-version/-/prerelease-id-from-version-4.0.0.tgz#c7e0676fcee1950d85630e108eddecdd5b48c916" + integrity sha512-GQqguzETdsYRxOSmdFZ6zDBXDErIETWOqomLERRY54f4p+tk4aJjoVdd9xKwehC9TBfIFvlRbL1V9uQGHh1opg== + dependencies: + semver "^7.3.4" + +"@lerna/profiler@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/profiler/-/profiler-4.0.0.tgz#8a53ab874522eae15d178402bff90a14071908e9" + integrity sha512-/BaEbqnVh1LgW/+qz8wCuI+obzi5/vRE8nlhjPzdEzdmWmZXuCKyWSEzAyHOJWw1ntwMiww5dZHhFQABuoFz9Q== + dependencies: + fs-extra "^9.1.0" + npmlog "^4.1.2" + upath "^2.0.1" + +"@lerna/project@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/project/-/project-4.0.0.tgz#ff84893935833533a74deff30c0e64ddb7f0ba6b" + integrity sha512-o0MlVbDkD5qRPkFKlBZsXZjoNTWPyuL58564nSfZJ6JYNmgAptnWPB2dQlAc7HWRZkmnC2fCkEdoU+jioPavbg== + dependencies: + "@lerna/package" "4.0.0" + "@lerna/validation-error" "4.0.0" + cosmiconfig "^7.0.0" + dedent "^0.7.0" + dot-prop "^6.0.1" + glob-parent "^5.1.1" + globby "^11.0.2" + load-json-file "^6.2.0" + npmlog "^4.1.2" + p-map "^4.0.0" + resolve-from "^5.0.0" + write-json-file "^4.3.0" + +"@lerna/prompt@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/prompt/-/prompt-4.0.0.tgz#5ec69a803f3f0db0ad9f221dad64664d3daca41b" + integrity sha512-4Ig46oCH1TH5M7YyTt53fT6TuaKMgqUUaqdgxvp6HP6jtdak6+amcsqB8YGz2eQnw/sdxunx84DfI9XpoLj4bQ== + dependencies: + inquirer "^7.3.3" + npmlog "^4.1.2" + +"@lerna/publish@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/publish/-/publish-4.0.0.tgz#f67011305adeba120066a3b6d984a5bb5fceef65" + integrity sha512-K8jpqjHrChH22qtkytA5GRKIVFEtqBF6JWj1I8dWZtHs4Jywn8yB1jQ3BAMLhqmDJjWJtRck0KXhQQKzDK2UPg== + dependencies: + "@lerna/check-working-tree" "4.0.0" + "@lerna/child-process" "4.0.0" + "@lerna/collect-updates" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/describe-ref" "4.0.0" + "@lerna/log-packed" "4.0.0" + "@lerna/npm-conf" "4.0.0" + "@lerna/npm-dist-tag" "4.0.0" + "@lerna/npm-publish" "4.0.0" + "@lerna/otplease" "4.0.0" + "@lerna/output" "4.0.0" + "@lerna/pack-directory" "4.0.0" + "@lerna/prerelease-id-from-version" "4.0.0" + "@lerna/prompt" "4.0.0" + "@lerna/pulse-till-done" "4.0.0" + "@lerna/run-lifecycle" "4.0.0" + "@lerna/run-topologically" "4.0.0" + "@lerna/validation-error" "4.0.0" + "@lerna/version" "4.0.0" + fs-extra "^9.1.0" + libnpmaccess "^4.0.1" + npm-package-arg "^8.1.0" + npm-registry-fetch "^9.0.0" + npmlog "^4.1.2" + p-map "^4.0.0" + p-pipe "^3.1.0" + pacote "^11.2.6" + semver "^7.3.4" + +"@lerna/pulse-till-done@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/pulse-till-done/-/pulse-till-done-4.0.0.tgz#04bace7d483a8205c187b806bcd8be23d7bb80a3" + integrity sha512-Frb4F7QGckaybRhbF7aosLsJ5e9WuH7h0KUkjlzSByVycxY91UZgaEIVjS2oN9wQLrheLMHl6SiFY0/Pvo0Cxg== + dependencies: + npmlog "^4.1.2" + +"@lerna/query-graph@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/query-graph/-/query-graph-4.0.0.tgz#09dd1c819ac5ee3f38db23931143701f8a6eef63" + integrity sha512-YlP6yI3tM4WbBmL9GCmNDoeQyzcyg1e4W96y/PKMZa5GbyUvkS2+Jc2kwPD+5KcXou3wQZxSPzR3Te5OenaDdg== + dependencies: + "@lerna/package-graph" "4.0.0" + +"@lerna/resolve-symlink@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/resolve-symlink/-/resolve-symlink-4.0.0.tgz#6d006628a210c9b821964657a9e20a8c9a115e14" + integrity sha512-RtX8VEUzqT+uLSCohx8zgmjc6zjyRlh6i/helxtZTMmc4+6O4FS9q5LJas2uGO2wKvBlhcD6siibGt7dIC3xZA== + dependencies: + fs-extra "^9.1.0" + npmlog "^4.1.2" + read-cmd-shim "^2.0.0" + +"@lerna/rimraf-dir@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/rimraf-dir/-/rimraf-dir-4.0.0.tgz#2edf3b62d4eb0ef4e44e430f5844667d551ec25a" + integrity sha512-QNH9ABWk9mcMJh2/muD9iYWBk1oQd40y6oH+f3wwmVGKYU5YJD//+zMiBI13jxZRtwBx0vmBZzkBkK1dR11cBg== + dependencies: + "@lerna/child-process" "4.0.0" + npmlog "^4.1.2" + path-exists "^4.0.0" + rimraf "^3.0.2" + +"@lerna/run-lifecycle@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/run-lifecycle/-/run-lifecycle-4.0.0.tgz#e648a46f9210a9bcd7c391df6844498cb5079334" + integrity sha512-IwxxsajjCQQEJAeAaxF8QdEixfI7eLKNm4GHhXHrgBu185JcwScFZrj9Bs+PFKxwb+gNLR4iI5rpUdY8Y0UdGQ== + dependencies: + "@lerna/npm-conf" "4.0.0" + npm-lifecycle "^3.1.5" + npmlog "^4.1.2" + +"@lerna/run-topologically@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/run-topologically/-/run-topologically-4.0.0.tgz#af846eeee1a09b0c2be0d1bfb5ef0f7b04bb1827" + integrity sha512-EVZw9hGwo+5yp+VL94+NXRYisqgAlj0jWKWtAIynDCpghRxCE5GMO3xrQLmQgqkpUl9ZxQFpICgYv5DW4DksQA== + dependencies: + "@lerna/query-graph" "4.0.0" + p-queue "^6.6.2" + +"@lerna/run@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/run/-/run-4.0.0.tgz#4bc7fda055a729487897c23579694f6183c91262" + integrity sha512-9giulCOzlMPzcZS/6Eov6pxE9gNTyaXk0Man+iCIdGJNMrCnW7Dme0Z229WWP/UoxDKg71F2tMsVVGDiRd8fFQ== + dependencies: + "@lerna/command" "4.0.0" + "@lerna/filter-options" "4.0.0" + "@lerna/npm-run-script" "4.0.0" + "@lerna/output" "4.0.0" + "@lerna/profiler" "4.0.0" + "@lerna/run-topologically" "4.0.0" + "@lerna/timer" "4.0.0" + "@lerna/validation-error" "4.0.0" + p-map "^4.0.0" + +"@lerna/symlink-binary@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/symlink-binary/-/symlink-binary-4.0.0.tgz#21009f62d53a425f136cb4c1a32c6b2a0cc02d47" + integrity sha512-zualodWC4q1QQc1pkz969hcFeWXOsVYZC5AWVtAPTDfLl+TwM7eG/O6oP+Rr3fFowspxo6b1TQ6sYfDV6HXNWA== + dependencies: + "@lerna/create-symlink" "4.0.0" + "@lerna/package" "4.0.0" + fs-extra "^9.1.0" + p-map "^4.0.0" + +"@lerna/symlink-dependencies@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/symlink-dependencies/-/symlink-dependencies-4.0.0.tgz#8910eca084ae062642d0490d8972cf2d98e9ebbd" + integrity sha512-BABo0MjeUHNAe2FNGty1eantWp8u83BHSeIMPDxNq0MuW2K3CiQRaeWT3EGPAzXpGt0+hVzBrA6+OT0GPn7Yuw== + dependencies: + "@lerna/create-symlink" "4.0.0" + "@lerna/resolve-symlink" "4.0.0" + "@lerna/symlink-binary" "4.0.0" + fs-extra "^9.1.0" + p-map "^4.0.0" + p-map-series "^2.1.0" + +"@lerna/timer@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/timer/-/timer-4.0.0.tgz#a52e51bfcd39bfd768988049ace7b15c1fd7a6da" + integrity sha512-WFsnlaE7SdOvjuyd05oKt8Leg3ENHICnvX3uYKKdByA+S3g+TCz38JsNs7OUZVt+ba63nC2nbXDlUnuT2Xbsfg== + +"@lerna/validation-error@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/validation-error/-/validation-error-4.0.0.tgz#af9d62fe8304eaa2eb9a6ba1394f9aa807026d35" + integrity sha512-1rBOM5/koiVWlRi3V6dB863E1YzJS8v41UtsHgMr6gB2ncJ2LsQtMKlJpi3voqcgh41H8UsPXR58RrrpPpufyw== + dependencies: + npmlog "^4.1.2" + +"@lerna/version@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/version/-/version-4.0.0.tgz#532659ec6154d8a8789c5ab53878663e244e3228" + integrity sha512-otUgiqs5W9zGWJZSCCMRV/2Zm2A9q9JwSDS7s/tlKq4mWCYriWo7+wsHEA/nPTMDyYyBO5oyZDj+3X50KDUzeA== + dependencies: + "@lerna/check-working-tree" "4.0.0" + "@lerna/child-process" "4.0.0" + "@lerna/collect-updates" "4.0.0" + "@lerna/command" "4.0.0" + "@lerna/conventional-commits" "4.0.0" + "@lerna/github-client" "4.0.0" + "@lerna/gitlab-client" "4.0.0" + "@lerna/output" "4.0.0" + "@lerna/prerelease-id-from-version" "4.0.0" + "@lerna/prompt" "4.0.0" + "@lerna/run-lifecycle" "4.0.0" + "@lerna/run-topologically" "4.0.0" + "@lerna/validation-error" "4.0.0" + chalk "^4.1.0" + dedent "^0.7.0" + load-json-file "^6.2.0" + minimatch "^3.0.4" + npmlog "^4.1.2" + p-map "^4.0.0" + p-pipe "^3.1.0" + p-reduce "^2.1.0" + p-waterfall "^2.1.1" + semver "^7.3.4" + slash "^3.0.0" + temp-write "^4.0.0" + write-json-file "^4.3.0" + +"@lerna/write-log-file@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@lerna/write-log-file/-/write-log-file-4.0.0.tgz#18221a38a6a307d6b0a5844dd592ad53fa27091e" + integrity sha512-XRG5BloiArpXRakcnPHmEHJp+4AtnhRtpDIHSghmXD5EichI1uD73J7FgPp30mm2pDRq3FdqB0NbwSEsJ9xFQg== + dependencies: + npmlog "^4.1.2" + write-file-atomic "^3.0.3" + "@mapbox/hast-util-table-cell-style@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@mapbox/hast-util-table-cell-style/-/hast-util-table-cell-style-0.1.3.tgz#5b7166ae01297d72216932b245e4b2f0b642dca6" @@ -4457,6 +5128,16 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-6.1.0.tgz#cf0f859f9a4833b7fa5141b53e1d62d5d1cbc78f" integrity sha512-Z9fDZVbGj4dFLErEoXUSuZhk3wJ8KVGnbrUwoPijsQ9EyNwOeQ+U2jSqaHUz8WtgIWf0aeO59oJyhMpWCKaabg== +"@octokit/openapi-types@^7.2.3": + version "7.2.3" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.2.3.tgz#a7105796db9b85d25d3feba9a1785a124c7803e4" + integrity sha512-V1ycxkR19jqbIl3evf2RQiMRBvTNRi+Iy9h20G5OP5dPfEF6GJ1DPlUeiZRxo2HJxRr+UA4i0H1nn4btBDPFrw== + +"@octokit/plugin-enterprise-rest@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-6.0.1.tgz#e07896739618dab8da7d4077c658003775f95437" + integrity sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw== + "@octokit/plugin-paginate-rest@^2.6.2": version "2.7.0" resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.7.0.tgz#6bb7b043c246e0654119a6ec4e72a172c9e2c7f3" @@ -4485,6 +5166,14 @@ "@octokit/types" "^6.13.0" deprecation "^2.3.1" +"@octokit/plugin-rest-endpoint-methods@5.3.1": + version "5.3.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.3.1.tgz#deddce769b4ec3179170709ab42e4e9e6195aaa9" + integrity sha512-3B2iguGmkh6bQQaVOtCsS0gixrz8Lg0v4JuXPqBcFqLKuJtxAUf3K88RxMEf/naDOI73spD+goJ/o7Ie7Cvdjg== + dependencies: + "@octokit/types" "^6.16.2" + deprecation "^2.3.1" + "@octokit/request-error@^2.0.0": version "2.0.4" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.4.tgz#07dd5c0521d2ee975201274c472a127917741262" @@ -4528,6 +5217,16 @@ "@octokit/plugin-request-log" "^1.0.2" "@octokit/plugin-rest-endpoint-methods" "5.0.0" +"@octokit/rest@^18.1.0": + version "18.5.5" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.5.5.tgz#5a930736767ce4ac960b8b964c453432adf3d0a8" + integrity sha512-Py9sWvxBGeAwNY8UnhxP6jnq7aflvQ0uQ6gmZObyJLR9hmd5NEz9piu/A77cxV6+0l9UNACJVXX6FOnl5LIcPw== + dependencies: + "@octokit/core" "^3.2.3" + "@octokit/plugin-paginate-rest" "^2.6.2" + "@octokit/plugin-request-log" "^1.0.2" + "@octokit/plugin-rest-endpoint-methods" "5.3.1" + "@octokit/types@^6.0.0", "@octokit/types@^6.0.1", "@octokit/types@^6.0.3", "@octokit/types@^6.1.0": version "6.2.1" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.2.1.tgz#7f881fe44475ab1825776a4a59ca1ae082ed1043" @@ -4543,6 +5242,13 @@ dependencies: "@octokit/openapi-types" "^6.0.0" +"@octokit/types@^6.16.2": + version "6.16.2" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.16.2.tgz#62242e0565a3eb99ca2fd376283fe78b4ea057b4" + integrity sha512-wWPSynU4oLy3i4KGyk+J1BLwRKyoeW2TwRHgwbDz17WtVFzSK2GOErGliruIx8c+MaYtHSYTx36DSmLNoNbtgA== + dependencies: + "@octokit/openapi-types" "^7.2.3" + "@popperjs/core@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.4.0.tgz#0e1bdf8d021e7ea58affade33d9d607e11365915" @@ -4620,6 +5326,18 @@ resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0" integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg== +"@semantic-release/exec@^5.0.0": + version "5.0.0" + resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-5.0.0.tgz#69c253107a755dabf7c262d417269d099f714356" + integrity sha512-t7LWXIvDJQbuGCy2WmMG51WyaGSLTvZBv9INvcI4S0kn+QjnnVVUMhcioIqhb0r3yqqarMzHVcABFug0q0OXjw== + dependencies: + "@semantic-release/error" "^2.1.0" + aggregate-error "^3.0.0" + debug "^4.0.0" + execa "^4.0.0" + lodash "^4.17.4" + parse-json "^5.0.0" + "@semantic-release/git@^9.0.0": version "9.0.0" resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5" @@ -6942,6 +7660,11 @@ acorn@^7.1.1, acorn@^7.4.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== +add-stream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" + integrity sha1-anmQQ3ynNtXhKI25K9MmbV9csqo= + address@1.1.2, address@^1.0.1: version "1.1.2" resolved "https://registry.yarnpkg.com/address/-/address-1.1.2.tgz#bf1116c9c758c51b7a933d296b72c221ed9428b6" @@ -7567,16 +8290,17 @@ attr-accept@^2.2.1: resolved "https://registry.yarnpkg.com/attr-accept/-/attr-accept-2.2.2.tgz#646613809660110749e92f2c10833b70968d929b" integrity sha512-7prDjvt9HmqiZ0cl5CRjtS84sEyhsHP2coDkaZKRKVfCDo9s7iw7ChVmar78Gu9pC4SoR/28wFu/G5JJhTnqEg== -autoprefixer@^10.2.5: - version "10.2.5" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.2.5.tgz#096a0337dbc96c0873526d7fef5de4428d05382d" - integrity sha512-7H4AJZXvSsn62SqZyJCP+1AWwOuoYpUfK6ot9vm0e87XD6mT8lDywc9D9OTJPMULyGcvmIxzTAMeG2Cc+YX+fA== +autoprefixer@^9.0.0: + version "9.8.6" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.6.tgz#3b73594ca1bf9266320c5acf1588d74dea74210f" + integrity sha512-XrvP4VVHdRBCdX1S3WXVD8+RyG9qeb1D5Sn1DeLiG2xfSpzellk5k54xbUERJ3M5DggQxes39UGOTP8CFrEGbg== dependencies: - browserslist "^4.16.3" - caniuse-lite "^1.0.30001196" - colorette "^1.2.2" - fraction.js "^4.0.13" + browserslist "^4.12.0" + caniuse-lite "^1.0.30001109" + colorette "^1.2.1" normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^7.0.32" postcss-value-parser "^4.1.0" autoprefixer@^9.4.9: @@ -8507,17 +9231,6 @@ browserslist@^4.12.0: escalade "^3.0.1" node-releases "^1.1.58" -browserslist@^4.16.3: - version "4.16.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.4.tgz#7ebf913487f40caf4637b892b268069951c35d58" - integrity sha512-d7rCxYV8I9kj41RH8UKYnvDYCRENUlHRgyXy/Rhr/1BaeLGfiCptEdFE8MIrvGfWbBFNjVYx76SQWvNX1j+/cQ== - dependencies: - caniuse-lite "^1.0.30001208" - colorette "^1.2.2" - electron-to-chromium "^1.3.712" - escalade "^3.1.1" - node-releases "^1.1.71" - browserslist@^4.7.0: version "4.9.1" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.9.1.tgz#01ffb9ca31a1aef7678128fc6a2253316aa7287c" @@ -8607,7 +9320,7 @@ byte-size@^5.0.1: resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-5.0.1.tgz#4b651039a5ecd96767e71a3d7ed380e48bed4191" integrity sha512-/XuKeqWocKsYa/cBY1YbSJSWWqTi4cFgr9S6OyM7PBaPbr9zvNGwWP33vt0uqGhwDdN+y3yhbXVILEUpnwEWGw== -byte-size@^7.0.1: +byte-size@^7.0.0, byte-size@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/byte-size/-/byte-size-7.0.1.tgz#b1daf3386de7ab9d706b941a748dbfc71130dee3" integrity sha512-crQdqyCwhokxwV1UyDzLZanhkugAgft7vt0qbbdt60C6Zf3CAiGmtUCylbtYwrU6loOUw3euGrNtW1J651ot1A== @@ -8838,10 +9551,10 @@ caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001093: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001096.tgz#5a4541af5317dc21f91f5b24d453030a35f919c0" integrity sha512-PFTw9UyVfbkcMEFs82q8XVlRayj7HKvnhu5BLcmjGpv+SNyiWasCcWXPGJuO0rK0dhLRDJmtZcJ+LHUfypbw1w== -caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001208: - version "1.0.30001214" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001214.tgz#70f153c78223515c6d37a9fde6cd69250da9d872" - integrity sha512-O2/SCpuaU3eASWVaesQirZv1MSjUNOvmugaD8zNSJqw6Vv5SGwoOpA9LJs3pNPfM745nxqPvfZY3MQKY4AKHYg== +caniuse-lite@^1.0.30001109: + version "1.0.30001230" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001230.tgz#8135c57459854b2240b57a4a6786044bdc5a9f71" + integrity sha512-5yBd5nWCBS+jWKTcHOzXwo5xzcj4ePE/yjtkZyUV1BTUmrBaA9MRGC+e7mxnqXSA90CmCA8L3eKLaSUkt099IQ== canvas@^2.6.1: version "2.6.1" @@ -9344,7 +10057,7 @@ cmd-shim@^3.0.0, cmd-shim@^3.0.3: graceful-fs "^4.1.2" mkdirp "~0.5.0" -cmd-shim@^4.0.1: +cmd-shim@^4.0.1, cmd-shim@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-4.1.0.tgz#b3a904a6743e9fede4148c6f3800bf2a08135bdd" integrity sha512-lb9L7EM4I/ZRVuljLPEtUJOP+xiQVknZ4ZMpMgEp4JzNldPb27HU03hi6K1/6CoIuit/Zm/LQXySErFeXxDprw== @@ -9466,7 +10179,7 @@ colorspace@1.1.x: color "3.0.x" text-hex "1.0.x" -columnify@~1.5.4: +columnify@^1.5.4, columnify@~1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" integrity sha1-Rzfd8ce2mop8NAVweC6UfuyOeLs= @@ -9629,6 +10342,16 @@ concat-stream@^1.5.0, concat-stream@^1.6.2: readable-stream "^2.2.2" typedarray "^0.0.6" +concat-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" + integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.0.2" + typedarray "^0.0.6" + config-chain@^1.1.12: version "1.1.12" resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" @@ -9720,7 +10443,7 @@ content-type@~1.0.4: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== -conventional-changelog-angular@^5.0.0, conventional-changelog-angular@^5.0.11: +conventional-changelog-angular@^5.0.0, conventional-changelog-angular@^5.0.11, conventional-changelog-angular@^5.0.12: version "5.0.12" resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz#c979b8b921cbfe26402eb3da5bbfda02d865a2b9" integrity sha512-5GLsbnkR/7A89RyHLvvoExbiGbd9xKdKqDTrArnPbOqBqG/2wIosu0fHwpeIRI8Tl94MhVNBXcLJZl92ZQ5USw== @@ -9728,7 +10451,7 @@ conventional-changelog-angular@^5.0.0, conventional-changelog-angular@^5.0.11: compare-func "^2.0.0" q "^1.5.1" -conventional-changelog-conventionalcommits@^4.3.0, conventional-changelog-conventionalcommits@^4.3.1: +conventional-changelog-conventionalcommits@^4.3.1: version "4.4.0" resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.4.0.tgz#8d96687141c9bbd725a89b95c04966d364194cd4" integrity sha512-ybvx76jTh08tpaYrYn/yd0uJNLt5yMrb1BphDe4WBredMlvPisvMghfpnJb6RmRNcqXeuhR6LfGZGewbkRm9yA== @@ -9737,7 +10460,33 @@ conventional-changelog-conventionalcommits@^4.3.0, conventional-changelog-conven lodash "^4.17.15" q "^1.5.1" -conventional-changelog-writer@^4.0.0: +conventional-changelog-core@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-4.2.2.tgz#f0897df6d53b5d63dec36b9442bd45354f8b3ce5" + integrity sha512-7pDpRUiobQDNkwHyJG7k9f6maPo9tfPzkSWbRq97GGiZqisElhnvUZSvyQH20ogfOjntB5aadvv6NNcKL1sReg== + dependencies: + add-stream "^1.0.0" + conventional-changelog-writer "^4.0.18" + conventional-commits-parser "^3.2.0" + dateformat "^3.0.0" + get-pkg-repo "^1.0.0" + git-raw-commits "^2.0.8" + git-remote-origin-url "^2.0.0" + git-semver-tags "^4.1.1" + lodash "^4.17.15" + normalize-package-data "^3.0.0" + q "^1.5.1" + read-pkg "^3.0.0" + read-pkg-up "^3.0.0" + shelljs "^0.8.3" + through2 "^4.0.0" + +conventional-changelog-preset-loader@^2.3.4: + version "2.3.4" + resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.3.4.tgz#14a855abbffd59027fd602581f1f34d9862ea44c" + integrity sha512-GEKRWkrSAZeTq5+YjUZOYxdHq+ci4dNwHvpaBC3+ENalzFWuCWa9EZXSuZBpkr72sMdKB+1fyDV4takK1Lf58g== + +conventional-changelog-writer@^4.0.0, conventional-changelog-writer@^4.0.18: version "4.1.0" resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz#1ca7880b75aa28695ad33312a1f2366f4b12659f" integrity sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw== @@ -9779,6 +10528,33 @@ conventional-commits-parser@^3.0.0, conventional-commits-parser@^3.0.7: through2 "^4.0.0" trim-off-newlines "^1.0.0" +conventional-commits-parser@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.1.tgz#ba44f0b3b6588da2ee9fd8da508ebff50d116ce2" + integrity sha512-OG9kQtmMZBJD/32NEw5IhN5+HnBqVjy03eC+I71I0oQRFA5rOgA4OtPOYG7mz1GkCfCNxn3gKIX8EiHJYuf1cA== + dependencies: + JSONStream "^1.0.4" + is-text-path "^1.0.1" + lodash "^4.17.15" + meow "^8.0.0" + split2 "^3.0.0" + through2 "^4.0.0" + trim-off-newlines "^1.0.0" + +conventional-recommended-bump@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz#cfa623285d1de554012f2ffde70d9c8a22231f55" + integrity sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw== + dependencies: + concat-stream "^2.0.0" + conventional-changelog-preset-loader "^2.3.4" + conventional-commits-filter "^2.0.7" + conventional-commits-parser "^3.2.0" + git-raw-commits "^2.0.8" + git-semver-tags "^4.1.1" + meow "^8.0.0" + q "^1.5.1" + convert-source-map@^1.1.0, convert-source-map@^1.4.0: version "1.6.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20" @@ -10627,11 +11403,16 @@ detect-indent@6.0.0: resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA== -detect-indent@~5.0.0: +detect-indent@^5.0.0, detect-indent@~5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50= +detect-indent@^6.0.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6" + integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== + detect-libc@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" @@ -10911,6 +11692,13 @@ dot-prop@^5.1.0: dependencies: is-obj "^2.0.0" +dot-prop@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" + integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== + dependencies: + is-obj "^2.0.0" + dotenv-defaults@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/dotenv-defaults/-/dotenv-defaults-1.0.2.tgz#441cf5f067653fca4bbdce9dd3b803f6f84c585d" @@ -11015,11 +11803,6 @@ electron-to-chromium@^1.3.488: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.492.tgz#bde16082a05a124266e5ecc9cf0ce53d137f2919" integrity sha512-AD6v9Y2wN0HuoRH4LwCmlSHjkKq51D1U52bTuvM5uPzisbHVm3Hms15c42TBFLewxnSqxAynK/tbeaUi4Rnjqw== -electron-to-chromium@^1.3.712: - version "1.3.719" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.719.tgz#87166fee347a46a2557f19aadb40a1d68241e61c" - integrity sha512-heM78GKSqrIzO9Oz0/y22nTBN7bqSP1Pla2SyU9DiSnQD+Ea9SyyN5RWWlgqsqeBLNDkSlE9J9EHFmdMPzxB/g== - element-resize-detector@^1.1.15: version "1.1.15" resolved "https://registry.yarnpkg.com/element-resize-detector/-/element-resize-detector-1.1.15.tgz#48eba1a2eaa26969a4c998d972171128c971d8d2" @@ -11182,7 +11965,7 @@ env-paths@^2.2.0: resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43" integrity sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA== -envinfo@^7.7.3: +envinfo@^7.7.3, envinfo@^7.7.4: version "7.8.1" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== @@ -11805,7 +12588,7 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= -eventemitter3@^4.0.0: +eventemitter3@^4.0.0, eventemitter3@^4.0.4: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== @@ -12253,6 +13036,11 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +filter-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" + integrity sha1-mzERErxsYSehbgFsbF1/GeCAXFs= + finalhandler@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" @@ -12528,11 +13316,6 @@ fp-ts@^1.0.0: resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-1.19.5.tgz#3da865e585dfa1fdfd51785417357ac50afc520a" integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A== -fraction.js@^4.0.13: - version "4.0.13" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.0.13.tgz#3c1c315fa16b35c85fffa95725a36fa729c69dfe" - integrity sha512-E1fz2Xs9ltlUp+qbiyx9wmt2n9dRzPsS11Jtdb8D2o+cC7wr9xkkKsVKJuBX0ST+LVS+LhLO+SbLJNtfWcJvXA== - fragment-cache@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" @@ -12596,6 +13379,16 @@ fs-extra@^9.0.0: jsonfile "^6.0.1" universalify "^1.0.0" +fs-extra@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d" + integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-extra@~7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" @@ -12814,6 +13607,22 @@ get-own-enumerable-property-symbols@^3.0.0: resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz#b5fde77f22cbe35f390b4e089922c50bce6ef664" integrity sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g== +get-pkg-repo@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d" + integrity sha1-xztInAbYDMVTbCyFP54FIyBWly0= + dependencies: + hosted-git-info "^2.1.4" + meow "^3.3.0" + normalize-package-data "^2.3.0" + parse-github-repo-url "^1.3.0" + through2 "^2.0.0" + +get-port@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/get-port/-/get-port-5.1.1.tgz#0469ed07563479de6efb986baf053dcd7d4e3193" + integrity sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ== + get-stdin@8.0.0, get-stdin@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" @@ -12888,6 +13697,55 @@ git-raw-commits@^2.0.0: split2 "^2.0.0" through2 "^3.0.0" +git-raw-commits@^2.0.8: + version "2.0.10" + resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.10.tgz#e2255ed9563b1c9c3ea6bd05806410290297bbc1" + integrity sha512-sHhX5lsbG9SOO6yXdlwgEMQ/ljIn7qMpAbJZCGfXX2fq5T8M5SrDnpYk9/4HswTildcIqatsWa91vty6VhWSaQ== + dependencies: + dargs "^7.0.0" + lodash "^4.17.15" + meow "^8.0.0" + split2 "^3.0.0" + through2 "^4.0.0" + +git-remote-origin-url@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f" + integrity sha1-UoJlna4hBxRaERJhEq0yFuxfpl8= + dependencies: + gitconfiglocal "^1.0.0" + pify "^2.3.0" + +git-semver-tags@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-4.1.1.tgz#63191bcd809b0ec3e151ba4751c16c444e5b5780" + integrity sha512-OWyMt5zBe7xFs8vglMmhM9lRQzCWL3WjHtxNNfJTMngGym7pC1kh8sP6jevfydJ6LP3ZvGxfb6ABYgPUM0mtsA== + dependencies: + meow "^8.0.0" + semver "^6.0.0" + +git-up@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.2.tgz#10c3d731051b366dc19d3df454bfca3f77913a7c" + integrity sha512-kbuvus1dWQB2sSW4cbfTeGpCMd8ge9jx9RKnhXhuJ7tnvT+NIrTVfYZxjtflZddQYcmdOTlkAcjmx7bor+15AQ== + dependencies: + is-ssh "^1.3.0" + parse-url "^5.0.0" + +git-url-parse@^11.4.4: + version "11.4.4" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.4.4.tgz#5d747debc2469c17bc385719f7d0427802d83d77" + integrity sha512-Y4o9o7vQngQDIU9IjyCmRJBin5iYjI5u9ZITnddRZpD7dcCFQj2sL2XuMNbLRE4b4B/4ENPsp2Q8P44fjAZ0Pw== + dependencies: + git-up "^4.0.0" + +gitconfiglocal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b" + integrity sha1-QdBF84UaXqiPA/JMocYXgRRGS5s= + dependencies: + ini "^1.3.2" + github-slugger@^1.0.0: version "1.2.1" resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.2.1.tgz#47e904e70bf2dccd0014748142d31126cfd49508" @@ -12932,7 +13790,7 @@ glob-parent@^5.1.0: dependencies: is-glob "^4.0.1" -glob-parent@~5.1.0: +glob-parent@^5.1.1, glob-parent@~5.1.0: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -13095,6 +13953,18 @@ globby@^11.0.0, globby@^11.0.1: merge2 "^1.3.0" slash "^3.0.0" +globby@^11.0.2: + version "11.0.3" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb" + integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.1.1" + ignore "^5.1.4" + merge2 "^1.3.0" + slash "^3.0.0" + globby@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" @@ -13234,7 +14104,7 @@ has-symbols@^1.0.1: resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== -has-unicode@^2.0.0, has-unicode@~2.0.1: +has-unicode@^2.0.0, has-unicode@^2.0.1, has-unicode@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= @@ -14039,7 +14909,7 @@ inherits@2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= -ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: +ini@^1.3.2, ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== @@ -14742,6 +15612,13 @@ is-root@2.1.0: resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" integrity sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg== +is-ssh@^1.3.0: + version "1.3.3" + resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.3.3.tgz#7f133285ccd7f2c2c7fc897b771b53d95a2b2c7e" + integrity sha512-NKzJmQzJfEEma3w5cJNcUMxoXfDjz0Zj0eyCalHn2E6VOwlzjZo0yuO2fcBSf8zhFuVCL/82/r5gRcoi6aEPVQ== + dependencies: + protocols "^1.1.0" + is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -15903,6 +16780,30 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" +lerna@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/lerna/-/lerna-4.0.0.tgz#b139d685d50ea0ca1be87713a7c2f44a5b678e9e" + integrity sha512-DD/i1znurfOmNJb0OBw66NmNqiM8kF6uIrzrJ0wGE3VNdzeOhz9ziWLYiRaZDGGwgbcjOo6eIfcx9O5Qynz+kg== + dependencies: + "@lerna/add" "4.0.0" + "@lerna/bootstrap" "4.0.0" + "@lerna/changed" "4.0.0" + "@lerna/clean" "4.0.0" + "@lerna/cli" "4.0.0" + "@lerna/create" "4.0.0" + "@lerna/diff" "4.0.0" + "@lerna/exec" "4.0.0" + "@lerna/import" "4.0.0" + "@lerna/info" "4.0.0" + "@lerna/init" "4.0.0" + "@lerna/link" "4.0.0" + "@lerna/list" "4.0.0" + "@lerna/publish" "4.0.0" + "@lerna/run" "4.0.0" + "@lerna/version" "4.0.0" + import-local "^3.0.2" + npmlog "^4.1.2" + leven@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" @@ -16233,6 +17134,16 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" +load-json-file@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-6.2.0.tgz#5c7770b42cafa97074ca2848707c61662f4251a1" + integrity sha512-gUD/epcRms75Cw8RT1pUdHugZYM5ce64ucs2GEISABwkRsOQr0q2wm/MV2TKThycIe5e0ytRweW2RZxclogCdQ== + dependencies: + graceful-fs "^4.1.15" + parse-json "^5.0.0" + strip-bom "^4.0.0" + type-fest "^0.6.0" + loader-runner@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" @@ -16439,7 +17350,7 @@ lodash.sortby@^4.7.0: resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= -lodash.template@^4.0.2: +lodash.template@^4.0.2, lodash.template@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== @@ -16489,7 +17400,7 @@ lodash.zip@^4.2.0: resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020" integrity sha1-7GZi5IlkCO1KtsVCo5kLcswIACA= -lodash@4.x, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@~4.17.10, lodash@~4.17.15: +lodash@4.x, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0, lodash@~4.17.10, lodash@~4.17.15: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -16988,7 +17899,7 @@ memory-fs@^0.5.0: errno "^0.1.3" readable-stream "^2.0.1" -meow@^3.7.0: +meow@^3.3.0, meow@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" integrity sha1-cstmi0JSKCkKu/qFaJJYcwioAfs= @@ -17485,6 +18396,17 @@ multimatch@^4.0.0: arrify "^2.0.1" minimatch "^3.0.4" +multimatch@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-5.0.0.tgz#932b800963cea7a31a033328fa1e0c3a1874dbe6" + integrity sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA== + dependencies: + "@types/minimatch" "^3.0.3" + array-differ "^3.0.0" + array-union "^2.1.0" + arrify "^2.0.1" + minimatch "^3.0.4" + mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" @@ -17510,6 +18432,11 @@ nanoid@^3.1.22: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844" integrity sha512-/2ZUaJX2ANuLtTvqTlgqBQNJoQO398KyJgZloL0PZkC0dpysjncRUPsFe3DUPzz/y3h+u7C46np8RMuvF3jsSQ== +nanoid@^3.1.23: + version "3.1.23" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" + integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -17788,11 +18715,6 @@ node-releases@^1.1.58: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.58.tgz#8ee20eef30fa60e52755fcc0942def5a734fe935" integrity sha512-NxBudgVKiRh/2aPWMgPR7bPTX0VPmGx5QBwCtdHitnqFE5/O8DeBXuIMH1nwNnw/aMo6AjOrpsHzfY3UbUJ7yg== -node-releases@^1.1.71: - version "1.1.71" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.71.tgz#cb1334b179896b1c89ecfdd4b725fb7bbdfc7dbb" - integrity sha512-zR6HoT6LrLCRBwukmrVbHv0EpEQjksO6GmFcZQQuCAy139BEsoVKPYnf3jongYW83fAa1torLGYwxxky/p28sg== - node-sass@^4.14.1: version "4.14.1" resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.14.1.tgz#99c87ec2efb7047ed638fb4c9db7f3a42e2217b5" @@ -17838,7 +18760,7 @@ nopt@^5.0.0: dependencies: abbrev "1" -normalize-package-data@^2.0.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.4.0, normalize-package-data@^2.5.0: +normalize-package-data@^2.0.0, normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.4.0, normalize-package-data@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== @@ -17885,6 +18807,11 @@ normalize-url@1.9.1: query-string "^4.1.0" sort-keys "^1.0.0" +normalize-url@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" + integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== + normalize-url@^5.0.0: version "5.3.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-5.3.0.tgz#8959b3cdaa295b61592c1f245dded34b117618dd" @@ -18352,6 +19279,11 @@ object-inspect@^1.7.0, object-inspect@^1.8.0: resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a" integrity sha512-i3Bp9iTqwhaLZBxGkRfo5ZbE07BQRT7MGu8+nNgwW9ItGp1TzCTw2DLEoWwjClxBjOFI/hWljTAmYGCEwmtnOw== +object-inspect@^1.9.0: + version "1.10.3" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.10.3.tgz#c2aa7d2d09f50c99375704f7a0adf24c5782d369" + integrity sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw== + object-is@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.1.tgz#0aa60ec9989a0b3ed795cf4d06f62cf1ad6539b6" @@ -18709,6 +19641,11 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-map-series@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-map-series/-/p-map-series-2.1.0.tgz#7560d4c452d9da0c07e692fdbfe6e2c81a2a91f2" + integrity sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q== + p-map@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175" @@ -18728,7 +19665,20 @@ p-map@^4.0.0: dependencies: aggregate-error "^3.0.0" -p-reduce@^2.0.0: +p-pipe@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-pipe/-/p-pipe-3.1.0.tgz#48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e" + integrity sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw== + +p-queue@^6.6.2: + version "6.6.2" + resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-6.6.2.tgz#2068a9dcf8e67dd0ec3e7a2bcb76810faa85e426" + integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== + dependencies: + eventemitter3 "^4.0.4" + p-timeout "^3.2.0" + +p-reduce@^2.0.0, p-reduce@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-2.1.0.tgz#09408da49507c6c274faa31f28df334bc712b64a" integrity sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw== @@ -18748,6 +19698,13 @@ p-retry@^4.0.0: "@types/retry" "^0.12.0" retry "^0.12.0" +p-timeout@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-3.2.0.tgz#c7e17abc971d2a7962ef83626b35d635acf23dfe" + integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== + dependencies: + p-finally "^1.0.0" + p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -18758,6 +19715,13 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== +p-waterfall@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-waterfall/-/p-waterfall-2.1.1.tgz#63153a774f472ccdc4eb281cdb2967fcf158b2ee" + integrity sha512-RRTnDb2TBG/epPRI2yYXsimO0v3BXC8Yd3ogr1545IaqKK17VGhbWVeGGN+XfCm/08OK8635nH31c8bATkHuSw== + dependencies: + p-reduce "^2.0.0" + package-json@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" @@ -18885,7 +19849,7 @@ parse-conflict-json@^1.1.1: just-diff "^3.0.1" just-diff-apply "^3.0.0" -parse-entities@^1.1.0: +parse-entities@^1.1.0, parse-entities@^1.1.2: version "1.2.2" resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.2.2.tgz#c31bf0f653b6661354f8973559cb86dd1d5edf50" integrity sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg== @@ -18909,6 +19873,11 @@ parse-entities@^2.0.0: is-decimal "^1.0.0" is-hexadecimal "^1.0.0" +parse-github-repo-url@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50" + integrity sha1-nn2LslKmy2ukJZUGC3v23z28H1A= + parse-json@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" @@ -18939,6 +19908,26 @@ parse-passwd@^1.0.0: resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= +parse-path@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.3.tgz#82d81ec3e071dcc4ab49aa9f2c9c0b8966bb22bf" + integrity sha512-9Cepbp2asKnWTJ9x2kpw6Fe8y9JDbqwahGCTvklzd/cEq5C5JC59x2Xb0Kx+x0QZ8bvNquGO8/BWP0cwBHzSAA== + dependencies: + is-ssh "^1.3.0" + protocols "^1.4.0" + qs "^6.9.4" + query-string "^6.13.8" + +parse-url@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-5.0.2.tgz#856a3be1fcdf78dc93fc8b3791f169072d898b59" + integrity sha512-Czj+GIit4cdWtxo3ISZCvLiUjErSo0iI3wJ+q9Oi3QuMYTI6OZu+7cewMWZ+C1YAnKhYTk6/TLuhIgCypLthPA== + dependencies: + is-ssh "^1.3.0" + normalize-url "^3.3.0" + parse-path "^4.0.0" + protocols "^1.4.0" + parse5-htmlparser2-tree-adapter@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-6.0.1.tgz#2cdf9ad823321140370d4dbf5d3e92c7c8ddc6e6" @@ -19113,6 +20102,11 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f" + integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA== + pinkie-promise@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" @@ -19416,7 +20410,16 @@ postcss-value-parser@^4.1.0: resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb" integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ== -postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.18, postcss@^7.0.23, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6, postcss@^8.2.10: +postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.18, postcss@^7.0.23, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.5, postcss@^7.0.6: + version "7.0.35" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.35.tgz#d2be00b998f7f211d8a276974079f2e92b970e24" + integrity sha512-3QT8bBJeX/S5zKTTjTCIjRF3If4avAT6kqxcASlTWEtAFCb9NH0OUxNDfgZSWdP5fJnBYCMEWkIFfWeugjzYMg== + dependencies: + chalk "^2.4.2" + source-map "^0.6.1" + supports-color "^6.1.0" + +postcss@^8.2.10: version "8.2.10" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.10.tgz#ca7a042aa8aff494b334d0ff3e9e77079f6f702b" integrity sha512-b/h7CPV7QEdrqIxtAf2j31U5ef05uBDuvoXv6L51Q4rcS1jdlXAVKJv+atCFdUXYl9dyTHGyoMzIepwowRJjFw== @@ -19425,6 +20428,15 @@ postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.18, postcss@^7.0. nanoid "^3.1.22" source-map "^0.6.1" +postcss@^8.3.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.0.tgz#b1a713f6172ca427e3f05ef1303de8b65683325f" + integrity sha512-+ogXpdAjWGa+fdYY5BQ96V/6tAo+TdSSIMP5huJBIygdWwKtVoB5JWZ7yUd4xZ8r+8Kvvx4nyg/PQ071H4UtcQ== + dependencies: + colorette "^1.2.2" + nanoid "^3.1.23" + source-map-js "^0.6.2" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -19510,13 +20522,20 @@ pretty-quick@^3.1.0: mri "^1.1.5" multimatch "^4.0.0" -prismjs@^1.8.4, prismjs@~1.21.0: +prismjs@^1.8.4: version "1.21.0" resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.21.0.tgz#36c086ec36b45319ec4218ee164c110f9fc015a3" integrity sha512-uGdSIu1nk3kej2iZsLyDoJ7e9bnPzIgY0naW/HdknGj61zScaprVEVGHrPoXqI+M9sP0NDnTK2jpkvmldpuqDw== optionalDependencies: clipboard "^2.0.0" +prismjs@~1.17.0: + version "1.17.1" + resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.17.1.tgz#e669fcbd4cdd873c35102881c33b14d0d68519be" + integrity sha512-PrEDJAFdUGbOP6xK/UsfkC5ghJsPJviKgnQOoxaDbBjwc8op68Quupwt1DeAFoG8GImPhiKXAvvsH7wDSLsu1Q== + optionalDependencies: + clipboard "^2.0.0" + private@^0.1.6, private@^0.1.8, private@~0.1.5: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -19653,6 +20672,11 @@ proto-list@~1.2.1: resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk= +protocols@^1.1.0, protocols@^1.4.0: + version "1.4.8" + resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" + integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== + protoduck@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/protoduck/-/protoduck-5.0.1.tgz#03c3659ca18007b69a50fd82a7ebcc516261151f" @@ -19877,6 +20901,13 @@ qs@^6.6.0: resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.4.tgz#9090b290d1f91728d3c22e54843ca44aea5ab687" integrity sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ== +qs@^6.9.4: + version "6.10.1" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.1.tgz#4931482fa8d647a5aab799c5271d2133b981fb6a" + integrity sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg== + dependencies: + side-channel "^1.0.4" + qs@~6.5.2: version "6.5.2" resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" @@ -19890,6 +20921,16 @@ query-string@^4.1.0: object-assign "^4.1.0" strict-uri-encode "^1.0.0" +query-string@^6.13.8: + version "6.14.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a" + integrity sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw== + dependencies: + decode-uri-component "^0.2.0" + filter-obj "^1.1.0" + split-on-first "^1.0.0" + strict-uri-encode "^2.0.0" + query-string@^6.8.2: version "6.13.8" resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.8.tgz#8cf231759c85484da3cf05a851810d8e825c1159" @@ -20526,7 +21567,7 @@ read-package-json-fast@^2.0.1, read-package-json-fast@^2.0.2: normalize-package-data "^2.0.0" npm-normalize-package-bin "^1.0.0" -read-package-json@^3.0.1: +read-package-json@^3.0.0, read-package-json@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-3.0.1.tgz#c7108f0b9390257b08c21e3004d2404c806744b9" integrity sha512-aLcPqxovhJTVJcsnROuuzQvv6oziQx4zd3JvG0vGCL5MjTONUc4uJ90zCBC6R7W7oUKBNoR/F8pkyfVwlbxqng== @@ -20561,6 +21602,14 @@ read-pkg-up@^2.0.0: find-up "^2.0.0" read-pkg "^2.0.0" +read-pkg-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" + integrity sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc= + dependencies: + find-up "^2.0.0" + read-pkg "^3.0.0" + read-pkg-up@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978" @@ -20635,7 +21684,7 @@ read@1, read@~1.0.1, read@~1.0.7: string_decoder "~1.1.1" util-deprecate "~1.0.1" -"readable-stream@2 || 3", readable-stream@3, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0: +"readable-stream@2 || 3", readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== @@ -20796,14 +21845,14 @@ reflect.ownkeys@^0.2.0: resolved "https://registry.yarnpkg.com/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz#749aceec7f3fdf8b63f927a04809e90c5c0b3460" integrity sha1-dJrO7H8/34tj+SegSAnpDFwLNGA= -refractor@^2.4.1, refractor@~3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/refractor/-/refractor-3.1.0.tgz#b05a43c8a1b4fccb30001ffcbd5cd781f7f06f78" - integrity sha512-bN8GvY6hpeXfC4SzWmYNQGLLF2ZakRDNBkgCL0vvl5hnpMrnyURk8Mv61v6pzn4/RBHzSWLp44SzMmVHqMGNww== +refractor@^2.4.1: + version "2.10.1" + resolved "https://registry.yarnpkg.com/refractor/-/refractor-2.10.1.tgz#166c32f114ed16fd96190ad21d5193d3afc7d34e" + integrity sha512-Xh9o7hQiQlDbxo5/XkOX6H+x/q8rmlmZKr97Ie1Q8ZM32IRRd3B/UxuA/yXDW79DBSXGWxm2yRTbcTVmAciJRw== dependencies: hastscript "^5.0.0" - parse-entities "^2.0.0" - prismjs "~1.21.0" + parse-entities "^1.1.2" + prismjs "~1.17.0" regenerate-unicode-properties@^8.1.0: version "8.1.0" @@ -22038,6 +23087,15 @@ side-channel@^1.0.2: es-abstract "^1.17.0-next.1" object-inspect "^1.7.0" +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" @@ -22271,6 +23329,20 @@ sort-keys@^1.0.0: dependencies: is-plain-obj "^1.0.0" +sort-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" + integrity sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg= + dependencies: + is-plain-obj "^1.0.0" + +sort-keys@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-4.2.0.tgz#6b7638cee42c506fff8c1cecde7376d21315be18" + integrity sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg== + dependencies: + is-plain-obj "^2.0.0" + sorted-object@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/sorted-object/-/sorted-object-2.0.1.tgz#7d631f4bd3a798a24af1dffcfbfe83337a5df5fc" @@ -22289,6 +23361,11 @@ source-list-map@^2.0.0: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== +source-map-js@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e" + integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug== + source-map-resolve@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" @@ -22449,6 +23526,13 @@ split2@^2.0.0: dependencies: through2 "^2.0.2" +split2@^3.0.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" + integrity sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg== + dependencies: + readable-stream "^3.0.0" + split2@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/split2/-/split2-1.0.0.tgz#52e2e221d88c75f9a73f90556e263ff96772b314" @@ -22907,6 +23991,15 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= +strong-log-transformer@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" + integrity sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA== + dependencies: + duplexer "^0.1.1" + minimist "^1.2.0" + through "^2.3.4" + style-loader@^0.23.1: version "0.23.1" resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.23.1.tgz#cb9154606f3e771ab6c4ab637026a1049174d925" @@ -23088,11 +24181,27 @@ telejson@^3.0.2, telejson@^3.2.0: lodash "^4.17.15" memoizerific "^1.11.3" +temp-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d" + integrity sha1-CnwOom06Oa+n4OvqnB/AvE2qAR0= + temp-dir@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e" integrity sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg== +temp-write@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-4.0.0.tgz#cd2e0825fc826ae72d201dc26eef3bf7e6fc9320" + integrity sha512-HIeWmj77uOOHb0QX7siN3OtwV3CTntquin6TNVg6SHOqCP3hYKmox90eeFOGaY1MqJ9WYDDjkyZrW6qS5AWpbw== + dependencies: + graceful-fs "^4.1.15" + is-stream "^2.0.0" + make-dir "^3.0.0" + temp-dir "^1.0.0" + uuid "^3.3.2" + temp@^0.8.1: version "0.8.4" resolved "https://registry.yarnpkg.com/temp/-/temp-0.8.4.tgz#8c97a33a4770072e0a05f919396c7665a7dd59f2" @@ -23281,7 +24390,7 @@ through2@^4.0.0: dependencies: readable-stream "3" -through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8: +through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6, through@^2.3.8: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= @@ -23654,6 +24763,11 @@ type-fest@^0.3.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== +type-fest@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8" + integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw== + type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" @@ -24052,6 +25166,11 @@ upath@^1.1.1: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== +upath@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/upath/-/upath-2.0.1.tgz#50c73dea68d6f6b990f51d279ce6081665d61a8b" + integrity sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w== + update-notifier@^2.2.0, update-notifier@^2.3.0, update-notifier@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6" @@ -24741,6 +25860,15 @@ whatwg-url@^8.0.0: tr46 "^2.0.2" webidl-conversions "^6.1.0" +whatwg-url@^8.4.0: + version "8.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.5.0.tgz#7752b8464fc0903fec89aa9846fc9efe07351fd3" + integrity sha512-fy+R77xWv0AiqfLl4nuGUlQ3/6b5uNfQ4WAbGQVMYshCTCCPK9psC1nWh3XHuxGVCtlcDDQPQW1csmmIQo+fwg== + dependencies: + lodash "^4.7.0" + tr46 "^2.0.2" + webidl-conversions "^6.1.0" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" @@ -24897,7 +26025,7 @@ write-file-atomic@2.4.1: imurmurhash "^0.1.4" signal-exit "^3.0.2" -write-file-atomic@^2.0.0, write-file-atomic@^2.3.0, write-file-atomic@^2.4.3: +write-file-atomic@^2.0.0, write-file-atomic@^2.3.0, write-file-atomic@^2.4.2, write-file-atomic@^2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481" integrity sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ== @@ -24916,6 +26044,39 @@ write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: signal-exit "^3.0.2" typedarray-to-buffer "^3.1.5" +write-json-file@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-3.2.0.tgz#65bbdc9ecd8a1458e15952770ccbadfcff5fe62a" + integrity sha512-3xZqT7Byc2uORAatYiP3DHUUAVEkNOswEWNs9H5KXiicRTvzYzYqKjYc4G7p+8pltvAw641lVByKVtMpf+4sYQ== + dependencies: + detect-indent "^5.0.0" + graceful-fs "^4.1.15" + make-dir "^2.1.0" + pify "^4.0.1" + sort-keys "^2.0.0" + write-file-atomic "^2.4.2" + +write-json-file@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-4.3.0.tgz#908493d6fd23225344af324016e4ca8f702dd12d" + integrity sha512-PxiShnxf0IlnQuMYOPPhPkhExoCQuTUNPOa/2JWCYTmBquU9njyyDuwRKN26IZBlp4yn1nt+Agh2HOOBl+55HQ== + dependencies: + detect-indent "^6.0.0" + graceful-fs "^4.1.15" + is-plain-obj "^2.0.0" + make-dir "^3.0.0" + sort-keys "^4.0.0" + write-file-atomic "^3.0.0" + +write-pkg@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/write-pkg/-/write-pkg-4.0.0.tgz#675cc04ef6c11faacbbc7771b24c0abbf2a20039" + integrity sha512-v2UQ+50TNf2rNHJ8NyWttfm/EJUBWMJcx6ZTYZr6Qp52uuegWw/lBkCtCbnYZEmPRNL61m+u67dAmGxo+HTULA== + dependencies: + sort-keys "^2.0.0" + type-fest "^0.4.1" + write-json-file "^3.2.0" + ws@^6.1.0, ws@^6.2.1: version "6.2.2" resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e" @@ -24983,7 +26144,7 @@ yaml@^1.10.0, yaml@^1.7.2: resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e" integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg== -yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3: +yargs-parser@20.2.4, yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3: version "20.2.4" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==