@unsource/ui 2.7.5 → 2.7.7

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": "2.7.5",
4
+ "version": "2.7.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -8,6 +8,7 @@ type __VLS_Props = {
8
8
  collapsible?: boolean;
9
9
  collapsibleIcon?: string;
10
10
  noRotate?: boolean;
11
+ to?: (a: CardItem) => string;
11
12
  };
12
13
  type __VLS_ModelProps = {
13
14
  'show'?: boolean;
@@ -22,6 +22,7 @@
22
22
  :class="customClass.items"
23
23
  :custom-class="customClass.item"
24
24
  :item="item"
25
+ :to="to?.(item)"
25
26
  />
26
27
  </div>
27
28
  </template>
@@ -33,7 +34,8 @@ const { customClass = {}, collapsible = false } = defineProps({
33
34
  customClass: { type: Object, required: false },
34
35
  collapsible: { type: Boolean, required: false },
35
36
  collapsibleIcon: { type: String, required: false },
36
- noRotate: { type: Boolean, required: false }
37
+ noRotate: { type: Boolean, required: false },
38
+ to: { type: Function, required: false }
37
39
  });
38
40
  const show = defineModel("show", { type: Boolean });
39
41
  show.value ||= !collapsible;
@@ -8,6 +8,7 @@ type __VLS_Props = {
8
8
  collapsible?: boolean;
9
9
  collapsibleIcon?: string;
10
10
  noRotate?: boolean;
11
+ to?: (a: CardItem) => string;
11
12
  };
12
13
  type __VLS_ModelProps = {
13
14
  'show'?: boolean;
@@ -17,6 +17,7 @@ type __VLS_Props = {
17
17
  disable?: boolean;
18
18
  appendIcon?: string;
19
19
  to?: string;
20
+ handler: () => void;
20
21
  })[];
21
22
  version?: string;
22
23
  developer?: string;
@@ -25,9 +26,9 @@ type __VLS_Props = {
25
26
  owner?: string;
26
27
  customClass?: ProfileCustomClass;
27
28
  };
28
- declare var __VLS_12: {};
29
+ declare var __VLS_15: {};
29
30
  type __VLS_Slots = {} & {
30
- default?: (props: typeof __VLS_12) => any;
31
+ default?: (props: typeof __VLS_15) => any;
31
32
  };
32
33
  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>;
33
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -11,6 +11,7 @@
11
11
  :class="customClass.items"
12
12
  :to="item.to"
13
13
  :item="item"
14
+ @click="item.handler?.()"
14
15
  >
15
16
  <template #header>
16
17
  <UnNuxtIcon
@@ -17,6 +17,7 @@ type __VLS_Props = {
17
17
  disable?: boolean;
18
18
  appendIcon?: string;
19
19
  to?: string;
20
+ handler: () => void;
20
21
  })[];
21
22
  version?: string;
22
23
  developer?: string;
@@ -25,9 +26,9 @@ type __VLS_Props = {
25
26
  owner?: string;
26
27
  customClass?: ProfileCustomClass;
27
28
  };
28
- declare var __VLS_12: {};
29
+ declare var __VLS_15: {};
29
30
  type __VLS_Slots = {} & {
30
- default?: (props: typeof __VLS_12) => any;
31
+ default?: (props: typeof __VLS_15) => any;
31
32
  };
32
33
  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>;
33
34
  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": "2.7.5",
3
+ "version": "2.7.7",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",