pukaad-ui-lib 1.18.0 → 1.19.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.18.0",
4
+ "version": "1.19.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -5,13 +5,14 @@
5
5
  label="หัวข้อ"
6
6
  placeholder="ตั้งชื่อบทความให้น่าสนใจ"
7
7
  showCounter
8
- disabled-border
9
8
  :limit="180"
10
9
  required
11
10
  />
12
11
  <InputContent placeholder="อยากเล่าอะไร" />
13
12
 
14
13
  <InputCheckbox label="ไม่อนุญาตให้แสดงความคิดเห็น" />
14
+ <div class="h-[500px] w-full bg-red-500"></div>
15
+ <div class="h-[500px] w-full bg-red-500"></div>
15
16
  <!-- <div class="flex flex-col gap-[8px]">
16
17
  <div class="text-gray font-body-large">ภาพหน้าปก</div>
17
18
  <InputFile
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ShadSheet v-model:open="isOpen">
3
3
  <ShadSheetContent v-bind="props" v-slot="{ meta }" @submit="onSubmit">
4
- <ShadSheetHeader>
4
+ <ShadSheetHeader class="flex-shrink-0">
5
5
  <slot name="header">
6
6
  <ShadSheetTitle>{{ props.title }}</ShadSheetTitle>
7
7
  <ShadSheetDescription>
@@ -9,8 +9,10 @@
9
9
  </ShadSheetDescription>
10
10
  </slot>
11
11
  </ShadSheetHeader>
12
- <slot name="default" :meta="meta" />
13
- <ShadSheetFooter v-if="$slots.footer">
12
+ <div class="flex-1 overflow-y-auto px-[24px]">
13
+ <slot name="default" :meta="meta" />
14
+ </div>
15
+ <ShadSheetFooter class="flex-shrink-0">
14
16
  <slot name="footer" :meta="meta" />
15
17
  </ShadSheetFooter>
16
18
  </ShadSheetContent>
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
36
36
  id: string;
37
37
  name: string;
38
38
  description: string;
39
- options: AutocompleteOption[] | string[] | number[];
40
- placeholder: string;
41
39
  limit: number;
40
+ placeholder: string;
41
+ options: AutocompleteOption[] | string[] | number[];
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
36
36
  id: string;
37
37
  name: string;
38
38
  description: string;
39
- options: AutocompleteOption[] | string[] | number[];
40
- placeholder: string;
41
39
  limit: number;
40
+ placeholder: string;
41
+ options: AutocompleteOption[] | string[] | number[];
42
42
  disabledErrorMessage: boolean;
43
43
  disabledBorder: boolean;
44
44
  showCounter: boolean;
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
27
27
  label: string;
28
28
  name: string;
29
29
  limit: number;
30
- accept: string;
31
30
  disabledErrorMessage: boolean;
31
+ accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
27
27
  label: string;
28
28
  name: string;
29
29
  limit: number;
30
- accept: string;
31
30
  disabledErrorMessage: boolean;
31
+ accept: string;
32
32
  labelIcon: string;
33
33
  disabledDrop: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  }>, {
19
19
  id: string;
20
20
  name: string;
21
- disabledForgotPassword: boolean;
22
21
  new: boolean;
22
+ disabledForgotPassword: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
18
18
  }>, {
19
19
  id: string;
20
20
  name: string;
21
- disabledForgotPassword: boolean;
22
21
  new: boolean;
22
+ disabledForgotPassword: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  export default _default;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  color: InputSliderColor;
13
13
  fullWidth: boolean;
14
14
  label: string;
15
- step: number;
16
15
  min: number;
17
16
  max: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  color: InputSliderColor;
13
13
  fullWidth: boolean;
14
14
  label: string;
15
- step: number;
16
15
  min: number;
17
16
  max: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -6,7 +6,6 @@
6
6
  data-slot="sheet-content"
7
7
  :class="
8
8
  cn(
9
- 'p-[24px]',
10
9
  'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
11
10
  side === 'right' && 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full min-w-full max-w-full sm:max-w-full sm:min-w-md border-l',
12
11
  side === 'left' && 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
@@ -24,7 +23,7 @@
24
23
  class="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none cursor-pointer"
25
24
  >
26
25
  <Icon name="lucide:x" :size="24" />
27
- <span class="sr-only">Close</span>
26
+ <span class="sr-only">Closed</span>
28
27
  </DialogClose>
29
28
  </DialogContent>
30
29
  </Form>
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  <template>
9
9
  <div
10
10
  data-slot="sheet-footer"
11
- :class="cn('mt-auto flex flex-col gap-2 ', props.class)"
11
+ :class="cn('mt-auto flex flex-col gap-2 pb-[24px] px-[24px]', props.class)"
12
12
  >
13
13
  <slot />
14
14
  </div>
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  <template>
9
9
  <div
10
10
  data-slot="sheet-header"
11
- :class="cn('flex flex-col gap-1.5 ', props.class)"
11
+ :class="cn('flex flex-col gap-1.5 pt-[24px] px-[24px]', props.class)"
12
12
  >
13
13
  <slot />
14
14
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",