@rkosafo/cai.components 0.0.21 → 0.0.23

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.
@@ -16,7 +16,7 @@
16
16
  </script>
17
17
 
18
18
  <div class="relative flex h-full w-full flex-col">
19
- <div class="mb-4 flex flex-wrap space-x-3 border-b-2">
19
+ <div class="mb-4 flex flex-wrap space-x-3 border-b border-gray-300">
20
20
  {#each tabs as tab}
21
21
  <button
22
22
  class="rounded-t-md border-b-2 px-4 py-2"
@@ -32,7 +32,9 @@
32
32
  <span class="text-sm">
33
33
  {tab.title}
34
34
  </span>
35
- <iconify-icon icon={tab.icon} style="font-size: 15px;"></iconify-icon>
35
+ {#if tab.icon}
36
+ <iconify-icon icon={tab.icon} style="font-size: 15px;"></iconify-icon>
37
+ {/if}
36
38
  {#if tab.isClosable}
37
39
  <CloseButton
38
40
  size="sm"
@@ -58,7 +60,7 @@
58
60
  onTabAdd,
59
61
  onRemoveTab
60
62
  })} -->
61
- <tab.children {...tab} {onTabAdd} {onRemoveTab} />
63
+ <tab.children {...tab} {...tab.props} {onTabAdd} {onRemoveTab} />
62
64
  </div>
63
65
  {/each}
64
66
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",