fancy-plugins-components 1.0.16 → 1.0.19

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 +1 @@
1
- export { default as FancyButton } from './button/button.vue';
1
+ export { default as FancyButton } from './fancy-button/index.vue';
@@ -1,4 +1,4 @@
1
- import { default as o } from "./button/button.vue.js";
1
+ import { default as o } from "./fancy-button/index.vue.js";
2
2
  export {
3
3
  o as FancyButton
4
4
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as e, createBlock as o, openBlock as n, unref as r, withCtx as p, createTextVNode as a } from "vue";
1
+ import { defineComponent as e, createBlock as n, openBlock as o, unref as r, withCtx as p, createTextVNode as a } from "vue";
2
2
  import { ElButton as s } from "element-plus";
3
- const f = /* @__PURE__ */ e({
3
+ const c = /* @__PURE__ */ e({
4
4
  name: "FancyButton",
5
- __name: "button",
5
+ __name: "index",
6
6
  props: {
7
7
  type: {},
8
8
  size: {},
9
9
  loading: {}
10
10
  },
11
- setup(u) {
12
- return (m, t) => (n(), o(r(s), { class: "test_btn" }, {
11
+ setup(i) {
12
+ return (m, t) => (o(), n(r(s), { class: "test_btn" }, {
13
13
  default: p(() => [...t[0] || (t[0] = [
14
14
  a("123", -1)
15
15
  ])]),
@@ -18,5 +18,5 @@ const f = /* @__PURE__ */ e({
18
18
  }
19
19
  });
20
20
  export {
21
- f as default
21
+ c as default
22
22
  };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ import 'element-plus/es/components/button/style/index'
2
+ import './index.scss'
@@ -1,4 +1,5 @@
1
1
  import { installer } from './installer';
2
2
  export * from './components';
3
3
  export * from './types';
4
+ export { FancyComponentsResolver } from '../utils/resolvers';
4
5
  export default installer;
package/dist/es/index.js CHANGED
@@ -1,6 +1,8 @@
1
- import { default as e } from "./button/button.vue.js";
2
- import { installer as a } from "./installer.js";
1
+ import { installer as t } from "./installer.js";
2
+ import { FancyComponentsResolver as a } from "./utils/resolvers.js";
3
+ import { default as f } from "./fancy-button/index.vue.js";
3
4
  export {
4
- e as FancyButton,
5
- a as default
5
+ f as FancyButton,
6
+ a as FancyComponentsResolver,
7
+ t as default
6
8
  };
@@ -1 +1 @@
1
- @use '../button/styles/index.scss';
1
+ @use '../fancy-button/styles/index.scss';
@@ -1 +1 @@
1
- export * from './button/types';
1
+ export * from './fancy-button/types';
@@ -0,0 +1,26 @@
1
+ function i(e, t) {
2
+ const n = t?.importStyle;
3
+ if (n)
4
+ return n === "css" ? `${e}/style/css` : `${e}/style/index`;
5
+ }
6
+ function u(e, t, n) {
7
+ return n ? `${t}${n}/${e}` : `${t}/es/${e}`;
8
+ }
9
+ function f(e) {
10
+ return {
11
+ type: "component",
12
+ resolve: (t) => {
13
+ const { path: n, exclude: c } = e || {};
14
+ if (t.match(/^Fancy[A-Z]/) && !c?.includes?.(t)) {
15
+ const r = "fancy-plugins-components", s = t.replace(/([A-Z])/g, " $1").trim().split(" ").join("-").toLowerCase(), o = u(s, r, n);
16
+ return {
17
+ from: `${r}${n}/${s}/index.vue`,
18
+ sideEffects: i(o, e)
19
+ };
20
+ }
21
+ }
22
+ };
23
+ }
24
+ export {
25
+ f as FancyComponentsResolver
26
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fancy-plugins-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "main": "./dist/es/index.js",
6
6
  "module": "./dist/es/index.js",
@@ -18,8 +18,14 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "build": "vite build"
21
+ "build": "vite build && node build/copy-styles.ts"
22
22
  },
23
+ "sideEffects": [
24
+ "*.css",
25
+ "*.scss",
26
+ "dist/es/*",
27
+ "dis/es/*/style/**"
28
+ ],
23
29
  "keywords": [],
24
30
  "author": "",
25
31
  "license": "ISC",
@@ -28,6 +34,8 @@
28
34
  "element-plus": "^2.13.0"
29
35
  },
30
36
  "devDependencies": {
37
+ "fast-glob": "^3.3.3",
38
+ "rollup-plugin-postcss": "^4.0.2",
31
39
  "sass": "^1.97.1",
32
40
  "vite-plugin-static-copy": "^3.1.4"
33
41
  }
@@ -1,4 +0,0 @@
1
- import f from "./button.vue.js";
2
- export {
3
- f as default
4
- };
File without changes
File without changes