From ae0d5e5c4b4fc2a4ef9a7dd62a4bd9aafeaac509 Mon Sep 17 00:00:00 2001 From: Vojtech Simetka Date: Wed, 3 Jan 2024 11:48:50 +0100 Subject: [PATCH] feat: add icons, resolve mjs compatibility --- package.json | 7 +++++-- src/lib/icons.ts | 6 ++++++ src/lib/icons/data-blob.svelte | 23 ++++++++++++++++++++++ src/lib/icons/explore.svelte | 16 +++++++++++++++ src/lib/icons/home.svelte | 13 ++++++++++++ src/lib/icons/ibm-watsonx-assistant.svelte | 22 +++++++++++++++++++++ src/lib/icons/search.svelte | 13 ++++++++++++ src/lib/index.ts | 8 -------- 8 files changed, 98 insertions(+), 10 deletions(-) create mode 100644 src/lib/icons/data-blob.svelte create mode 100644 src/lib/icons/explore.svelte create mode 100644 src/lib/icons/home.svelte create mode 100644 src/lib/icons/ibm-watsonx-assistant.svelte create mode 100644 src/lib/icons/search.svelte diff --git a/package.json b/package.json index 4bf6e9b..d8ba03c 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,13 @@ "exports": { ".": { "types": "./dist/index.d.ts", - "svelte": "./dist/index.js" + "svelte": "./dist/index.js", + "import": "./dist/index.js" }, "./icons": { "types": "./dist/icons.d.ts", - "svelte": "./dist/icons.js" + "svelte": "./dist/icons.js", + "import": "./dist/icons.js" } }, "files": [ @@ -59,5 +61,6 @@ }, "svelte": "./dist/index.js", "types": "./dist/index.d.ts", + "module": "dist/index.js", "type": "module" } diff --git a/src/lib/icons.ts b/src/lib/icons.ts index 60ba0b0..f7bda69 100644 --- a/src/lib/icons.ts +++ b/src/lib/icons.ts @@ -42,3 +42,9 @@ export { default as ShowDataCards } from './icons/show-data-cards.svelte' export { default as UserFollow } from './icons/user-follow.svelte' export { default as Launch } from './icons/launch.svelte' export { default as DocumentSigned } from './icons/document-signed.svelte' +export { default as DataBlob } from './icons/data-blob.svelte' +export { default as Search } from './icons/search.svelte' +export { default as Explore } from './icons/explore.svelte' +export { default as Home } from './icons/home.svelte' +export { default as Information } from './icons/information.svelte' +export { default as IBMWatsonxAssistant } from './icons/ibm-watsonx-assistant.svelte' diff --git a/src/lib/icons/data-blob.svelte b/src/lib/icons/data-blob.svelte new file mode 100644 index 0000000..b379e51 --- /dev/null +++ b/src/lib/icons/data-blob.svelte @@ -0,0 +1,23 @@ + + + + + + + + + + + diff --git a/src/lib/icons/explore.svelte b/src/lib/icons/explore.svelte new file mode 100644 index 0000000..6637011 --- /dev/null +++ b/src/lib/icons/explore.svelte @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/lib/icons/home.svelte b/src/lib/icons/home.svelte new file mode 100644 index 0000000..c205093 --- /dev/null +++ b/src/lib/icons/home.svelte @@ -0,0 +1,13 @@ + + + + + diff --git a/src/lib/icons/ibm-watsonx-assistant.svelte b/src/lib/icons/ibm-watsonx-assistant.svelte new file mode 100644 index 0000000..8b7991e --- /dev/null +++ b/src/lib/icons/ibm-watsonx-assistant.svelte @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/src/lib/icons/search.svelte b/src/lib/icons/search.svelte new file mode 100644 index 0000000..3e18886 --- /dev/null +++ b/src/lib/icons/search.svelte @@ -0,0 +1,13 @@ + + + + + diff --git a/src/lib/index.ts b/src/lib/index.ts index bf9dfce..93b9bec 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -15,11 +15,3 @@ export { default as DropdownItem } from './components/inputs/dropdown-item.svelt export { default as Theme } from './theme.svelte' export type { ThemeStore } from './stores/theme' export type { DarkModeOption } from './types' - -// Icons -import AddComment from './icons/add-comment.svelte' -import Add from './icons/add.svelte' -import ArrowDownRight from './icons/arrow-down-right.svelte' -import ArrowRight from './icons/arrow-right.svelte' - -export { AddComment, Add, ArrowDownRight, ArrowRight }