feat!: change package requirements

- Configure as ES module
- Add svelte as peerDependency
- add Vite and vite-preprocess to inline imported SCSS
This commit is contained in:
Enrico Sacchetti 2023-01-11 14:22:19 -05:00
commit e75508014c
No known key found for this signature in database
GPG key ID: 3374B89ECA60D796
288 changed files with 454 additions and 38 deletions

1
src/app.scss Normal file
View file

@ -0,0 +1 @@
/* Write your global styles here, in SCSS syntax. Variables and mixins from the src/variables.scss file are available here without importing */

View file

@ -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";

View file

@ -181,3 +181,7 @@
/>
</button>
{/if}
<style lang="scss">
@use "@carbon/styles/scss/components/button";
</style>

View file

@ -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();

View file

@ -129,7 +129,7 @@
import { createEventDispatcher, setContext } from "svelte";
import { writable } from "svelte/store";
import ChevronRight from "../icons/ChevronRight.svelte";
import InlineCheckbox from "../Checkbox/InlineCheckbox.svelte";
import InlineCheckbox from "../carbon-components-svelte/Checkbox/InlineCheckbox.svelte";
import RadioButton from "../RadioButton/RadioButton.svelte";
import Table from "./Table.svelte";
import TableBody from "./TableBody.svelte";

View file

@ -57,7 +57,7 @@
import { onMount, createEventDispatcher } from "svelte";
import { fade } from "svelte/transition";
import AspectRatio from "../AspectRatio/AspectRatio.svelte";
import AspectRatio from "../carbon-components-svelte/AspectRatio/AspectRatio.svelte";
const dispatch = createEventDispatcher();

Some files were not shown because too many files have changed in this diff Show more