wargerm 0.4.30 → 0.4.33
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/DragBox/index.d.ts +14 -0
- package/dist/components/{LineEcharts → Wcharts/LineEcharts}/index.d.ts +0 -0
- package/dist/components/Wcharts/WaterLevelCharts/index.d.ts +9 -0
- package/dist/index.css +212 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.css +212 -0
- package/dist/index.esm.js +373 -2
- package/dist/index.js +373 -0
- package/package.json +88 -88
@@ -0,0 +1,14 @@
|
|
1
|
+
import React, { ReactNode } from 'react';
|
2
|
+
declare type Props = {
|
3
|
+
title?: string | ReactNode;
|
4
|
+
children?: string | ReactNode;
|
5
|
+
closeIcon?: ReactNode;
|
6
|
+
onClose?: () => void;
|
7
|
+
visible: boolean;
|
8
|
+
isDrag?: boolean;
|
9
|
+
isResize?: boolean;
|
10
|
+
className?: string;
|
11
|
+
style?: React.CSSProperties;
|
12
|
+
};
|
13
|
+
export default function DragBox({ title, children, closeIcon, onClose, visible, isDrag, isResize, className, style, }: Props): false | JSX.Element;
|
14
|
+
export {};
|
File without changes
|
package/dist/index.css
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
/* Common Styles */
|
30
30
|
/* Bullets */
|
31
31
|
/* Progress */
|
32
|
+
/* Animation css */
|
32
33
|
}
|
33
34
|
[data-prefers-color='dark'] .__dumi-default-previewer {
|
34
35
|
background: linear-gradient(#1c274f 0%, #2f4262 100%);
|
@@ -1412,6 +1413,111 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1412
1413
|
[data-prefers-color='dark'] .ant-modal-confirm-btns {
|
1413
1414
|
display: flex;
|
1414
1415
|
}
|
1416
|
+
[data-prefers-color='dark'] [class*='animation-'] {
|
1417
|
+
-webkit-animation-duration: 0.5s;
|
1418
|
+
animation-duration: 0.5s;
|
1419
|
+
-webkit-animation-timing-function: ease-out;
|
1420
|
+
animation-timing-function: ease-out;
|
1421
|
+
-webkit-animation-fill-mode: both;
|
1422
|
+
animation-fill-mode: both;
|
1423
|
+
}
|
1424
|
+
[data-prefers-color='dark'] .animation-fade {
|
1425
|
+
-webkit-animation-name: fadeIn;
|
1426
|
+
animation-name: fadeIn;
|
1427
|
+
-webkit-animation-duration: 0.8s;
|
1428
|
+
animation-duration: 0.8s;
|
1429
|
+
-webkit-animation-timing-function: linear;
|
1430
|
+
animation-timing-function: linear;
|
1431
|
+
}
|
1432
|
+
[data-prefers-color='dark'] .animation-fade-out {
|
1433
|
+
-webkit-animation-name: fadeOut;
|
1434
|
+
animation-name: fadeOut;
|
1435
|
+
-webkit-animation-duration: 0.8s;
|
1436
|
+
animation-duration: 0.8s;
|
1437
|
+
-webkit-animation-timing-function: linear;
|
1438
|
+
animation-timing-function: linear;
|
1439
|
+
}
|
1440
|
+
@-webkit-keyframes fadeIn {
|
1441
|
+
0% {
|
1442
|
+
opacity: 0;
|
1443
|
+
}
|
1444
|
+
100% {
|
1445
|
+
opacity: 1;
|
1446
|
+
}
|
1447
|
+
}
|
1448
|
+
@keyframes fadeIn {
|
1449
|
+
0% {
|
1450
|
+
opacity: 0;
|
1451
|
+
}
|
1452
|
+
100% {
|
1453
|
+
opacity: 1;
|
1454
|
+
}
|
1455
|
+
}
|
1456
|
+
@-webkit-keyframes fadeOut {
|
1457
|
+
0% {
|
1458
|
+
opacity: 1;
|
1459
|
+
}
|
1460
|
+
100% {
|
1461
|
+
opacity: 0;
|
1462
|
+
}
|
1463
|
+
}
|
1464
|
+
@keyframes fadeOut {
|
1465
|
+
0% {
|
1466
|
+
opacity: 1;
|
1467
|
+
}
|
1468
|
+
100% {
|
1469
|
+
opacity: 0;
|
1470
|
+
}
|
1471
|
+
}
|
1472
|
+
[data-prefers-color='dark'] .drag-container {
|
1473
|
+
position: fixed;
|
1474
|
+
width: 300px;
|
1475
|
+
height: 200px;
|
1476
|
+
display: flex;
|
1477
|
+
flex-direction: column;
|
1478
|
+
z-index: 999;
|
1479
|
+
min-width: 50px;
|
1480
|
+
min-height: 50px;
|
1481
|
+
}
|
1482
|
+
[data-prefers-color='dark'] .drag-container .drag-title {
|
1483
|
+
display: flex;
|
1484
|
+
justify-content: space-between;
|
1485
|
+
width: 100%;
|
1486
|
+
}
|
1487
|
+
[data-prefers-color='dark'] .drag-container .drag-title.move {
|
1488
|
+
cursor: move;
|
1489
|
+
z-index: 100;
|
1490
|
+
}
|
1491
|
+
[data-prefers-color='dark'] .drag-container .drag-body {
|
1492
|
+
flex: 1;
|
1493
|
+
}
|
1494
|
+
[data-prefers-color='dark'] .resizer {
|
1495
|
+
width: 10px;
|
1496
|
+
height: 100%;
|
1497
|
+
position: absolute;
|
1498
|
+
right: 0;
|
1499
|
+
top: 0;
|
1500
|
+
cursor: e-resize;
|
1501
|
+
z-index: 100;
|
1502
|
+
}
|
1503
|
+
[data-prefers-color='dark'] .resizeb {
|
1504
|
+
width: 100%;
|
1505
|
+
height: 10px;
|
1506
|
+
position: absolute;
|
1507
|
+
left: 0;
|
1508
|
+
bottom: 0;
|
1509
|
+
cursor: n-resize;
|
1510
|
+
z-index: 100;
|
1511
|
+
}
|
1512
|
+
[data-prefers-color='dark'] .resizerb {
|
1513
|
+
width: 20px;
|
1514
|
+
height: 20px;
|
1515
|
+
position: absolute;
|
1516
|
+
right: 0;
|
1517
|
+
bottom: 0;
|
1518
|
+
cursor: se-resize;
|
1519
|
+
z-index: 101;
|
1520
|
+
}
|
1415
1521
|
[data-prefers-color='dark'] .empty {
|
1416
1522
|
background: #16191e;
|
1417
1523
|
width: 100%;
|
@@ -1522,6 +1628,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1522
1628
|
/* Common Styles */
|
1523
1629
|
/* Bullets */
|
1524
1630
|
/* Progress */
|
1631
|
+
/* Animation css */
|
1525
1632
|
}
|
1526
1633
|
[data-prefers-color='light'] .ant-btn-dangerous.ant-btn-primary {
|
1527
1634
|
color: #d8655f;
|
@@ -2648,6 +2755,111 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
2648
2755
|
[data-prefers-color='light'] .ant-modal-confirm-btns {
|
2649
2756
|
display: flex;
|
2650
2757
|
}
|
2758
|
+
[data-prefers-color='light'] [class*='animation-'] {
|
2759
|
+
-webkit-animation-duration: 0.5s;
|
2760
|
+
animation-duration: 0.5s;
|
2761
|
+
-webkit-animation-timing-function: ease-out;
|
2762
|
+
animation-timing-function: ease-out;
|
2763
|
+
-webkit-animation-fill-mode: both;
|
2764
|
+
animation-fill-mode: both;
|
2765
|
+
}
|
2766
|
+
[data-prefers-color='light'] .animation-fade {
|
2767
|
+
-webkit-animation-name: fadeIn;
|
2768
|
+
animation-name: fadeIn;
|
2769
|
+
-webkit-animation-duration: 0.8s;
|
2770
|
+
animation-duration: 0.8s;
|
2771
|
+
-webkit-animation-timing-function: linear;
|
2772
|
+
animation-timing-function: linear;
|
2773
|
+
}
|
2774
|
+
[data-prefers-color='light'] .animation-fade-out {
|
2775
|
+
-webkit-animation-name: fadeOut;
|
2776
|
+
animation-name: fadeOut;
|
2777
|
+
-webkit-animation-duration: 0.8s;
|
2778
|
+
animation-duration: 0.8s;
|
2779
|
+
-webkit-animation-timing-function: linear;
|
2780
|
+
animation-timing-function: linear;
|
2781
|
+
}
|
2782
|
+
@-webkit-keyframes fadeIn {
|
2783
|
+
0% {
|
2784
|
+
opacity: 0;
|
2785
|
+
}
|
2786
|
+
100% {
|
2787
|
+
opacity: 1;
|
2788
|
+
}
|
2789
|
+
}
|
2790
|
+
@keyframes fadeIn {
|
2791
|
+
0% {
|
2792
|
+
opacity: 0;
|
2793
|
+
}
|
2794
|
+
100% {
|
2795
|
+
opacity: 1;
|
2796
|
+
}
|
2797
|
+
}
|
2798
|
+
@-webkit-keyframes fadeOut {
|
2799
|
+
0% {
|
2800
|
+
opacity: 1;
|
2801
|
+
}
|
2802
|
+
100% {
|
2803
|
+
opacity: 0;
|
2804
|
+
}
|
2805
|
+
}
|
2806
|
+
@keyframes fadeOut {
|
2807
|
+
0% {
|
2808
|
+
opacity: 1;
|
2809
|
+
}
|
2810
|
+
100% {
|
2811
|
+
opacity: 0;
|
2812
|
+
}
|
2813
|
+
}
|
2814
|
+
[data-prefers-color='light'] .drag-container {
|
2815
|
+
position: fixed;
|
2816
|
+
width: 300px;
|
2817
|
+
height: 200px;
|
2818
|
+
display: flex;
|
2819
|
+
flex-direction: column;
|
2820
|
+
z-index: 999;
|
2821
|
+
min-width: 50px;
|
2822
|
+
min-height: 50px;
|
2823
|
+
}
|
2824
|
+
[data-prefers-color='light'] .drag-container .drag-title {
|
2825
|
+
display: flex;
|
2826
|
+
justify-content: space-between;
|
2827
|
+
width: 100%;
|
2828
|
+
}
|
2829
|
+
[data-prefers-color='light'] .drag-container .drag-title.move {
|
2830
|
+
cursor: move;
|
2831
|
+
z-index: 100;
|
2832
|
+
}
|
2833
|
+
[data-prefers-color='light'] .drag-container .drag-body {
|
2834
|
+
flex: 1;
|
2835
|
+
}
|
2836
|
+
[data-prefers-color='light'] .resizer {
|
2837
|
+
width: 10px;
|
2838
|
+
height: 100%;
|
2839
|
+
position: absolute;
|
2840
|
+
right: 0;
|
2841
|
+
top: 0;
|
2842
|
+
cursor: e-resize;
|
2843
|
+
z-index: 100;
|
2844
|
+
}
|
2845
|
+
[data-prefers-color='light'] .resizeb {
|
2846
|
+
width: 100%;
|
2847
|
+
height: 10px;
|
2848
|
+
position: absolute;
|
2849
|
+
left: 0;
|
2850
|
+
bottom: 0;
|
2851
|
+
cursor: n-resize;
|
2852
|
+
z-index: 100;
|
2853
|
+
}
|
2854
|
+
[data-prefers-color='light'] .resizerb {
|
2855
|
+
width: 20px;
|
2856
|
+
height: 20px;
|
2857
|
+
position: absolute;
|
2858
|
+
right: 0;
|
2859
|
+
bottom: 0;
|
2860
|
+
cursor: se-resize;
|
2861
|
+
z-index: 101;
|
2862
|
+
}
|
2651
2863
|
[data-prefers-color='light'] .ant-form-item-label > label {
|
2652
2864
|
font-size: 16px;
|
2653
2865
|
color: #4281a1;
|
package/dist/index.d.ts
CHANGED
@@ -22,10 +22,12 @@ export { default as Breadcrumb } from './components/Breadcrumb';
|
|
22
22
|
export { default as Card } from './components/Card';
|
23
23
|
export { default as Modal } from './components/Modal';
|
24
24
|
export { default as ModalTips } from './components/ModalTips';
|
25
|
+
export { default as DragBox } from './components/DragBox';
|
25
26
|
export { default as ModalForm } from './components/ModalForm';
|
26
27
|
export { default as TabelCard } from './components/TabelCard';
|
27
28
|
export { default as Cascader } from './components/Cascader';
|
28
29
|
export { default as WebsocketHeart } from './components/WebsocketHeart';
|
29
30
|
export { default as VideoPlayer } from './components/VideoPlayer';
|
30
31
|
export { default as Video } from './components/Video';
|
31
|
-
export { default as LineEcharts } from './components/LineEcharts';
|
32
|
+
export { default as LineEcharts } from './components/Wcharts/LineEcharts';
|
33
|
+
export { default as WaterLevelCharts } from './components/Wcharts/WaterLevelCharts';
|
package/dist/index.esm.css
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
/* Common Styles */
|
30
30
|
/* Bullets */
|
31
31
|
/* Progress */
|
32
|
+
/* Animation css */
|
32
33
|
}
|
33
34
|
[data-prefers-color='dark'] .__dumi-default-previewer {
|
34
35
|
background: linear-gradient(#1c274f 0%, #2f4262 100%);
|
@@ -1412,6 +1413,111 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1412
1413
|
[data-prefers-color='dark'] .ant-modal-confirm-btns {
|
1413
1414
|
display: flex;
|
1414
1415
|
}
|
1416
|
+
[data-prefers-color='dark'] [class*='animation-'] {
|
1417
|
+
-webkit-animation-duration: 0.5s;
|
1418
|
+
animation-duration: 0.5s;
|
1419
|
+
-webkit-animation-timing-function: ease-out;
|
1420
|
+
animation-timing-function: ease-out;
|
1421
|
+
-webkit-animation-fill-mode: both;
|
1422
|
+
animation-fill-mode: both;
|
1423
|
+
}
|
1424
|
+
[data-prefers-color='dark'] .animation-fade {
|
1425
|
+
-webkit-animation-name: fadeIn;
|
1426
|
+
animation-name: fadeIn;
|
1427
|
+
-webkit-animation-duration: 0.8s;
|
1428
|
+
animation-duration: 0.8s;
|
1429
|
+
-webkit-animation-timing-function: linear;
|
1430
|
+
animation-timing-function: linear;
|
1431
|
+
}
|
1432
|
+
[data-prefers-color='dark'] .animation-fade-out {
|
1433
|
+
-webkit-animation-name: fadeOut;
|
1434
|
+
animation-name: fadeOut;
|
1435
|
+
-webkit-animation-duration: 0.8s;
|
1436
|
+
animation-duration: 0.8s;
|
1437
|
+
-webkit-animation-timing-function: linear;
|
1438
|
+
animation-timing-function: linear;
|
1439
|
+
}
|
1440
|
+
@-webkit-keyframes fadeIn {
|
1441
|
+
0% {
|
1442
|
+
opacity: 0;
|
1443
|
+
}
|
1444
|
+
100% {
|
1445
|
+
opacity: 1;
|
1446
|
+
}
|
1447
|
+
}
|
1448
|
+
@keyframes fadeIn {
|
1449
|
+
0% {
|
1450
|
+
opacity: 0;
|
1451
|
+
}
|
1452
|
+
100% {
|
1453
|
+
opacity: 1;
|
1454
|
+
}
|
1455
|
+
}
|
1456
|
+
@-webkit-keyframes fadeOut {
|
1457
|
+
0% {
|
1458
|
+
opacity: 1;
|
1459
|
+
}
|
1460
|
+
100% {
|
1461
|
+
opacity: 0;
|
1462
|
+
}
|
1463
|
+
}
|
1464
|
+
@keyframes fadeOut {
|
1465
|
+
0% {
|
1466
|
+
opacity: 1;
|
1467
|
+
}
|
1468
|
+
100% {
|
1469
|
+
opacity: 0;
|
1470
|
+
}
|
1471
|
+
}
|
1472
|
+
[data-prefers-color='dark'] .drag-container {
|
1473
|
+
position: fixed;
|
1474
|
+
width: 300px;
|
1475
|
+
height: 200px;
|
1476
|
+
display: flex;
|
1477
|
+
flex-direction: column;
|
1478
|
+
z-index: 999;
|
1479
|
+
min-width: 50px;
|
1480
|
+
min-height: 50px;
|
1481
|
+
}
|
1482
|
+
[data-prefers-color='dark'] .drag-container .drag-title {
|
1483
|
+
display: flex;
|
1484
|
+
justify-content: space-between;
|
1485
|
+
width: 100%;
|
1486
|
+
}
|
1487
|
+
[data-prefers-color='dark'] .drag-container .drag-title.move {
|
1488
|
+
cursor: move;
|
1489
|
+
z-index: 100;
|
1490
|
+
}
|
1491
|
+
[data-prefers-color='dark'] .drag-container .drag-body {
|
1492
|
+
flex: 1;
|
1493
|
+
}
|
1494
|
+
[data-prefers-color='dark'] .resizer {
|
1495
|
+
width: 10px;
|
1496
|
+
height: 100%;
|
1497
|
+
position: absolute;
|
1498
|
+
right: 0;
|
1499
|
+
top: 0;
|
1500
|
+
cursor: e-resize;
|
1501
|
+
z-index: 100;
|
1502
|
+
}
|
1503
|
+
[data-prefers-color='dark'] .resizeb {
|
1504
|
+
width: 100%;
|
1505
|
+
height: 10px;
|
1506
|
+
position: absolute;
|
1507
|
+
left: 0;
|
1508
|
+
bottom: 0;
|
1509
|
+
cursor: n-resize;
|
1510
|
+
z-index: 100;
|
1511
|
+
}
|
1512
|
+
[data-prefers-color='dark'] .resizerb {
|
1513
|
+
width: 20px;
|
1514
|
+
height: 20px;
|
1515
|
+
position: absolute;
|
1516
|
+
right: 0;
|
1517
|
+
bottom: 0;
|
1518
|
+
cursor: se-resize;
|
1519
|
+
z-index: 101;
|
1520
|
+
}
|
1415
1521
|
[data-prefers-color='dark'] .empty {
|
1416
1522
|
background: #16191e;
|
1417
1523
|
width: 100%;
|
@@ -1522,6 +1628,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
|
|
1522
1628
|
/* Common Styles */
|
1523
1629
|
/* Bullets */
|
1524
1630
|
/* Progress */
|
1631
|
+
/* Animation css */
|
1525
1632
|
}
|
1526
1633
|
[data-prefers-color='light'] .ant-btn-dangerous.ant-btn-primary {
|
1527
1634
|
color: #d8655f;
|
@@ -2648,6 +2755,111 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
|
|
2648
2755
|
[data-prefers-color='light'] .ant-modal-confirm-btns {
|
2649
2756
|
display: flex;
|
2650
2757
|
}
|
2758
|
+
[data-prefers-color='light'] [class*='animation-'] {
|
2759
|
+
-webkit-animation-duration: 0.5s;
|
2760
|
+
animation-duration: 0.5s;
|
2761
|
+
-webkit-animation-timing-function: ease-out;
|
2762
|
+
animation-timing-function: ease-out;
|
2763
|
+
-webkit-animation-fill-mode: both;
|
2764
|
+
animation-fill-mode: both;
|
2765
|
+
}
|
2766
|
+
[data-prefers-color='light'] .animation-fade {
|
2767
|
+
-webkit-animation-name: fadeIn;
|
2768
|
+
animation-name: fadeIn;
|
2769
|
+
-webkit-animation-duration: 0.8s;
|
2770
|
+
animation-duration: 0.8s;
|
2771
|
+
-webkit-animation-timing-function: linear;
|
2772
|
+
animation-timing-function: linear;
|
2773
|
+
}
|
2774
|
+
[data-prefers-color='light'] .animation-fade-out {
|
2775
|
+
-webkit-animation-name: fadeOut;
|
2776
|
+
animation-name: fadeOut;
|
2777
|
+
-webkit-animation-duration: 0.8s;
|
2778
|
+
animation-duration: 0.8s;
|
2779
|
+
-webkit-animation-timing-function: linear;
|
2780
|
+
animation-timing-function: linear;
|
2781
|
+
}
|
2782
|
+
@-webkit-keyframes fadeIn {
|
2783
|
+
0% {
|
2784
|
+
opacity: 0;
|
2785
|
+
}
|
2786
|
+
100% {
|
2787
|
+
opacity: 1;
|
2788
|
+
}
|
2789
|
+
}
|
2790
|
+
@keyframes fadeIn {
|
2791
|
+
0% {
|
2792
|
+
opacity: 0;
|
2793
|
+
}
|
2794
|
+
100% {
|
2795
|
+
opacity: 1;
|
2796
|
+
}
|
2797
|
+
}
|
2798
|
+
@-webkit-keyframes fadeOut {
|
2799
|
+
0% {
|
2800
|
+
opacity: 1;
|
2801
|
+
}
|
2802
|
+
100% {
|
2803
|
+
opacity: 0;
|
2804
|
+
}
|
2805
|
+
}
|
2806
|
+
@keyframes fadeOut {
|
2807
|
+
0% {
|
2808
|
+
opacity: 1;
|
2809
|
+
}
|
2810
|
+
100% {
|
2811
|
+
opacity: 0;
|
2812
|
+
}
|
2813
|
+
}
|
2814
|
+
[data-prefers-color='light'] .drag-container {
|
2815
|
+
position: fixed;
|
2816
|
+
width: 300px;
|
2817
|
+
height: 200px;
|
2818
|
+
display: flex;
|
2819
|
+
flex-direction: column;
|
2820
|
+
z-index: 999;
|
2821
|
+
min-width: 50px;
|
2822
|
+
min-height: 50px;
|
2823
|
+
}
|
2824
|
+
[data-prefers-color='light'] .drag-container .drag-title {
|
2825
|
+
display: flex;
|
2826
|
+
justify-content: space-between;
|
2827
|
+
width: 100%;
|
2828
|
+
}
|
2829
|
+
[data-prefers-color='light'] .drag-container .drag-title.move {
|
2830
|
+
cursor: move;
|
2831
|
+
z-index: 100;
|
2832
|
+
}
|
2833
|
+
[data-prefers-color='light'] .drag-container .drag-body {
|
2834
|
+
flex: 1;
|
2835
|
+
}
|
2836
|
+
[data-prefers-color='light'] .resizer {
|
2837
|
+
width: 10px;
|
2838
|
+
height: 100%;
|
2839
|
+
position: absolute;
|
2840
|
+
right: 0;
|
2841
|
+
top: 0;
|
2842
|
+
cursor: e-resize;
|
2843
|
+
z-index: 100;
|
2844
|
+
}
|
2845
|
+
[data-prefers-color='light'] .resizeb {
|
2846
|
+
width: 100%;
|
2847
|
+
height: 10px;
|
2848
|
+
position: absolute;
|
2849
|
+
left: 0;
|
2850
|
+
bottom: 0;
|
2851
|
+
cursor: n-resize;
|
2852
|
+
z-index: 100;
|
2853
|
+
}
|
2854
|
+
[data-prefers-color='light'] .resizerb {
|
2855
|
+
width: 20px;
|
2856
|
+
height: 20px;
|
2857
|
+
position: absolute;
|
2858
|
+
right: 0;
|
2859
|
+
bottom: 0;
|
2860
|
+
cursor: se-resize;
|
2861
|
+
z-index: 101;
|
2862
|
+
}
|
2651
2863
|
[data-prefers-color='light'] .ant-form-item-label > label {
|
2652
2864
|
font-size: 16px;
|
2653
2865
|
color: #4281a1;
|