mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Align v10.33 (#619)
* chore(deps-dev): upgrade carbon-components to v10.33.0 * fix(clickable-tile): support disabled state for ClickableTile * fix(aspect-ratio): add missing 3x2 ratio * docs: update number of supported chart types * feat(link): support link with icon * refactor(outbound-link): use icon prop * fix(search): wrap search icon with div
This commit is contained in:
parent
081783c719
commit
f3cddbad9f
22 changed files with 131 additions and 62 deletions
2
types/AspectRatio/AspectRatio.d.ts
vendored
2
types/AspectRatio/AspectRatio.d.ts
vendored
|
@ -7,7 +7,7 @@ export interface AspectRatioProps
|
|||
* Specify the aspect ratio
|
||||
* @default "2x1"
|
||||
*/
|
||||
ratio?: "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "9x16" | "1x2";
|
||||
ratio?: "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2";
|
||||
}
|
||||
|
||||
export default class AspectRatio extends SvelteComponentTyped<
|
||||
|
|
2
types/ImageLoader/ImageLoader.d.ts
vendored
2
types/ImageLoader/ImageLoader.d.ts
vendored
|
@ -18,7 +18,7 @@ export interface ImageLoaderProps
|
|||
/**
|
||||
* Specify the aspect ratio for the image wrapper
|
||||
*/
|
||||
ratio?: "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "9x16" | "1x2";
|
||||
ratio?: "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2";
|
||||
|
||||
/**
|
||||
* Set to `true` when `loaded` is `true` and `error` is false
|
||||
|
|
6
types/Link/Link.d.ts
vendored
6
types/Link/Link.d.ts
vendored
|
@ -19,6 +19,12 @@ export interface LinkProps
|
|||
*/
|
||||
inline?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the icon from `carbon-icons-svelte` to render
|
||||
* `inline` must be `false`
|
||||
*/
|
||||
icon?: typeof import("carbon-icons-svelte").CarbonIcon;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the checkbox
|
||||
* @default false
|
||||
|
|
9
types/Tile/ClickableTile.d.ts
vendored
9
types/Tile/ClickableTile.d.ts
vendored
|
@ -1,8 +1,7 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface ClickableTileProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["a"]> {
|
||||
export interface ClickableTileProps {
|
||||
/**
|
||||
* Set to `true` to click the tile
|
||||
* @default false
|
||||
|
@ -15,6 +14,12 @@ export interface ClickableTileProps
|
|||
*/
|
||||
light?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the tile
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set the `href`
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue