pukaad-ui-lib 1.247.0 → 1.247.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.
Files changed (29) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -0
  3. package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
  4. package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
  5. package/dist/runtime/components/display/display-image-place.d.vue.ts +1 -1
  6. package/dist/runtime/components/display/display-image-place.vue.d.ts +1 -1
  7. package/dist/runtime/components/drawer/drawer-profile-network.d.vue.ts +1 -1
  8. package/dist/runtime/components/drawer/drawer-profile-network.vue.d.ts +1 -1
  9. package/dist/runtime/components/image/image-cropper.d.vue.ts +2 -2
  10. package/dist/runtime/components/image/image-cropper.vue.d.ts +2 -2
  11. package/dist/runtime/components/input/input-address.d.vue.ts +1 -1
  12. package/dist/runtime/components/input/input-address.vue.d.ts +1 -1
  13. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +2 -2
  14. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +2 -2
  15. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  16. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  17. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  18. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  19. package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +1 -1
  20. package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +1 -1
  21. package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +1 -1
  22. package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +1 -1
  23. package/dist/runtime/components/modal/modal-review-detail.d.vue.ts +1 -1
  24. package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +1 -1
  25. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.d.vue.ts +2 -2
  26. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue.d.ts +2 -2
  27. package/dist/runtime/plugins/toast.d.ts +1 -1
  28. package/dist/runtime/plugins/toast.js +18 -8
  29. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.247.0",
4
+ "version": "1.247.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -191,6 +191,7 @@ const module$1 = defineNuxtModule({
191
191
  write: true,
192
192
  getContents: () => `@import "${coreCssPath}";
193
193
  @source "${runtimeDir}/**/*.vue";
194
+ @source "${runtimeDir}/**/*.ts";
194
195
  @source "${rootDir}/**/*.vue";
195
196
  @source "${rootDir}/**/*.ts";
196
197
  `
