From f3cddbad9fc07610d806bdaa725cdc469f8130e6 Mon Sep 17 00:00:00 2001
From: Eric Liu let
| No | "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "9x16" | "1x2"
| "2x1"
| Specify the aspect ratio |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :-------------------------------------------------------------------------------------------------------------- | ------------------ | ------------------------ |
+| ratio | let
| No | "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2"
| "2x1"
| Specify the aspect ratio |
### Slots
@@ -479,6 +479,7 @@ None.
| :-------- | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------- |
| clicked | let
| Yes | boolean
| false
| Set to `true` to click the tile |
| light | let
| No | boolean
| false
| Set to `true` to enable the light variant |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the tile |
| href | let
| No | string
| -- | Set the `href` |
### Slots
@@ -1858,16 +1859,16 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------- | :----------------- | :------- | :------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
-| error | let
| Yes | boolean
| false
| Set to `true` if an error occurs when loading the image |
-| loaded | let
| Yes | boolean
| false
| Set to `true` when the image is loaded |
-| loading | let
| Yes | boolean
| false
| Set to `true` when `loaded` is `true` and `error` is false |
-| src | let
| No | string
| ""
| Specify the image source |
-| alt | let
| No | string
| ""
| Specify the image alt text |
-| ratio | let
| No | "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "9x16" | "1x2"
| -- | Specify the aspect ratio for the image wrapper |
-| fadeIn | let
| No | boolean
| false
| Set to `true` to fade in the image on load
The duration uses the `fast-02` value following Carbon guidelines on motion |
-| loadImage | const
| No | (url?: string) => void
| (url) => { if (image != null) image = null; loaded = false; error = false; image = new Image(); image.src = url || src; image.onload = () => (loaded = true); image.onerror = () => (error = true); }
| Method invoked to load the image provided a `src` value |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :----------------- | :------- | :-------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
+| error | let
| Yes | boolean
| false
| Set to `true` if an error occurs when loading the image |
+| loaded | let
| Yes | boolean
| false
| Set to `true` when the image is loaded |
+| loading | let
| Yes | boolean
| false
| Set to `true` when `loaded` is `true` and `error` is false |
+| src | let
| No | string
| ""
| Specify the image source |
+| alt | let
| No | string
| ""
| Specify the image alt text |
+| ratio | let
| No | "2x1" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2"
| -- | Specify the aspect ratio for the image wrapper |
+| fadeIn | let
| No | boolean
| false
| Set to `true` to fade in the image on load
The duration uses the `fast-02` value following Carbon guidelines on motion |
+| loadImage | const
| No | (url?: string) => void
| (url) => { if (image != null) image = null; loaded = false; error = false; image = new Image(); image.src = url || src; image.onload = () => (loaded = true); image.onerror = () => (error = true); }
| Method invoked to load the image provided a `src` value |
### Slots
@@ -1944,14 +1945,15 @@ None.
### Props
-| Prop name | Kind | Reactive | Type | Default value | Description |
-| :-------- | :--------------- | :------- | :--------------------------------------------------------------------- | ------------------ | ------------------------------------------------ |
-| ref | let
| Yes | null | HTMLAnchorElement | HTMLParagraphElement
| null
| Obtain a reference to the top-level HTML element |
-| size | let
| No | "sm" | "lg"
| -- | Specify the size of the link |
-| href | let
| No | string
| -- | Specify the href value |
-| inline | let
| No | boolean
| false
| Set to `true` to use the inline variant |
-| disabled | let
| No | boolean
| false
| Set to `true` to disable the checkbox |
-| visited | let
| No | boolean
| false
| Set to `true` to allow visited styles |
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :--------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------- |
+| ref | let
| Yes | null | HTMLAnchorElement | HTMLParagraphElement
| null
| Obtain a reference to the top-level HTML element |
+| size | let
| No | "sm" | "lg"
| -- | Specify the size of the link |
+| href | let
| No | string
| -- | Specify the href value |
+| inline | let
| No | boolean
| false
| Set to `true` to use the inline variant |
+| icon | let
| No | typeof import("carbon-icons-svelte").CarbonIcon
| -- | Specify the icon from `carbon-icons-svelte` to render
`inline` must be `false` |
+| disabled | let
| No | boolean
| false
| Set to `true` to disable the checkbox |
+| visited | let
| No | boolean
| false
| Set to `true` to allow visited styles |
### Slots
diff --git a/README.md b/README.md
index a576e34f..119dcc6d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ The Carbon Svelte portfolio also includes:
- **[Carbon Icons Svelte](https://github.com/IBM/carbon-icons-svelte)**: 6000+ Carbon icons as Svelte components
- **[Carbon Pictograms Svelte](https://github.com/IBM/carbon-pictograms-svelte)**: 700+ Carbon pictograms as Svelte components
-- **[Carbon Charts Svelte](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/svelte)**: 16 chart types, powered by d3
+- **[Carbon Charts Svelte](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/svelte)**: 17 chart types, powered by d3
## [Documentation](http://ibm.biz/carbon-svelte)
diff --git a/docs/package.json b/docs/package.json
index d5ebc5be..2f85e322 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -11,7 +11,7 @@
"devDependencies": {
"@sveltech/routify": "^1.9.9",
"autoprefixer": "^10.2.3",
- "carbon-components": "10.32.1",
+ "carbon-components": "10.33.0",
"carbon-components-svelte": "../",
"mdsvex": "^0.8.8",
"npm-run-all": "^4.1.5",
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 106ca4c0..3253c26b 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -202,7 +202,7 @@
"name": "ratio",
"kind": "let",
"description": "Specify the aspect ratio",
- "type": "\"2x1\" | \"16x9\" | \"4x3\" | \"1x1\" | \"3x4\" | \"9x16\" | \"1x2\"",
+ "type": "\"2x1\" | \"16x9\" | \"4x3\" | \"1x1\" | \"3x4\" | \"3x2\" | \"9x16\" | \"1x2\"",
"value": "\"2x1\"",
"isFunction": false,
"constant": false,
@@ -767,6 +767,16 @@
"constant": false,
"reactive": false
},
+ {
+ "name": "disabled",
+ "kind": "let",
+ "description": "Set to `true` to disable the tile",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
{
"name": "href",
"kind": "let",
@@ -779,14 +789,14 @@
],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [
- { "type": "forwarded", "name": "click", "element": "a" },
- { "type": "forwarded", "name": "keydown", "element": "a" },
- { "type": "forwarded", "name": "mouseover", "element": "a" },
- { "type": "forwarded", "name": "mouseenter", "element": "a" },
- { "type": "forwarded", "name": "mouseleave", "element": "a" }
+ { "type": "forwarded", "name": "click", "element": "Link" },
+ { "type": "forwarded", "name": "keydown", "element": "Link" },
+ { "type": "forwarded", "name": "mouseover", "element": "Link" },
+ { "type": "forwarded", "name": "mouseenter", "element": "Link" },
+ { "type": "forwarded", "name": "mouseleave", "element": "Link" }
],
"typedefs": [],
- "rest_props": { "type": "Element", "name": "a" }
+ "rest_props": { "type": "InlineComponent", "name": "Link" }
},
{
"moduleName": "CodeSnippet",
@@ -4348,7 +4358,7 @@
"name": "ratio",
"kind": "let",
"description": "Specify the aspect ratio for the image wrapper",
- "type": "\"2x1\" | \"16x9\" | \"4x3\" | \"1x1\" | \"3x4\" | \"9x16\" | \"1x2\"",
+ "type": "\"2x1\" | \"16x9\" | \"4x3\" | \"1x1\" | \"3x4\" | \"3x2\" | \"9x16\" | \"1x2\"",
"isFunction": false,
"constant": false,
"reactive": false
@@ -4604,6 +4614,15 @@
"constant": false,
"reactive": false
},
+ {
+ "name": "icon",
+ "kind": "let",
+ "description": "Specify the icon from `carbon-icons-svelte` to render\n`inline` must be `false`",
+ "type": "typeof import(\"carbon-icons-svelte\").CarbonIcon",
+ "isFunction": false,
+ "constant": false,
+ "reactive": false
+ },
{
"name": "disabled",
"kind": "let",
diff --git a/docs/src/pages/components/AspectRatio.svx b/docs/src/pages/components/AspectRatio.svx
index 8b920a20..cb7c86e8 100644
--- a/docs/src/pages/components/AspectRatio.svx
+++ b/docs/src/pages/components/AspectRatio.svx
@@ -5,7 +5,7 @@
The `AspectRatio` component is useful for constraining fluid content within an aspect ratio. To demo this, resize your browser for the examples below.
-Supported aspect ratios include `"2x1"`, `"16x9"`, `"4x3"`, `"1x1"`, `"3x4"`, `"9x16"` and `"1x2"`.
+Supported aspect ratios include `"2x1"`, `"16x9"`, `"4x3"`, `"1x1"`, `"3x4"`, `"3x2"`, `"9x16"` and `"1x2"`.
### Default (2x1)
@@ -37,6 +37,12 @@ Supported aspect ratios include `"2x1"`, `"16x9"`, `"4x3"`, `"1x1"`, `"3x4"`, `"
3x4
+### Ratio 3x2
+
+