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

@ -40,7 +40,8 @@ export interface OverflowMenuProps
menuOptionsClass?: string;
/**
* Specify the icon to render
* Specify the icon to render.
* Defaults to `<OverflowMenuVertical />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent;

View file

@ -81,7 +81,8 @@ export interface SearchProps {
labelText?: string;
/**
* Specify the icon to render
* Specify the icon to render.
* Defaults to `<Search />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent;

View file

@ -28,8 +28,8 @@ export interface TooltipProps
hideIcon?: boolean;
/**
* Specify the icon to render for the tooltip button
* Icon size must be 16px (e.g., `Add16`, `Task16`)
* Specify the icon to render for the tooltip button.
* Default to `<Information />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent;

View file

@ -65,15 +65,15 @@ export interface HeaderProps
ref?: null | HTMLAnchorElement;
/**
* Specify the icon to render for the closed state
* Defaults to `Menu20`
* Specify the icon to render for the closed state.
* Defaults to `<Menu size={20} />`
* @default undefined
*/
iconMenu?: typeof import("svelte").SvelteComponent;
/**
* Specify the icon to render for the opened state
* Defaults to `Close20`
* Specify the icon to render for the opened state.
* Defaults to `<Close size={20} />`
* @default undefined
*/
iconClose?: typeof import("svelte").SvelteComponent;

View file

@ -10,13 +10,15 @@ export interface HeaderActionProps
isOpen?: boolean;
/**
* Specify the icon to render
* Specify the icon to render when the action panel is closed.
* Defaults to `<Switcher size={20} />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent;
/**
* Specify the icon to render when the action panel is open
* Specify the icon to render when the action panel is open.
* Defaults to `<Close size={20} />`
* @default undefined
*/
closeIcon?: typeof import("svelte").SvelteComponent;

17
types/icons/Search.svelte.d.ts vendored Normal file
View file

@ -0,0 +1,17 @@
/// <reference types="svelte" />
import { SvelteComponentTyped } from "svelte";
export interface SearchProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["svg"]> {
/**
* @default 16
*/
size?: number;
/**
* @default undefined
*/
title?: undefined;
}
export default class Search extends SvelteComponentTyped<SearchProps, {}, {}> {}