@unsource/ui 2.8.2 → 2.8.4

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.8.2",
4
+ "version": "2.8.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  class="select-none group px-4 py-3 flex items-center gap-2 transition duration-300 hover:bg-primary-100"
4
4
  :class="{ 'opacity-50 grayscale': disabled, 'disable': disabled, 'selected': selected }"
5
- @click="toggle"
5
+ @click.prevent.stop="toggle"
6
6
  >
7
7
  <div
8
8
  name="box"
@@ -18,9 +18,7 @@ type __VLS_Slots = {} & {
18
18
  } & {
19
19
  default?: (props: typeof __VLS_19) => any;
20
20
  };
21
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
22
- modal: any;
23
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, Readonly<import("vue").ShallowRef<any>>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
23
  declare const _default: typeof __VLS_export;
26
24
  export default _default;
@@ -43,6 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script setup>
46
+ import { useTemplateRef } from "#imports";
46
47
  defineProps({
47
48
  head: { type: String, required: false },
48
49
  title: { type: String, required: false },
@@ -55,6 +56,6 @@ const collapse = defineModel({ default: false });
55
56
  const toggleCollapse = () => {
56
57
  collapse.value = !collapse.value;
57
58
  };
58
- const modal = ref();
59
- defineExpose({ modal });
59
+ const el = useTemplateRef("modal");
60
+ defineExpose(el);
60
61
  </script>
@@ -18,9 +18,7 @@ type __VLS_Slots = {} & {
18
18
  } & {
19
19
  default?: (props: typeof __VLS_19) => any;
20
20
  };
21
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
22
- modal: any;
23
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, Readonly<import("vue").ShallowRef<any>>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
23
  declare const _default: typeof __VLS_export;
26
24
  export default _default;
@@ -2,7 +2,7 @@
2
2
  <div
3
3
  class="select-none group px-4 py-3 flex flex-row items-center gap-3 transition duration-300 hover:bg-primary-500/10 border-0 min-w-fit"
4
4
  :class="{ 'opacity-50 grayscale': disabled, 'disable': disabled, 'selected': selected }"
5
- @click="toggle"
5
+ @click.prevent.stop="toggle"
6
6
  >
7
7
  <div
8
8
  name="radio"
@@ -9,7 +9,7 @@
9
9
  mini ? 'px-3' : ' px-4'
10
10
  ]"
11
11
  class="group flex gap-2 justify-center items-center flex-grow basis-1 border-b-(2 solid) cursor-pointer p-3 text-sm"
12
- @click="addToQuery(item)"
12
+ @click.prevent.stop="addToQuery(item)"
13
13
  >
14
14
  <input
15
15
  v-model="value"
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="group h-12 w-full flex flex-row gap-1 items-center cursor-pointer text-black-1 select-none"
4
- @click="changeValue"
4
+ @click.prevent.stop="changeValue"
5
5
  >
6
6
  <div
7
7
  v-if="label"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",