From 127e9bff23e35c26fba2355e15a9baffb764913e Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sat, 11 Sep 2021 10:20:41 +0200 Subject: [PATCH] clean ui package Signed-off-by: Andrey Platov --- packages/ui/src/components/Button.svelte | 2 +- .../ui/src/components/CircleButton.svelte | 4 +- .../ui/src/components/EditWithIcon.svelte | 2 +- packages/ui/src/components/Link.svelte | 2 +- packages/ui/src/components/SelectItem.svelte | 94 ------------------- packages/ui/src/components/Tabs.svelte | 4 +- packages/ui/src/components/Tooltip.svelte | 2 +- packages/ui/src/index.ts | 1 - 8 files changed, 8 insertions(+), 103 deletions(-) delete mode 100644 packages/ui/src/components/SelectItem.svelte diff --git a/packages/ui/src/components/Button.svelte b/packages/ui/src/components/Button.svelte index 9af85da036..ee783746bf 100644 --- a/packages/ui/src/components/Button.svelte +++ b/packages/ui/src/components/Button.svelte @@ -14,7 +14,7 @@ --> - - - - {#if byTitle } - - {:else} - - {/if} - {#each items.filter(i => !i.selected) as noItem} - {#if byTitle } - { - pressed = false - item.selected = false - }}/> - {:else} - { - pressed = false - item.selected = false - }}/> - {/if} - {/each} - - - diff --git a/packages/ui/src/components/Tabs.svelte b/packages/ui/src/components/Tabs.svelte index 2ed88008f3..0a6cf22774 100644 --- a/packages/ui/src/components/Tabs.svelte +++ b/packages/ui/src/components/Tabs.svelte @@ -26,14 +26,14 @@ {#each model as tab, i}
{ selected = i }}> -
{/each}
{#each model as tab, i} {#if selected === i} - + {/if} {/each} diff --git a/packages/ui/src/components/Tooltip.svelte b/packages/ui/src/components/Tooltip.svelte index 0942dbb4aa..a7af624202 100644 --- a/packages/ui/src/components/Tooltip.svelte +++ b/packages/ui/src/components/Tooltip.svelte @@ -27,7 +27,7 @@
{ + on:mouseenter={() => { showTooltip(label, triggerHTML, direction) }} on:mouseleave={() => { diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index 88e30e6221..1e7f10a397 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -41,7 +41,6 @@ export { default as Tabs } from './components/Tabs.svelte' export { default as ScrollBox } from './components/ScrollBox.svelte' export { default as PopupMenu } from './components/PopupMenu.svelte' export { default as PopupItem } from './components/PopupItem.svelte' -export { default as SelectItem } from './components/SelectItem.svelte' export { default as TextArea } from './components/TextArea.svelte' export { default as Section } from './components/Section.svelte' export { default as DatePicker } from './components/DatePicker.svelte'