breaking: remove deprecated props and components (#1191)

This commit is contained in:
metonym 2022-03-27 08:21:58 -07:00 committed by GitHub
commit 21714d0e3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 127 additions and 1823 deletions

View file

@ -10,12 +10,6 @@
*/
export let value = "";
/**
* @deprecated this prop will be removed in the next major release
* Use size="sm" instead
*/
export let small = false;
/**
* Specify the size of the search input
* @type {"sm" | "lg" | "xl"}
@ -86,7 +80,6 @@
{#if skeleton}
<SearchSkeleton
small="{small}"
size="{size}"
{...$$restProps}
on:click
@ -101,7 +94,7 @@
class:bx--search="{true}"
class:bx--search--light="{light}"
class:bx--search--disabled="{disabled}"
class:bx--search--sm="{size === 'sm' || small}"
class:bx--search--sm="{size === 'sm'}"
class:bx--search--lg="{size === 'lg'}"
class:bx--search--xl="{size === 'xl'}"
class:bx--search--expandable="{expandable}"

View file

@ -1,10 +1,4 @@
<script>
/**
* @deprecated this prop will be removed in the next major release
* Set to `true` to use the small variant
*/
export let small = false;
/**
* Specify the size of the search input
* @type {"sm" | "lg" | "xl"}
@ -15,7 +9,7 @@
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
<div
class:bx--skeleton="{true}"
class:bx--search--sm="{size === 'sm' || small}"
class:bx--search--sm="{size === 'sm'}"
class:bx--search--lg="{size === 'lg'}"
class:bx--search--xl="{size === 'xl'}"
{...$$restProps}