pukaad-ui-lib 1.429.0 → 1.429.2
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.
package/dist/module.json
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['flex items-end gap-[16px] w-full', props.class]">
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
v-if="!hasMedia"
|
|
5
|
+
:class="['flex items-center gap-[8px] h-[36px] shrink-0', props.disabled && 'opacity-50']"
|
|
6
|
+
>
|
|
4
7
|
<slot name="actions" :open-image-picker="openImagePicker" :open-video-picker="openVideoPicker">
|
|
5
8
|
<Button
|
|
6
9
|
variant="text"
|
|
7
|
-
class="w-[32px] h-[32px]"
|
|
10
|
+
class="w-[32px] h-[32px] disabled:opacity-100"
|
|
8
11
|
:disabled="props.disabled || props.disabledMedia"
|
|
9
12
|
@click="openImagePicker"
|
|
10
13
|
>
|
|
11
|
-
<Icon name="lucide:image" class="size-[20px] text-
|
|
14
|
+
<Icon name="lucide:image" class="size-[20px] text-black" />
|
|
12
15
|
</Button>
|
|
13
16
|
<Button
|
|
14
17
|
variant="text"
|
|
15
|
-
class="w-[32px] h-[32px]"
|
|
18
|
+
class="w-[32px] h-[32px] disabled:opacity-100"
|
|
16
19
|
:disabled="props.disabled || props.disabledMedia"
|
|
17
20
|
@click="openVideoPicker"
|
|
18
21
|
>
|
|
19
|
-
<Icon name="lucide:video" class="size-[20px] text-
|
|
22
|
+
<Icon name="lucide:video" class="size-[20px] text-black" />
|
|
20
23
|
</Button>
|
|
21
|
-
<Button variant="text" class="w-[32px] h-[32px]" disabled>
|
|
22
|
-
<Icon name="lucide:megaphone" class="size-[20px] text-
|
|
24
|
+
<Button variant="text" class="w-[32px] h-[32px] disabled:opacity-100" disabled>
|
|
25
|
+
<Icon name="lucide:megaphone" class="size-[20px] text-black" />
|
|
23
26
|
</Button>
|
|
24
|
-
<Button variant="text" class="w-[32px] h-[32px]" disabled>
|
|
25
|
-
<Icon name="lucide:package" class="size-[20px] text-
|
|
27
|
+
<Button variant="text" class="w-[32px] h-[32px] disabled:opacity-100" disabled>
|
|
28
|
+
<Icon name="lucide:package" class="size-[20px] text-black" />
|
|
26
29
|
</Button>
|
|
27
30
|
</slot>
|
|
28
31
|
</div>
|
|
@@ -65,23 +68,20 @@
|
|
|
65
68
|
:placeholder="props.placeholder"
|
|
66
69
|
:disabled="props.disabled"
|
|
67
70
|
:style="{ maxHeight: `${props.maxHeight}px` }"
|
|
68
|
-
class="block w-full min-h-[34px] resize-none overflow-y-auto bg-transparent px-[12px] py-[4px] font-body-large text-black placeholder:text-
|
|
71
|
+
class="block w-full min-h-[34px] resize-none overflow-y-auto bg-transparent px-[12px] py-[4px] font-body-large text-black placeholder:text-muted-foreground outline-none"
|
|
69
72
|
@keydown.enter="onEnter"
|
|
70
73
|
@paste="onPaste"
|
|
71
74
|
/>
|
|
72
75
|
</div>
|
|
73
76
|
|
|
74
|
-
<
|
|
75
|
-
variant="text"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:class="['size-[20px]', canSend ? 'text-primary' : 'text-gray']"
|
|
83
|
-
/>
|
|
84
|
-
</Button>
|
|
77
|
+
<div class="flex items-center justify-center w-[32px] h-[36px] shrink-0">
|
|
78
|
+
<Button variant="text" :disabled="!canSend" @click="submit">
|
|
79
|
+
<Icon
|
|
80
|
+
name="fluent:send-24-filled"
|
|
81
|
+
:class="['size-[20px]', canSend ? 'text-primary' : 'text-cloud']"
|
|
82
|
+
/>
|
|
83
|
+
</Button>
|
|
84
|
+
</div>
|
|
85
85
|
|
|
86
86
|
<input
|
|
87
87
|
ref="pickerRef"
|