@unsource/ui 2.8.3 → 2.8.5

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.3",
4
+ "version": "2.8.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -37,8 +37,8 @@
37
37
  </template>
38
38
 
39
39
  <script setup>
40
- import { computed } from "#imports";
41
- const { variant = "" } = defineProps({
40
+ import { computed, variants } from "#imports";
41
+ const { variant = "primary" } = defineProps({
42
42
  icon: { type: String, required: false },
43
43
  appendIcon: { type: String, required: false },
44
44
  label: { type: String, required: false },
@@ -50,13 +50,5 @@ const { variant = "" } = defineProps({
50
50
  loading: { type: Boolean, required: false },
51
51
  variant: { type: String, required: false }
52
52
  });
53
- const variants = {
54
- "danger": "bg-danger/10 text-danger border-danger",
55
- "primary": "bg-primary-500/10 bg-primary-500 border-primary",
56
- "primary-fill": "bg-primary-500 text-white border-transparent",
57
- "secondary": "bg-gray-600/10 text-gray-600 border-transparent",
58
- "secondary-fill": "bg-gray-600 text-white border-transparent",
59
- "secondary-bordered": "bg-transparent border-gray-400 text-gray-400"
60
- };
61
53
  const classVariant = computed(() => variants[variant]);
62
54
  </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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",