yangs-ui 0.0.2 → 0.0.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.
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vue';
2
+ declare const _default: Plugin[];
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export * from './icon';
2
+ export * from './button';
@@ -0,0 +1 @@
1
+ export * from './key';
@@ -0,0 +1 @@
1
+ export declare const INSTALLED_KEY: unique symbol;
package/es/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- export * from '@yangs-ui/components';
2
- export * from '@yangs-ui/constants';
1
+ import { YIcon } from '@yangs-ui/components/icon';
2
+ import { YButton } from '@yangs-ui/components/button';
3
+ declare const install: (app: any) => void;
3
4
  declare const installer: {
4
5
  install: (app: any) => void;
5
6
  };
6
- export declare const install: (app: any) => void;
7
7
  export default installer;
8
+ export { install, YIcon, YButton };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ export declare function makeInstall(components: Plugin[]): {
3
+ install: (app: any) => void;
4
+ };
@@ -0,0 +1,20 @@
1
+ export declare function createNameSpace(name: string): {
2
+ b: (blockSuffix?: string) => string;
3
+ e: (element?: string) => string;
4
+ m: (modifier?: string) => string;
5
+ be: (blockSuffix: string, element: string) => string;
6
+ bm: (blockSuffix: string, modifier: string) => string;
7
+ em: (element: string, modifier: string) => string;
8
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
9
+ is: (name: string, state: string | boolean) => string;
10
+ };
11
+ /**
12
+ * const bem = createNameSpace("icon");
13
+ console.log(bem.b("block"));
14
+ console.log(bem.e("element"));
15
+ console.log(bem.m("modifier"));
16
+ console.log(bem.be("block", "element"));
17
+ console.log(bem.bm("block", "modifier"));
18
+ console.log(bem.em("element", "modifier"));
19
+ console.log(bem.bem("block", "element", "modifier"));
20
+ */
@@ -0,0 +1,3 @@
1
+ import { ObjectPlugin } from 'vue';
2
+ export type SFCWithInstall<T> = T & ObjectPlugin;
3
+ export declare function withInstall<T>(component: T): SFCWithInstall<T>;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- export * from '@yangs-ui/components';
2
- export * from '@yangs-ui/constants';
1
+ export * from './icon';
2
+ export * from './button';
3
+
4
+ import { YButton } from '@yangs-ui/components/button';
5
+ declare const install: (app: any) => void;
3
6
  declare const installer: {
4
7
  install: (app: any) => void;
5
8
  };
6
- export declare const install: (app: any) => void;
7
9
  export default installer;
10
+ export { install, YIcon, YButton };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yangs-ui",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "description": "A Component Library for Vue 3",
6
6
  "keywords": [
7
7
  "yangs-ui",
@@ -16,9 +16,9 @@
16
16
  "peerDependencies": {
17
17
  "vue": "^3.5.0"
18
18
  },
19
- "unpkg": "./dist/umd/index.full.js",
20
- "jsdelivr": "./dist/umd/index.full.js",
21
- "style": "./dist/umd/index.css",
19
+ "unpkg": "./umd/index.full.js",
20
+ "jsdelivr": "./umd/index.full.js",
21
+ "style": "./umd/index.css",
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./es/index.d.ts",
@@ -1,8 +0,0 @@
1
- import { YIcon } from '@yangs-ui/components/icon';
2
- import { YButton } from '@yangs-ui/components/button';
3
- declare const install: (app: any) => void;
4
- declare const installer: {
5
- install: (app: any) => void;
6
- };
7
- export default installer;
8
- export { install, YIcon, YButton };
File without changes