diff --git a/package.json b/package.json index 252380d77..20b1a1513 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@veupathdb/eda", - "version": "1.6.9", + "version": "1.6.10", "dependencies": { "@emotion/react": "^11.4.1", "@emotion/styled": "^11.3.0", @@ -9,7 +9,7 @@ "@material-ui/lab": "^4.0.0-alpha.58", "@types/debounce-promise": "^3.1.3", "@veupathdb/components": "^0.11.19", - "@veupathdb/coreui": "^0.13.0", + "@veupathdb/coreui": "^0.15.1", "@veupathdb/http-utils": "^1.1.0", "@veupathdb/study-data-access": "^0.1.5", "debounce-promise": "^3.1.2", diff --git a/src/lib/core/components/filter/HistogramFilter.tsx b/src/lib/core/components/filter/HistogramFilter.tsx index 430f53ffa..403fbba1b 100644 --- a/src/lib/core/components/filter/HistogramFilter.tsx +++ b/src/lib/core/components/filter/HistogramFilter.tsx @@ -1,7 +1,6 @@ import SelectedRangeControl from '@veupathdb/components/lib/components/plotControls/SelectedRangeControl'; import BinWidthControl from '@veupathdb/components/lib/components/plotControls/BinWidthControl'; import AxisRangeControl from '@veupathdb/components/lib/components/plotControls/AxisRangeControl'; -import Switch from '@veupathdb/components/lib/components/widgets/Switch'; import Button from '@veupathdb/components/lib/components/widgets/Button'; import LabelledGroup from '@veupathdb/components/lib/components/widgets/LabelledGroup'; import { NumberRangeInput } from '@veupathdb/components/lib/components/widgets/NumberAndDateRangeInputs'; @@ -24,7 +23,7 @@ import UnknownCount from '@veupathdb/wdk-client/lib/Components/AttributeFilter/U import { getOrElse } from 'fp-ts/lib/Either'; import { pipe } from 'fp-ts/lib/function'; import { number, partial, TypeOf, boolean, type, intersection } from 'io-ts'; -import React, { useCallback, useEffect, useMemo, useState } from 'react'; +import { useCallback, useEffect, useMemo, useState } from 'react'; import { usePromise } from '../../hooks/promise'; import { AnalysisState } from '../../hooks/analysis'; import { useSubsettingClient } from '../../hooks/workspace'; @@ -44,6 +43,7 @@ import Notification from '@veupathdb/components/lib/components/widgets//Notifica import { variableDisplayWithUnit } from '../../utils/variable-display'; // import variable's metadata-based independent axis range utils import { defaultIndependentAxisRange } from '../../utils/default-independent-axis-range'; +import { FloatingSwitch, colors } from '@veupathdb/coreui'; type Props = { studyMetadata: StudyMetadata; @@ -611,14 +611,21 @@ function HistogramPlotWithControls({
- ) & CoverageStatistics; @@ -474,10 +475,19 @@ function BarplotViz(props: VisualizationProps) {
- -