Merge remote-tracking branch 'upstream/master'

This commit is contained in:
josefaidt 2020-09-17 15:10:26 -05:00
commit 3ed89b6cc2
5 changed files with 22 additions and 3 deletions

View file

@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Selectable/expandable `DataTable`
## [0.12.3](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.12.3) - 2020-09-16
**Fixes**
- ClickableTile: add missing `href` ([PR #254](https://github.com/IBM/carbon-components-svelte/pull/254), thanks [@josefaidt](https://github.com/josefaidt))
## [0.12.2](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.12.2) - 2020-09-14
**Fixes**

View file

@ -1,6 +1,6 @@
# Component Index
> 144 components exported from carbon-components-svelte 0.12.2
> 144 components exported from carbon-components-svelte 0.12.3
- Accordion
- [AccordionSkeleton](#accordionskeleton)
@ -566,6 +566,7 @@ import { ClickableTile } from "carbon-components-svelte";
| :-------- | :------------------- | :------------ |
| clicked | <code>boolean</code> | false |
| light | <code>boolean</code> | false |
| href | <code>string</code> | -- |
### Slots

View file

@ -1,6 +1,6 @@
{
"name": "carbon-components-svelte",
"version": "0.12.2",
"version": "0.12.3",
"license": "Apache-2.0",
"description": "Svelte implementation of the Carbon Design System",
"svelte": "./src/index.js",

View file

@ -10,6 +10,12 @@
* @type {boolean} [light=false]
*/
export let light = false;
/**
* Set the `href`
* @type {string} [href]
*/
export let href = undefined;
</script>
<!-- svelte-ignore a11y-missing-attribute -->
@ -19,6 +25,7 @@
class:bx--tile--is-clicked="{clicked}"
class:bx--tile--light="{light}"
{...$$restProps}
href="{href}"
on:click
on:click="{() => {
clicked = !clicked;

7
types/index.d.ts vendored
View file

@ -1,4 +1,4 @@
// Type definitions for carbon-components-svelte 0.12.2
// Type definitions for carbon-components-svelte 0.12.3
// Project: https://github.com/IBM/carbon-components-svelte
export class CarbonSvelteComponent {
@ -317,6 +317,11 @@ export class ClickableTile extends CarbonSvelteComponent {
* @default false
*/
light?: boolean;
/**
* Set the `href`
*/
href?: string;
};
$$slot_def: { default: {} };