pukaad-ui-lib 1.227.2 → 1.228.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.
Files changed (24) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +0 -6
  3. package/dist/runtime/components/avatar.vue +0 -1
  4. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  5. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  6. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  7. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  8. package/dist/runtime/components/input/input-rating.vue +1 -1
  9. package/dist/runtime/components/input/input-slider.d.vue.ts +1 -1
  10. package/dist/runtime/components/input/input-slider.vue.d.ts +1 -1
  11. package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +1 -1
  12. package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +1 -1
  13. package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +1 -1
  14. package/dist/runtime/components/modal/modal-password-verify.vue +8 -25
  15. package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +1 -1
  16. package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +1 -2
  17. package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +1 -2
  18. package/dist/runtime/components/ui/native-select/NativeSelect.vue +2 -2
  19. package/dist/runtime/components/ui/spinner/Spinner.vue +2 -2
  20. package/package.json +26 -27
  21. /package/dist/runtime/assets/svg/socials/{TikTok.svg → Tiktok.svg} +0 -0
  22. /package/dist/runtime/assets/svg/socials/{YouTube.svg → Youtube.svg} +0 -0
  23. /package/dist/runtime/assets/svg/socials/{Facebook.svg → facebook.svg} +0 -0
  24. /package/dist/runtime/assets/svg/socials/{Instagram.svg → instagram.svg} +0 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.227.2",
4
+ "version": "1.228.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -57,13 +57,7 @@ const module$1 = defineNuxtModule({
57
57
  },
58
58
  format: ["webp"]
59
59
  });
60
- await installModule("nuxt-google-translate", {
61
- defaultLanguage: "th",
62
- supportedLanguages: ["en", "th"]
63
- });
64
60
  await installModule("nuxt-rating");
