Skip to content

Commit

Permalink
♻️ (checkbox) move to components package
Browse files Browse the repository at this point in the history
🔥 remove extraneous checkbox export
  • Loading branch information
mlbrgl committed Nov 7, 2023
1 parent 895577e commit 6f0ba9b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions explorer/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
TableSlug,
} from "@ourworldindata/core-table"
import {
Checkbox,
EntityPicker,
EntityPickerManager,
Grapher,
Expand Down Expand Up @@ -48,7 +47,7 @@ import {
uniqBy,
Url,
} from "@ourworldindata/utils"
import { MarkdownTextWrap } from "@ourworldindata/components"
import { MarkdownTextWrap, Checkbox } from "@ourworldindata/components"
import classNames from "classnames"
import { action, computed, observable, reaction } from "mobx"
import { observer } from "mobx-react"
Expand Down
2 changes: 2 additions & 0 deletions packages/@ourworldindata/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export { IndicatorBrief } from "./IndicatorBrief/IndicatorBrief.js"

export { IndicatorProcessing } from "./IndicatorProcessing/IndicatorProcessing.js"

export { Checkbox } from "./Checkbox.js"

export {
IndicatorSources,
type OriginSubset,
Expand Down
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/core/grapher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $zindex-controls-drawer: 140;
@import "../controls/globalEntitySelector/GlobalEntitySelector.scss";
@import "../sparkBars/SparkBars.scss";
@import "../fullScreen/FullScreen.scss";
@import "../controls/Checkbox.scss";
@import "../../../components/src/Checkbox.scss";

.GrapherComponent,
.GrapherComponent h2,
Expand Down
1 change: 0 additions & 1 deletion packages/@ourworldindata/grapher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export {
GLOBAL_ENTITY_SELECTOR_ELEMENT,
GLOBAL_ENTITY_SELECTOR_DEFAULT_COUNTRY,
} from "./controls/globalEntitySelector/GlobalEntitySelectorConstants"
export { Checkbox } from "./controls/Checkbox"
export { GlobalEntitySelector } from "./controls/globalEntitySelector/GlobalEntitySelector"
export {
Grapher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import {
MarkdownTextWrap,
sumTextWrapHeights,
Checkbox,
} from "@ourworldindata/components"
import { LoadingIndicator } from "../loadingIndicator/LoadingIndicator"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome/index.js"
Expand All @@ -23,7 +24,6 @@ import {
} from "@ourworldindata/core-table"
import { STATIC_EXPORT_DETAIL_SPACING } from "../core/GrapherConstants"
import { Modal } from "./Modal"
import { Checkbox } from "../controls/Checkbox"
import { StaticChartRasterizer } from "../captionedChart/StaticChartRasterizer"

export interface DownloadModalManager {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
sortBy,
isCountryName,
} from "@ourworldindata/utils"
import { Checkbox } from "../controls/Checkbox"
import { Checkbox } from "@ourworldindata/components"
import { FuzzySearch } from "../controls/FuzzySearch"
import { faMagnifyingGlass, faCheck } from "@fortawesome/free-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome/index.js"
Expand Down

0 comments on commit 6f0ba9b

Please sign in to comment.