@lab-anssi/ui-kit 1.62.0 → 1.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
hasIcon: { attribute: "has-icon", type: "Boolean" },
|
|
6
6
|
tabs: { attribute: "tabs", type: "Array" },
|
|
7
7
|
ariaLabel: { attribute: "aria-label", type: "String" },
|
|
8
|
-
activeTabIndex: { attribute: "active-tab-index", type: "Number" },
|
|
8
|
+
activeTabIndex: { attribute: "active-tab-index", type: "Number", reflect: true },
|
|
9
9
|
},
|
|
10
10
|
extend: (CustomElementClass) => {
|
|
11
11
|
return class extends CustomElementClass {
|
|
@@ -24,12 +24,11 @@
|
|
|
24
24
|
}}
|
|
25
25
|
/>
|
|
26
26
|
|
|
27
|
-
<script lang="ts">import {
|
|
28
|
-
import { getIconsStyleSheet, setIconClass, setThemeable } from "../utilitaires";
|
|
27
|
+
<script lang="ts">import { getIconsStyleSheet, setIconClass, setThemeable } from "../utilitaires";
|
|
29
28
|
import { createSlot } from "../directives/actions.svelte";
|
|
30
29
|
setThemeable($host());
|
|
31
30
|
let { hasIcon, tabs = [], ariaLabel, activeTabIndex = 0, ontabchanged } = $props();
|
|
32
|
-
let activeIndex = $
|
|
31
|
+
let activeIndex = $derived(activeTabIndex);
|
|
33
32
|
let tabsElement;
|
|
34
33
|
let tabsListElement;
|
|
35
34
|
let tabButtons = [];
|
package/dist/web-types.json
CHANGED