65
- await installModule("@pinia/nuxt");
66
- await installModule("pinia-plugin-persistedstate/nuxt");
67
61
  await installModule("shadcn-nuxt", {
68
62
  prefix: "shad",
69
63
  componentDir: resolver.resolve("./runtime/components/ui")
@@ -1,6 +1,5 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
- import { UserIcon } from "lucide-vue-next";
4
3
  import { cn } from "@/runtime/plugins/shadcn";
5
4
  const props = defineProps({
6
5
  size: { type: [Number, String], required: false, default: 40 },
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
35
35
  fullHeight: boolean;
36
36
  name: string;
37
37
  limit: number;
38
- accept: string;
39
38
  disabledErrorMessage: boolean;
39
+ accept: string;
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
  name: string;
37
37
  limit: number;
38
- accept: string;
39
38
  disabledErrorMessage: boolean;
39
+ accept: string;
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
- disabledForgotPassword: boolean;
26
25
  new: boolean;
26
+ disabledForgotPassword: 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
- disabledForgotPassword: boolean;
26
25
  new: boolean;
26
+ disabledForgotPassword: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -7,7 +7,7 @@
7
7
  :read-only="props.readonly"
8
8
  :rating-step="props.ratingStep"
9
9
  :rounded-corners="true"
10
- :rating-size="props.size"
10
+ :rating-size="`${props.size}px`"
11
11
  :rating-content="[
12
12
  12,
13
13
  17.27,
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
13
13
  color: InputSliderColor;
14
14
  fullWidth: boolean;
15
15
  step: number;
16
- max: number;
17
16
  min: number;
17
+ max: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
13
13
  color: InputSliderColor;
14
14
  fullWidth: boolean;
15
15
  step: number;
16
- max: number;
17
16
  min: number;
17
+ max: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  }) => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
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
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
28
28
  }>, {
29
29
  title: string;
30
30
  mode: "login" | "secure";
31
- confirmText: string;
32
31
  disabledForgotPassword: boolean;
32
+ confirmText: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -1,30 +1,13 @@
1
1
  <template>
2
- <Modal
3
- :title="props.title"
4
- :loading="loading"
5
- v-model="isOpen"
6
- @close="emit('close')"
7
- @submit="handleSubmit"
8
- >
2
+ <Modal :title="props.title" :loading="loading" v-model="isOpen" @close="emit('close')" @submit="handleSubmit">
9
3
  <div v-if="props.description" class="font-body-large">
10
4
  {{ props.description }}
11
5
  </div>
12
- <InputPassword
13
- ref="inputRef"
14
- disabled-forgot-password
15
- required
16
- label="รหัสผ่าน"
17
- placeholder="กรอกรหัสผ่าน"
18
- v-model="password"
19
- />
6
+ <InputPassword ref="inputRef" disabled-forgot-password required label="รหัสผ่าน" placeholder="กรอกรหัสผ่าน"
7
+ v-model="password" />
20
8
 
21
9
  <template #footer="{ meta }">
22
- <Button
23
- type="submit"
24
- color="primary"
25
- class="w-full"
26
- :disabled="!meta.valid"
27
- >
10
+ <Button type="submit" color="primary" class="w-full" :disabled="!meta.valid">
28
11
  {{ props.confirmText }}
29
12
  </Button>
30
13
  </template>
@@ -63,11 +46,11 @@ const handleSubmit = async () => {
63
46
  loading.value = true;
64
47
  try {
65
48
  if (props.mode === "secure") {
66
- const { status } = await api("/me/password-verify", {
49
+ const res = await api("/me/password-verify", {
67
50
  method: "POST",
68
51
  body: { password: password.value }
69
52
  });
70
- if (status !== "success") throw "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
53
+ if (res.title !== "\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08") throw "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
71
54
  emit("complete", { secId: "" });
72
55
  isOpen.value = false;
73
56
  } else {
@@ -83,8 +66,8 @@ const handleSubmit = async () => {
83
66
  password: password.value
84
67
  }
85
68
  });
86
- if (res.code === 200 && res.data) {
87
- emit("complete", { secId: res.data.sec_id });
69
+ if (res.title === "\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08") {
70
+ emit("complete", { secId: res.data?.sec_id || "" });
88
71
  isOpen.value = false;
89
72
  } else {
90
73
  inputRef.value?.setErrors?.(res.message || "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07");
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
28
28
  }>, {
29
29
  title: string;
30
30
  mode: "login" | "secure";
31
- confirmText: string;
32
31
  disabledForgotPassword: boolean;
32
+ confirmText: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -1,5 +1,4 @@
1
1
  <script setup>
2
- import { DotsHorizontalIcon } from "@radix-icons/vue";
3
2
  import { cn } from "@/runtime/plugins/shadcn";
4
3
  const props = defineProps({
5
4
  class: { type: null, required: false }
@@ -14,7 +13,7 @@ const props = defineProps({
14
13
  :class="cn('flex size-9 items-center justify-center', props.class)"
15
14
  >
16
15
  <slot>
17
- <DotsHorizontalIcon class="size-4" />
16
+ <Icon name="lucide:ellipsis" class="size-4" />
18
17
  </slot>
19
18
  <span class="sr-only">More</span>
20
19
  </span>
@@ -1,5 +1,4 @@
1
1
  <script setup>
2
- import { ChevronRightIcon } from "@radix-icons/vue";
3
2
  import { cn } from "@/runtime/plugins/shadcn";
4
3
  const props = defineProps({
5
4
  class: { type: null, required: false }
@@ -14,7 +13,7 @@ const props = defineProps({
14
13
  :class="cn('[&>svg]:size-3.5', props.class)"
15
14
  >
16
15
  <slot>
17
- <ChevronRightIcon />
16
+ <Icon name="lucide:chevron-right" />
18
17
  </slot>
19
18
  </li>
20
19
  </template>
@@ -1,6 +1,5 @@
1
1
  <script setup>
2
2
  import { reactiveOmit, useVModel } from "@vueuse/core";
3
- import { ChevronDownIcon } from "lucide-vue-next";
4
3
  import { cn } from "@/runtime/plugins/shadcn";
5
4
  defineOptions({
6
5
  inheritAttrs: false
@@ -35,7 +34,8 @@ const delegatedProps = reactiveOmit(props, "class");
35
34
  >
36
35
  <slot />
37
36
  </select>
38
- <ChevronDownIcon
37
+ <Icon
38
+ name="lucide:chevron-down"
39
39
  class="text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none"
40
40
  aria-hidden="true"
41
41
  data-slot="native-select-icon"
@@ -1,5 +1,4 @@
1
1
  <script setup>
2
- import { Loader2Icon } from "lucide-vue-next";
3
2
  import { cn } from "@/runtime/plugins/shadcn";
4
3
  const props = defineProps({
5
4
  class: { type: null, required: false }
@@ -7,7 +6,8 @@ const props = defineProps({
7
6
  </script>
8
7
 
9
8
  <template>
10
- <Loader2Icon
9
+ <Icon
10
+ name="lucide:loader-2"
11
11
  role="status"
12
12
  aria-label="Loading"
13
13
  :class="cn('size-4 animate-spin', props.class)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.227.2",
3
+ "version": "1.228.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,57 +34,41 @@
34
34
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@cropper/element-canvas": "^2.0.0",
37
+ "@nuxt/fonts": "^0.13.0",
38
38
  "@nuxt/icon": "^1.10.3",
39
39
  "@nuxt/image": "^1.9.0",
40
- "@pinia/nuxt": "^0.11.1",
40
+ "@nuxt/kit": "^4.0.0",
41
41
  "@tailwindcss/vite": "4.0.7",
42
42
  "@tanstack/vue-table": "^8.21.3",
43
43
  "@vee-validate/nuxt": "^4.15.0",
44
- "@vee-validate/yup": "^4.15.0",
45
- "@vee-validate/zod": "^4.15.1",
46
- "@vueup/vue-quill": "^1.2.0",
47
44
  "@vueuse/core": "^14.2.1",
48
45
  "@vueuse/nuxt": "^12.7.0",
49
- "changelogen": "^0.5.7",
50
46
  "class-variance-authority": "^0.7.1",
51
47
  "clsx": "^2.1.1",
52
48
  "cropperjs": "^1.6.2",
53
49
  "dayjs": "^1.11.13",
54
50
  "embla-carousel-vue": "^8.6.0",
55
- "input-otp": "^1.4.2",
56
51
  "leaflet": "^1.9.4",
57
- "lodash": "^4.17.21",
58
- "nuxt": "^4.0.3",
59
- "nuxt-google-translate": "^1.2.0",
60
52
  "nuxt-rating": "^0.1.6",
61
- "pinia": "^3.0.3",
62
- "pinia-plugin-persistedstate": "^4.4.1",
63
53
  "quill": "^2.0.3",
64
- "quill-delta-to-html": "^0.12.1",
65
54
  "reka-ui": "^2.8.2",
66
55
  "shadcn-nuxt": "^2.3.3",
67
- "shadcn-vue": "^2.3.2",
68
56
  "tailwind-merge": "^3.4.0",
69
57
  "tailwind-variants": "^3.1.1",
70
58
  "tailwindcss": "4.0.7",
71
- "tailwindcss-animate": "^1.0.7",
72
59
  "tw-animate-css": "^1.4.0",
73
- "typescript": "^5.9.3",
74
60
  "vee-validate": "^4.15.1",
75
- "vitest": "^3.0.4",
76
- "vue-cropperjs": "^5.0.0",
77
- "vue-sfc-transformer": "^0.1.17",
78
- "vue-tsc": "^3.1.3",
79
- "vue3-recaptcha-v2": "^2.1.0",
80
- "zod": "^3.25.76"
61
+ "vue3-recaptcha-v2": "^2.1.0"
62
+ },
63
+ "peerDependencies": {
64
+ "nuxt": "^3.15.0 || ^4.0.0",
65
+ "vue": "^3.5.0"
81
66
  },
82
67
  "devDependencies": {
68
+ "@cropper/element-canvas": "^2.0.0",
83
69
  "@iconify-json/lucide": "^1.2.72",
84
70
  "@nuxt/devtools": "^1.7.0",
85
71
  "@nuxt/eslint-config": "^0.7.5",
86
- "@nuxt/fonts": "^0.13.0",
87
- "@nuxt/kit": "^4.0.0",
88
72
  "@nuxt/module-builder": "^1.0.1",
89
73
  "@nuxt/schema": "^4.0.0",
90
74
  "@nuxt/test-utils": "^3.15.4",
@@ -93,6 +77,21 @@
93
77
  "@types/leaflet": "^1.9.21",
94
78
  "@types/node": "^24.9.1",
95
79
  "@types/vue-cropperjs": "^4.1.6",
96
- "@vue/compiler-sfc": "^3.5.24"
80
+ "@vue/compiler-sfc": "^3.5.24",
81
+ "changelogen": "^0.5.7",
82
+ "input-otp": "^1.4.2",
83
+ "lodash": "^4.17.21",
84
+ "nuxt": "^4.0.3",
85
+ "pinia": "^3.0.3",
86
+ "pinia-plugin-persistedstate": "^4.4.1",
87
+ "quill-delta-to-html": "^0.12.1",
88
+ "shadcn-vue": "^2.3.2",
89
+ "tailwindcss-animate": "^1.0.7",
90
+ "typescript": "^5.9.3",
91
+ "vitest": "^3.0.4",
92
+ "vue-cropperjs": "^5.0.0",
93
+ "vue-sfc-transformer": "^0.1.17",
94
+ "vue-tsc": "^3.1.3",
95
+ "zod": "^3.25.76"
97
96
  }
98
- }
97
+ }