From 3f1db762174de6480907d7574935bf48160805d4 Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Fri, 3 May 2024 10:42:20 -0600 Subject: [PATCH 1/4] Use label component --- .../import/event-history-file-import.svelte | 9 +++-- .../schedule/schedule-input-payload.svelte | 3 +- src/lib/holocene/checkbox.svelte | 9 +++-- src/lib/holocene/combobox/combobox.svelte | 12 +++---- src/lib/holocene/input/chip-input.svelte | 3 +- src/lib/holocene/input/input.svelte | 11 ++---- src/lib/holocene/input/number-input.svelte | 4 ++- src/lib/holocene/input/range-input.svelte | 5 ++- src/lib/holocene/label.stories.svelte | 0 src/lib/holocene/label.svelte | 35 +++++++++++++++++++ .../holocene/radio-input/radio-input.svelte | 14 +++----- src/lib/holocene/select/select.svelte | 5 ++- src/lib/holocene/select/simple-select.svelte | 4 ++- src/lib/holocene/textarea.svelte | 12 ++----- src/lib/holocene/toggle-switch.svelte | 16 ++++++--- 15 files changed, 87 insertions(+), 55 deletions(-) create mode 100644 src/lib/holocene/label.stories.svelte create mode 100644 src/lib/holocene/label.svelte diff --git a/src/lib/components/import/event-history-file-import.svelte b/src/lib/components/import/event-history-file-import.svelte index aec78ee11..4302f990e 100644 --- a/src/lib/components/import/event-history-file-import.svelte +++ b/src/lib/components/import/event-history-file-import.svelte @@ -2,6 +2,7 @@ import { goto } from '$app/navigation'; import Button from '$lib/holocene/button.svelte'; + import Label from '$lib/holocene/label.svelte'; import { translate } from '$lib/i18n/translate'; import { groupEvents } from '$lib/models/event-groups'; import { toEventHistory } from '$lib/models/event-history'; @@ -58,9 +59,11 @@ }; - +