@unsource/ui 1.2.0 → 1.4.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": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "1.2.0",
4
+ "version": "1.4.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
3
- customClass?: Record<'main' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
3
+ customClass?: Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
4
4
  item: {
5
5
  title?: string;
6
6
  description?: string;
@@ -17,7 +17,7 @@ type __VLS_Props = {
17
17
  };
18
18
  declare var __VLS_33: {
19
19
  item: any;
20
- }, __VLS_40: {
20
+ }, __VLS_35: {
21
21
  item: any;
22
22
  }, __VLS_42: {
23
23
  item: any;
@@ -25,17 +25,21 @@ declare var __VLS_33: {
25
25
  item: any;
26
26
  }, __VLS_46: {
27
27
  item: any;
28
+ }, __VLS_48: {
29
+ item: any;
28
30
  };
29
31
  type __VLS_Slots = {} & {
30
32
  bodyStart?: (props: typeof __VLS_33) => any;
31
33
  } & {
32
- bodyEnd?: (props: typeof __VLS_40) => any;
34
+ title?: (props: typeof __VLS_35) => any;
35
+ } & {
36
+ bodyEnd?: (props: typeof __VLS_42) => any;
33
37
  } & {
34
- header?: (props: typeof __VLS_42) => any;
38
+ header?: (props: typeof __VLS_44) => any;
35
39
  } & {
36
- footerStart?: (props: typeof __VLS_44) => any;
40
+ footerStart?: (props: typeof __VLS_46) => any;
37
41
  } & {
38
- footerEnd?: (props: typeof __VLS_46) => any;
42
+ footerEnd?: (props: typeof __VLS_48) => any;
39
43
  };
40
44
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -52,8 +52,14 @@
52
52
  icon-type="img"
53
53
  class="!object-cover shrink-0 w-14 h-14 aspect-square rounded-full border-(2 solid primary-500)"
54
54
  />
55
- <div class="flex justify-start flex-col gap-1 grow-1">
56
- <div class="flex gap-2 items-center">
55
+ <div
56
+ class="flex justify-start flex-col gap-1 grow-1"
57
+ :class="customClass.inside"
58
+ >
59
+ <div
60
+ class="flex gap-2 items-center"
61
+ :class="customClass.logoName"
62
+ >
57
63
  <UnNuxtIcon
58
64
  v-if="item.logo"
59
65
  :class="customClass.logo"
@@ -63,10 +69,10 @@
63
69
  />
64
70
  <div class="flex flex-col">
65
71
  <h3
66
- v-if="item.title"
67
- :class="customClass.title"
72
+ v-if="item.name"
73
+ :class="customClass.name"
68
74
  class="text-(lg gray-600) font-medium"
69
- >{{ item.title }}</h3>
75
+ >{{ item.name }}</h3>
70
76
  <p
71
77
  v-if="item.desc"
72
78
  :class="customClass.desc"
@@ -78,6 +84,21 @@
78
84
  name="bodyStart"
79
85
  :item="item"
80
86
  />
87
+ <div
88
+ v-if="$slots.title || item.title"
89
+ class="flex justify-between"
90
+ :class="customClass.title"
91
+ >
92
+ <h3
93
+ v-if="item.title"
94
+ :class="customClass.titleText"
95
+ class="text-(lg gray-600) font-medium"
96
+ >{{ item.title }}</h3>
97
+ <slot
98
+ name="title"
99
+ :item="item"
100
+ />
101
+ </div>
81
102
  <p
82
103
  v-if="item.description"
83
104
  :class="customClass.description"
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
3
- customClass?: Record<'main' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
3
+ customClass?: Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
4
4
  item: {
5
5
  title?: string;
6
6
  description?: string;
@@ -17,7 +17,7 @@ type __VLS_Props = {
17
17
  };
18
18
  declare var __VLS_33: {
19
19
  item: any;
20
- }, __VLS_40: {
20
+ }, __VLS_35: {
21
21
  item: any;
22
22
  }, __VLS_42: {
23
23
  item: any;
@@ -25,17 +25,21 @@ declare var __VLS_33: {
25
25
  item: any;
26
26
  }, __VLS_46: {
27
27
  item: any;
28
+ }, __VLS_48: {
29
+ item: any;
28
30
  };
29
31
  type __VLS_Slots = {} & {
30
32
  bodyStart?: (props: typeof __VLS_33) => any;
31
33
  } & {
32
- bodyEnd?: (props: typeof __VLS_40) => any;
34
+ title?: (props: typeof __VLS_35) => any;
35
+ } & {
36
+ bodyEnd?: (props: typeof __VLS_42) => any;
33
37
  } & {
34
- header?: (props: typeof __VLS_42) => any;
38
+ header?: (props: typeof __VLS_44) => any;
35
39
  } & {
36
- footerStart?: (props: typeof __VLS_44) => any;
40
+ footerStart?: (props: typeof __VLS_46) => any;
37
41
  } & {
38
- footerEnd?: (props: typeof __VLS_46) => any;
42
+ footerEnd?: (props: typeof __VLS_48) => any;
39
43
  };
40
44
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "private": false,
5
5
  "description": "My new Nuxt module",
6
6
  "repository": "your-org/my-module",