@dao-style/core 1.0.0-beta.1 → 1.0.0-beta.10
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/components/button/button.d.ts +11 -11
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/button/props.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -7
- package/dist/components/dialog/dialog.vue.d.ts +3 -3
- package/dist/components/dialog/props.d.ts +1 -1
- package/dist/components/ellipsis/ellipsis.d.ts +101 -101
- package/dist/components/ellipsis/ellipsis.vue.d.ts +8 -8
- package/dist/components/ellipsis/types.d.ts +1 -1
- package/dist/components/form/form-item.d.ts +4 -4
- package/dist/components/form/form-item.vue.d.ts +1 -1
- package/dist/components/nav/nav-head.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +4 -4
- package/dist/components/popover/popover.vue.d.ts +1 -1
- package/dist/components/popper/popper-props.d.ts +4 -3
- package/dist/components/popper/popper.d.ts +15 -15
- package/dist/components/popper/popper.vue.d.ts +1 -1
- package/dist/components/select/props.d.ts +1 -1
- package/dist/components/select/select.d.ts +45 -45
- package/dist/components/select/select.vue.d.ts +4 -4
- package/dist/components/switch/switch-props.d.ts +1 -1
- package/dist/components/switch/switch.vue.d.ts +5 -5
- package/dist/components/table/table.d.ts +16 -9
- package/dist/components/table/type.d.ts +1 -1
- package/dist/components/text-button/props.d.ts +9 -4
- package/dist/components/text-button/text-button.d.ts +29 -15
- package/dist/components/text-button/text-button.vue.d.ts +14 -7
- package/dist/components/tooltip/tooltip.d.ts +4 -4
- package/dist/components/tooltip/tooltip.vue.d.ts +1 -1
- package/dist/components/transfer/props.d.ts +53 -2
- package/dist/components/transfer/transfer-panel.d.ts +14 -8
- package/dist/components/transfer/transfer-panel.vue.d.ts +12 -10
- package/dist/components/transfer/transfer.d.ts +248 -23
- package/dist/components/transfer/transfer.vue.d.ts +103 -6
- package/dist/dao-style.js +9 -0
- package/dist/dao-style.mjs +10276 -0
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/color/alias.css +168 -0
- package/dist/styles/color/alias.scss +45 -0
- package/dist/styles/color/var.css +472 -0
- package/dist/styles/color/var.scss +120 -0
- package/dist/utils/constant.d.ts +9 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/simple-omit.d.ts +1 -0
- package/dist/utils/types.d.ts +3 -9
- package/package.json +25 -11
- package/scripts/transform-variable.mjs +5 -5
- package/dist/dao-style.es.js +0 -7851
- package/dist/dao-style.umd.js +0 -5
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* DON'T MODIFY THIS FILE! */
|
|
2
|
+
/* Auto generated css and scss from /builds/ndx/frontend-engineering/dao-style/src/styles/color/var.json. */
|
|
3
|
+
|
|
4
|
+
$dao-primary-blue-010: #0E2B58;
|
|
5
|
+
$dao-primary-blue-020: #154184;
|
|
6
|
+
$dao-primary-blue-030: #1B56B1;
|
|
7
|
+
$dao-primary-blue-040: #226BDB;
|
|
8
|
+
$dao-primary-blue-050: #3E85E2;
|
|
9
|
+
$dao-primary-blue-060: #4E89E4;
|
|
10
|
+
$dao-primary-blue-070: #7BA7EA;
|
|
11
|
+
$dao-primary-blue-080: #A7C4F1;
|
|
12
|
+
$dao-primary-blue-090: #E9F0FC;
|
|
13
|
+
$dao-orange-010: #823108;
|
|
14
|
+
$dao-orange-020: #B2430B;
|
|
15
|
+
$dao-orange-030: #E2550E;
|
|
16
|
+
$dao-orange-040: #F27131;
|
|
17
|
+
$dao-orange-050: #F59260;
|
|
18
|
+
$dao-orange-060: #F8B391;
|
|
19
|
+
$dao-orange-070: #FBD4C1;
|
|
20
|
+
$dao-orange-080: #FEF5F1;
|
|
21
|
+
$dao-yellow-010: #885D07;
|
|
22
|
+
$dao-yellow-020: #B87E0A;
|
|
23
|
+
$dao-yellow-030: #E99F0C;
|
|
24
|
+
$dao-yellow-040: #F4B434;
|
|
25
|
+
$dao-yellow-050: #F7C664;
|
|
26
|
+
$dao-yellow-060: #F9D894;
|
|
27
|
+
$dao-yellow-070: #FCEAC5;
|
|
28
|
+
$dao-yellow-080: #FEFBF5;
|
|
29
|
+
$dao-green-010: #1A753E;
|
|
30
|
+
$dao-green-020: #239F55;
|
|
31
|
+
$dao-green-030: #2CC76A;
|
|
32
|
+
$dao-green-040: #4FD886;
|
|
33
|
+
$dao-green-050: #79E2A3;
|
|
34
|
+
$dao-green-060: #A3EBC0;
|
|
35
|
+
$dao-green-070: #CDF4DC;
|
|
36
|
+
$dao-green-080: #F7FDF9;
|
|
37
|
+
$dao-cyan-010: #146E80;
|
|
38
|
+
$dao-cyan-020: #1B94AC;
|
|
39
|
+
$dao-cyan-030: #21BAD9;
|
|
40
|
+
$dao-cyan-040: #4ACAE3;
|
|
41
|
+
$dao-cyan-050: #76D7EA;
|
|
42
|
+
$dao-cyan-060: #A2E4F1;
|
|
43
|
+
$dao-cyan-070: #CEF1F8;
|
|
44
|
+
$dao-cyan-080: #F2FBFD;
|
|
45
|
+
$dao-purple-010: #1E1977;
|
|
46
|
+
$dao-purple-020: #2922A0;
|
|
47
|
+
$dao-purple-030: #3529CC;
|
|
48
|
+
$dao-purple-040: #584FDC;
|
|
49
|
+
$dao-purple-050: #7F78E3;
|
|
50
|
+
$dao-purple-060: #A7A2EC;
|
|
51
|
+
$dao-purple-070: #CECCF5;
|
|
52
|
+
$dao-purple-080: #F7F7FD;
|
|
53
|
+
$dao-red-010: #5F0C0C;
|
|
54
|
+
$dao-red-020: #8C1212;
|
|
55
|
+
$dao-red-030: #B91818;
|
|
56
|
+
$dao-red-040: #E22222;
|
|
57
|
+
$dao-red-050: #E84F4F;
|
|
58
|
+
$dao-red-060: #EE7C7C;
|
|
59
|
+
$dao-red-070: #F4A9A9;
|
|
60
|
+
$dao-red-080: #FDEDED;
|
|
61
|
+
$dao-acidblue-100: #F4F9FC;
|
|
62
|
+
$dao-acidblue-010: #0A4061;
|
|
63
|
+
$dao-acidblue-020: #0F5F8F;
|
|
64
|
+
$dao-acidblue-030: #137EBE;
|
|
65
|
+
$dao-acidblue-040: #1E9CE8;
|
|
66
|
+
$dao-acidblue-050: #43A1E5;
|
|
67
|
+
$dao-acidblue-060: #4BB0ED;
|
|
68
|
+
$dao-acidblue-070: #79C4F1;
|
|
69
|
+
$dao-acidblue-080: #A7D8F6;
|
|
70
|
+
$dao-acidblue-090: #ECF7FD;
|
|
71
|
+
$dao-gray-blue-100: #F7F8FA;
|
|
72
|
+
$dao-gray-blue-110: #F8FAFC;
|
|
73
|
+
$dao-gray-blue-010: #101114;
|
|
74
|
+
$dao-gray-blue-020: #3D444F;
|
|
75
|
+
$dao-gray-blue-030: #80868E;
|
|
76
|
+
$dao-gray-blue-040: #AAB0B8;
|
|
77
|
+
$dao-gray-blue-050: #CBCFD8;
|
|
78
|
+
$dao-gray-blue-060: #D6DBE6;
|
|
79
|
+
$dao-gray-blue-070: #E4E7ED;
|
|
80
|
+
$dao-gray-blue-075: #EAEDF3;
|
|
81
|
+
$dao-gray-blue-080: #EEF1F5;
|
|
82
|
+
$dao-gray-blue-090: #F1F3F6;
|
|
83
|
+
$dao-gray-100: #BBBBBB;
|
|
84
|
+
$dao-gray-110: #C7C7C7;
|
|
85
|
+
$dao-gray-120: #CCCCCC;
|
|
86
|
+
$dao-gray-130: #D2D2D2;
|
|
87
|
+
$dao-gray-140: #DDDDDD;
|
|
88
|
+
$dao-gray-150: #E2E2E2;
|
|
89
|
+
$dao-gray-160: #EAEAEA;
|
|
90
|
+
$dao-gray-170: #EEEEEE;
|
|
91
|
+
$dao-gray-180: #F2F2F2;
|
|
92
|
+
$dao-gray-190: #F9F9F9;
|
|
93
|
+
$dao-gray-200: #FAFAFA;
|
|
94
|
+
$dao-gray-010: #333333;
|
|
95
|
+
$dao-gray-020: #4F4F4F;
|
|
96
|
+
$dao-gray-030: #5c5c5c;
|
|
97
|
+
$dao-gray-040: #666666;
|
|
98
|
+
$dao-gray-050: #7F7F7F;
|
|
99
|
+
$dao-gray-060: #888888;
|
|
100
|
+
$dao-gray-070: #999999;
|
|
101
|
+
$dao-gray-080: #A5A5A5;
|
|
102
|
+
$dao-gray-090: #AFAFAF;
|
|
103
|
+
$dao-navigation-100: #F6F8FB;
|
|
104
|
+
$dao-navigation-010: #2C3037;
|
|
105
|
+
$dao-navigation-020: #3B3F4A;
|
|
106
|
+
$dao-navigation-030: #676B75;
|
|
107
|
+
$dao-navigation-040: #878C98;
|
|
108
|
+
$dao-navigation-050: #C5CAD8;
|
|
109
|
+
$dao-navigation-060: #203548;
|
|
110
|
+
$dao-navigation-070: #2975D2;
|
|
111
|
+
$dao-navigation-080: #B6C2D2;
|
|
112
|
+
$dao-navigation-090: #EAEEF5;
|
|
113
|
+
$dao-pure-white: #FFFFFF;
|
|
114
|
+
$dao-pure-black: #000000;
|
|
115
|
+
$dao-line-gray-010: #C7D0DE;
|
|
116
|
+
$dao-line-gray-020: #C8CCD0;
|
|
117
|
+
$dao-line-gray-030: #DADBDE;
|
|
118
|
+
$dao-line-gray-040: #EBEDF0;
|
|
119
|
+
$dao-top-gray-010: #33363B;
|
|
120
|
+
$dao-top-gray-020: #484E59;
|
package/dist/utils/constant.d.ts
CHANGED
|
@@ -5,7 +5,16 @@ import type { NavProvide, NavSubProvide } from '../components/nav/types';
|
|
|
5
5
|
import type { BreadcrumbProvide } from '../components/breadcrumb/breadcrumb-props';
|
|
6
6
|
import { ExpansionName, ExpansionState } from '../components/expansion/props';
|
|
7
7
|
import type { ModelValueAnyType } from '../components/checkbox/props';
|
|
8
|
+
export interface DelayObj {
|
|
9
|
+
show?: number;
|
|
10
|
+
hide?: number;
|
|
11
|
+
}
|
|
12
|
+
export type DelayProp = number | string | DelayObj;
|
|
8
13
|
export declare const placements: Placement[];
|
|
14
|
+
export declare const componentSize: readonly ["sm", "md", "lg", "xl"];
|
|
15
|
+
export type ComponentSize = typeof componentSize[number];
|
|
16
|
+
export declare const validateStatus: readonly ["default", "error", "success", "validating"];
|
|
17
|
+
export type ValidateStatus = typeof validateStatus[number];
|
|
9
18
|
export declare const radioGroupKey: unique symbol;
|
|
10
19
|
export declare const tabModelValueKey: InjectionKey<Ref<string>>;
|
|
11
20
|
export declare const addTabFnKey: InjectionKey<AddTabFn>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function simpleOmit<T extends Record<string, unknown>, K extends Array<keyof T>>(target: T, keys: K): Omit<T, K[number]>;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
export declare const componentSize: readonly ["sm", "md", "lg", "xl"];
|
|
3
|
-
export type ComponentSize = typeof componentSize[number];
|
|
4
|
-
export declare const validateStatus: readonly ["default", "error", "success", "validating"];
|
|
5
|
-
export type ValidateStatus = typeof validateStatus[number];
|
|
6
2
|
export type ParamsSlotFn<T extends object> = (args: T) => VNode[];
|
|
7
3
|
export type SlotFn = () => VNode[];
|
|
8
4
|
export type EmptyFn = () => void;
|
|
9
|
-
export interface DelayObj {
|
|
10
|
-
show?: number;
|
|
11
|
-
hide?: number;
|
|
12
|
-
}
|
|
13
|
-
export type DelayProp = number | string | DelayObj;
|
|
14
5
|
export type AnyFn = (...args: any) => any;
|
|
15
6
|
export declare const emitHelperFn: (...args: any) => void;
|
|
16
7
|
export type SetExtractEmitsReturn<Emits extends Record<string, AnyFn>, EmitKey extends keyof Emits, ReturnType = void> = Emits extends Record<infer EmitsKey, AnyFn> ? EmitKey extends EmitsKey ? {
|
|
@@ -23,3 +14,6 @@ export type GetSlots<T> = T extends {
|
|
|
23
14
|
} ? InstanceType<T>['$slots'] : {
|
|
24
15
|
slotText: SlotFn;
|
|
25
16
|
};
|
|
17
|
+
export type Mutable<T> = {
|
|
18
|
+
-readonly [P in keyof T]: T[P];
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dao-style/core",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.10",
|
|
4
4
|
"scripts": {
|
|
5
|
+
"commit": "git-cz",
|
|
5
6
|
"dev": "npm run dev:docs",
|
|
6
7
|
"dev:docs": "vitepress dev docs",
|
|
7
8
|
"build": "npm run typecheck && vite build && vue-tsc -d --emitDeclarationOnly -p tsconfig.build.json && npm run build:volar",
|
|
8
9
|
"build:volar": "node scripts/gen-volar-dts.mjs",
|
|
9
|
-
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
|
10
10
|
"build:docs": "vitepress build docs",
|
|
11
11
|
"test": "vitest src --run",
|
|
12
12
|
"test:watch": "vitest src",
|
|
@@ -17,22 +17,29 @@
|
|
|
17
17
|
"typecheck": "vue-tsc --noEmit -p tsconfig.build.json",
|
|
18
18
|
"serve:docs": "vitepress serve docs",
|
|
19
19
|
"release": "node scripts/release.js && git push --follow-tags",
|
|
20
|
-
"publish:ci": "node scripts/publish.js"
|
|
20
|
+
"publish:ci": "node scripts/publish.js",
|
|
21
|
+
"release:nightly": "node scripts/nightly.js",
|
|
22
|
+
"sync:registry": "node scripts/registry-sync.js"
|
|
21
23
|
},
|
|
22
24
|
"sideEffects": [
|
|
23
25
|
"dist/**/*.css"
|
|
24
26
|
],
|
|
25
27
|
"dependencies": {
|
|
26
|
-
"@popperjs/core": "^2.10.2"
|
|
28
|
+
"@popperjs/core": "^2.10.2",
|
|
29
|
+
"fs-extra": "^10.1.0",
|
|
30
|
+
"ohmyfetch": "^0.4.19"
|
|
27
31
|
},
|
|
28
32
|
"peerDependencies": {
|
|
29
33
|
"vue": "^3.2.40",
|
|
30
34
|
"vue-i18n": "^9.2.0-beta.32"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
37
|
+
"@commitlint/cli": "^16.0.2",
|
|
38
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
39
|
+
"@commitlint/cz-commitlint": "^16.0.0",
|
|
33
40
|
"@types/markdown-it": "^12.2.3",
|
|
34
|
-
"@types/node": "^16.10.3",
|
|
35
41
|
"@types/micromatch": "^4.0.2",
|
|
42
|
+
"@types/node": "^16.10.3",
|
|
36
43
|
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
|
37
44
|
"@typescript-eslint/parser": "^5.47.1",
|
|
38
45
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
@@ -40,12 +47,13 @@
|
|
|
40
47
|
"@vue/repl": "^1.3.2",
|
|
41
48
|
"@vue/test-utils": "^2.2.6",
|
|
42
49
|
"@vueuse/core": "^8.2.5",
|
|
43
|
-
"utility-types": "^3.10.0",
|
|
44
50
|
"autoprefixer": "^10.4.12",
|
|
45
51
|
"bumpp": "^7.1.1",
|
|
46
52
|
"c8": "^7.11.0",
|
|
47
53
|
"chokidar": "^3.5.3",
|
|
48
54
|
"clipboard-copy": "^4.0.1",
|
|
55
|
+
"commitizen": "^4.2.4",
|
|
56
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
49
57
|
"eslint": "^8.28.0",
|
|
50
58
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
51
59
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -85,8 +93,14 @@
|
|
|
85
93
|
"vue-tsc": "^1.0.18",
|
|
86
94
|
"yorkie": "^2.0.0"
|
|
87
95
|
},
|
|
96
|
+
"config": {
|
|
97
|
+
"commitizen": {
|
|
98
|
+
"path": "@commitlint/cz-commitlint"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
88
101
|
"gitHooks": {
|
|
89
|
-
"pre-commit": "lint-staged"
|
|
102
|
+
"pre-commit": "lint-staged",
|
|
103
|
+
"commit-msg": "commitlint -E GIT_PARAMS"
|
|
90
104
|
},
|
|
91
105
|
"engines": {
|
|
92
106
|
"node": ">=16.0.0",
|
|
@@ -97,16 +111,16 @@
|
|
|
97
111
|
"volar.d.ts",
|
|
98
112
|
"scripts/transform-variable.mjs"
|
|
99
113
|
],
|
|
100
|
-
"main": "./dist/dao-style.
|
|
101
|
-
"module": "./dist/dao-style.
|
|
114
|
+
"main": "./dist/dao-style.js",
|
|
115
|
+
"module": "./dist/dao-style.mjs",
|
|
102
116
|
"types": "./dist/index.d.ts",
|
|
103
117
|
"workspaces": [
|
|
104
118
|
"docs"
|
|
105
119
|
],
|
|
106
120
|
"exports": {
|
|
107
121
|
".": {
|
|
108
|
-
"import": "./dist/dao-style.
|
|
109
|
-
"require": "./dist/dao-style.
|
|
122
|
+
"import": "./dist/dao-style.mjs",
|
|
123
|
+
"require": "./dist/dao-style.js"
|
|
110
124
|
},
|
|
111
125
|
"./*": "./*"
|
|
112
126
|
}
|
|
@@ -101,10 +101,10 @@ export function renderSCSSAndCSSVariable(data) {
|
|
|
101
101
|
|
|
102
102
|
return str;
|
|
103
103
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
const cssContent = [
|
|
105
|
+
':root {', ...cssContentList, '}',
|
|
106
|
+
':host {', ...cssContentList, '}\n',
|
|
107
|
+
].join('\n');
|
|
108
108
|
|
|
109
109
|
const scssContentList = values.map((content) => {
|
|
110
110
|
let str = `$dao-${content.name}: `;
|
|
@@ -120,7 +120,7 @@ export function renderSCSSAndCSSVariable(data) {
|
|
|
120
120
|
return str;
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
scssContentList.push(
|
|
123
|
+
scssContentList.push(undefined);
|
|
124
124
|
const scssContent = scssContentList.join('\n');
|
|
125
125
|
|
|
126
126
|
return {
|