From fece3c226a00db782f01b4b556c2e58c650772a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20CG?= Date: Wed, 3 Jul 2024 12:03:08 +0200 Subject: [PATCH] feat(icons): migrate icons to composition API EMP-4438 --- .../src/components/icons/test-icons.vue | 158 ++++++++++++++++++ .../src/components/index.ts | 1 + packages/_vue3-migration-test/src/router.ts | 8 +- .../src/components/icons/arrow-down.vue | 13 +- .../src/components/icons/arrow-left.vue | 13 +- .../src/components/icons/arrow-right.vue | 13 +- .../src/components/icons/arrow-up.vue | 13 +- .../x-components/src/components/icons/bag.vue | 13 +- .../src/components/icons/bar-code.vue | 13 +- .../src/components/icons/barcode-tiny.vue | 13 +- .../src/components/icons/cart-filled.vue | 13 +- .../src/components/icons/cart.vue | 13 +- .../src/components/icons/check-tiny.vue | 13 +- .../src/components/icons/check.vue | 13 +- .../icons/checkbox-selected-filled.vue | 13 +- .../components/icons/checkbox-selected.vue | 13 +- .../icons/checkbox-unselected-filled.vue | 13 +- .../components/icons/checkbox-unselected.vue | 13 +- .../src/components/icons/chevron-down.vue | 13 +- .../src/components/icons/chevron-left.vue | 13 +- .../src/components/icons/chevron-right.vue | 13 +- .../components/icons/chevron-tiny-down.vue | 13 +- .../components/icons/chevron-tiny-left.vue | 13 +- .../components/icons/chevron-tiny-right.vue | 13 +- .../src/components/icons/chevron-tiny-up.vue | 13 +- .../src/components/icons/chevron-up.vue | 13 +- .../components/icons/corner-arrow-left.vue | 13 +- .../components/icons/corner-arrow-right.vue | 13 +- .../src/components/icons/cross-tiny.vue | 13 +- .../src/components/icons/cross.vue | 13 +- .../components/icons/curated-check-filled.vue | 13 +- .../icons/curated-check-tiny-filled.vue | 13 +- .../components/icons/curated-check-tiny.vue | 13 +- .../src/components/icons/curated-check.vue | 13 +- .../icons/diagonal-arrow-left-down.vue | 13 +- .../icons/diagonal-arrow-left-top.vue | 13 +- .../icons/diagonal-arrow-right-down.vue | 13 +- .../icons/diagonal-arrow-right-top.vue | 13 +- .../src/components/icons/filters.vue | 13 +- .../src/components/icons/grid-1-col.vue | 13 +- .../src/components/icons/grid-2-col.vue | 13 +- .../src/components/icons/grid-2-rows.vue | 13 +- .../src/components/icons/grid-4-col.vue | 13 +- .../src/components/icons/heart-filled.vue | 13 +- .../src/components/icons/heart.vue | 13 +- .../src/components/icons/hide.vue | 13 +- .../src/components/icons/history-tiny.vue | 13 +- .../src/components/icons/history.vue | 13 +- .../src/components/icons/light-bulb-off.vue | 13 +- .../src/components/icons/light-bulb-on.vue | 13 +- .../src/components/icons/menu.vue | 13 +- .../src/components/icons/minus-tiny.vue | 13 +- .../src/components/icons/minus.vue | 13 +- .../src/components/icons/plus-tiny.vue | 13 +- .../src/components/icons/plus.vue | 13 +- .../components/icons/radiobutton-selected.vue | 13 +- .../icons/radiobutton-unselected.vue | 13 +- .../src/components/icons/search-tiny.vue | 13 +- .../src/components/icons/search.vue | 13 +- .../src/components/icons/settings.vue | 13 +- .../src/components/icons/show.vue | 13 +- .../src/components/icons/sort-az.vue | 13 +- .../src/components/icons/sort-price-down.vue | 13 +- .../src/components/icons/sort-price-up.vue | 13 +- .../src/components/icons/sort-relevancy.vue | 13 +- .../src/components/icons/sort-za.vue | 13 +- .../src/components/icons/star-filled.vue | 13 +- .../src/components/icons/star.vue | 13 +- .../src/components/icons/tag-filled.vue | 13 +- .../x-components/src/components/icons/tag.vue | 13 +- .../src/components/icons/trash-open.vue | 13 +- .../src/components/icons/trash.vue | 13 +- .../src/components/icons/trending-tiny.vue | 13 +- .../src/components/icons/trending.vue | 13 +- .../src/components/icons/user-filled.vue | 13 +- .../src/components/icons/user.vue | 13 +- 76 files changed, 312 insertions(+), 804 deletions(-) create mode 100644 packages/_vue3-migration-test/src/components/icons/test-icons.vue diff --git a/packages/_vue3-migration-test/src/components/icons/test-icons.vue b/packages/_vue3-migration-test/src/components/icons/test-icons.vue new file mode 100644 index 0000000000..38a173c9f9 --- /dev/null +++ b/packages/_vue3-migration-test/src/components/icons/test-icons.vue @@ -0,0 +1,158 @@ + + + diff --git a/packages/_vue3-migration-test/src/components/index.ts b/packages/_vue3-migration-test/src/components/index.ts index c845db065a..78b2223a4e 100644 --- a/packages/_vue3-migration-test/src/components/index.ts +++ b/packages/_vue3-migration-test/src/components/index.ts @@ -17,3 +17,4 @@ export { default as TestBaseIdModal } from './modals/test-base-id-modal.vue'; export { default as TestExtraParams } from './extra-params/test-extra-params.vue'; export { default as TestSearch } from './test-search.vue'; export { default as TestTagging } from './tagging/test-tagging.vue'; +export { default as TestIcons } from './icons/test-icons.vue'; diff --git a/packages/_vue3-migration-test/src/router.ts b/packages/_vue3-migration-test/src/router.ts index ce24a8afac..b7461741bf 100644 --- a/packages/_vue3-migration-test/src/router.ts +++ b/packages/_vue3-migration-test/src/router.ts @@ -45,7 +45,8 @@ import { TestRedirection, TestExtraParams, TestSearch, - TestTagging + TestTagging, + TestIcons } from './'; const routes = [ @@ -278,6 +279,11 @@ const routes = [ path: '/tagging', name: 'Tagging', component: TestTagging + }, + { + path: '/icons', + name: 'Icons', + component: TestIcons } ]; diff --git a/packages/x-components/src/components/icons/arrow-down.vue b/packages/x-components/src/components/icons/arrow-down.vue index 57c502dd34..604b21791d 100644 --- a/packages/x-components/src/components/icons/arrow-down.vue +++ b/packages/x-components/src/components/icons/arrow-down.vue @@ -1,10 +1,5 @@ -