pukaad-ui-lib 1.363.0 → 1.364.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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-combobox.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-combobox.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-suggest.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-media-view.vue +4 -4
- package/dist/runtime/components/ui/badge/index.d.ts +1 -1
- package/dist/runtime/components/ui/button/index.d.ts +1 -1
- package/dist/runtime/components/ui/button/index.js +32 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
required: boolean;
|
|
51
51
|
options: AutocompleteOption[] | string[] | number[];
|
|
52
52
|
description: string;
|
|
53
|
+
limit: number;
|
|
53
54
|
labelKey: string;
|
|
54
55
|
placeholder: string;
|
|
55
|
-
limit: number;
|
|
56
56
|
disabledErrorMessage: boolean;
|
|
57
57
|
disabledBorder: boolean;
|
|
58
58
|
showCounter: boolean;
|
|
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
required: boolean;
|
|
51
51
|
options: AutocompleteOption[] | string[] | number[];
|
|
52
52
|
description: string;
|
|
53
|
+
limit: number;
|
|
53
54
|
labelKey: string;
|
|
54
55
|
placeholder: string;
|
|
55
|
-
limit: number;
|
|
56
56
|
disabledErrorMessage: boolean;
|
|
57
57
|
disabledBorder: boolean;
|
|
58
58
|
showCounter: boolean;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
|
-
placeholder: string;
|
|
16
15
|
limit: number;
|
|
16
|
+
placeholder: string;
|
|
17
17
|
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
|
-
placeholder: string;
|
|
16
15
|
limit: number;
|
|
16
|
+
placeholder: string;
|
|
17
17
|
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,9 +20,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
description: string;
|
|
23
|
+
limit: number;
|
|
23
24
|
labelKey: string;
|
|
24
25
|
placeholder: string;
|
|
25
|
-
limit: number;
|
|
26
26
|
disabledErrorMessage: boolean;
|
|
27
27
|
disabledBorder: boolean;
|
|
28
28
|
showCounter: boolean;
|
|
@@ -20,9 +20,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
description: string;
|
|
23
|
+
limit: number;
|
|
23
24
|
labelKey: string;
|
|
24
25
|
placeholder: string;
|
|
25
|
-
limit: number;
|
|
26
26
|
disabledErrorMessage: boolean;
|
|
27
27
|
disabledBorder: boolean;
|
|
28
28
|
showCounter: boolean;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
28
|
state: "user" | "admin";
|
|
29
|
-
placeholder: string;
|
|
30
29
|
limit: number;
|
|
30
|
+
placeholder: string;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
28
|
state: "user" | "admin";
|
|
29
|
-
placeholder: string;
|
|
30
29
|
limit: number;
|
|
30
|
+
placeholder: string;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
46
46
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
|
-
rows: number;
|
|
50
49
|
limit: number;
|
|
50
|
+
rows: number;
|
|
51
51
|
disabledErrorMessage: boolean;
|
|
52
52
|
disabledBorder: boolean;
|
|
53
53
|
showCounter: boolean;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
46
46
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
|
-
rows: number;
|
|
50
49
|
limit: number;
|
|
50
|
+
rows: number;
|
|
51
51
|
disabledErrorMessage: boolean;
|
|
52
52
|
disabledBorder: boolean;
|
|
53
53
|
showCounter: boolean;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
@update:current-index="currentIndex = $event"
|
|
12
12
|
/>
|
|
13
13
|
|
|
14
|
-
<!--
|
|
14
|
+
<!-- overlay ผู้ดูแลสื่อ + ปุ่มรายงาน — โชว์เสมอ (ไม่ผูกกับ description) ยกเว้นตอนโหมด review -->
|
|
15
15
|
<div
|
|
16
|
-
v-if="!props.review
|
|
16
|
+
v-if="!props.review"
|
|
17
17
|
class="absolute bottom-0 w-full z-10"
|
|
18
18
|
style="
|
|
19
19
|
background: linear-gradient(
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
class="p-[16px]
|
|
27
|
+
class="p-[16px] flex flex-col gap-[8px] text-white font-body-large"
|
|
28
28
|
>
|
|
29
29
|
<div class="flex justify-between items-center">
|
|
30
30
|
<div class="font-body-large-prominent">{{ props.uploaderLabel }}</div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@click="isOpenModalReport = true"
|
|
35
35
|
/>
|
|
36
36
|
</div>
|
|
37
|
-
<div>{{ currentItem.description }}</div>
|
|
37
|
+
<div v-if="currentItem?.description">{{ currentItem.description }}</div>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
export { default as Badge } from "./Badge.vue.js";
|
|
3
3
|
export declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "outline" | "primary" | "secondary" | "destructive" | "
|
|
4
|
+
variant?: "default" | "outline" | "primary" | "secondary" | "destructive" | "warning" | "success" | "bright" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
@@ -2,7 +2,7 @@ import type { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
export { default as Button } from "./Button.vue.js";
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "text" | "default" | "outline" | "ghost" | "icon" | null | undefined;
|
|
5
|
-
color?: "default" | "primary" | "secondary" | "destructive" | "info" | null | undefined;
|
|
5
|
+
color?: "default" | "primary" | "secondary" | "destructive" | "info" | "warning" | null | undefined;
|
|
6
6
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-xs" | "icon-lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
@@ -17,7 +17,8 @@ export const buttonVariants = cva(
|
|
|
17
17
|
primary: "text-primary",
|
|
18
18
|
secondary: "text-secondary ",
|
|
19
19
|
destructive: "text-destructive",
|
|
20
|
-
info: "text-info-foreground"
|
|
20
|
+
info: "text-info-foreground",
|
|
21
|
+
warning: "text-warning"
|
|
21
22
|
},
|
|
22
23
|
size: {
|
|
23
24
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
@@ -55,6 +56,11 @@ export const buttonVariants = cva(
|
|
|
55
56
|
color: "info",
|
|
56
57
|
class: "bg-info text-info-foreground hover:bg-info/90"
|
|
57
58
|
},
|
|
59
|
+
{
|
|
60
|
+
variant: "default",
|
|
61
|
+
color: "warning",
|
|
62
|
+
class: "bg-warning text-white hover:bg-warning/90"
|
|
63
|
+
},
|
|
58
64
|
{
|
|
59
65
|
variant: "outline",
|
|
60
66
|
color: "default",
|
|
@@ -80,6 +86,11 @@ export const buttonVariants = cva(
|
|
|
80
86
|
color: "info",
|
|
81
87
|
class: "border border-info-foreground text-info-foreground hover:text-info-foreground/90 bg-white"
|
|
82
88
|
},
|
|
89
|
+
{
|
|
90
|
+
variant: "outline",
|
|
91
|
+
color: "warning",
|
|
92
|
+
class: "border border-warning text-warning hover:text-warning/90 bg-white"
|
|
93
|
+
},
|
|
83
94
|
{
|
|
84
95
|
variant: "ghost",
|
|
85
96
|
color: "default",
|
|
@@ -105,6 +116,11 @@ export const buttonVariants = cva(
|
|
|
105
116
|
color: "info",
|
|
106
117
|
class: "text-info-foreground hover:bg-info hover:text-info-foreground"
|
|
107
118
|
},
|
|
119
|
+
{
|
|
120
|
+
variant: "ghost",
|
|
121
|
+
color: "warning",
|
|
122
|
+
class: "text-warning hover:bg-warning/90 hover:text-white"
|
|
123
|
+
},
|
|
108
124
|
{
|
|
109
125
|
variant: "icon",
|
|
110
126
|
color: "default",
|
|
@@ -130,6 +146,11 @@ export const buttonVariants = cva(
|
|
|
130
146
|
color: "info",
|
|
131
147
|
class: "text-info-foreground hover:bg-info hover:text-info-foreground"
|
|
132
148
|
},
|
|
149
|
+
{
|
|
150
|
+
variant: "icon",
|
|
151
|
+
color: "warning",
|
|
152
|
+
class: "text-warning hover:bg-warning/90 hover:text-white"
|
|
153
|
+
},
|
|
133
154
|
// text variant - just plain text with color, no background or hover effects
|
|
134
155
|
{
|
|
135
156
|
variant: "text",
|
|
@@ -156,6 +177,11 @@ export const buttonVariants = cva(
|
|
|
156
177
|
color: "info",
|
|
157
178
|
class: "text-info-foreground hover:opacity-80"
|
|
158
179
|
},
|
|
180
|
+
{
|
|
181
|
+
variant: "text",
|
|
182
|
+
color: "warning",
|
|
183
|
+
class: "text-warning hover:opacity-80"
|
|
184
|
+
},
|
|
159
185
|
// link variant - inline link style, primary blue by default, no padding
|
|
160
186
|
{
|
|
161
187
|
variant: "link",
|
|
@@ -181,6 +207,11 @@ export const buttonVariants = cva(
|
|
|
181
207
|
variant: "link",
|
|
182
208
|
color: "info",
|
|
183
209
|
class: "text-info-foreground hover:opacity-80"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
variant: "link",
|
|
213
|
+
color: "warning",
|
|
214
|
+
class: "text-warning hover:opacity-80"
|
|
184
215
|
}
|
|
185
216
|
],
|
|
186
217
|
defaultVariants: {
|