@rkosafo/cai.components 0.0.41 → 0.0.42

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.
@@ -18,7 +18,7 @@
18
18
  showOverflowActionButton = true,
19
19
  caseStatus = '',
20
20
  logoUrl = '',
21
- showDefaultCaseOveflowActions = true,
21
+ showFollowOverflowAction = true,
22
22
  showCloseOverflowAction = true,
23
23
  onOverflowActionClicked,
24
24
  onToggleFollowCase,
@@ -122,10 +122,10 @@
122
122
  transition:slide
123
123
  use:clickOutsideAction
124
124
  >
125
- {#if showDefaultCaseOveflowActions}
125
+ {#if showFollowOverflowAction}
126
126
  {#if !isFollowingCase}
127
127
  <DropdownItem
128
- class="flex items-center gap-1 whitespace-nowrap "
128
+ class="flex w-full appearance-none items-center gap-1 whitespace-nowrap"
129
129
  onclick={() => {
130
130
  onToggleFollowCase?.('follow');
131
131
  showMenu = false;
@@ -133,7 +133,7 @@
133
133
  >
134
134
  {:else}
135
135
  <DropdownItem
136
- class="flex items-center gap-1 whitespace-nowrap "
136
+ class="flex w-full appearance-none items-center gap-1 whitespace-nowrap"
137
137
  onclick={() => {
138
138
  onToggleFollowCase?.('unfollow');
139
139
  showMenu = false;
@@ -145,7 +145,7 @@
145
145
  {#if overflowActionsList.length > 0}
146
146
  {#each overflowActionsList as item}
147
147
  <DropdownItem
148
- class="flex items-center gap-1 whitespace-nowrap "
148
+ class="flex w-full appearance-none items-center gap-1 whitespace-nowrap"
149
149
  onclick={() => {
150
150
  onOverflowActionClicked?.(item);
151
151
  showMenu = false;
@@ -155,9 +155,9 @@
155
155
  >
156
156
  {/each}
157
157
  {/if}
158
- {#if showDefaultCaseOveflowActions && showCloseOverflowAction}
158
+ {#if showCloseOverflowAction}
159
159
  <DropdownItem
160
- class="flex items-center gap-1 whitespace-nowrap text-red-600"
160
+ class="flex w-full appearance-none items-center gap-1 whitespace-nowrap text-red-600"
161
161
  onclick={() => {
162
162
  onCloseCase?.();
163
163
  showMenu = false;
@@ -26,7 +26,7 @@ export interface ChatHeaderProps {
26
26
  showOverflowActionButton?: boolean;
27
27
  caseStatus?: string;
28
28
  isFollowingCase?: boolean;
29
- showDefaultCaseOveflowActions?: boolean;
29
+ showFollowOverflowAction?: boolean;
30
30
  showCloseOverflowAction?: boolean;
31
31
  onCloseCase?: () => void;
32
32
  onOverflowActionClicked?: (val: ChatHeaderOverflowAction) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",