assui 2.0.2 → 2.0.6
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/button-drawer/index.d.ts +10 -0
- package/es/button-drawer/index.js +116 -0
- package/es/button-drawer/style/index.d.ts +1 -0
- package/es/button-drawer/style/index.js +1 -0
- package/es/button-modal/index.d.ts +14 -0
- package/es/button-modal/index.js +131 -0
- package/es/button-modal/style/index.d.ts +1 -0
- package/es/button-modal/style/index.js +1 -0
- package/es/condition-input/index.d.ts +15 -0
- package/es/condition-input/index.js +108 -0
- package/es/condition-input/parse2RegexOption.d.ts +13 -0
- package/es/condition-input/parse2RegexOption.js +57 -0
- package/es/condition-input/style/index.d.ts +1 -0
- package/es/condition-input/style/index.js +1 -0
- package/es/copy-to-clipboard/index.d.ts +22 -0
- package/es/copy-to-clipboard/index.js +95 -0
- package/es/copy-to-clipboard/style/index.css +249 -0
- package/es/copy-to-clipboard/style/index.d.ts +1 -0
- package/es/copy-to-clipboard/style/index.js +1 -0
- package/es/copy-to-clipboard/style/index.less +1 -0
- package/es/highlight-textarea/HighlighedContents.d.ts +7 -0
- package/es/highlight-textarea/HighlighedContents.js +15 -0
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
- package/es/highlight-textarea/extractSpansOfClasses.js +159 -0
- package/es/highlight-textarea/getRanges.d.ts +2 -0
- package/es/highlight-textarea/getRanges.js +142 -0
- package/es/highlight-textarea/getType.d.ts +2 -0
- package/es/highlight-textarea/getType.js +29 -0
- package/es/highlight-textarea/index.d.ts +12 -0
- package/es/highlight-textarea/index.js +132 -0
- package/es/highlight-textarea/style/index.css +38 -0
- package/es/highlight-textarea/style/index.d.ts +2 -0
- package/es/highlight-textarea/style/index.js +2 -0
- package/es/highlight-textarea/style/index.less +42 -0
- package/es/highlight-textarea/types.d.ts +16 -0
- package/es/highlight-textarea/types.js +0 -0
- package/es/highlight-words/index.d.ts +3 -0
- package/es/highlight-words/index.js +2 -0
- package/es/highlight-words/style/index.d.ts +1 -0
- package/es/highlight-words/style/index.js +0 -0
- package/es/icon/demo/svg/check-circle-filled.svg +6 -0
- package/es/icon/demo/svg/coin-circle.svg +9 -0
- package/es/icon/index.d.ts +27 -0
- package/es/icon/index.js +95 -0
- package/es/icon/style/index.d.ts +1 -0
- package/es/icon/style/index.js +0 -0
- package/es/icon/utils.d.ts +6 -0
- package/es/icon/utils.js +22 -0
- package/es/img-crop/EasyCrop.d.ts +6 -0
- package/es/img-crop/EasyCrop.js +113 -0
- package/es/img-crop/getCroppedImg.d.ts +6 -0
- package/es/img-crop/getCroppedImg.js +199 -0
- package/es/img-crop/index.d.ts +53 -0
- package/es/img-crop/index.js +531 -0
- package/es/img-crop/style/index.css +52 -0
- package/es/img-crop/style/index.d.ts +3 -0
- package/es/img-crop/style/index.js +3 -0
- package/es/img-crop/style/index.less +54 -0
- package/es/index.d.ts +34 -2
- package/es/index.js +18 -2
- package/es/keep-tab/demo/index.modules.less +66 -0
- package/es/keep-tab/index.d.ts +29 -0
- package/es/keep-tab/index.js +129 -0
- package/es/keep-tab/style/index.css +1129 -0
- package/es/keep-tab/style/index.d.ts +2 -0
- package/es/keep-tab/style/index.js +2 -0
- package/es/keep-tab/style/index.less +2 -0
- package/es/number-input/index.d.ts +22 -7
- package/es/number-input/index.js +22 -11
- package/es/number-input/style/index.d.ts +1 -1
- package/es/number-input/style/index.js +1 -1
- package/es/number-input/utils.d.ts +10 -11
- package/es/number-input/utils.js +7 -7
- package/es/rc-echart/core.d.ts +32 -0
- package/es/rc-echart/core.js +136 -0
- package/es/rc-echart/index.d.ts +21 -0
- package/es/rc-echart/index.js +27 -0
- package/es/rc-echart/style/index.d.ts +1 -0
- package/es/rc-echart/style/index.js +0 -0
- package/es/rc-motion/demo/CSSMotion.less +91 -0
- package/es/rc-motion/index.d.ts +2 -0
- package/es/rc-motion/index.js +2 -0
- package/es/rc-motion/style/index.d.ts +1 -0
- package/es/rc-motion/style/index.js +0 -0
- package/es/rc-qrcode/index.d.ts +20 -0
- package/es/rc-qrcode/index.js +57 -0
- package/es/rc-qrcode/style/index.d.ts +1 -0
- package/es/rc-qrcode/style/index.js +0 -0
- package/es/rc-qrcode/useQrcode.d.ts +4 -0
- package/es/rc-qrcode/useQrcode.js +50 -0
- package/es/rc-transition-group/index.d.ts +2 -0
- package/es/rc-transition-group/index.js +2 -0
- package/es/rc-transition-group/style/index.d.ts +1 -0
- package/es/rc-transition-group/style/index.js +0 -0
- package/es/single-img-upload/index.d.ts +19 -0
- package/es/single-img-upload/index.js +199 -0
- package/es/single-img-upload/style/index.css +74 -0
- package/es/single-img-upload/style/index.d.ts +3 -0
- package/es/single-img-upload/style/index.js +3 -0
- package/es/single-img-upload/style/index.less +85 -0
- package/es/sortable-hoc/demo/VerticalListBase/index.modules.less +63 -0
- package/es/sortable-hoc/demo/index.modules.less +248 -0
- package/es/sortable-hoc/index.d.ts +2 -0
- package/es/sortable-hoc/index.js +2 -0
- package/es/sortable-hoc/style/index.d.ts +1 -0
- package/es/sortable-hoc/style/index.js +0 -0
- package/es/split-pane/index.d.ts +59 -0
- package/es/split-pane/index.js +21 -0
- package/es/split-pane/style/index.css +41 -0
- package/es/split-pane/style/index.d.ts +1 -0
- package/es/split-pane/style/index.js +1 -0
- package/es/split-pane/style/index.less +49 -0
- package/es/text-area/index.d.ts +12 -0
- package/es/text-area/index.js +96 -0
- package/es/text-area/style/index.d.ts +1 -0
- package/es/text-area/style/index.js +1 -0
- package/es/text-input/index.d.ts +5 -0
- package/es/text-input/index.js +85 -0
- package/es/{number-input → text-input}/style/index.css +0 -3
- package/es/text-input/style/index.d.ts +1 -0
- package/es/text-input/style/index.js +1 -0
- package/es/{number-input → text-input}/style/index.less +0 -4
- package/lib/button-drawer/index.d.ts +10 -0
- package/lib/button-drawer/index.js +164 -0
- package/lib/button-drawer/style/index.d.ts +1 -0
- package/lib/button-drawer/style/index.js +7 -0
- package/lib/button-modal/index.d.ts +14 -0
- package/lib/button-modal/index.js +178 -0
- package/lib/button-modal/style/index.d.ts +1 -0
- package/lib/button-modal/style/index.js +7 -0
- package/lib/condition-input/index.d.ts +15 -0
- package/lib/condition-input/index.js +158 -0
- package/lib/condition-input/parse2RegexOption.d.ts +13 -0
- package/lib/condition-input/parse2RegexOption.js +72 -0
- package/lib/condition-input/style/index.d.ts +1 -0
- package/lib/condition-input/style/index.js +7 -0
- package/lib/copy-to-clipboard/index.d.ts +22 -0
- package/lib/copy-to-clipboard/index.js +143 -0
- package/lib/copy-to-clipboard/style/index.css +249 -0
- package/lib/copy-to-clipboard/style/index.d.ts +1 -0
- package/lib/copy-to-clipboard/style/index.js +7 -0
- package/lib/copy-to-clipboard/style/index.less +1 -0
- package/lib/highlight-textarea/HighlighedContents.d.ts +7 -0
- package/lib/highlight-textarea/HighlighedContents.js +29 -0
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
- package/lib/highlight-textarea/extractSpansOfClasses.js +173 -0
- package/lib/highlight-textarea/getRanges.d.ts +2 -0
- package/lib/highlight-textarea/getRanges.js +156 -0
- package/lib/highlight-textarea/getType.d.ts +2 -0
- package/lib/highlight-textarea/getType.js +37 -0
- package/lib/highlight-textarea/index.d.ts +12 -0
- package/lib/highlight-textarea/index.js +183 -0
- package/lib/highlight-textarea/style/index.css +38 -0
- package/lib/highlight-textarea/style/index.d.ts +2 -0
- package/lib/highlight-textarea/style/index.js +9 -0
- package/lib/highlight-textarea/style/index.less +42 -0
- package/lib/highlight-textarea/types.d.ts +16 -0
- package/lib/highlight-textarea/types.js +5 -0
- package/lib/highlight-words/index.d.ts +3 -0
- package/lib/highlight-words/index.js +15 -0
- package/lib/highlight-words/style/index.d.ts +1 -0
- package/lib/highlight-words/style/index.js +0 -0
- package/lib/icon/demo/svg/check-circle-filled.svg +6 -0
- package/lib/icon/demo/svg/coin-circle.svg +9 -0
- package/lib/icon/index.d.ts +27 -0
- package/lib/icon/index.js +143 -0
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +0 -0
- package/lib/icon/utils.d.ts +6 -0
- package/lib/icon/utils.js +32 -0
- package/lib/img-crop/EasyCrop.d.ts +6 -0
- package/lib/img-crop/EasyCrop.js +160 -0
- package/lib/img-crop/getCroppedImg.d.ts +6 -0
- package/lib/img-crop/getCroppedImg.js +205 -0
- package/lib/img-crop/index.d.ts +53 -0
- package/lib/img-crop/index.js +582 -0
- package/lib/img-crop/style/index.css +52 -0
- package/lib/img-crop/style/index.d.ts +3 -0
- package/lib/img-crop/style/index.js +11 -0
- package/lib/img-crop/style/index.less +54 -0
- package/lib/index.d.ts +34 -2
- package/lib/index.js +160 -9
- package/lib/keep-tab/demo/index.modules.less +66 -0
- package/lib/keep-tab/index.d.ts +29 -0
- package/lib/keep-tab/index.js +181 -0
- package/lib/keep-tab/style/index.css +1129 -0
- package/lib/keep-tab/style/index.d.ts +2 -0
- package/lib/keep-tab/style/index.js +9 -0
- package/lib/keep-tab/style/index.less +2 -0
- package/lib/number-input/index.d.ts +22 -7
- package/lib/number-input/index.js +22 -11
- package/lib/number-input/style/index.d.ts +1 -1
- package/lib/number-input/style/index.js +1 -1
- package/lib/number-input/utils.d.ts +10 -11
- package/lib/number-input/utils.js +8 -8
- package/lib/rc-echart/core.d.ts +32 -0
- package/lib/rc-echart/core.js +185 -0
- package/lib/rc-echart/index.d.ts +21 -0
- package/lib/rc-echart/index.js +75 -0
- package/lib/rc-echart/style/index.d.ts +1 -0
- package/lib/rc-echart/style/index.js +0 -0
- package/lib/rc-motion/demo/CSSMotion.less +91 -0
- package/lib/rc-motion/index.d.ts +2 -0
- package/lib/rc-motion/index.js +43 -0
- package/lib/rc-motion/style/index.d.ts +1 -0
- package/lib/rc-motion/style/index.js +0 -0
- package/lib/rc-qrcode/index.d.ts +20 -0
- package/lib/rc-qrcode/index.js +108 -0
- package/lib/rc-qrcode/style/index.d.ts +1 -0
- package/lib/rc-qrcode/style/index.js +0 -0
- package/lib/rc-qrcode/useQrcode.d.ts +4 -0
- package/lib/rc-qrcode/useQrcode.js +66 -0
- package/lib/rc-transition-group/index.d.ts +2 -0
- package/lib/rc-transition-group/index.js +43 -0
- package/lib/rc-transition-group/style/index.d.ts +1 -0
- package/lib/rc-transition-group/style/index.js +0 -0
- package/lib/single-img-upload/index.d.ts +19 -0
- package/lib/single-img-upload/index.js +250 -0
- package/lib/single-img-upload/style/index.css +74 -0
- package/lib/single-img-upload/style/index.d.ts +3 -0
- package/lib/single-img-upload/style/index.js +11 -0
- package/lib/single-img-upload/style/index.less +85 -0
- package/lib/sortable-hoc/demo/VerticalListBase/index.modules.less +63 -0
- package/lib/sortable-hoc/demo/index.modules.less +248 -0
- package/lib/sortable-hoc/index.d.ts +2 -0
- package/lib/sortable-hoc/index.js +43 -0
- package/lib/sortable-hoc/style/index.d.ts +1 -0
- package/lib/sortable-hoc/style/index.js +0 -0
- package/lib/split-pane/index.d.ts +59 -0
- package/lib/split-pane/index.js +69 -0
- package/lib/split-pane/style/index.css +41 -0
- package/lib/split-pane/style/index.d.ts +1 -0
- package/lib/split-pane/style/index.js +7 -0
- package/lib/split-pane/style/index.less +49 -0
- package/lib/text-area/index.d.ts +12 -0
- package/lib/text-area/index.js +144 -0
- package/lib/text-area/style/index.d.ts +1 -0
- package/lib/text-area/style/index.js +7 -0
- package/lib/text-input/index.d.ts +5 -0
- package/lib/text-input/index.js +99 -0
- package/lib/{number-input → text-input}/style/index.css +0 -3
- package/lib/text-input/style/index.d.ts +1 -0
- package/lib/text-input/style/index.js +7 -0
- package/lib/{number-input → text-input}/style/index.less +0 -4
- package/package.json +20 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@import '~antd/es/style/themes/index';
|
|
2
|
+
|
|
3
|
+
@progress-prefix-cls: ~'@{ant-prefix}';
|
|
4
|
+
|
|
5
|
+
.as-img-upload {
|
|
6
|
+
width: 335px;
|
|
7
|
+
height: 140px;
|
|
8
|
+
border: 1px solid #cacaca;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
border: 1px solid #1890ff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rc-upload,
|
|
16
|
+
&:focus {
|
|
17
|
+
outline: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-button {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
|
|
30
|
+
&:focus {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-content {
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: 1010;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-close-button {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
z-index: 10;
|
|
49
|
+
width: 20px;
|
|
50
|
+
height: 20px;
|
|
51
|
+
text-align: center;
|
|
52
|
+
background-color: #000;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
opacity: 0.6;
|
|
55
|
+
|
|
56
|
+
.spotecicon {
|
|
57
|
+
width: 15px;
|
|
58
|
+
height: 15px;
|
|
59
|
+
color: #fff;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-preview {
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-upload-progress {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
left: 0;
|
|
71
|
+
z-index: 2;
|
|
72
|
+
transform: translateY(-34%);
|
|
73
|
+
|
|
74
|
+
.@{ant-prefix}-progress-outer {
|
|
75
|
+
padding: 0 20px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.@{ant-prefix}-progress-text {
|
|
79
|
+
display: block;
|
|
80
|
+
width: 100%;
|
|
81
|
+
color: #fff;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@focusedOutlineColor: #4c9ffe;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
height: 100%;
|
|
10
|
+
padding: 10px 0;
|
|
11
|
+
background-color: #f5f6fa;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Base styles
|
|
15
|
+
.list {
|
|
16
|
+
width: 400px;
|
|
17
|
+
height: 400px;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
border: 1px solid #999;
|
|
20
|
+
-webkit-overflow-scrolling: touch;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item {
|
|
24
|
+
position: relative;
|
|
25
|
+
width: 400px;
|
|
26
|
+
border-bottom: 1px solid #999;
|
|
27
|
+
cursor: grab;
|
|
28
|
+
touch-action: manipulation;
|
|
29
|
+
|
|
30
|
+
&.sorting {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Stylized
|
|
36
|
+
.stylized-list {
|
|
37
|
+
position: relative;
|
|
38
|
+
z-index: 0;
|
|
39
|
+
background-color: #f3f3f3;
|
|
40
|
+
border: 1px solid #efefef;
|
|
41
|
+
border-radius: 3px;
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.stylized-item {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
width: 100%;
|
|
50
|
+
padding: 0 20px;
|
|
51
|
+
|
|
52
|
+
color: #333;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
background-color: #fff;
|
|
55
|
+
border-bottom: 1px solid #efefef;
|
|
56
|
+
outline: none;
|
|
57
|
+
user-select: none;
|
|
58
|
+
|
|
59
|
+
&:focus:not(.containsDragHandle) {
|
|
60
|
+
text-indent: -2px;
|
|
61
|
+
border: 2px solid @focusedOutlineColor;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
@focusedOutlineColor: #4c9ffe;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
height: 100%;
|
|
10
|
+
padding: 10px 0;
|
|
11
|
+
background-color: #f5f6fa;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Base styles
|
|
15
|
+
.list {
|
|
16
|
+
width: 400px;
|
|
17
|
+
height: 600px;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
border: 1px solid #999;
|
|
20
|
+
-webkit-overflow-scrolling: touch;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item {
|
|
24
|
+
position: relative;
|
|
25
|
+
border-bottom: 1px solid #999;
|
|
26
|
+
|
|
27
|
+
cursor: grab;
|
|
28
|
+
touch-action: manipulation;
|
|
29
|
+
|
|
30
|
+
&.sorting {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.containsDragHandle {
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Stylized
|
|
40
|
+
.stylizedList {
|
|
41
|
+
position: relative;
|
|
42
|
+
z-index: 0;
|
|
43
|
+
background-color: #f3f3f3;
|
|
44
|
+
border: 1px solid #efefef;
|
|
45
|
+
border-radius: 3px;
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.stylizedItem {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
width: 100%;
|
|
54
|
+
padding: 0 20px;
|
|
55
|
+
|
|
56
|
+
color: #333;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
background-color: #fff;
|
|
59
|
+
border-bottom: 1px solid #efefef;
|
|
60
|
+
outline: none;
|
|
61
|
+
user-select: none;
|
|
62
|
+
|
|
63
|
+
&:focus:not(.containsDragHandle) {
|
|
64
|
+
text-indent: -2px;
|
|
65
|
+
border: 2px solid @focusedOutlineColor;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.disabled {
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
opacity: 0.5;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Drag handle
|
|
75
|
+
.handleWrapper {
|
|
76
|
+
width: 18px;
|
|
77
|
+
height: 18px;
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.handle {
|
|
82
|
+
display: block;
|
|
83
|
+
width: 18px;
|
|
84
|
+
height: 18px;
|
|
85
|
+
margin-right: 20px;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
|
|
88
|
+
cursor: grab;
|
|
89
|
+
|
|
90
|
+
> svg {
|
|
91
|
+
opacity: 0.3;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Horizontal list
|
|
96
|
+
.horizontalList {
|
|
97
|
+
display: flex;
|
|
98
|
+
width: 600px;
|
|
99
|
+
height: 300px;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.horizontalItem {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
width: 200px;
|
|
109
|
+
border-right: 1px solid #efefef;
|
|
110
|
+
border-bottom: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Grid
|
|
114
|
+
.grid {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-gap: 10px;
|
|
117
|
+
grid-template-columns: auto auto auto auto;
|
|
118
|
+
width: auto;
|
|
119
|
+
height: 130 * 3px + 20px;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
background-color: transparent;
|
|
122
|
+
border: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.gridItem {
|
|
126
|
+
width: 130px;
|
|
127
|
+
height: 130px;
|
|
128
|
+
padding: 0;
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
border: none;
|
|
131
|
+
|
|
132
|
+
.wrapper {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
font-size: 28px;
|
|
139
|
+
background-color: #fff;
|
|
140
|
+
transform: scale(1);
|
|
141
|
+
|
|
142
|
+
span {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.gridVariableSized {
|
|
149
|
+
.gridItem {
|
|
150
|
+
&[data-index='0'] {
|
|
151
|
+
grid-row-end: span 2;
|
|
152
|
+
grid-column-end: span 2;
|
|
153
|
+
width: auto !important;
|
|
154
|
+
height: auto !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.sorting {
|
|
158
|
+
.wrapper {
|
|
159
|
+
transition: transform 150ms ease-in-out;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.gridItemVariableSized {
|
|
166
|
+
&[data-index='0'] {
|
|
167
|
+
.wrapper {
|
|
168
|
+
font-size: 56px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Nested
|
|
174
|
+
.category {
|
|
175
|
+
height: auto;
|
|
176
|
+
|
|
177
|
+
.categoryHeader {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-flow: row nowrap;
|
|
180
|
+
align-items: center;
|
|
181
|
+
padding: 10px 14px;
|
|
182
|
+
background: #f9f9f9;
|
|
183
|
+
border-bottom: 1px solid #efefef;
|
|
184
|
+
user-select: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.categoryList {
|
|
188
|
+
height: auto;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Divider
|
|
193
|
+
.divider {
|
|
194
|
+
padding: 10px 20px;
|
|
195
|
+
color: #333;
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
text-transform: uppercase;
|
|
198
|
+
background: #f9f9f9;
|
|
199
|
+
border-bottom: 1px solid #efefef;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Helper styles
|
|
203
|
+
.helper {
|
|
204
|
+
box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2), 0 -5px 5px -5px rgba(0, 0, 0, 0.2);
|
|
205
|
+
|
|
206
|
+
cursor: grabbing;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.stylizedHelper {
|
|
210
|
+
&:not(.gridItem),
|
|
211
|
+
&.gridItem .wrapper {
|
|
212
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
213
|
+
border: 1px solid #efefef;
|
|
214
|
+
border-radius: 3px;
|
|
215
|
+
box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2);
|
|
216
|
+
|
|
217
|
+
&.horizontalItem {
|
|
218
|
+
cursor: col-resize;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:focus {
|
|
222
|
+
box-shadow: 0 0px 5px 1px @focusedOutlineColor;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.gridItem .wrapper {
|
|
227
|
+
transition: transform 150ms ease-in-out;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.shrinkedHelper {
|
|
232
|
+
height: 20px !important;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:global {
|
|
236
|
+
body {
|
|
237
|
+
font-family: 'Montserrat', 'Helvetica Neue', 'Helvetica', arial, sans-serif;
|
|
238
|
+
background-color: rgba(#f4f5f9, 0.7);
|
|
239
|
+
-webkit-font-smoothing: antialiased;
|
|
240
|
+
-moz-osx-font-smoothing: grayscale;
|
|
241
|
+
}
|
|
242
|
+
html,
|
|
243
|
+
body,
|
|
244
|
+
#root {
|
|
245
|
+
height: 100%;
|
|
246
|
+
margin: 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type Size = string | number;
|
|
3
|
+
export declare type Split = 'vertical' | 'horizontal';
|
|
4
|
+
export declare type SplitPaneProps = {
|
|
5
|
+
/**
|
|
6
|
+
* 是否允许拖动
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
|
+
allowResize?: boolean;
|
|
10
|
+
/** 自定义组件类名 */
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 设置主体窗口
|
|
14
|
+
* @default first
|
|
15
|
+
*/
|
|
16
|
+
primary?: 'first' | 'second';
|
|
17
|
+
/**
|
|
18
|
+
* 窗口最小大小
|
|
19
|
+
* @default 50
|
|
20
|
+
*/
|
|
21
|
+
minSize?: string | number;
|
|
22
|
+
/** 窗口最大大小 */
|
|
23
|
+
maxSize?: string | number;
|
|
24
|
+
/** 默认窗口大小 */
|
|
25
|
+
defaultSize?: string | number;
|
|
26
|
+
/** 窗口大小 */
|
|
27
|
+
size?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* 拆分方式
|
|
30
|
+
* @default vertical
|
|
31
|
+
*/
|
|
32
|
+
split?: 'vertical' | 'horizontal';
|
|
33
|
+
/** 拖拽开始回调 */
|
|
34
|
+
onDragStarted?: () => void;
|
|
35
|
+
/** 拖拽完成回调 */
|
|
36
|
+
onDragFinished?: (newSize: number) => void;
|
|
37
|
+
/** 拖拽过程回调 */
|
|
38
|
+
onChange?: (newSize: number) => void;
|
|
39
|
+
/** 拖拽条单击回调 */
|
|
40
|
+
onResizerClick?: (event: MouseEvent) => void;
|
|
41
|
+
/** 拖拽条双击回调 */
|
|
42
|
+
onResizerDoubleClick?: (event: MouseEvent) => void;
|
|
43
|
+
/** 总窗口样式 */
|
|
44
|
+
style?: React.CSSProperties;
|
|
45
|
+
/** 拖拽条样式 */
|
|
46
|
+
resizerStyle?: React.CSSProperties;
|
|
47
|
+
/** 每个窗口共同样式 */
|
|
48
|
+
paneStyle?: React.CSSProperties;
|
|
49
|
+
/** 拆分窗口1样式 */
|
|
50
|
+
pane1Style?: React.CSSProperties;
|
|
51
|
+
/** 拆分窗口2样式 */
|
|
52
|
+
pane2Style?: React.CSSProperties;
|
|
53
|
+
/** 拆分窗口2样式 */
|
|
54
|
+
resizerClassName?: string;
|
|
55
|
+
/** 拖动固定步进值 */
|
|
56
|
+
step?: number;
|
|
57
|
+
};
|
|
58
|
+
declare const _default: (props: SplitPaneProps) => JSX.Element;
|
|
59
|
+
export default _default;
|