@@ -24,8 +24,8 @@ type __VLS_Props = {
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  disabled: boolean;
26
26
  id: string;
27
- disabledPadding: boolean;
28
27
  state: string;
28
+ disabledPadding: boolean;
29
29
  itemCount: Count;
30
30
  itemActive: Reacted;
31
31
  padding: string | number;
@@ -24,8 +24,8 @@ type __VLS_Props = {
24
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
25
  disabled: boolean;
26
26
  id: string;
27
- disabledPadding: boolean;
28
27
  state: string;
28
+ disabledPadding: boolean;
29
29
  itemCount: Count;
30
30
  itemActive: Reacted;
31
31
  padding: string | number;
@@ -8,9 +8,9 @@ type __VLS_Props = {
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  title: string;
10
10
  variant: "featured" | "album";
11
- state: "personal" | "office" | "business";
12
11
  photos: string[];
13
12
  videos: string[];
13
+ state: "personal" | "office" | "business";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -8,9 +8,9 @@ type __VLS_Props = {
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  title: string;
10
10
  variant: "featured" | "album";
11
- state: "personal" | "office" | "business";
12
11
  photos: string[];
13
12
  videos: string[];
13
+ state: "personal" | "office" | "business";
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  export default _default;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-profiles"?: (() => any) | undefined;
31
31
  "onExplore-places"?: (() => any) | undefined;
32
32
  }>, {
33
- isMyProfile: boolean;
34
33
  profileId: string;
35
34
  defaultTab: "followers" | "following" | "favorites";
35
+ isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  "onExplore-profiles"?: (() => any) | undefined;
31
31
  "onExplore-places"?: (() => any) | undefined;
32
32
  }>, {
33
- isMyProfile: boolean;
34
33
  profileId: string;
35
34
  defaultTab: "followers" | "following" | "favorites";
35
+ isMyProfile: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
+ modal: boolean;
68
+ background: boolean;
67
69
  responsive: boolean;
68
70
  restore: boolean;
69
71
  checkCrossOrigin: boolean;
70
72
  checkOrientation: boolean;
71
73
  crossorigin: "" | "anonymous" | "use-credentials";
72
- modal: boolean;
73
74
  guides: boolean;
74
75
  highlight: boolean;
75
- background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
+ modal: boolean;
68
+ background: boolean;
67
69
  responsive: boolean;
68
70
  restore: boolean;
69
71
  checkCrossOrigin: boolean;
70
72
  checkOrientation: boolean;
71
73
  crossorigin: "" | "anonymous" | "use-credentials";
72
- modal: boolean;
73
74
  guides: boolean;
74
75
  highlight: boolean;
75
- background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -48,11 +48,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  label: string;
49
49
  required: boolean;
50
50
  name: string;
51
+ gap: string;
51
52
  placeholder: string;
52
53
  labelDetail: string;
53
54
  placeholderDetail: string;
54
55
  requiredDetail: boolean;
55
- gap: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
58
58
  export default _default;
@@ -48,11 +48,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  label: string;
49
49
  required: boolean;
50
50
  name: string;
51
+ gap: string;
51
52
  placeholder: string;
52
53
  labelDetail: string;
53
54
  placeholderDetail: string;
54
55
  requiredDetail: boolean;
55
- gap: string;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
57
  declare const _default: typeof __VLS_export;
58
58
  export default _default;
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  pageSize: number;
49
49
  id: string;
50
50
  name: string;
51
- description: string;
52
- options: AutocompleteOption[] | string[] | number[];
53
51
  limit: number;
52
+ options: AutocompleteOption[] | string[] | number[];
53
+ description: string;
54
54
  placeholder: string;
55
55
  disabledErrorMessage: boolean;
56
56
  disabledBorder: boolean;
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  pageSize: number;
49
49
  id: string;
50
50
  name: string;
51
- description: string;
52
- options: AutocompleteOption[] | string[] | number[];
53
51
  limit: number;
52
+ options: AutocompleteOption[] | string[] | number[];
53
+ description: string;
54
54
  placeholder: string;
55
55
  disabledErrorMessage: boolean;
56
56
  disabledBorder: 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
- 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
  name: string;
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;
@@ -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;
@@ -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
- disabledForgotPassword: boolean;
32
31
  confirmText: string;
32
+ disabledForgotPassword: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  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
- disabledForgotPassword: boolean;
32
31
  confirmText: string;
32
+ disabledForgotPassword: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
14
14
  title: string;
15
15
  items: string[];
16
16
  selectIndex: number;
17
- isProfile: boolean;
18
17
  review: import("../../../types/components/card/card-review.js").CardReviewProps;
18
+ isProfile: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
14
14
  title: string;
15
15
  items: string[];
16
16
  selectIndex: number;
17
- isProfile: boolean;
18
17
  review: import("../../../types/components/card/card-review.js").CardReviewProps;
18
+ isProfile: boolean;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -1,11 +1,11 @@
1
1
  import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
2
2
  declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "profile-name-updated": (name: string) => any;
3
4
  "blog-edit": () => any;
4
5
  "report-announce": () => any;
5
6
  "blog-unpin": () => any;
6
7
  "blog-pin": () => any;
7
8
  "blog-delete": () => any;
8
- "profile-name-updated": (name: string) => any;
9
9
  "profile-edit": () => any;
10
10
  "profile-share": () => any;
11
11
  "profile-follower-delete": () => any;
@@ -19,12 +19,12 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
19
19
  "review-delete": () => any;
20
20
  archive: () => any;
21
21
  }, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
22
+ "onProfile-name-updated"?: ((name: string) => any) | undefined;
22
23
  "onBlog-edit"?: (() => any) | undefined;
23
24
  "onReport-announce"?: (() => any) | undefined;
24
25
  "onBlog-unpin"?: (() => any) | undefined;
25
26
  "onBlog-pin"?: (() => any) | undefined;
26
27
  "onBlog-delete"?: (() => any) | undefined;
27
- "onProfile-name-updated"?: ((name: string) => any) | undefined;
28
28
  "onProfile-edit"?: (() => any) | undefined;
29
29
  "onProfile-share"?: (() => any) | undefined;
30
30
  "onProfile-follower-delete"?: (() => any) | undefined;
@@ -1,11 +1,11 @@
1
1
  import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
2
2
  declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "profile-name-updated": (name: string) => any;
3
4
  "blog-edit": () => any;
4
5
  "report-announce": () => any;
5
6
  "blog-unpin": () => any;
6
7
  "blog-pin": () => any;
7
8
  "blog-delete": () => any;
8
- "profile-name-updated": (name: string) => any;
9
9
  "profile-edit": () => any;
10
10
  "profile-share": () => any;
11
11
  "profile-follower-delete": () => any;
@@ -19,12 +19,12 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
19
19
  "review-delete": () => any;
20
20
  archive: () => any;
21
21
  }, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
22
+ "onProfile-name-updated"?: ((name: string) => any) | undefined;
22
23
  "onBlog-edit"?: (() => any) | undefined;
23
24
  "onReport-announce"?: (() => any) | undefined;
24
25
  "onBlog-unpin"?: (() => any) | undefined;
25
26
  "onBlog-pin"?: (() => any) | undefined;
26
27
  "onBlog-delete"?: (() => any) | undefined;
27
- "onProfile-name-updated"?: ((name: string) => any) | undefined;
28
28
  "onProfile-edit"?: (() => any) | undefined;
29
29
  "onProfile-share"?: (() => any) | undefined;
30
30
  "onProfile-follower-delete"?: (() => any) | undefined;
@@ -13,7 +13,7 @@ export interface ToastOptions {
13
13
  duration?: number;
14
14
  message: string;
15
15
  }
16
- declare class Toast {
16
+ export declare class Toast {
17
17
  private static container;
18
18
  private static ensureContainer;
19
19
  show(options: ToastOptions): Promise<ToastResponse>;
@@ -1,7 +1,6 @@
1
1
  import { defineNuxtPlugin } from "nuxt/app";
2
2
  import { createApp, h, computed, ref, onMounted } from "vue";
3
- import Icons from "#pukaad-ui/runtime/components/icons.vue";
4
- class Toast {
3
+ export class Toast {
5
4
  static container = null;
6
5
  static ensureContainer() {
7
6
  if (typeof window === "undefined") return;
@@ -26,13 +25,13 @@ class Toast {
26
25
  };
27
26
  return types[options.type || "success"];
28
27
  });
29
- const iconName = computed(() => {
28
+ const iconSvgPath = computed(() => {
30
29
  const map = {
31
- success: "fa6-solid:circle-check",
32
- warning: "fa6-solid:triangle-exclamation",
33
- error: "fa6-solid:ban"
30
+ success: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z",
31
+ warning: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z",
32
+ error: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"
34
33
  };
35
- return options.icon || map[options.type || "success"];
34
+ return map[options.type || "success"];
36
35
  });
37
36
  onMounted(() => {
38
37
  setTimeout(() => {
@@ -54,7 +53,18 @@ class Toast {
54
53
  ]
55
54
  },
56
55
  [
57
- h(Icons, { name: iconName.value }),
56
+ h(
57
+ "svg",
58
+ {
59
+ xmlns: "http://www.w3.org/2000/svg",
60
+ viewBox: "0 0 512 512",
61
+ width: "20",
62
+ height: "20",
63
+ fill: "currentColor",
64
+ style: "flex-shrink:0"
65
+ },
66
+ [h("path", { d: iconSvgPath.value })]
67
+ ),
58
68
  h(
59
69
  "span",
60
70
  { class: "flex-1 font-body-large-prominent" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.247.0",
3
+ "version": "1.247.2",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",