From d4a55ef4ce8a8228b814a4670433f052d532d219 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 3 Apr 2022 11:40:44 -0700 Subject: [PATCH] chore: upgrade carbon-icons-svelte to v11 --- package.json | 2 +- tests/Button.test.svelte | 6 +++--- tests/ButtonSet.test.svelte | 4 ++-- tests/ContentSwitcher.test.svelte | 4 ++-- tests/ContextMenu.test.svelte | 13 ++++--------- tests/DataTable.test.svelte | 4 ++-- .../DataTableBatchSelectionToolbar.test.svelte | 4 ++-- tests/HeaderUtilities.test.svelte | 4 ++-- tests/OverflowMenu.test.svelte | 4 ++-- tests/StructuredList.test.svelte | 4 ++-- tests/Tag.test.svelte | 4 ++-- tests/Tooltip.test.svelte | 4 ++-- tests/TooltipIcon.test.svelte | 17 +++++++++-------- tests/TreeView.test.svelte | 4 ++-- yarn.lock | 8 ++++---- 15 files changed, 41 insertions(+), 45 deletions(-) diff --git a/package.json b/package.json index 9d46ab94..46340300 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "autoprefixer": "^10.4.4", "carbon-components": "10.56.0", "carbon-components-10.47": "npm:carbon-components@10.47", - "carbon-icons-svelte": "^10.45.1", + "carbon-icons-svelte": "^11.0.1", "husky": "^4.3.8", "lint-staged": "^10.5.3", "postcss": "^8.4.12", diff --git a/tests/Button.test.svelte b/tests/Button.test.svelte index a2bc6ed9..63a0b11f 100644 --- a/tests/Button.test.svelte +++ b/tests/Button.test.svelte @@ -1,6 +1,6 @@ @@ -17,10 +17,10 @@ - + + diff --git a/tests/ContentSwitcher.test.svelte b/tests/ContentSwitcher.test.svelte index e534a0db..69c00a06 100644 --- a/tests/ContentSwitcher.test.svelte +++ b/tests/ContentSwitcher.test.svelte @@ -1,6 +1,6 @@ @@ -8,7 +8,7 @@
- + Trending
diff --git a/tests/ContextMenu.test.svelte b/tests/ContextMenu.test.svelte index c19f4097..393af1e4 100644 --- a/tests/ContextMenu.test.svelte +++ b/tests/ContextMenu.test.svelte @@ -6,8 +6,8 @@ ContextMenuRadioGroup, ContextMenuGroup, } from "../types"; - import CopyFile16 from "carbon-icons-svelte/lib/CopyFile16"; - import Cut16 from "carbon-icons-svelte/lib/Cut16"; + import CopyFile from "carbon-icons-svelte/lib/CopyFile.svelte"; + import Cut from "carbon-icons-svelte/lib/Cut.svelte"; let selectedId = "0"; let selectedIds = []; @@ -21,14 +21,9 @@ indented labelText="Copy" shortcutText="⌘C" - icon="{CopyFile16}" - /> - + diff --git a/tests/DataTable.test.svelte b/tests/DataTable.test.svelte index 86c38fbc..4f6832f4 100644 --- a/tests/DataTable.test.svelte +++ b/tests/DataTable.test.svelte @@ -11,7 +11,7 @@ Link, } from "../types"; import type { DataTableHeader } from "../types/DataTable/DataTable.svelte"; - import Launch16 from "carbon-icons-svelte/lib/Launch16"; + import Launch from "carbon-icons-svelte/lib/Launch.svelte"; const headers: DataTableHeader[] = [ { key: "name", value: "Name" }, @@ -87,7 +87,7 @@ target="_blank" > {cell.value} - + {:else}{cell.value}{/if} diff --git a/tests/DataTableBatchSelectionToolbar.test.svelte b/tests/DataTableBatchSelectionToolbar.test.svelte index eb2b2c38..0fe5c25e 100644 --- a/tests/DataTableBatchSelectionToolbar.test.svelte +++ b/tests/DataTableBatchSelectionToolbar.test.svelte @@ -9,7 +9,7 @@ ToolbarBatchActions, Button, } from "../types"; - import Save16 from "carbon-icons-svelte/lib/Save16"; + import Save from "carbon-icons-svelte/lib/Save.svelte"; const headers = [ { key: "name", value: "Name" }, @@ -34,7 +34,7 @@ - + diff --git a/tests/HeaderUtilities.test.svelte b/tests/HeaderUtilities.test.svelte index 1abc03d8..c8bbaa9e 100644 --- a/tests/HeaderUtilities.test.svelte +++ b/tests/HeaderUtilities.test.svelte @@ -18,7 +18,7 @@ Row, Column, } from "../types"; - import SettingsAdjust20 from "carbon-icons-svelte/lib/SettingsAdjust20"; + import SettingsAdjust from "carbon-icons-svelte/lib/SettingsAdjust.svelte"; import { quintOut } from "svelte/easing"; let isSideNavOpen = false; @@ -30,7 +30,7 @@ - + import { OverflowMenu, OverflowMenuItem } from "../types"; - import Add16 from "carbon-icons-svelte/lib/Add16"; + import Add from "carbon-icons-svelte/lib/Add.svelte"; - + @@ -80,7 +80,7 @@ name="row-{item}-name" /> - import { Tag } from "../types"; - import Add16 from "carbon-icons-svelte/lib/Add16"; + import Add from "carbon-icons-svelte/lib/Add.svelte"; IBM Cloud @@ -31,7 +31,7 @@ Filterable -Custom icon +Custom icon Text diff --git a/tests/Tooltip.test.svelte b/tests/Tooltip.test.svelte index 3ee57b19..4189e7b0 100644 --- a/tests/Tooltip.test.svelte +++ b/tests/Tooltip.test.svelte @@ -1,6 +1,6 @@ @@ -41,7 +41,7 @@ - +

Resources are provisioned based on your account's organization.

diff --git a/tests/TooltipIcon.test.svelte b/tests/TooltipIcon.test.svelte index bac010c1..636bd72c 100644 --- a/tests/TooltipIcon.test.svelte +++ b/tests/TooltipIcon.test.svelte @@ -1,32 +1,33 @@ - + - + - + - + - + Carbon is an open source design system by IBM. - + diff --git a/tests/TreeView.test.svelte b/tests/TreeView.test.svelte index 3adeefd5..62d15e92 100644 --- a/tests/TreeView.test.svelte +++ b/tests/TreeView.test.svelte @@ -1,14 +1,14 @@