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` - 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 ## [0.12.2](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.12.2) - 2020-09-14
**Fixes** **Fixes**

View file

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

View file

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

View file

@ -10,6 +10,12 @@
* @type {boolean} [light=false] * @type {boolean} [light=false]
*/ */
export let light = false; export let light = false;
/**
* Set the `href`
* @type {string} [href]
*/
export let href = undefined;
</script> </script>
<!-- svelte-ignore a11y-missing-attribute --> <!-- svelte-ignore a11y-missing-attribute -->
@ -19,6 +25,7 @@
class:bx--tile--is-clicked="{clicked}" class:bx--tile--is-clicked="{clicked}"
class:bx--tile--light="{light}" class:bx--tile--light="{light}"
{...$$restProps} {...$$restProps}
href="{href}"
on:click on:click
on:click="{() => { on:click="{() => {
clicked = !clicked; 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 // Project: https://github.com/IBM/carbon-components-svelte
export class CarbonSvelteComponent { export class CarbonSvelteComponent {
@ -317,6 +317,11 @@ export class ClickableTile extends CarbonSvelteComponent {
* @default false * @default false
*/ */
light?: boolean; light?: boolean;
/**
* Set the `href`
*/
href?: string;
}; };
$$slot_def: { default: {} }; $$slot_def: { default: {} };