@king-design/react 2.0.13 → 2.0.15
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/__tests__/__snapshots__/Dialog.md +8 -0
- package/__tests__/__snapshots__/React Demos.md +27 -15
- package/__tests__/components/dialog.spec.tsx +31 -0
- package/__tests__/components/drawer.spec.tsx +39 -3
- package/__tests__/index.ts +1 -1
- package/components/cascader/useValue.js +1 -1
- package/components/colorpicker/index.d.ts +1 -0
- package/components/colorpicker/index.js +2 -1
- package/components/colorpicker/index.vdt.js +5 -1
- package/components/dialog/alert.vdt.js +6 -4
- package/components/dialog/index.spec.js +61 -1
- package/components/dialog/staticMethods.d.ts +4 -2
- package/components/dialog/staticMethods.js +16 -0
- package/components/dialog/useFixBody.js +3 -1
- package/components/form/styles.js +1 -1
- package/components/pagination/index.d.ts +2 -0
- package/components/pagination/index.js +12 -1
- package/components/pagination/index.spec.js +28 -0
- package/components/pagination/index.vdt.js +18 -3
- package/components/pagination/styles.js +1 -1
- package/components/portal.js +23 -11
- package/components/select/base.d.ts +1 -1
- package/components/select/base.js +4 -4
- package/components/select/base.vdt.js +6 -6
- package/components/select/useEqualWidth.js +1 -1
- package/components/select/useFocusout.js +1 -1
- package/components/select/useInput.js +1 -1
- package/components/wave/styles.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/styles/global.js +1 -1
- package/yarn-error.log +42 -42
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v2.0.
|
|
2
|
+
* @king-design v2.0.15
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -59,7 +59,7 @@ export * from './components/tree';
|
|
|
59
59
|
export * from './components/treeSelect';
|
|
60
60
|
export * from './components/upload';
|
|
61
61
|
export * from './components/wave';
|
|
62
|
-
export var version = '2.0.
|
|
62
|
+
export var version = '2.0.15';
|
|
63
63
|
/* generate end */
|
|
64
64
|
|
|
65
65
|
export {normalize} from 'intact-react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-design/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"description": "King-Design UI components for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dayjs": "^1.10.7",
|
|
38
38
|
"downloadjs": "^1.4.7",
|
|
39
39
|
"enquire.js": "^2.1.6",
|
|
40
|
-
"intact-react": "3.0.
|
|
40
|
+
"intact-react": "3.0.15",
|
|
41
41
|
"monaco-editor": "^0.26.1",
|
|
42
42
|
"mxgraphx": "^4.0.7",
|
|
43
43
|
"resize-observer-polyfill": "^1.5.1",
|
package/styles/global.js
CHANGED
|
@@ -12,6 +12,6 @@ var slideDirections = {
|
|
|
12
12
|
right: 'left center 0'
|
|
13
13
|
}; // TODO: update global when theme changed
|
|
14
14
|
|
|
15
|
-
injectGlobal("html{--var-wave-color:", theme.color.primary, ";box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,SF Pro SC,SF Pro Text,Helvetica Neue,Helvetica,PingFang SC,Segoe UI,Roboto,Hiragino Sans GB,arial,microsoft yahei ui,Microsoft YaHei,
|
|
15
|
+
injectGlobal("html{--var-wave-color:", theme.color.primary, ";box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,SF Pro SC,SF Pro Text,Helvetica Neue,Helvetica,PingFang SC,Segoe UI,Roboto,Hiragino Sans GB,arial,microsoft yahei ui,Microsoft YaHei,sans-serif;}body{font-size:", theme.fontSize, ";line-height:", theme.lineHeight, ";margin:0;padding:0;color:", theme.color.text, ";}*,*:before,*:after{box-sizing:inherit;}", _mapInstanceProperty(_context = _Object$keys(slideDirections)).call(_context, function (direction) {
|
|
16
16
|
return "\n .k-slide" + direction + "-enter-from,\n .k-slide" + direction + "-leave-to {\n transform-origin: " + slideDirections[direction] + ";\n opacity: 0;\n transform: " + (direction === 'down' || direction === 'up' ? "scaleY(.8)" : 'scaleX(.8)') + ";\n }\n .k-slide" + direction + "-enter-active,\n .k-slide" + direction + "-leave-active {\n transform-origin: " + slideDirections[direction] + ";\n transition: opacity " + theme.transition.large + ", transform " + theme.transition.large + " !important;\n pointer-events: none;\n }\n ";
|
|
17
17
|
}).join(''), " .k-fade-enter-from,.k-fade-leave-to{opacity:0!important;}.k-fade-enter-active,.k-fade-leave-active{transition:opacity ", theme.transition.large, ";}.k-fade-leave-active:not(tr){position:absolute;}.k-fade-move{transition:transform ", theme.transition.large, ";}.k-scale-enter-from,.k-scale-leave-to{transform:scale(0);}.k-scale-enter-active,.k-scale-leave-active{transition:transform ", theme.transition.large, ";}.k-expand-enter-from,.k-expand-leave-to{opacity:0;overflow:hidden;}.k-expand-enter-active,.k-expand-leave-active{transition:all ", theme.transition.large, "!important;overflow:hidden;}.k-expand-move{transition:transform ", theme.transition.large, ";}.k-dropdown-enter-from,.k-dropdown-leave-to{opacity:0;transform:translateY(-20px);}.k-dropdown-enter-active,.k-dropdown-leave-active,.k-dropdown-move{transition:all ", theme.transition.large, ";}.k-dropdown-leave-active{position:absolute!important;}.k-dropdown-move{transition:transform ", theme.transition.large, ";}.k-fade-in-left-enter-from,.k-fade-in-left-leave-to{opacity:0;transform:translate3d(-15px, 0, 0);}.k-fade-in-left-enter-active,.k-fade-in-left-leave-active{transition:all ", theme.transition.large, ";td{background:", palette(theme.color.primary, -4), "!important;}}.k-fade-in-left-move{transition:transform ", theme.transition.large, ";}.k-fade-expand-enter-from,.k-fade-expand-leave-to{opacity:0;}.k-fade-expand-enter-active,.k-fade-expand-leave-active{transition:all ", theme.transition.large, ";background:", palette(theme.color.primary, -4), "!important;}.c-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.c-hidden{display:none;}.c-middle{display:inline-block;vertical-align:middle;}");
|
package/yarn-error.log
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
Arguments:
|
|
2
|
-
/
|
|
2
|
+
/home/javey/.nvm/versions/node/v14.21.3/bin/node /usr/share/yarn/bin/yarn.js
|
|
3
3
|
|
|
4
4
|
PATH:
|
|
5
|
-
/
|
|
5
|
+
/home/javey/.nvm/versions/node/v14.21.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/javey/Workspaces/kpc/node_modules/.bin:/home/javey/.nvm/versions/node/v14.21.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
|
|
6
6
|
|
|
7
7
|
Yarn version:
|
|
8
|
-
1.22.
|
|
8
|
+
1.22.19
|
|
9
9
|
|
|
10
10
|
Node version:
|
|
11
|
-
14.
|
|
11
|
+
14.21.3
|
|
12
12
|
|
|
13
13
|
Platform:
|
|
14
|
-
|
|
14
|
+
linux x64
|
|
15
15
|
|
|
16
16
|
Trace:
|
|
17
|
-
Error: https://registry.
|
|
17
|
+
Error: https://registry.npmmirror.com/dayjs/-/dayjs-1.10.7.tgz: ENOENT: no such file or directory, open '/home/javey/.cache/yarn/v6/npm-dayjs-1.10.7-2cf5f91add28116748440866a0a1d26f3a6ce468-integrity/node_modules/dayjs/.yarn-tarball.tgz'
|
|
18
18
|
|
|
19
19
|
npm manifest:
|
|
20
20
|
{
|
|
21
21
|
"name": "@king-design/react",
|
|
22
|
-
"version": "2.0.
|
|
22
|
+
"version": "2.0.13",
|
|
23
23
|
"description": "King-Design UI components for React.",
|
|
24
24
|
"keywords": [
|
|
25
25
|
"component",
|
|
@@ -56,7 +56,7 @@ npm manifest:
|
|
|
56
56
|
"dayjs": "^1.10.7",
|
|
57
57
|
"downloadjs": "^1.4.7",
|
|
58
58
|
"enquire.js": "^2.1.6",
|
|
59
|
-
"intact-react": "3.0.
|
|
59
|
+
"intact-react": "3.0.14",
|
|
60
60
|
"monaco-editor": "^0.26.1",
|
|
61
61
|
"mxgraphx": "^4.0.7",
|
|
62
62
|
"resize-observer-polyfill": "^1.5.1",
|
|
@@ -358,29 +358,29 @@ Lockfile:
|
|
|
358
358
|
parent-module "^1.0.0"
|
|
359
359
|
resolve-from "^4.0.0"
|
|
360
360
|
|
|
361
|
-
intact-react@3.0.
|
|
362
|
-
version "3.0.
|
|
363
|
-
resolved "https://registry.yarnpkg.com/intact-react/-/intact-react-3.0.
|
|
364
|
-
integrity sha512-
|
|
361
|
+
intact-react@3.0.13:
|
|
362
|
+
version "3.0.13"
|
|
363
|
+
resolved "https://registry.yarnpkg.com/intact-react/-/intact-react-3.0.13.tgz#bbe9bb5afa2c67cfc058a4557ce28b7a52f30952"
|
|
364
|
+
integrity sha512-RegeLioJOCneDDgg2BfPt5Zuzn0RL+FuvVhyyakc5nPvMfxKOKXY7VbvYGCV3DeYwpPPn+AmY5ZHAyoqPQCiGQ==
|
|
365
365
|
dependencies:
|
|
366
|
-
intact "^3.0.
|
|
366
|
+
intact "^3.0.13"
|
|
367
367
|
tslib "^2.3.1"
|
|
368
368
|
|
|
369
|
-
intact-shared@^3.0.
|
|
370
|
-
version "3.0.
|
|
371
|
-
resolved "https://registry.yarnpkg.com/intact-shared/-/intact-shared-3.0.
|
|
372
|
-
integrity sha512-
|
|
369
|
+
intact-shared@^3.0.13:
|
|
370
|
+
version "3.0.13"
|
|
371
|
+
resolved "https://registry.yarnpkg.com/intact-shared/-/intact-shared-3.0.13.tgz#e8e6f36d95cded2d9d5a3e1302a3315e9d182cf6"
|
|
372
|
+
integrity sha512-DClf1YscE9RYOeYAY3BFv1UuFt5SvrO2kLL9QbZbWGDaroEVuX/2F2UcisjE3PNbDvVtZ8+pbRZ8P/kZy9YnNQ==
|
|
373
373
|
|
|
374
|
-
intact@^3.0.
|
|
375
|
-
version "3.0.
|
|
376
|
-
resolved "https://registry.yarnpkg.com/intact/-/intact-3.0.
|
|
377
|
-
integrity sha512-
|
|
374
|
+
intact@^3.0.13:
|
|
375
|
+
version "3.0.13"
|
|
376
|
+
resolved "https://registry.yarnpkg.com/intact/-/intact-3.0.13.tgz#19c7cb0424e532b68a4a3f5f43229ddd0d3f8709"
|
|
377
|
+
integrity sha512-RTZOY72BOXOcpb1BswmhDMtbOLo0EoiHFT/HBjpXUTRu2TRnNm5yFh0VIF7dL1ZREYxiKEpvPUFIoFhwjMRzRg==
|
|
378
378
|
dependencies:
|
|
379
|
-
intact-shared "^3.0.
|
|
380
|
-
misstime "^3.0.
|
|
379
|
+
intact-shared "^3.0.13"
|
|
380
|
+
misstime "^3.0.13"
|
|
381
381
|
tslib "^2.2.0"
|
|
382
|
-
vdt "^3.0.
|
|
383
|
-
vdt-compiler "^3.0.
|
|
382
|
+
vdt "^3.0.13"
|
|
383
|
+
vdt-compiler "^3.0.13"
|
|
384
384
|
|
|
385
385
|
is-arrayish@^0.2.1:
|
|
386
386
|
version "0.2.1"
|
|
@@ -409,12 +409,12 @@ Lockfile:
|
|
|
409
409
|
resolved "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
|
|
410
410
|
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
|
|
411
411
|
|
|
412
|
-
misstime@^3.0.
|
|
413
|
-
version "3.0.
|
|
414
|
-
resolved "https://registry.yarnpkg.com/misstime/-/misstime-3.0.
|
|
415
|
-
integrity sha512-
|
|
412
|
+
misstime@^3.0.13:
|
|
413
|
+
version "3.0.13"
|
|
414
|
+
resolved "https://registry.yarnpkg.com/misstime/-/misstime-3.0.13.tgz#b9f614627eda9fe25b7db08768fa08858dce61e2"
|
|
415
|
+
integrity sha512-a5Md2dpyyT+0tRAHdIQi1NEWfFOPfPTvqpvqJ1CzT8zZDd/DesGjCt4+pAi88fBcDnmdw213PMe1lNwvSlmo0A==
|
|
416
416
|
dependencies:
|
|
417
|
-
intact-shared "^3.0.
|
|
417
|
+
intact-shared "^3.0.13"
|
|
418
418
|
|
|
419
419
|
monaco-editor@^0.26.1:
|
|
420
420
|
version "0.26.1"
|
|
@@ -519,22 +519,22 @@ Lockfile:
|
|
|
519
519
|
resolved "https://registry.npmmirror.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
|
|
520
520
|
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
|
|
521
521
|
|
|
522
|
-
vdt-compiler@^3.0.
|
|
523
|
-
version "3.0.
|
|
524
|
-
resolved "https://registry.yarnpkg.com/vdt-compiler/-/vdt-compiler-3.0.
|
|
525
|
-
integrity sha512-
|
|
522
|
+
vdt-compiler@^3.0.13:
|
|
523
|
+
version "3.0.13"
|
|
524
|
+
resolved "https://registry.yarnpkg.com/vdt-compiler/-/vdt-compiler-3.0.13.tgz#bfbf4f58b60ee4ad9b571c43e50bd872f62c59ff"
|
|
525
|
+
integrity sha512-lNTsB9M4mGmcUr21hro1lOcVHFXQBsO14c3K6WUlOGQgJvjp4ELhjIIbaL525Q//O08geviNuvf1V2gK/4Xtmg==
|
|
526
526
|
dependencies:
|
|
527
|
-
intact-shared "^3.0.
|
|
528
|
-
misstime "^3.0.
|
|
527
|
+
intact-shared "^3.0.13"
|
|
528
|
+
misstime "^3.0.13"
|
|
529
529
|
tslib "^2.2.0"
|
|
530
530
|
|
|
531
|
-
vdt@^3.0.
|
|
532
|
-
version "3.0.
|
|
533
|
-
resolved "https://registry.yarnpkg.com/vdt/-/vdt-3.0.
|
|
534
|
-
integrity sha512-
|
|
531
|
+
vdt@^3.0.13:
|
|
532
|
+
version "3.0.13"
|
|
533
|
+
resolved "https://registry.yarnpkg.com/vdt/-/vdt-3.0.13.tgz#ca74d3469529468c997f0b7bf12c6a7c5ea81a59"
|
|
534
|
+
integrity sha512-AOzc0FInl4CfRod5p/dG5C54pocLOhr1W+e+vxeHpHs2RLAICyGXYEoUvQTwzEIJC4iXgD/unzsX+6BJTnintQ==
|
|
535
535
|
dependencies:
|
|
536
|
-
intact-shared "^3.0.
|
|
537
|
-
misstime "^3.0.
|
|
536
|
+
intact-shared "^3.0.13"
|
|
537
|
+
misstime "^3.0.13"
|
|
538
538
|
tslib "^2.2.0"
|
|
539
539
|
|
|
540
540
|
yaml@^1.7.2:
|