@rkosafo/cai.components 0.0.37 → 0.0.38

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.
@@ -17,6 +17,8 @@
17
17
  showNotifications?: boolean;
18
18
  // readNotifications?: () => Promise<any[]> | any[];
19
19
  notificationList?: Snippet;
20
+ rightSideComponent?: Snippet;
21
+ leftSideComponent?: Snippet;
20
22
  }
21
23
  </script>
22
24
 
@@ -37,7 +39,9 @@
37
39
  onsignout,
38
40
  notificationCount = 0,
39
41
  showNotifications = true,
40
- notificationList
42
+ notificationList,
43
+ rightSideComponent,
44
+ leftSideComponent
41
45
  }: TFHeaderProps = $props();
42
46
  let showUser = $state(false);
43
47
  let openNotification = $state(false);
@@ -59,7 +63,10 @@
59
63
  {title}
60
64
  </div>
61
65
  </div>
66
+ {@render leftSideComponent?.()}
62
67
  <div class="flex flex-grow sm:hidden"></div>
68
+ {@render rightSideComponent?.()}
69
+
63
70
  {#if showNotifications}
64
71
  <div
65
72
  class="flex items-center gap-4"
@@ -139,7 +146,7 @@
139
146
  <div class="grid">
140
147
  <Button
141
148
  ripple={false}
142
- class="mx-0.5 flex gap-1 justify-start border bg-red-50 text-red-600 hover:bg-red-100"
149
+ class="mx-0.5 flex justify-start gap-1 border bg-red-50 text-red-600 hover:bg-red-100"
143
150
  onclick={() => {
144
151
  showUser = false;
145
152
  onsignout?.();
@@ -14,6 +14,8 @@ export interface TFHeaderProps {
14
14
  notificationCount?: number;
15
15
  showNotifications?: boolean;
16
16
  notificationList?: Snippet;
17
+ rightSideComponent?: Snippet;
18
+ leftSideComponent?: Snippet;
17
19
  }
18
20
  import type { Snippet } from 'svelte';
19
21
  declare const Header: import("svelte").Component<TFHeaderProps, {}, "hideSidebar">;
@@ -272,6 +272,7 @@
272
272
 
273
273
  async function handleAction({ action, data }: { action: string; data: FormData }) {
274
274
  let formData = data;
275
+ console.log({ formData });
275
276
  try {
276
277
  isLoading = true;
277
278
  const ret = editing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",