wargerm 0.4.31 → 0.4.34

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.
@@ -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): JSX.Element;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare type IConfig = {
3
+ maxHeight?: number;
4
+ markline: number[];
5
+ imgWidth?: number;
6
+ imgHeight?: number;
7
+ };
8
+ export default function WaterLevelCharts(config: IConfig): JSX.Element;
9
+ export {};
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,110 @@ 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
+ }
1490
+ [data-prefers-color='dark'] .drag-container .drag-body {
1491
+ flex: 1;
1492
+ }
1493
+ [data-prefers-color='dark'] .resizer {
1494
+ width: 10px;
1495
+ height: 100%;
1496
+ position: absolute;
1497
+ right: 0;
1498
+ top: 0;
1499
+ cursor: e-resize;
1500
+ z-index: 100;
1501
+ }
1502
+ [data-prefers-color='dark'] .resizeb {
1503
+ width: 100%;
1504
+ height: 10px;
1505
+ position: absolute;
1506
+ left: 0;
1507
+ bottom: 0;
1508
+ cursor: n-resize;
1509
+ z-index: 100;
1510
+ }
1511
+ [data-prefers-color='dark'] .resizerb {
1512
+ width: 20px;
1513
+ height: 20px;
1514
+ position: absolute;
1515
+ right: 0;
1516
+ bottom: 0;
1517
+ cursor: se-resize;
1518
+ z-index: 101;
1519
+ }
1415
1520
  [data-prefers-color='dark'] .empty {
1416
1521
  background: #16191e;
1417
1522
  width: 100%;
@@ -1522,6 +1627,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
1522
1627
  /* Common Styles */
1523
1628
  /* Bullets */
1524
1629
  /* Progress */
1630
+ /* Animation css */
1525
1631
  }
