mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
hotfix: fix remaining imports from carbon-icons-svelte (#905)
This commit is contained in:
parent
f2493c083d
commit
36f6a327b2
23 changed files with 38 additions and 38 deletions
|
@ -95,8 +95,8 @@
|
||||||
export let listRef = null;
|
export let listRef = null;
|
||||||
|
|
||||||
import { createEventDispatcher, afterUpdate, tick } from "svelte";
|
import { createEventDispatcher, afterUpdate, tick } from "svelte";
|
||||||
import Checkmark16 from "carbon-icons-svelte/lib/Checkmark16/Checkmark16.svelte";
|
import Checkmark16 from "../icons/Checkmark16.svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import ListBox from "../ListBox/ListBox.svelte";
|
import ListBox from "../ListBox/ListBox.svelte";
|
||||||
import ListBoxField from "../ListBox/ListBoxField.svelte";
|
import ListBoxField from "../ListBox/ListBoxField.svelte";
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
import { onMount, getContext, createEventDispatcher, tick } from "svelte";
|
import { onMount, getContext, createEventDispatcher, tick } from "svelte";
|
||||||
import ContextMenu from "./ContextMenu.svelte";
|
import ContextMenu from "./ContextMenu.svelte";
|
||||||
import Checkmark16 from "carbon-icons-svelte/lib/Checkmark16/Checkmark16.svelte";
|
import Checkmark16 from "../icons/Checkmark16.svelte";
|
||||||
import CaretRight16 from "../icons/CaretRight16.svelte";
|
import CaretRight16 from "../icons/CaretRight16.svelte";
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
||||||
import { getContext } from "svelte";
|
import { getContext } from "svelte";
|
||||||
import ArrowUp20 from "carbon-icons-svelte/lib/ArrowUp20/ArrowUp20.svelte";
|
import ArrowUp20 from "../icons/ArrowUp20.svelte";
|
||||||
import ArrowsVertical20 from "../icons/ArrowsVertical20.svelte";
|
import ArrowsVertical20 from "../icons/ArrowsVertical20.svelte";
|
||||||
|
|
||||||
const { sortHeader, tableSortable, add } = getContext("DataTable");
|
const { sortHeader, tableSortable, add } = getContext("DataTable");
|
||||||
|
|
|
@ -54,8 +54,8 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import { getContext } from "svelte";
|
import { getContext } from "svelte";
|
||||||
import Calendar16 from "carbon-icons-svelte/lib/Calendar16/Calendar16.svelte";
|
import Calendar16 from "../icons/Calendar16.svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import {
|
import {
|
||||||
ListBox,
|
ListBox,
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
/** Set to `true` to indicate an invalid state */
|
/** Set to `true` to indicate an invalid state */
|
||||||
export let invalid = false;
|
export let invalid = false;
|
||||||
|
|
||||||
import Close16 from "carbon-icons-svelte/lib/Close16";
|
import Close16 from "../icons/Close16.svelte";
|
||||||
import CheckmarkFilled16 from "carbon-icons-svelte/lib/CheckmarkFilled16";
|
import CheckmarkFilled16 from "../icons/CheckmarkFilled16.svelte";
|
||||||
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import { Loading } from "../Loading";
|
import { Loading } from "../Loading";
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
export let successDelay = 1500;
|
export let successDelay = 1500;
|
||||||
|
|
||||||
import { createEventDispatcher, afterUpdate, onMount } from "svelte";
|
import { createEventDispatcher, afterUpdate, onMount } from "svelte";
|
||||||
import CheckmarkFilled16 from "carbon-icons-svelte/lib/CheckmarkFilled16/CheckmarkFilled16.svelte";
|
import CheckmarkFilled16 from "../icons/CheckmarkFilled16.svelte";
|
||||||
import ErrorFilled16 from "../icons/ErrorFilled16.svelte";
|
import ErrorFilled16 from "../icons/ErrorFilled16.svelte";
|
||||||
import Loading from "../Loading/Loading.svelte";
|
import Loading from "../Loading/Loading.svelte";
|
||||||
|
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
export let selectionRef = null;
|
export let selectionRef = null;
|
||||||
|
|
||||||
import { afterUpdate, createEventDispatcher, setContext } from "svelte";
|
import { afterUpdate, createEventDispatcher, setContext } from "svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import Checkbox from "../Checkbox/Checkbox.svelte";
|
import Checkbox from "../Checkbox/Checkbox.svelte";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
/** Specify the ARIA label for the icon */
|
/** Specify the ARIA label for the icon */
|
||||||
export let iconDescription = "Closes notification";
|
export let iconDescription = "Closes notification";
|
||||||
|
|
||||||
import CheckmarkFilled20 from "carbon-icons-svelte/lib/CheckmarkFilled20/CheckmarkFilled20.svelte";
|
import CheckmarkFilled20 from "../icons/CheckmarkFilled20.svelte";
|
||||||
import ErrorFilled20 from "carbon-icons-svelte/lib/ErrorFilled20/ErrorFilled20.svelte";
|
import ErrorFilled20 from "../icons/ErrorFilled20.svelte";
|
||||||
import InformationFilled20 from "carbon-icons-svelte/lib/InformationFilled20/InformationFilled20.svelte";
|
import InformationFilled20 from "../icons/InformationFilled20.svelte";
|
||||||
import InformationSquareFilled20 from "carbon-icons-svelte/lib/InformationSquareFilled20/InformationSquareFilled20.svelte";
|
import InformationSquareFilled20 from "../icons/InformationSquareFilled20.svelte";
|
||||||
import WarningFilled20 from "carbon-icons-svelte/lib/WarningFilled20/WarningFilled20.svelte";
|
import WarningFilled20 from "../icons/WarningFilled20.svelte";
|
||||||
import WarningAltFilled20 from "../icons/WarningAltFilled20.svelte";
|
import WarningAltFilled20 from "../icons/WarningAltFilled20.svelte";
|
||||||
|
|
||||||
const icons = {
|
const icons = {
|
||||||
|
|
|
@ -104,10 +104,10 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import Add16 from "carbon-icons-svelte/lib/Add16/Add16.svelte";
|
import Add16 from "../icons/Add16.svelte";
|
||||||
import Subtract16 from "carbon-icons-svelte/lib/Subtract16/Subtract16.svelte";
|
import Subtract16 from "../icons/Subtract16.svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "carbon-icons-svelte/lib/WarningAltFilled16/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import EditOff16 from "../icons/EditOff16.svelte";
|
import EditOff16 from "../icons/EditOff16.svelte";
|
||||||
|
|
||||||
const defaultTranslations = {
|
const defaultTranslations = {
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
afterUpdate,
|
afterUpdate,
|
||||||
} from "svelte";
|
} from "svelte";
|
||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
import OverflowMenuVertical16 from "carbon-icons-svelte/lib/OverflowMenuVertical16/OverflowMenuVertical16.svelte";
|
import OverflowMenuVertical16 from "../icons/OverflowMenuVertical16.svelte";
|
||||||
import OverflowMenuHorizontal16 from "../icons/OverflowMenuHorizontal16.svelte";
|
import OverflowMenuHorizontal16 from "../icons/OverflowMenuHorizontal16.svelte";
|
||||||
|
|
||||||
const ctxBreadcrumbItem = getContext("BreadcrumbItem");
|
const ctxBreadcrumbItem = getContext("BreadcrumbItem");
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import CaretLeft16 from "carbon-icons-svelte/lib/CaretLeft16/CaretLeft16.svelte";
|
import CaretLeft16 from "../icons/CaretLeft16.svelte";
|
||||||
import CaretRight16 from "../icons/CaretRight16.svelte";
|
import CaretRight16 from "../icons/CaretRight16.svelte";
|
||||||
import Button from "../Button/Button.svelte";
|
import Button from "../Button/Button.svelte";
|
||||||
import Select from "../Select/Select.svelte";
|
import Select from "../Select/Select.svelte";
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
export let backwardText = "Previous page";
|
export let backwardText = "Previous page";
|
||||||
|
|
||||||
import { afterUpdate, createEventDispatcher } from "svelte";
|
import { afterUpdate, createEventDispatcher } from "svelte";
|
||||||
import CaretLeft16 from "carbon-icons-svelte/lib/CaretLeft16/CaretLeft16.svelte";
|
import CaretLeft16 from "../icons/CaretLeft16.svelte";
|
||||||
import CaretRight16 from "../icons/CaretRight16.svelte";
|
import CaretRight16 from "../icons/CaretRight16.svelte";
|
||||||
import PaginationItem from "./PaginationItem.svelte";
|
import PaginationItem from "./PaginationItem.svelte";
|
||||||
import PaginationOverflow from "./PaginationOverflow.svelte";
|
import PaginationOverflow from "./PaginationOverflow.svelte";
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
||||||
import { onMount, getContext } from "svelte";
|
import { onMount, getContext } from "svelte";
|
||||||
import CheckmarkOutline16 from "carbon-icons-svelte/lib/CheckmarkOutline16/CheckmarkOutline16.svelte";
|
import CheckmarkOutline16 from "../icons/CheckmarkOutline16.svelte";
|
||||||
import Warning16 from "../icons/Warning16.svelte";
|
import Warning16 from "../icons/Warning16.svelte";
|
||||||
|
|
||||||
let step = {};
|
let step = {};
|
||||||
|
|
|
@ -71,8 +71,8 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import Close16 from "carbon-icons-svelte/lib/Close16/Close16.svelte";
|
import Close16 from "../icons/Close16.svelte";
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
import Close20 from "../icons/Close20.svelte";
|
||||||
import Search16 from "../icons/Search16.svelte";
|
import Search16 from "../icons/Search16.svelte";
|
||||||
import SearchSkeleton from "./SearchSkeleton.svelte";
|
import SearchSkeleton from "./SearchSkeleton.svelte";
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
|
|
||||||
import { createEventDispatcher, setContext, afterUpdate } from "svelte";
|
import { createEventDispatcher, setContext, afterUpdate } from "svelte";
|
||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
import ChevronDown16 from "carbon-icons-svelte/lib/ChevronDown16/ChevronDown16.svelte";
|
import ChevronDown16 from "../icons/ChevronDown16.svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
|
@ -81,9 +81,9 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import { getContext } from "svelte";
|
import { getContext } from "svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "carbon-icons-svelte/lib/WarningAltFilled16/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import View16 from "carbon-icons-svelte/lib/View16/View16.svelte";
|
import View16 from "../icons/View16.svelte";
|
||||||
import ViewOff16 from "../icons/ViewOff16.svelte";
|
import ViewOff16 from "../icons/ViewOff16.svelte";
|
||||||
|
|
||||||
const ctx = getContext("Form");
|
const ctx = getContext("Form");
|
||||||
|
|
|
@ -66,8 +66,8 @@
|
||||||
export let readonly = false;
|
export let readonly = false;
|
||||||
|
|
||||||
import { getContext } from "svelte";
|
import { getContext } from "svelte";
|
||||||
import WarningFilled16 from "carbon-icons-svelte/lib/WarningFilled16/WarningFilled16.svelte";
|
import WarningFilled16 from "../icons/WarningFilled16.svelte";
|
||||||
import WarningAltFilled16 from "carbon-icons-svelte/lib/WarningAltFilled16/WarningAltFilled16.svelte";
|
import WarningAltFilled16 from "../icons/WarningAltFilled16.svelte";
|
||||||
import EditOff16 from "../icons/EditOff16.svelte";
|
import EditOff16 from "../icons/EditOff16.svelte";
|
||||||
|
|
||||||
const ctx = getContext("Form");
|
const ctx = getContext("Form");
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
*/
|
*/
|
||||||
export let iconClose = Close20;
|
export let iconClose = Close20;
|
||||||
|
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
import Close20 from "../../icons/Close20.svelte";
|
||||||
import Menu20 from "../../icons/Menu20.svelte";
|
import Menu20 from "../../icons/Menu20.svelte";
|
||||||
import { shouldRenderHamburgerMenu } from "../navStore";
|
import { shouldRenderHamburgerMenu } from "../navStore";
|
||||||
import HamburgerMenu from "../SideNav/HamburgerMenu.svelte";
|
import HamburgerMenu from "../SideNav/HamburgerMenu.svelte";
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import { slide } from "svelte/transition";
|
import { slide } from "svelte/transition";
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
import Close20 from "../../icons/Close20.svelte";
|
||||||
import AppSwitcher20 from "../../icons/AppSwitcher20.svelte";
|
import AppSwitcher20 from "../../icons/AppSwitcher20.svelte";
|
||||||
import Icon from "../../Icon/Icon.svelte";
|
import Icon from "../../Icon/Icon.svelte";
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
export let searchIsActive = false;
|
export let searchIsActive = false;
|
||||||
|
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20";
|
import Close20 from "../../icons/Close20.svelte";
|
||||||
import Search20 from "../../icons/Search20.svelte";
|
import Search20 from "../../icons/Search20.svelte";
|
||||||
import searchStore from "../searchStore";
|
import searchStore from "../searchStore";
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
export let selectedResultIndex = 0;
|
export let selectedResultIndex = 0;
|
||||||
|
|
||||||
import { createEventDispatcher, tick } from "svelte";
|
import { createEventDispatcher, tick } from "svelte";
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
import Close20 from "../icons/Close20.svelte";
|
||||||
import Search20 from "../icons/Search20.svelte";
|
import Search20 from "../icons/Search20.svelte";
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
/** Obtain a reference to the HTML button element */
|
/** Obtain a reference to the HTML button element */
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
|
|
||||||
import Close20 from "carbon-icons-svelte/lib/Close20/Close20.svelte";
|
import Close20 from "../../icons/Close20.svelte";
|
||||||
import Menu20 from "../../icons/Menu20.svelte";
|
import Menu20 from "../../icons/Menu20.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue