From 60ee2ec8a42423e03afe98336202b4ca2477b7c3 Mon Sep 17 00:00:00 2001 From: "Adam G. Emerson" <35545129+AdamGEmerson@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:25:23 -0500 Subject: [PATCH 1/4] Updated tags for "color-filter" icon. (#842) --- tags.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags.json b/tags.json index 36fa9cbe9..e1af0cb86 100644 --- a/tags.json +++ b/tags.json @@ -10649,7 +10649,7 @@ "color-filter": { "name": "color-filter", "category": "Design", - "tags": ["color", "filter", "hue", "brightness", "effects", "sotring", "tools", "icon", "stroke", "outline"], + "tags": ["color", "filter", "hue", "brightness", "effects", "sorting", "tools", "icon", "stroke", "outline", "circles"], "version": "1.110", "unicode": "f5a8" }, From 5ee72f166c2fd17d232a44140dd24586894a256b Mon Sep 17 00:00:00 2001 From: Julius Berger Date: Wed, 27 Sep 2023 20:25:41 +0200 Subject: [PATCH 2/4] fix name of `device-game-pad.svg` to `device-gamepad-3.svg` (#800) --- src/_icons/{device-game-pad.svg => device-gamepad-3.svg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/_icons/{device-game-pad.svg => device-gamepad-3.svg} (100%) diff --git a/src/_icons/device-game-pad.svg b/src/_icons/device-gamepad-3.svg similarity index 100% rename from src/_icons/device-game-pad.svg rename to src/_icons/device-gamepad-3.svg From 8c694f6a38b2bf5cba81209e20def4d2277d93a7 Mon Sep 17 00:00:00 2001 From: Luca Sabato <61189438+lucaSabato@users.noreply.github.com> Date: Wed, 27 Sep 2023 19:26:24 +0100 Subject: [PATCH 3/4] Improved docs + remove clash props and SVG attribute stroke (#841) --- README.md | 25 ++++++++++++++++ packages/icons-vue/README.md | 31 ++++++++++++++++++-- packages/icons-vue/src/createVueComponent.js | 4 +-- 3 files changed, 55 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d11dfd3e7..c509c2041 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,19 @@ Vue components available through [`@tabler/icons-vue`](https://www.npmjs.com/pac ```vue ``` +or with ` + + +``` + For more details, see the [documentation](https://github.com/tabler/tabler-icons/tree/master/packages/icons-vue). diff --git a/packages/icons-vue/README.md b/packages/icons-vue/README.md index 7466513d6..33626fd72 100644 --- a/packages/icons-vue/README.md +++ b/packages/icons-vue/README.md @@ -52,7 +52,19 @@ All icons are Vue components that contain SVG elements. So any icon can be impor ```vue ``` -You can pass additional props to adjust the icon. +or with ` + + +``` + +You can pass additional attribute `stroke-width="1"` alongside the props to adjust the icon. ```html - + ``` ### Props @@ -77,7 +102,7 @@ You can pass additional props to adjust the icon. | ------------- | -------- | ------------ | | `size` | _Number_ | 24 | | `color` | _String_ | currentColor | -| `stroke` | _Number_ | 2 | +| `strokeWidth` | _Number_ | 2 | ## Contributing diff --git a/packages/icons-vue/src/createVueComponent.js b/packages/icons-vue/src/createVueComponent.js index 00989a94c..baa74cd38 100644 --- a/packages/icons-vue/src/createVueComponent.js +++ b/packages/icons-vue/src/createVueComponent.js @@ -2,7 +2,7 @@ import { h } from 'vue'; import defaultAttributes from './defaultAttributes'; const createVueComponent = (iconName, iconNamePascal, iconNode) => ( - { size, color, stroke, ...props }, + { size, color, strokeWidth, ...props }, { attrs, slots } ) => { return h( @@ -12,7 +12,7 @@ const createVueComponent = (iconName, iconNamePascal, iconNode) => ( width: size || defaultAttributes.width, height: size || defaultAttributes.height, stroke: color || defaultAttributes.stroke, - strokeWidth: stroke || defaultAttributes['stroke-width'], + 'stroke-width': strokeWidth || defaultAttributes['stroke-width'], ...attrs, class: ['tabler-icon', `tabler-icon-${iconName}`, attrs?.class || ''], ...props, From 3f409e26b91a7082a30217e448c50b9ea6d8b757 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 27 Sep 2023 20:26:48 +0200 Subject: [PATCH 4/4] Fix typo (#789) --- src/_icons/exclamation-circle.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_icons/exclamation-circle.svg b/src/_icons/exclamation-circle.svg index f1873c463..d23b0d0ce 100644 --- a/src/_icons/exclamation-circle.svg +++ b/src/_icons/exclamation-circle.svg @@ -1,5 +1,5 @@ --- -tags: [warring, error, shape, caution, alert] +tags: [warning, error, shape, caution, alert] unicode: "f634" version: "1.117" ---