1526
1632
  [data-prefers-color='light'] .ant-btn-dangerous.ant-btn-primary {
1527
1633
  color: #d8655f;
@@ -2648,6 +2754,110 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
2648
2754
  [data-prefers-color='light'] .ant-modal-confirm-btns {
2649
2755
  display: flex;
2650
2756
  }
2757
+ [data-prefers-color='light'] [class*='animation-'] {
2758
+ -webkit-animation-duration: 0.5s;
2759
+ animation-duration: 0.5s;
2760
+ -webkit-animation-timing-function: ease-out;
2761
+ animation-timing-function: ease-out;
2762
+ -webkit-animation-fill-mode: both;
2763
+ animation-fill-mode: both;
2764
+ }
2765
+ [data-prefers-color='light'] .animation-fade {
2766
+ -webkit-animation-name: fadeIn;
2767
+ animation-name: fadeIn;
2768
+ -webkit-animation-duration: 0.8s;
2769
+ animation-duration: 0.8s;
2770
+ -webkit-animation-timing-function: linear;
2771
+ animation-timing-function: linear;
2772
+ }
2773
+ [data-prefers-color='light'] .animation-fade-out {
2774
+ -webkit-animation-name: fadeOut;
2775
+ animation-name: fadeOut;
2776
+ -webkit-animation-duration: 0.8s;
2777
+ animation-duration: 0.8s;
2778
+ -webkit-animation-timing-function: linear;
2779
+ animation-timing-function: linear;
2780
+ }
2781
+ @-webkit-keyframes fadeIn {
2782
+ 0% {
2783
+ opacity: 0;
2784
+ }
2785
+ 100% {
2786
+ opacity: 1;
2787
+ }
2788
+ }
2789
+ @keyframes fadeIn {
2790
+ 0% {
2791
+ opacity: 0;
2792
+ }
2793
+ 100% {
2794
+ opacity: 1;
2795
+ }
2796
+ }
2797
+ @-webkit-keyframes fadeOut {
2798
+ 0% {
2799
+ opacity: 1;
2800
+ }
2801
+ 100% {
2802
+ opacity: 0;
2803
+ }
2804
+ }
2805
+ @keyframes fadeOut {
2806
+ 0% {
2807
+ opacity: 1;
2808
+ }
2809
+ 100% {
2810
+ opacity: 0;
2811
+ }
2812
+ }
2813
+ [data-prefers-color='light'] .drag-container {
2814
+ position: fixed;
2815
+ width: 300px;
2816
+ height: 200px;
2817
+ display: flex;
2818
+ flex-direction: column;
2819
+ z-index: 999;
2820
+ min-width: 50px;
2821
+ min-height: 50px;
2822
+ }
2823
+ [data-prefers-color='light'] .drag-container .drag-title {
2824
+ display: flex;
2825
+ justify-content: space-between;
2826
+ width: 100%;
2827
+ }
2828
+ [data-prefers-color='light'] .drag-container .drag-title.move {
2829
+ cursor: move;
2830
+ }
2831
+ [data-prefers-color='light'] .drag-container .drag-body {
2832
+ flex: 1;
2833
+ }
2834
+ [data-prefers-color='light'] .resizer {
2835
+ width: 10px;
2836
+ height: 100%;
2837
+ position: absolute;
2838
+ right: 0;
2839
+ top: 0;
2840
+ cursor: e-resize;
2841
+ z-index: 100;
2842
+ }
2843
+ [data-prefers-color='light'] .resizeb {
2844
+ width: 100%;
2845
+ height: 10px;
2846
+ position: absolute;
2847
+ left: 0;
2848
+ bottom: 0;
2849
+ cursor: n-resize;
2850
+ z-index: 100;
2851
+ }
2852
+ [data-prefers-color='light'] .resizerb {
2853
+ width: 20px;
2854
+ height: 20px;
2855
+ position: absolute;
2856
+ right: 0;
2857
+ bottom: 0;
2858
+ cursor: se-resize;
2859
+ z-index: 101;
2860
+ }
2651
2861
  [data-prefers-color='light'] .ant-form-item-label > label {
2652
2862
  font-size: 16px;
2653
2863
  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';
@@ -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,110 @@ 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
+ }
1490
+ [data-prefers-color='dark'] .drag-container .drag-body {
1491
+ flex: 1;
1492
+ }
1493
+ [data-prefers-color='dark'] .resizer {
1494
+ width: 10px;
1495
+ height: 100%;
1496
+ position: absolute;
1497
+ right: 0;
1498
+ top: 0;
1499
+ cursor: e-resize;
1500
+ z-index: 100;
1501
+ }
1502
+ [data-prefers-color='dark'] .resizeb {
1503
+ width: 100%;
1504
+ height: 10px;
1505
+ position: absolute;
1506
+ left: 0;
1507
+ bottom: 0;
1508
+ cursor: n-resize;
1509
+ z-index: 100;
1510
+ }
1511
+ [data-prefers-color='dark'] .resizerb {
1512
+ width: 20px;
1513
+ height: 20px;
1514
+ position: absolute;
1515
+ right: 0;
1516
+ bottom: 0;
1517
+ cursor: se-resize;
1518
+ z-index: 101;
1519
+ }
1415
1520
  [data-prefers-color='dark'] .empty {
1416
1521
  background: #16191e;
1417
1522
  width: 100%;
@@ -1522,6 +1627,7 @@ button[data-prefers-color='dark'] .swiper-pagination-bullet {
1522
1627
  /* Common Styles */
1523
1628
  /* Bullets */
1524
1629
  /* Progress */
1630
+ /* Animation css */
1525
1631
  }
1526
1632
  [data-prefers-color='light'] .ant-btn-dangerous.ant-btn-primary {
1527
1633
  color: #d8655f;
@@ -2648,6 +2754,110 @@ button[data-prefers-color='light'] .swiper-pagination-bullet {
2648
2754
  [data-prefers-color='light'] .ant-modal-confirm-btns {
2649
2755
  display: flex;
2650
2756
  }
2757
+ [data-prefers-color='light'] [class*='animation-'] {
2758
+ -webkit-animation-duration: 0.5s;
2759
+ animation-duration: 0.5s;
2760
+ -webkit-animation-timing-function: ease-out;
2761
+ animation-timing-function: ease-out;
2762
+ -webkit-animation-fill-mode: both;
2763
+ animation-fill-mode: both;
2764
+ }
2765
+ [data-prefers-color='light'] .animation-fade {
2766
+ -webkit-animation-name: fadeIn;
2767
+ animation-name: fadeIn;
2768
+ -webkit-animation-duration: 0.8s;
2769
+ animation-duration: 0.8s;
2770
+ -webkit-animation-timing-function: linear;
2771
+ animation-timing-function: linear;
2772
+ }
2773
+ [data-prefers-color='light'] .animation-fade-out {
2774
+ -webkit-animation-name: fadeOut;
2775
+ animation-name: fadeOut;
2776
+ -webkit-animation-duration: 0.8s;
2777
+ animation-duration: 0.8s;
2778
+ -webkit-animation-timing-function: linear;
2779
+ animation-timing-function: linear;
2780
+ }
2781
+ @-webkit-keyframes fadeIn {
2782
+ 0% {
2783
+ opacity: 0;
2784
+ }
2785
+ 100% {
2786
+ opacity: 1;
2787
+ }
2788
+ }
2789
+ @keyframes fadeIn {
2790
+ 0% {
2791
+ opacity: 0;
2792
+ }
2793
+ 100% {
2794
+ opacity: 1;
2795
+ }
2796
+ }
2797
+ @-webkit-keyframes fadeOut {
2798
+ 0% {
2799
+ opacity: 1;
2800
+ }
2801
+ 100% {
2802
+ opacity: 0;
2803
+ }
2804
+ }
2805
+ @keyframes fadeOut {
2806
+ 0% {
2807
+ opacity: 1;
2808
+ }
2809
+ 100% {
2810
+ opacity: 0;
2811
+ }
2812
+ }
2813
+ [data-prefers-color='light'] .drag-container {
2814
+ position: fixed;
2815
+ width: 300px;
2816
+ height: 200px;
2817
+ display: flex;
2818
+ flex-direction: column;
2819
+ z-index: 999;
2820
+ min-width: 50px;
2821
+ min-height: 50px;
2822
+ }
2823
+ [data-prefers-color='light'] .drag-container .drag-title {
2824
+ display: flex;
2825
+ justify-content: space-between;
2826
+ width: 100%;
2827
+ }
2828
+ [data-prefers-color='light'] .drag-container .drag-title.move {
2829
+ cursor: move;
2830
+ }
2831
+ [data-prefers-color='light'] .drag-container .drag-body {
2832
+ flex: 1;
2833
+ }
2834
+ [data-prefers-color='light'] .resizer {
2835
+ width: 10px;
2836
+ height: 100%;
2837
+ position: absolute;
2838
+ right: 0;
2839
+ top: 0;
2840
+ cursor: e-resize;
2841
+ z-index: 100;
2842
+ }
2843
+ [data-prefers-color='light'] .resizeb {
2844
+ width: 100%;
2845
+ height: 10px;
2846
+ position: absolute;
2847
+ left: 0;
2848
+ bottom: 0;
2849
+ cursor: n-resize;
2850
+ z-index: 100;
2851
+ }
2852
+ [data-prefers-color='light'] .resizerb {
2853
+ width: 20px;
2854
+ height: 20px;
2855
+ position: absolute;
2856
+ right: 0;
2857
+ bottom: 0;
2858
+ cursor: se-resize;
2859
+ z-index: 101;
2860
+ }
2651
2861
  [data-prefers-color='light'] .ant-form-item-label > label {
2652
2862
  font-size: 16px;
2653
2863
  color: #4281a1;