eco-vue-js 0.13.0 → 0.13.2

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.
@@ -1,15 +1,17 @@
1
1
  import { LinkProps } from '../../types/types';
2
2
  interface Props extends Partial<LinkProps> {
3
- text: string;
3
+ text?: string;
4
4
  icon?: SVGComponent;
5
5
  disabled?: boolean;
6
6
  href?: string;
7
7
  download?: string;
8
8
  tooltipText?: string;
9
9
  }
10
- declare var __VLS_10: {};
10
+ declare var __VLS_10: {}, __VLS_12: {};
11
11
  type __VLS_Slots = {} & {
12
- icon?: (props: typeof __VLS_10) => any;
12
+ default?: (props: typeof __VLS_10) => any;
13
+ } & {
14
+ icon?: (props: typeof __VLS_12) => any;
13
15
  };
14
16
  declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
17
  click: (value: MouseEvent) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonMoreItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/WButtonMoreItem.vue"],"names":[],"mappings":"AAuBA;AAAA,OA6CO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAI5C,UAAU,KAAM,SAAQ,OAAO,CAAC,SAAS,CAAC;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA+ED,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,QAAA,MAAM,UAAU;;;;k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-1,5 +1,5 @@
1
1
  import WMenuItem_default from "../MenuItem/WMenuItem.vue.js";
2
- import { createBlock, createCommentVNode, createElementVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
2
+ import { createBlock, createCommentVNode, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
3
3
  //#region src/components/Button/WButtonMoreItem.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { class: "min-w-20 flex-1 text-start" };
5
5
  var WButtonMoreItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
@@ -24,7 +24,7 @@ var WButtonMoreItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
24
24
  "tooltip-text": __props.tooltipText,
25
25
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
26
26
  }, {
27
- default: withCtx(() => [createElementVNode("div", _hoisted_1, toDisplayString(__props.text), 1), renderSlot(_ctx.$slots, "icon", {}, () => [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
27
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.text), 1)])]), renderSlot(_ctx.$slots, "icon", {}, () => [__props.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon), {
28
28
  key: 0,
29
29
  class: "square-[1.25em]"
30
30
  })) : createCommentVNode("", true)])]),
@@ -1,4 +1,5 @@
1
- import importPlugin from 'eslint-plugin-import-x'
1
+ import {createTypeScriptImportResolver} from 'eslint-import-resolver-typescript'
2
+ import importPlugin, {createNodeResolver} from 'eslint-plugin-import-x'
2
3
 
3
4
  import {readFileSync} from 'fs'
4
5
 
@@ -45,13 +46,13 @@ const createConfig = (tsConfig, astro = false) => {
45
46
  'import-x/parsers': {
46
47
  '@typescript-eslint/parser': ['.ts', '.js'],
47
48
  },
48
- 'import-x/resolver': {
49
- typescript: {
49
+ 'import-x/resolver-next': [
50
+ createTypeScriptImportResolver({
50
51
  alwaysTryTypes: true,
51
52
  project: tsConfig,
52
- },
53
- node: true,
54
- },
53
+ }),
54
+ createNodeResolver(),
55
+ ],
55
56
  },
56
57
  }
57
58
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.13.0",
7
+ "version": "0.13.2",
8
8
  "dependencies": {
9
9
  "@stylistic/eslint-plugin": "5.10.0",
10
10
  "@tanstack/eslint-plugin-query": "5.101.2",