mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
chore: refactor component imports
This commit is contained in:
parent
5ccae71b72
commit
2e38c657ad
6 changed files with 13 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
|||
"license": "Apache-2.0",
|
||||
"description": "Svelte implementation of the Carbon Design System",
|
||||
"type": "module",
|
||||
"module": "src/carbon-components-svelte",
|
||||
"scripts": {
|
||||
"test:types": "svelte-check --workspace tests",
|
||||
"lint": "prettier --write \"**/*.{svelte,md,js,json,ts}\"",
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
/** Set to `true` if the breadcrumb item represents the current page */
|
||||
export let isCurrentPage = false;
|
||||
|
||||
import Link from "../../Link/Link.svelte";
|
||||
import Link from "../Link/Link.svelte";
|
||||
|
||||
import { setContext } from "svelte";
|
||||
|
||||
|
@ -43,3 +43,9 @@
|
|||
/>
|
||||
{/if}
|
||||
</li>
|
||||
|
||||
<style>
|
||||
.bx--breadcrumb-item {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -95,9 +95,9 @@
|
|||
export let ref = null;
|
||||
|
||||
import { createEventDispatcher, tick, onMount } from "svelte";
|
||||
import ChevronDown from "../../icons/ChevronDown.svelte";
|
||||
import ChevronDown from "../icons/ChevronDown.svelte";
|
||||
import Button from "../Button/Button.svelte";
|
||||
import CopyButton from "../../CopyButton/CopyButton.svelte";
|
||||
import CopyButton from "../CopyButton/CopyButton.svelte";
|
||||
import CodeSnippetSkeleton from "./CodeSnippetSkeleton.svelte";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
import { createEventDispatcher, setContext } from "svelte";
|
||||
import { writable } from "svelte/store";
|
||||
import ChevronRight from "../icons/ChevronRight.svelte";
|
||||
import InlineCheckbox from "../carbon-components-svelte/Checkbox/InlineCheckbox.svelte";
|
||||
import InlineCheckbox from "../Checkbox/InlineCheckbox.svelte";
|
||||
import RadioButton from "../RadioButton/RadioButton.svelte";
|
||||
import Table from "./Table.svelte";
|
||||
import TableBody from "./TableBody.svelte";
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
import { onMount, createEventDispatcher } from "svelte";
|
||||
import { fade } from "svelte/transition";
|
||||
import AspectRatio from "../carbon-components-svelte/AspectRatio/AspectRatio.svelte";
|
||||
import AspectRatio from "../AspectRatio/AspectRatio.svelte";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
import { afterUpdate, createEventDispatcher, setContext } from "svelte";
|
||||
import WarningFilled from "../icons/WarningFilled.svelte";
|
||||
import WarningAltFilled from "../icons/WarningAltFilled.svelte";
|
||||
import Checkbox from "../carbon-components-svelte/Checkbox/Checkbox.svelte";
|
||||
import Checkbox from "../Checkbox/Checkbox.svelte";
|
||||
import {
|
||||
ListBox,
|
||||
ListBoxField,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue