From f69b2f15b537b539f5bffeb4b59a128d3e47b88e Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 9 Nov 2024 09:37:18 -0800 Subject: [PATCH] test: use `carbon-components-svelte` for type imports --- tests/Accordion.test.svelte | 2 +- tests/AspectRatio.test.svelte | 2 +- tests/AspectRatioColumns.test.svelte | 2 +- tests/Breadcrumb.test.svelte | 2 +- tests/Breadcrumbs.test.svelte | 2 +- tests/Breakpoint.test.svelte | 4 ++-- tests/Button.test.svelte | 2 +- tests/ButtonSet.test.svelte | 2 +- tests/Checkbox.test.svelte | 2 +- tests/ClickableTile.test.svelte | 2 +- tests/CodeSnippet.test.svelte | 2 +- tests/ComboBox.test.svelte | 4 ++-- tests/ComposedModal.test.svelte | 2 +- tests/CondensedGrid.test.svelte | 2 +- tests/ContentSwitcher.test.svelte | 2 +- tests/ContextMenu.test.svelte | 2 +- tests/CopyButton.test.svelte | 2 +- tests/CopyableCodeSnippet.test.svelte | 2 +- tests/DangerModal.test.svelte | 2 +- tests/DataTable.test.svelte | 4 ++-- tests/DataTableAppendColumns.test.svelte | 2 +- tests/DataTableBatchSelection.test.svelte | 2 +- tests/DataTableBatchSelectionToolbar.test.svelte | 2 +- tests/DatePicker.test.svelte | 2 +- tests/Dropdown.test.svelte | 4 ++-- tests/DynamicCodeSnippet.test.svelte | 2 +- tests/ExpandableTile.test.svelte | 2 +- tests/FileUploader.test.svelte | 4 ++-- tests/FilterableComboBox.test.svelte | 2 +- tests/FluidForm.test.svelte | 2 +- tests/Form.test.svelte | 2 +- tests/FullWidthGrid.test.svelte | 2 +- tests/Grid.test.svelte | 2 +- tests/HeaderNav.test.svelte | 2 +- tests/HeaderSearch.svelte | 2 +- tests/HeaderSwitcher.test.svelte | 2 +- tests/HeaderUtilities.test.svelte | 2 +- tests/HiddenCodeSnippet.test.svelte | 2 +- tests/ImageLoader.test.svelte | 2 +- tests/InlineLoading.test.svelte | 2 +- tests/InlineLoadingUx.test.svelte | 2 +- tests/InlineNotification.test.svelte | 2 +- tests/Link.test.svelte | 2 +- tests/Loading.test.svelte | 2 +- tests/LocalStorage.test.svelte | 2 +- tests/Modal.test.svelte | 2 +- tests/ModalExtraSmall.test.svelte | 2 +- tests/ModalLarge.test.svelte | 2 +- tests/ModalPreventOutsideClick.test.svelte | 2 +- tests/ModalSmall.test.svelte | 2 +- tests/MultiSelect.test.svelte | 4 ++-- tests/NarrowGrid.test.svelte | 2 +- tests/NumberInput.test.svelte | 4 ++-- tests/OffsetColumns.test.svelte | 2 +- tests/OrderedList.test.svelte | 2 +- tests/OverflowMenu.test.svelte | 2 +- tests/PaddedGrid.test.svelte | 2 +- tests/Pagination.test.svelte | 2 +- tests/PaginationNav.test.svelte | 2 +- tests/PassiveModal.test.svelte | 2 +- tests/PasswordInput.test.svelte | 2 +- tests/PersistedHamburgerMenu.test.svelte | 2 +- tests/Popover.test.svelte | 2 +- tests/ProgressBar.test.svelte | 2 +- tests/ProgressIndicator.test.svelte | 2 +- tests/RadioButton.test.svelte | 2 +- tests/RadioSelectableDataTable.test.svelte | 2 +- tests/RadioTile.test.svelte | 2 +- tests/RecursiveList.test.svelte | 2 +- tests/ResponsiveGrid.test.svelte | 2 +- tests/Search.test.svelte | 2 +- tests/Select.test.svelte | 2 +- tests/SelectableDataTable.test.svelte | 2 +- tests/SelectableTile.test.svelte | 2 +- tests/SkeletonPlaceholder.test.svelte | 2 +- tests/SkeletonText.test.svelte | 2 +- tests/Slider.test.svelte | 2 +- tests/StructuredList.test.svelte | 2 +- tests/Tabs.test.svelte | 2 +- tests/Tag.test.svelte | 2 +- tests/TextArea.test.svelte | 2 +- tests/TextInput.test.svelte | 2 +- tests/Theme.test.svelte | 4 ++-- tests/Tile.test.svelte | 2 +- tests/TimePicker.test.svelte | 2 +- tests/ToastNotification.test.svelte | 2 +- tests/Toggle.test.svelte | 2 +- tests/Tooltip.test.svelte | 2 +- tests/TooltipDefinition.test.svelte | 2 +- tests/TooltipIcon.test.svelte | 2 +- tests/TreeView.test.svelte | 4 ++-- tests/Truncate.test.svelte | 3 +-- tests/UnorderedList.test.svelte | 2 +- 93 files changed, 102 insertions(+), 103 deletions(-) diff --git a/tests/Accordion.test.svelte b/tests/Accordion.test.svelte index 53b649a1..f57bf8d7 100644 --- a/tests/Accordion.test.svelte +++ b/tests/Accordion.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/AspectRatio.test.svelte b/tests/AspectRatio.test.svelte index e6cfbdff..f3620d20 100644 --- a/tests/AspectRatio.test.svelte +++ b/tests/AspectRatio.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/AspectRatioColumns.test.svelte b/tests/AspectRatioColumns.test.svelte index b96aa28f..ec03527a 100644 --- a/tests/AspectRatioColumns.test.svelte +++ b/tests/AspectRatioColumns.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Breadcrumb.test.svelte b/tests/Breadcrumb.test.svelte index 3baab96e..600cde92 100644 --- a/tests/Breadcrumb.test.svelte +++ b/tests/Breadcrumb.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Breadcrumbs.test.svelte b/tests/Breadcrumbs.test.svelte index dd996343..9202858d 100644 --- a/tests/Breadcrumbs.test.svelte +++ b/tests/Breadcrumbs.test.svelte @@ -7,7 +7,7 @@ { href: "/reports/2019", text: "2019" }, ]; - import { Row, Column, Breadcrumb, BreadcrumbItem } from "../types"; + import { Row, Column, Breadcrumb, BreadcrumbItem } from "carbon-components-svelte"; diff --git a/tests/Breakpoint.test.svelte b/tests/Breakpoint.test.svelte index 713bb4ae..205d172c 100644 --- a/tests/Breakpoint.test.svelte +++ b/tests/Breakpoint.test.svelte @@ -1,6 +1,6 @@ diff --git a/tests/ButtonSet.test.svelte b/tests/ButtonSet.test.svelte index 6472dffa..99c2a600 100644 --- a/tests/ButtonSet.test.svelte +++ b/tests/ButtonSet.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Checkbox.test.svelte b/tests/Checkbox.test.svelte index bf165c23..d233bdca 100644 --- a/tests/Checkbox.test.svelte +++ b/tests/Checkbox.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ClickableTile.test.svelte b/tests/ClickableTile.test.svelte index b13f31ab..3a7d0585 100644 --- a/tests/ClickableTile.test.svelte +++ b/tests/ClickableTile.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/CodeSnippet.test.svelte b/tests/CodeSnippet.test.svelte index 40853a24..52a924b1 100644 --- a/tests/CodeSnippet.test.svelte +++ b/tests/CodeSnippet.test.svelte @@ -1,5 +1,5 @@ - import { ComboBox } from "../types"; - import type { ComboBoxItem } from "../types/ComboBox/ComboBox.svelte"; + import { ComboBox } from "carbon-components-svelte"; + import type { ComboBoxItem } from "carbon-components-svelte/ComboBox/ComboBox.svelte"; const items: ComboBoxItem[] = [ { id: 0, text: "Slack" }, diff --git a/tests/ComposedModal.test.svelte b/tests/ComposedModal.test.svelte index 8ad4a7c3..92a3dc64 100644 --- a/tests/ComposedModal.test.svelte +++ b/tests/ComposedModal.test.svelte @@ -5,7 +5,7 @@ ModalBody, ModalFooter, Checkbox, - } from "../types"; + } from "carbon-components-svelte"; let checked = false; diff --git a/tests/CondensedGrid.test.svelte b/tests/CondensedGrid.test.svelte index b32e56fa..6165adff 100644 --- a/tests/CondensedGrid.test.svelte +++ b/tests/CondensedGrid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ContentSwitcher.test.svelte b/tests/ContentSwitcher.test.svelte index 69c00a06..4e36f9b0 100644 --- a/tests/ContentSwitcher.test.svelte +++ b/tests/ContentSwitcher.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ContextMenu.test.svelte b/tests/ContextMenu.test.svelte index 0832e6ce..03de065e 100644 --- a/tests/ContextMenu.test.svelte +++ b/tests/ContextMenu.test.svelte @@ -5,7 +5,7 @@ ContextMenuOption, ContextMenuRadioGroup, ContextMenuGroup, - } from "../types"; + } from "carbon-components-svelte"; import CopyFile from "carbon-icons-svelte/lib/CopyFile.svelte"; import Cut from "carbon-icons-svelte/lib/Cut.svelte"; diff --git a/tests/CopyButton.test.svelte b/tests/CopyButton.test.svelte index 2587f86a..234c71cc 100644 --- a/tests/CopyButton.test.svelte +++ b/tests/CopyButton.test.svelte @@ -1,5 +1,5 @@ text; export let code = "npm i carbon-component-svelte"; - import { CodeSnippet } from "../types"; + import { CodeSnippet } from "carbon-components-svelte"; {code} diff --git a/tests/DangerModal.test.svelte b/tests/DangerModal.test.svelte index 6fc936dc..72d94e92 100644 --- a/tests/DangerModal.test.svelte +++ b/tests/DangerModal.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/DataTable.test.svelte b/tests/DataTable.test.svelte index 45f6a07c..3f8b4c89 100644 --- a/tests/DataTable.test.svelte +++ b/tests/DataTable.test.svelte @@ -9,8 +9,8 @@ ToolbarMenuItem, Button, Link, - } from "../types"; - import type { DataTableHeader } from "../types/DataTable/DataTable.svelte"; + } from "carbon-components-svelte"; + import type { DataTableHeader } from "carbon-components-svelte/DataTable/DataTable.svelte"; import Launch from "carbon-icons-svelte/lib/Launch.svelte"; const headers: DataTableHeader[] = [ diff --git a/tests/DataTableAppendColumns.test.svelte b/tests/DataTableAppendColumns.test.svelte index 34913c63..724e394a 100644 --- a/tests/DataTableAppendColumns.test.svelte +++ b/tests/DataTableAppendColumns.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Dropdown.test.svelte b/tests/Dropdown.test.svelte index b0ad3251..4cd3c36f 100644 --- a/tests/Dropdown.test.svelte +++ b/tests/Dropdown.test.svelte @@ -1,6 +1,6 @@ diff --git a/tests/FileUploader.test.svelte b/tests/FileUploader.test.svelte index db73c4e3..8519e12f 100644 --- a/tests/FileUploader.test.svelte +++ b/tests/FileUploader.test.svelte @@ -5,8 +5,8 @@ FileUploaderDropContainer, FileUploaderItem, FileUploaderSkeleton, - } from "../types"; - import type { FileUploaderProps } from "../types/FileUploader/FileUploader.svelte"; + } from "carbon-components-svelte"; + import type { FileUploaderProps } from "carbon-components-svelte/FileUploader/FileUploader.svelte"; let fileUploader: FileUploader; let files: FileUploaderProps["files"] = []; diff --git a/tests/FilterableComboBox.test.svelte b/tests/FilterableComboBox.test.svelte index 5efbbd3f..4a4056a6 100644 --- a/tests/FilterableComboBox.test.svelte +++ b/tests/FilterableComboBox.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Form.test.svelte b/tests/Form.test.svelte index 49129304..5cd91fdd 100644 --- a/tests/Form.test.svelte +++ b/tests/Form.test.svelte @@ -8,7 +8,7 @@ Select, SelectItem, Button, - } from "../types"; + } from "carbon-components-svelte"; let ref: HTMLFormElement; diff --git a/tests/FullWidthGrid.test.svelte b/tests/FullWidthGrid.test.svelte index cfa70ce2..40157f83 100644 --- a/tests/FullWidthGrid.test.svelte +++ b/tests/FullWidthGrid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Grid.test.svelte b/tests/Grid.test.svelte index 7ffec15f..b6a74224 100644 --- a/tests/Grid.test.svelte +++ b/tests/Grid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/HeaderNav.test.svelte b/tests/HeaderNav.test.svelte index c59d122e..9cc8f086 100644 --- a/tests/HeaderNav.test.svelte +++ b/tests/HeaderNav.test.svelte @@ -14,7 +14,7 @@ Grid, Row, Column, - } from "../types"; + } from "carbon-components-svelte"; let isSideNavOpen = false; diff --git a/tests/HeaderSearch.svelte b/tests/HeaderSearch.svelte index 34175e7b..5ccb7533 100644 --- a/tests/HeaderSearch.svelte +++ b/tests/HeaderSearch.svelte @@ -17,7 +17,7 @@ Grid, Row, Column, - } from "../types"; + } from "carbon-components-svelte"; let isSideNavOpen = false; let isOpen = false; diff --git a/tests/HeaderSwitcher.test.svelte b/tests/HeaderSwitcher.test.svelte index f1d2843b..f9f0da86 100644 --- a/tests/HeaderSwitcher.test.svelte +++ b/tests/HeaderSwitcher.test.svelte @@ -16,7 +16,7 @@ Grid, Row, Column, - } from "../types"; + } from "carbon-components-svelte"; let isSideNavOpen = false; let isOpen = false; diff --git a/tests/HeaderUtilities.test.svelte b/tests/HeaderUtilities.test.svelte index 54d239fb..32b264ce 100644 --- a/tests/HeaderUtilities.test.svelte +++ b/tests/HeaderUtilities.test.svelte @@ -17,7 +17,7 @@ Grid, Row, Column, - } from "../types"; + } from "carbon-components-svelte"; import SettingsAdjust from "carbon-icons-svelte/lib/SettingsAdjust.svelte"; import { quintOut } from "svelte/easing"; diff --git a/tests/HiddenCodeSnippet.test.svelte b/tests/HiddenCodeSnippet.test.svelte index 29baf9dc..64cb9202 100644 --- a/tests/HiddenCodeSnippet.test.svelte +++ b/tests/HiddenCodeSnippet.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/InlineLoadingUx.test.svelte b/tests/InlineLoadingUx.test.svelte index 4192857e..dfd93a30 100644 --- a/tests/InlineLoadingUx.test.svelte +++ b/tests/InlineLoadingUx.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Link.test.svelte b/tests/Link.test.svelte index 2f048c4d..1a309c88 100644 --- a/tests/Link.test.svelte +++ b/tests/Link.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Loading.test.svelte b/tests/Loading.test.svelte index 6889445e..f91b5bb6 100644 --- a/tests/Loading.test.svelte +++ b/tests/Loading.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/LocalStorage.test.svelte b/tests/LocalStorage.test.svelte index c220d991..8828ad8b 100644 --- a/tests/LocalStorage.test.svelte +++ b/tests/LocalStorage.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ModalExtraSmall.test.svelte b/tests/ModalExtraSmall.test.svelte index 761c4dbf..455c8f66 100644 --- a/tests/ModalExtraSmall.test.svelte +++ b/tests/ModalExtraSmall.test.svelte @@ -1,5 +1,5 @@ - import { Modal } from "../types"; + import { Modal } from "carbon-components-svelte"; - import { Modal } from "../types"; + import { Modal } from "carbon-components-svelte"; - import { Modal } from "../types"; + import { Modal } from "carbon-components-svelte"; - import { MultiSelect } from "../types"; - import type { MultiSelectProps } from "../types/MultiSelect/MultiSelect.svelte"; + import { MultiSelect } from "carbon-components-svelte"; + import type { MultiSelectProps } from "carbon-components-svelte/MultiSelect/MultiSelect.svelte"; let selectedIds: MultiSelectProps["selectedIds"] = [0]; diff --git a/tests/NarrowGrid.test.svelte b/tests/NarrowGrid.test.svelte index a39cd612..ff498960 100644 --- a/tests/NarrowGrid.test.svelte +++ b/tests/NarrowGrid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/NumberInput.test.svelte b/tests/NumberInput.test.svelte index 38949f7a..09f5b5c8 100644 --- a/tests/NumberInput.test.svelte +++ b/tests/NumberInput.test.svelte @@ -1,6 +1,6 @@ diff --git a/tests/OffsetColumns.test.svelte b/tests/OffsetColumns.test.svelte index 085ec706..685e62b3 100644 --- a/tests/OffsetColumns.test.svelte +++ b/tests/OffsetColumns.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/OrderedList.test.svelte b/tests/OrderedList.test.svelte index 46856519..c1d24c86 100644 --- a/tests/OrderedList.test.svelte +++ b/tests/OrderedList.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/OverflowMenu.test.svelte b/tests/OverflowMenu.test.svelte index b12e1b18..579031b7 100644 --- a/tests/OverflowMenu.test.svelte +++ b/tests/OverflowMenu.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/PaddedGrid.test.svelte b/tests/PaddedGrid.test.svelte index 5b7a7c74..8146baa4 100644 --- a/tests/PaddedGrid.test.svelte +++ b/tests/PaddedGrid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Pagination.test.svelte b/tests/Pagination.test.svelte index 3183f8cf..489fd88c 100644 --- a/tests/Pagination.test.svelte +++ b/tests/Pagination.test.svelte @@ -1,5 +1,5 @@ - import { PaginationNav } from "../types"; + import { PaginationNav } from "carbon-components-svelte"; diff --git a/tests/PassiveModal.test.svelte b/tests/PassiveModal.test.svelte index 2b122c29..be4f6c31 100644 --- a/tests/PassiveModal.test.svelte +++ b/tests/PassiveModal.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/PasswordInput.test.svelte b/tests/PasswordInput.test.svelte index f0a3f9f0..d690c514 100644 --- a/tests/PasswordInput.test.svelte +++ b/tests/PasswordInput.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/PersistedHamburgerMenu.test.svelte b/tests/PersistedHamburgerMenu.test.svelte index 986f4b1d..501bfe76 100644 --- a/tests/PersistedHamburgerMenu.test.svelte +++ b/tests/PersistedHamburgerMenu.test.svelte @@ -14,7 +14,7 @@ Grid, Row, Column, - } from "../types"; + } from "carbon-components-svelte"; let isSideNavOpen = false; diff --git a/tests/Popover.test.svelte b/tests/Popover.test.svelte index ea2c42d2..8ddf063f 100644 --- a/tests/Popover.test.svelte +++ b/tests/Popover.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ProgressBar.test.svelte b/tests/ProgressBar.test.svelte index e74d3e39..0a0f0716 100644 --- a/tests/ProgressBar.test.svelte +++ b/tests/ProgressBar.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/ProgressIndicator.test.svelte b/tests/ProgressIndicator.test.svelte index ccda25af..7db4c31b 100644 --- a/tests/ProgressIndicator.test.svelte +++ b/tests/ProgressIndicator.test.svelte @@ -3,7 +3,7 @@ ProgressIndicator, ProgressStep, ProgressIndicatorSkeleton, - } from "../types"; + } from "carbon-components-svelte"; diff --git a/tests/RadioButton.test.svelte b/tests/RadioButton.test.svelte index d93d342a..68652677 100644 --- a/tests/RadioButton.test.svelte +++ b/tests/RadioButton.test.svelte @@ -1,5 +1,5 @@ - import { DataTable } from "../types"; + import { DataTable } from "carbon-components-svelte"; const headers = [ { key: "name", value: "Name" }, diff --git a/tests/RadioTile.test.svelte b/tests/RadioTile.test.svelte index 8066cde0..31780ad1 100644 --- a/tests/RadioTile.test.svelte +++ b/tests/RadioTile.test.svelte @@ -1,5 +1,5 @@ - import { RecursiveList } from "../types"; + import { RecursiveList } from "carbon-components-svelte"; const children = [ { diff --git a/tests/ResponsiveGrid.test.svelte b/tests/ResponsiveGrid.test.svelte index b0b3c5b9..cd1b2e92 100644 --- a/tests/ResponsiveGrid.test.svelte +++ b/tests/ResponsiveGrid.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Search.test.svelte b/tests/Search.test.svelte index 8534b3c9..9def9e12 100644 --- a/tests/Search.test.svelte +++ b/tests/Search.test.svelte @@ -1,5 +1,5 @@ diff --git a/tests/Select.test.svelte b/tests/Select.test.svelte index cc812777..e456854e 100644 --- a/tests/Select.test.svelte +++ b/tests/Select.test.svelte @@ -4,7 +4,7 @@ SelectItem, SelectItemGroup, SelectSkeleton, - } from "../types"; + } from "carbon-components-svelte";