@skeletonlabs/skeleton 1.8.0-dev.a448a023 → 1.8.0
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.
|
@@ -23,9 +23,9 @@ const cInterface = "space-y-4";
|
|
|
23
23
|
const cChipList = "flex flex-wrap gap-2";
|
|
24
24
|
const cInputField = "unstyled bg-transparent border-0 !ring-0 p-0 w-full";
|
|
25
25
|
let inputValid = true;
|
|
26
|
-
let chipValues = value
|
|
26
|
+
let chipValues = value.map((val) => {
|
|
27
27
|
return { val, id: Math.random() };
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
function resetFormHandler() {
|
|
30
30
|
value = [];
|
|
31
31
|
}
|
|
@@ -95,11 +95,11 @@ $:
|
|
|
95
95
|
$:
|
|
96
96
|
classesInputField = `${cInputField}`;
|
|
97
97
|
$:
|
|
98
|
-
chipValues = value
|
|
98
|
+
chipValues = value.map((val, i) => {
|
|
99
99
|
if (chipValues[i]?.val === val)
|
|
100
100
|
return chipValues[i];
|
|
101
101
|
return { id: Math.random(), val };
|
|
102
|
-
})
|
|
102
|
+
});
|
|
103
103
|
</script>
|
|
104
104
|
|
|
105
105
|
<div class="input-chip {classesBase}" class:opacity-50={$$restProps.disabled}>
|
|
@@ -136,7 +136,6 @@ $:
|
|
|
136
136
|
use:focusTrap={true}
|
|
137
137
|
>
|
|
138
138
|
<!-- Drawer -->
|
|
139
|
-
<!-- separate In/Out so anim values update -->
|
|
140
139
|
<div
|
|
141
140
|
bind:this={elemDrawer}
|
|
142
141
|
class="drawer {classesDrawer}"
|
|
@@ -145,8 +144,7 @@ $:
|
|
|
145
144
|
aria-modal="true"
|
|
146
145
|
aria-labelledby={labelledby}
|
|
147
146
|
aria-describedby={describedby}
|
|
148
|
-
|
|
149
|
-
out:fly|local={{ x: anim.x, y: anim.y, duration }}
|
|
147
|
+
transition:fly|local={{ x: anim.x, y: anim.y, duration }}
|
|
150
148
|
>
|
|
151
149
|
<!-- Slot: Default -->
|
|
152
150
|
<slot />
|