yangs-ui 0.0.2 → 0.0.3
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/es/component.d.ts +3 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/key.d.ts +1 -0
- package/es/index.prod.d.ts +8 -0
- package/es/make-install.d.ts +4 -0
- package/es/utils/create.d.ts +20 -0
- package/es/utils/with-install.d.ts +3 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './key';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INSTALLED_KEY: unique symbol;
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -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
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yangs-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
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": "./
|
|
20
|
-
"jsdelivr": "./
|
|
21
|
-
"style": "./
|
|
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",
|