From ff103168983183a82adb4fe6ae045b704fdcbc67 Mon Sep 17 00:00:00 2001 From: Craig Howell Date: Sun, 2 Oct 2022 13:50:22 -0400 Subject: [PATCH] fix(Accordion.Item.Title): replaced on:click with forwardEvents to catch all actions fix(Alert): made properties class and type reactive fix(Alert.Icon): made properties class and type reactive fix(Alert.Title): made properties class and type reactive fix(Alert.Description): properties class and type reactive --- src/lib/components/accordion/Title.svelte | 15 ++++++++++- src/lib/components/alert/Alert.svelte | 23 ++++++++++------ src/lib/components/alert/Description.svelte | 29 +++++++++++++-------- src/lib/components/alert/Icon.svelte | 25 ++++++++++-------- src/lib/components/alert/Title.svelte | 19 ++++++++------ 5 files changed, 72 insertions(+), 39 deletions(-) diff --git a/src/lib/components/accordion/Title.svelte b/src/lib/components/accordion/Title.svelte index 0ef14f0f..328df385 100644 --- a/src/lib/components/accordion/Title.svelte +++ b/src/lib/components/accordion/Title.svelte @@ -5,6 +5,11 @@ import { ACCORDION_ITEM_CONTEXT_ID } from './Item.svelte'; import { useContext } from '../../utils/useContext'; import type { Writable } from 'svelte/store'; + import { current_component } from 'svelte/internal'; + import { forwardEventsBuilder, useActions, type ActionArray } from '../../actions'; + import { exclude } from '../../utils/exclude'; + export let use: ActionArray = []; + const forwardEvents = forwardEventsBuilder(current_component); useContext({ context_id: ACCORDION_CONTEXT_ID, @@ -25,7 +30,15 @@ $: finalClass = twMerge(defaultClass, $$props.class); -