@skeletonlabs/skeleton 1.8.0-dev.cbef3c34 → 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?.map((val) => {
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?.map((val, i) => {
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}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "1.8.0-dev.cbef3c34",
3
+ "version": "1.8.0",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {