pukaad-ui-lib 1.413.0 → 1.415.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/card/card-content/card-content-recommend.d.vue.ts +15 -0
- package/dist/runtime/components/card/card-content/card-content-recommend.vue +42 -0
- package/dist/runtime/components/card/card-content/card-content-recommend.vue.d.ts +15 -0
- package/dist/runtime/components/card/card-spotlight.vue +1 -1
- package/dist/runtime/components/image/image-cropper.d.vue.ts +2 -2
- package/dist/runtime/components/image/image-cropper.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-address.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-address.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-personal-card-id.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CardContentItem } from "#pukaad-ui/types/components/card/card-content";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
items?: CardContentItem[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"item-click": (item: CardContentItem) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onItem-click"?: ((item: CardContentItem) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
title: string;
|
|
12
|
+
items: CardContentItem[];
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="items.length"
|
|
4
|
+
class="flex w-full min-w-0 flex-col gap-[16px] rounded-[8px] bg-bright p-[16px]"
|
|
5
|
+
>
|
|
6
|
+
<div class="font-title-medium-prominent">{{ title }}</div>
|
|
7
|
+
|
|
8
|
+
<ShadCarousel :opts="{ align: 'start', slidesToScroll: 1 }">
|
|
9
|
+
<ShadCarouselContent class="ml-0 gap-[12px]">
|
|
10
|
+
<ShadCarouselItem
|
|
11
|
+
v-for="item in items"
|
|
12
|
+
:key="item.id"
|
|
13
|
+
class="basis-[calc((100%_-_36px)/4)] p-0"
|
|
14
|
+
>
|
|
15
|
+
<CardContent :item="item" />
|
|
16
|
+
</ShadCarouselItem>
|
|
17
|
+
</ShadCarouselContent>
|
|
18
|
+
|
|
19
|
+
<template v-if="items.length > 4">
|
|
20
|
+
<ShadCarouselPrevious
|
|
21
|
+
class="left-[-14px] z-content size-[50px] border-0 bg-white/85 shadow-md hover:bg-white [&_svg]:!size-[32px]"
|
|
22
|
+
>
|
|
23
|
+
<Icon name="lucide:chevron-left" class="text-primary" />
|
|
24
|
+
</ShadCarouselPrevious>
|
|
25
|
+
|
|
26
|
+
<ShadCarouselNext
|
|
27
|
+
class="right-[-14px] z-content size-[50px] border-0 bg-white/85 shadow-md hover:bg-white [&_svg]:!size-[32px]"
|
|
28
|
+
>
|
|
29
|
+
<Icon name="lucide:chevron-right" class="text-primary" />
|
|
30
|
+
</ShadCarouselNext>
|
|
31
|
+
</template>
|
|
32
|
+
</ShadCarousel>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup>
|
|
37
|
+
defineProps({
|
|
38
|
+
title: { type: String, required: false, default: "\u0E41\u0E19\u0E30\u0E19\u0E33\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E04\u0E38\u0E13" },
|
|
39
|
+
items: { type: Array, required: false, default: () => [] }
|
|
40
|
+
});
|
|
41
|
+
const emit = defineEmits(["item-click"]);
|
|
42
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CardContentItem } from "#pukaad-ui/types/components/card/card-content";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
items?: CardContentItem[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"item-click": (item: CardContentItem) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onItem-click"?: ((item: CardContentItem) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
title: string;
|
|
12
|
+
items: CardContentItem[];
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div v-if="visibleItems.length > 0" class="flex w-full flex-col gap-[8px]">
|
|
3
3
|
<div class="flex w-full items-center justify-between">
|
|
4
4
|
<div class="font-title-medium-prominent">{{ title }}</div>
|
|
5
|
-
<Button variant="text" @click="emit('view-all')"
|
|
5
|
+
<Button variant="text" color="primary" @click="emit('view-all')"
|
|
6
6
|
>ดูทั้งหมด
|
|
7
7
|
<Icon name="lucide:chevron-right" size="16" />
|
|
8
8
|
</Button>
|
|
@@ -65,14 +65,14 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
67
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
68
|
-
background: boolean;
|
|
69
|
-
modal: boolean;
|
|
70
68
|
responsive: boolean;
|
|
71
69
|
restore: boolean;
|
|
72
70
|
checkCrossOrigin: boolean;
|
|
73
71
|
checkOrientation: boolean;
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
highlight: boolean;
|
|
75
|
+
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -65,14 +65,14 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
67
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
68
|
-
background: boolean;
|
|
69
|
-
modal: boolean;
|
|
70
68
|
responsive: boolean;
|
|
71
69
|
restore: boolean;
|
|
72
70
|
checkCrossOrigin: boolean;
|
|
73
71
|
checkOrientation: boolean;
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
highlight: boolean;
|
|
75
|
+
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
requiredDetail: boolean;
|
|
56
|
-
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
requiredDetail: boolean;
|
|
56
|
-
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
remove: () => any;
|
|
15
14
|
complete: (file: File) => any;
|
|
15
|
+
remove: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onRemove?: (() => any) | undefined;
|
|
19
18
|
onComplete?: ((file: File) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
remove: () => any;
|
|
15
14
|
complete: (file: File) => any;
|
|
15
|
+
remove: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onRemove?: (() => any) | undefined;
|
|
19
18
|
onComplete?: ((file: File) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|