chore: update dependencies, remove jest

- remove docs/palimpsest folders (to be replaced)
- remove Layout Storybook component
This commit is contained in:
Eric Liu 2020-07-19 06:53:10 -07:00
commit 76df51674d
110 changed files with 2604 additions and 17979 deletions

View file

@ -1,36 +0,0 @@
<script>
export let inline = false;
import { onMount, afterUpdate } from "svelte";
import { Select, SelectItem } from "carbon-components-svelte";
import { theme } from "../store";
onMount(() => {
let currentTheme = localStorage.getItem("theme");
if (currentTheme) {
theme.set(currentTheme);
} else {
if (
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches
) {
theme.set("g90");
}
}
});
afterUpdate(() => {
localStorage.setItem("theme", $theme);
document.documentElement.setAttribute("carbon-theme", $theme);
});
</script>
<Select {inline} labelText="Theme" bind:selected={$theme}>
<SelectItem value="white" text="White" />
<SelectItem value="g10" text="Gray 10" />
<SelectItem value="g90" text="Gray 90" />
<SelectItem value="g100" text="Gray 100" />
</Select>
<!--
<iframe width="900" height="500" src="about/" /> -->