From 0a8351c123c987572c2e187f492bf3a35ac53f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20B=C3=BCschlen?= Date: Thu, 23 May 2024 16:32:40 +0200 Subject: [PATCH] feat(icon): create an icon element refactor: use the icon element instead of just the icon function fix(icon): remove faulty paths --- src/components/breadcrumb/Breadcrumb.js | 14 ++-- src/components/button/Button.js | 8 +-- src/components/button/button.css | 2 +- .../button/stories/button.stories.js | 4 +- src/components/checkbox/Checkbox.js | 7 +- src/components/chip/ChipRemovable.js | 11 +-- src/components/chip/chip.css | 4 -- src/components/icon/Icon.js | 47 +++++++++++++ src/components/icon/icon.css | 3 + src/components/icon/leu-icon.js | 6 ++ src/components/icon/{icon.js => paths.js} | 41 ++--------- src/components/icon/stories/icon.stories.js | 46 +++++++++++++ src/components/icon/test/icon.test.js | 68 +++++++++---------- src/components/input/Input.js | 15 ++-- src/components/input/input.css | 2 +- src/components/input/stories/input.stories.js | 4 +- src/components/menu/MenuItem.js | 7 +- src/components/menu/menu-item.css | 2 +- src/components/select/Select.js | 14 ++-- src/components/table/Table.js | 12 ++-- src/components/table/table.css | 2 +- 21 files changed, 187 insertions(+), 132 deletions(-) create mode 100644 src/components/icon/Icon.js create mode 100644 src/components/icon/icon.css create mode 100644 src/components/icon/leu-icon.js rename src/components/icon/{icon.js => paths.js} (96%) create mode 100644 src/components/icon/stories/icon.stories.js diff --git a/src/components/breadcrumb/Breadcrumb.js b/src/components/breadcrumb/Breadcrumb.js index 30c9a746..2fabb773 100644 --- a/src/components/breadcrumb/Breadcrumb.js +++ b/src/components/breadcrumb/Breadcrumb.js @@ -3,7 +3,7 @@ import { createRef, ref } from "lit/directives/ref.js" import { classMap } from "lit/directives/class-map.js" import styles from "./breadcrumb.css" -import { Icon } from "../icon/icon.js" +import "../icon/leu-icon.js" import "../menu/leu-menu.js" import "../menu/leu-menu-item.js" import "../popup/leu-popup.js" @@ -225,7 +225,9 @@ export class LeuBreadcrumb extends LitElement { return html`