refactor: use icons from carbon-icons-svelte@11 (#1227)

* chore: update ignore rules, remove unused files

* refactor(icons): use icons from carbon-icons-svelte@11

* docs(time-picker): fix default value

* chore: upgrade carbon-icons-svelte to v11

* docs: update examples to use icons from carbon-icons-svelte@11

* docs: update number of icons [ci skip]
This commit is contained in:
metonym 2022-04-03 11:57:28 -07:00 committed by GitHub
commit ba58ba8f00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
176 changed files with 1410 additions and 2487 deletions

View file

@ -50,8 +50,8 @@
import { onMount, getContext, createEventDispatcher, tick } from "svelte";
import ContextMenu from "./ContextMenu.svelte";
import Checkmark16 from "../icons/Checkmark16.svelte";
import CaretRight16 from "../icons/CaretRight16.svelte";
import Checkmark from "../icons/Checkmark.svelte";
import CaretRight from "../icons/CaretRight.svelte";
const dispatch = createEventDispatcher();
const ctx = getContext("ContextMenu");
@ -145,7 +145,7 @@
if (selected) {
if (ctxGroup) ctxGroup.addOption({ id });
icon = Checkmark16;
icon = Checkmark;
} else {
icon = undefined;
}
@ -158,7 +158,7 @@
if (selected) {
if (ctxRadioGroup) ctxRadioGroup.setOption({ id });
icon = Checkmark16;
icon = Checkmark;
} else {
icon = undefined;
}
@ -253,7 +253,7 @@
<span class:bx--menu-option__label="{true}" title="{labelText}">
<slot name="labelText">{labelText}</slot>
</span>
<div class:bx--menu-option__info="{true}"><CaretRight16 /></div>
<div class:bx--menu-option__info="{true}"><CaretRight /></div>
</div>
<ContextMenu