pukaad-ui-lib 1.190.0 → 1.192.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.190.0",
4
+ "version": "1.192.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -14,9 +14,9 @@ interface CardUserBlogProps {
14
14
  title: string;
15
15
  description: string;
16
16
  image?: string;
17
- likes_count: number;
18
- comments_count: number;
19
- shares_count: number;
17
+ like_count: number;
18
+ comment_count: number;
19
+ share_count: number;
20
20
  liked?: boolean;
21
21
  }
22
22
  type __VLS_Props = {
@@ -63,9 +63,9 @@
63
63
  disabled-divider-top
64
64
  disabled-divider-bottom
65
65
  :item-count="{
66
- liked: props.item.likes_count,
67
- commented: props.item.comments_count,
68
- shared: props.item.shares_count
66
+ liked: props.item.like_count,
67
+ commented: props.item.comment_count,
68
+ shared: props.item.share_count
69
69
  }"
70
70
  :itemActive="{
71
71
  liked: props.item.liked
@@ -14,9 +14,9 @@ interface CardUserBlogProps {
14
14
  title: string;
15
15
  description: string;
16
16
  image?: string;
17
- likes_count: number;
18
- comments_count: number;
19
- shares_count: number;
17
+ like_count: number;
18
+ comment_count: number;
19
+ share_count: number;
20
20
  liked?: boolean;
21
21
  }
22
22
  type __VLS_Props = {
@@ -88,7 +88,7 @@ const props = defineProps({
88
88
  rows: { type: Number, required: false, default: 4 },
89
89
  fullWidth: { type: Boolean, required: false, default: false },
90
90
  fullHeight: { type: Boolean, required: false, default: false },
91
- heightScroll: { type: Boolean, required: false, default: true },
91
+ heightScroll: { type: Boolean, required: false, default: false },
92
92
  height: { type: Number, required: false },
93
93
  width: { type: Number, required: false },
94
94
  class: { type: String, required: false }
@@ -108,10 +108,11 @@ const defaultRules = (v) => {
108
108
  return true;
109
109
  };
110
110
  const autoHeight = () => {
111
+ if (props.height || props.fullHeight) return;
111
112
  const el = textareaRef.value?.$el;
112
113
  if (el) {
113
- el.style.height = "auto";
114
114
  if (!props.heightScroll) {
115
+ el.style.height = "auto";
115
116
  el.style.height = `${el.scrollHeight}px`;
116
117
  }
117
118
  }
@@ -11,7 +11,7 @@ const props = defineProps({
11
11
  data-slot="input-group-control"
12
12
  :class="
13
13
  cn(
14
- 'flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent',
14
+ 'flex-1 resize-none rounded-none border-0 bg-transparent py-1 shadow-none focus-visible:ring-0 dark:bg-transparent',
15
15
  props.class
16
16
  )
17
17
  "
@@ -20,7 +20,7 @@ const modelValue = useVModel(props, "modelValue", emits, {
20
20
  :class="
21
21
  cn(
22
22
  'font-body-large',
23
- 'border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
23
+ 'border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-9 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
24
24
  props.class
25
25
  )
26
26
  "
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.190.0",
3
+ "version": "1.192.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",