@cloudtower/eagle 0.22.11 → 0.22.12
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/BaseIcon/index.d.ts +4 -2
- package/dist/components/Icon/Icon.stories.d.ts +7 -24
- package/dist/components/Icon/index.d.ts +13 -12
- package/dist/components/index.d.ts +2 -1
- package/dist/esm/index.js +55 -4
- package/dist/esm/stats1.html +1 -1
- package/dist/spec/base.d.ts +5 -0
- package/dist/style.css +197 -197
- package/dist/umd/index.js +55 -4
- package/dist/umd/stats1.html +1 -1
- package/package.json +5 -4
- package/dist/stories/outline.stories.d.ts +0 -5
- /package/dist/stories/{fill.stories.d.ts → icons-react.stories.d.ts} +0 -0
package/dist/style.css
CHANGED
|
@@ -1597,23 +1597,6 @@ input[type=submit] {
|
|
|
1597
1597
|
cursor: pointer;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
.i1mrf09m {
|
|
1601
|
-
display: inline-flex;
|
|
1602
|
-
align-items: center;
|
|
1603
|
-
}
|
|
1604
|
-
.i1mrf09m .icon-inner {
|
|
1605
|
-
display: inline-flex;
|
|
1606
|
-
align-items: center;
|
|
1607
|
-
justify-content: center;
|
|
1608
|
-
}
|
|
1609
|
-
.i1mrf09m .icon-inner + span,
|
|
1610
|
-
.i1mrf09m span + .icon-inner.suffix {
|
|
1611
|
-
margin-left: 4px;
|
|
1612
|
-
}
|
|
1613
|
-
.i1mrf09m.is-rotate img {
|
|
1614
|
-
animation: rotate 680ms linear infinite;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
1600
|
.buj61ew.ant-btn {
|
|
1618
1601
|
height: 32px;
|
|
1619
1602
|
border-radius: 6px;
|
|
@@ -1862,21 +1845,6 @@ input[type=submit] {
|
|
|
1862
1845
|
padding: 0;
|
|
1863
1846
|
}
|
|
1864
1847
|
|
|
1865
|
-
.fde5mpd {
|
|
1866
|
-
width: 100%;
|
|
1867
|
-
height: 100%;
|
|
1868
|
-
min-height: 124px;
|
|
1869
|
-
display: flex;
|
|
1870
|
-
flex-direction: column;
|
|
1871
|
-
justify-content: center;
|
|
1872
|
-
align-items: center;
|
|
1873
|
-
}
|
|
1874
|
-
.fde5mpd .error-text {
|
|
1875
|
-
color: rgba(10, 37, 85, 0.6);
|
|
1876
|
-
margin-bottom: 16px;
|
|
1877
|
-
font-size: 18px;
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
1848
|
.bpq0js6 {
|
|
1881
1849
|
padding: 4px 11px;
|
|
1882
1850
|
}
|
|
@@ -1906,6 +1874,38 @@ input[type=submit] {
|
|
|
1906
1874
|
border-radius: unset;
|
|
1907
1875
|
}
|
|
1908
1876
|
|
|
1877
|
+
.fde5mpd {
|
|
1878
|
+
width: 100%;
|
|
1879
|
+
height: 100%;
|
|
1880
|
+
min-height: 124px;
|
|
1881
|
+
display: flex;
|
|
1882
|
+
flex-direction: column;
|
|
1883
|
+
justify-content: center;
|
|
1884
|
+
align-items: center;
|
|
1885
|
+
}
|
|
1886
|
+
.fde5mpd .error-text {
|
|
1887
|
+
color: rgba(10, 37, 85, 0.6);
|
|
1888
|
+
margin-bottom: 16px;
|
|
1889
|
+
font-size: 18px;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
.i1mrf09m {
|
|
1893
|
+
display: inline-flex;
|
|
1894
|
+
align-items: center;
|
|
1895
|
+
}
|
|
1896
|
+
.i1mrf09m .icon-inner {
|
|
1897
|
+
display: inline-flex;
|
|
1898
|
+
align-items: center;
|
|
1899
|
+
justify-content: center;
|
|
1900
|
+
}
|
|
1901
|
+
.i1mrf09m .icon-inner + span,
|
|
1902
|
+
.i1mrf09m span + .icon-inner.suffix {
|
|
1903
|
+
margin-left: 4px;
|
|
1904
|
+
}
|
|
1905
|
+
.i1mrf09m.is-rotate img {
|
|
1906
|
+
animation: rotate 680ms linear infinite;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
1909
|
.obf05yr {
|
|
1910
1910
|
display: inline-block;
|
|
1911
1911
|
}
|
|
@@ -1972,25 +1972,6 @@ input[type=submit] {
|
|
|
1972
1972
|
line-height: 18px;
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
|
-
.s1fc623g {
|
|
1976
|
-
width: 430px !important;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
.oa3mx0o {
|
|
1980
|
-
display: flex;
|
|
1981
|
-
flex-direction: column;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
.onr9gzt {
|
|
1985
|
-
display: flex;
|
|
1986
|
-
justify-content: space-between;
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
.oiy0apc {
|
|
1990
|
-
display: flex;
|
|
1991
|
-
color: rgba(44, 56, 82, 0.6);
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
1975
|
.rxbeqvl.ant-radio-wrapper {
|
|
1995
1976
|
display: inline-flex;
|
|
1996
1977
|
align-items: baseline;
|
|
@@ -2133,6 +2114,89 @@ input[type=submit] {
|
|
|
2133
2114
|
width: 36px;
|
|
2134
2115
|
}
|
|
2135
2116
|
|
|
2117
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal {
|
|
2118
|
+
flex-direction: row;
|
|
2119
|
+
justify-content: stretch;
|
|
2120
|
+
}
|
|
2121
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item {
|
|
2122
|
+
padding: 0;
|
|
2123
|
+
margin-right: 4px;
|
|
2124
|
+
flex: 1;
|
|
2125
|
+
overflow: visible;
|
|
2126
|
+
}
|
|
2127
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-tail, .s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-icon {
|
|
2128
|
+
display: none;
|
|
2129
|
+
}
|
|
2130
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content {
|
|
2131
|
+
width: 100%;
|
|
2132
|
+
min-height: unset;
|
|
2133
|
+
}
|
|
2134
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title {
|
|
2135
|
+
height: 26px;
|
|
2136
|
+
line-height: 26px;
|
|
2137
|
+
width: 100%;
|
|
2138
|
+
text-align: center;
|
|
2139
|
+
padding: 0;
|
|
2140
|
+
font-size: 12px;
|
|
2141
|
+
font-weight: normal;
|
|
2142
|
+
}
|
|
2143
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title .step-count {
|
|
2144
|
+
margin-right: 10px;
|
|
2145
|
+
}
|
|
2146
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title::after {
|
|
2147
|
+
display: none;
|
|
2148
|
+
}
|
|
2149
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child .ant-steps-item-container {
|
|
2150
|
+
border-radius: 4px 0 0 4px;
|
|
2151
|
+
}
|
|
2152
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child {
|
|
2153
|
+
margin-right: 0;
|
|
2154
|
+
}
|
|
2155
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child .ant-steps-item-container {
|
|
2156
|
+
border-radius: 0 4px 4px 0;
|
|
2157
|
+
}
|
|
2158
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:not(.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child)::after {
|
|
2159
|
+
content: "";
|
|
2160
|
+
width: 0;
|
|
2161
|
+
height: 0;
|
|
2162
|
+
border: 13px solid transparent;
|
|
2163
|
+
position: absolute;
|
|
2164
|
+
top: 0;
|
|
2165
|
+
border-left: 8px solid rgba(237, 241, 250, 0.6);
|
|
2166
|
+
right: -21px;
|
|
2167
|
+
z-index: 2;
|
|
2168
|
+
}
|
|
2169
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:not(.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child)::before {
|
|
2170
|
+
content: "";
|
|
2171
|
+
width: 0;
|
|
2172
|
+
height: 0;
|
|
2173
|
+
border: 13px solid transparent;
|
|
2174
|
+
position: absolute;
|
|
2175
|
+
top: 0;
|
|
2176
|
+
border-left: 8px solid #fff;
|
|
2177
|
+
left: 0;
|
|
2178
|
+
}
|
|
2179
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active .ant-steps-item-container {
|
|
2180
|
+
background-color: rgba(0, 136, 255, 0.1);
|
|
2181
|
+
}
|
|
2182
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active::after {
|
|
2183
|
+
border-left-color: rgba(0, 136, 255, 0.1) !important;
|
|
2184
|
+
}
|
|
2185
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active .ant-steps-item-title {
|
|
2186
|
+
color: #005ed1;
|
|
2187
|
+
}
|
|
2188
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-wait .ant-steps-item-container,
|
|
2189
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-finish .ant-steps-item-container {
|
|
2190
|
+
background-color: rgba(237, 241, 250, 0.6);
|
|
2191
|
+
}
|
|
2192
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-wait .ant-steps-item-title,
|
|
2193
|
+
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-finish .ant-steps-item-title {
|
|
2194
|
+
color: rgba(44, 56, 82, 0.6);
|
|
2195
|
+
}
|
|
2196
|
+
.s3mgie3 .ant-steps:not(.ant-steps-dot):not(.ant-steps-navigation):not(.ant-steps-vertical) .ant-steps-item {
|
|
2197
|
+
padding: 0;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2136
2200
|
.cz04yix {
|
|
2137
2201
|
display: flex;
|
|
2138
2202
|
flex-direction: column;
|
|
@@ -2798,144 +2862,6 @@ input.rrg1fkn.ant-input {
|
|
|
2798
2862
|
border-bottom-left-radius: 0;
|
|
2799
2863
|
}
|
|
2800
2864
|
|
|
2801
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal {
|
|
2802
|
-
flex-direction: row;
|
|
2803
|
-
justify-content: stretch;
|
|
2804
|
-
}
|
|
2805
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item {
|
|
2806
|
-
padding: 0;
|
|
2807
|
-
margin-right: 4px;
|
|
2808
|
-
flex: 1;
|
|
2809
|
-
overflow: visible;
|
|
2810
|
-
}
|
|
2811
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-tail, .s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-icon {
|
|
2812
|
-
display: none;
|
|
2813
|
-
}
|
|
2814
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content {
|
|
2815
|
-
width: 100%;
|
|
2816
|
-
min-height: unset;
|
|
2817
|
-
}
|
|
2818
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title {
|
|
2819
|
-
height: 26px;
|
|
2820
|
-
line-height: 26px;
|
|
2821
|
-
width: 100%;
|
|
2822
|
-
text-align: center;
|
|
2823
|
-
padding: 0;
|
|
2824
|
-
font-size: 12px;
|
|
2825
|
-
font-weight: normal;
|
|
2826
|
-
}
|
|
2827
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title .step-count {
|
|
2828
|
-
margin-right: 10px;
|
|
2829
|
-
}
|
|
2830
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item .ant-steps-item-content .ant-steps-item-title::after {
|
|
2831
|
-
display: none;
|
|
2832
|
-
}
|
|
2833
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child .ant-steps-item-container {
|
|
2834
|
-
border-radius: 4px 0 0 4px;
|
|
2835
|
-
}
|
|
2836
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child {
|
|
2837
|
-
margin-right: 0;
|
|
2838
|
-
}
|
|
2839
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child .ant-steps-item-container {
|
|
2840
|
-
border-radius: 0 4px 4px 0;
|
|
2841
|
-
}
|
|
2842
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:not(.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:last-child)::after {
|
|
2843
|
-
content: "";
|
|
2844
|
-
width: 0;
|
|
2845
|
-
height: 0;
|
|
2846
|
-
border: 13px solid transparent;
|
|
2847
|
-
position: absolute;
|
|
2848
|
-
top: 0;
|
|
2849
|
-
border-left: 8px solid rgba(237, 241, 250, 0.6);
|
|
2850
|
-
right: -21px;
|
|
2851
|
-
z-index: 2;
|
|
2852
|
-
}
|
|
2853
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:not(.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item:first-child)::before {
|
|
2854
|
-
content: "";
|
|
2855
|
-
width: 0;
|
|
2856
|
-
height: 0;
|
|
2857
|
-
border: 13px solid transparent;
|
|
2858
|
-
position: absolute;
|
|
2859
|
-
top: 0;
|
|
2860
|
-
border-left: 8px solid #fff;
|
|
2861
|
-
left: 0;
|
|
2862
|
-
}
|
|
2863
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active .ant-steps-item-container {
|
|
2864
|
-
background-color: rgba(0, 136, 255, 0.1);
|
|
2865
|
-
}
|
|
2866
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active::after {
|
|
2867
|
-
border-left-color: rgba(0, 136, 255, 0.1) !important;
|
|
2868
|
-
}
|
|
2869
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-active .ant-steps-item-title {
|
|
2870
|
-
color: #005ed1;
|
|
2871
|
-
}
|
|
2872
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-wait .ant-steps-item-container,
|
|
2873
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-finish .ant-steps-item-container {
|
|
2874
|
-
background-color: rgba(237, 241, 250, 0.6);
|
|
2875
|
-
}
|
|
2876
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-wait .ant-steps-item-title,
|
|
2877
|
-
.s3mgie3 .ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-finish .ant-steps-item-title {
|
|
2878
|
-
color: rgba(44, 56, 82, 0.6);
|
|
2879
|
-
}
|
|
2880
|
-
.s3mgie3 .ant-steps:not(.ant-steps-dot):not(.ant-steps-navigation):not(.ant-steps-vertical) .ant-steps-item {
|
|
2881
|
-
padding: 0;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
.s34f1qb.ant-switch {
|
|
2885
|
-
min-width: 40px;
|
|
2886
|
-
height: 24px;
|
|
2887
|
-
background: rgba(172, 186, 211, 0.6);
|
|
2888
|
-
overflow: hidden;
|
|
2889
|
-
}
|
|
2890
|
-
.s34f1qb.ant-switch:focus {
|
|
2891
|
-
box-shadow: 0 0 0 2px rgba(225, 230, 241, 0.6);
|
|
2892
|
-
}
|
|
2893
|
-
.s34f1qb.ant-switch-small {
|
|
2894
|
-
min-width: 26px;
|
|
2895
|
-
height: 16px;
|
|
2896
|
-
}
|
|
2897
|
-
.s34f1qb.ant-switch-large {
|
|
2898
|
-
min-width: 52px;
|
|
2899
|
-
height: 32px;
|
|
2900
|
-
}
|
|
2901
|
-
.s34f1qb.ant-switch .ant-switch-handle {
|
|
2902
|
-
height: 20px;
|
|
2903
|
-
width: 20px;
|
|
2904
|
-
}
|
|
2905
|
-
.s34f1qb.ant-switch .ant-switch-handle::before {
|
|
2906
|
-
border-radius: 10px;
|
|
2907
|
-
transition-delay: 120ms;
|
|
2908
|
-
}
|
|
2909
|
-
.s34f1qb.ant-switch-small .ant-switch-handle {
|
|
2910
|
-
height: 14px;
|
|
2911
|
-
width: 14px;
|
|
2912
|
-
top: 1px;
|
|
2913
|
-
left: 1px;
|
|
2914
|
-
}
|
|
2915
|
-
.s34f1qb.ant-switch-large .ant-switch-handle {
|
|
2916
|
-
height: 28px;
|
|
2917
|
-
width: 28px;
|
|
2918
|
-
}
|
|
2919
|
-
.s34f1qb.ant-switch-large .ant-switch-handle::before {
|
|
2920
|
-
border-radius: 14px;
|
|
2921
|
-
}
|
|
2922
|
-
.s34f1qb.ant-switch-checked {
|
|
2923
|
-
background-color: #00ba5d;
|
|
2924
|
-
}
|
|
2925
|
-
.s34f1qb.ant-switch-checked .ant-switch-handle {
|
|
2926
|
-
left: calc(100% - 20px - 2px);
|
|
2927
|
-
}
|
|
2928
|
-
.s34f1qb.ant-switch-small.ant-switch-checked .ant-switch-handle {
|
|
2929
|
-
left: calc(100% - 14px - 1px);
|
|
2930
|
-
}
|
|
2931
|
-
.s34f1qb.ant-switch-large.ant-switch-checked .ant-switch-handle {
|
|
2932
|
-
left: calc(100% - 28px - 2px);
|
|
2933
|
-
}
|
|
2934
|
-
|
|
2935
|
-
.c1to9vb9 {
|
|
2936
|
-
margin-left: 5px;
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
2865
|
.t1upn1sz {
|
|
2940
2866
|
height: 100%;
|
|
2941
2867
|
}
|
|
@@ -3292,6 +3218,80 @@ input.rrg1fkn.ant-input {
|
|
|
3292
3218
|
background: #fff;
|
|
3293
3219
|
}
|
|
3294
3220
|
|
|
3221
|
+
.s1fc623g {
|
|
3222
|
+
width: 430px !important;
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
.oa3mx0o {
|
|
3226
|
+
display: flex;
|
|
3227
|
+
flex-direction: column;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
.onr9gzt {
|
|
3231
|
+
display: flex;
|
|
3232
|
+
justify-content: space-between;
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
.oiy0apc {
|
|
3236
|
+
display: flex;
|
|
3237
|
+
color: rgba(44, 56, 82, 0.6);
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
.s34f1qb.ant-switch {
|
|
3241
|
+
min-width: 40px;
|
|
3242
|
+
height: 24px;
|
|
3243
|
+
background: rgba(172, 186, 211, 0.6);
|
|
3244
|
+
overflow: hidden;
|
|
3245
|
+
}
|
|
3246
|
+
.s34f1qb.ant-switch:focus {
|
|
3247
|
+
box-shadow: 0 0 0 2px rgba(225, 230, 241, 0.6);
|
|
3248
|
+
}
|
|
3249
|
+
.s34f1qb.ant-switch-small {
|
|
3250
|
+
min-width: 26px;
|
|
3251
|
+
height: 16px;
|
|
3252
|
+
}
|
|
3253
|
+
.s34f1qb.ant-switch-large {
|
|
3254
|
+
min-width: 52px;
|
|
3255
|
+
height: 32px;
|
|
3256
|
+
}
|
|
3257
|
+
.s34f1qb.ant-switch .ant-switch-handle {
|
|
3258
|
+
height: 20px;
|
|
3259
|
+
width: 20px;
|
|
3260
|
+
}
|
|
3261
|
+
.s34f1qb.ant-switch .ant-switch-handle::before {
|
|
3262
|
+
border-radius: 10px;
|
|
3263
|
+
transition-delay: 120ms;
|
|
3264
|
+
}
|
|
3265
|
+
.s34f1qb.ant-switch-small .ant-switch-handle {
|
|
3266
|
+
height: 14px;
|
|
3267
|
+
width: 14px;
|
|
3268
|
+
top: 1px;
|
|
3269
|
+
left: 1px;
|
|
3270
|
+
}
|
|
3271
|
+
.s34f1qb.ant-switch-large .ant-switch-handle {
|
|
3272
|
+
height: 28px;
|
|
3273
|
+
width: 28px;
|
|
3274
|
+
}
|
|
3275
|
+
.s34f1qb.ant-switch-large .ant-switch-handle::before {
|
|
3276
|
+
border-radius: 14px;
|
|
3277
|
+
}
|
|
3278
|
+
.s34f1qb.ant-switch-checked {
|
|
3279
|
+
background-color: #00ba5d;
|
|
3280
|
+
}
|
|
3281
|
+
.s34f1qb.ant-switch-checked .ant-switch-handle {
|
|
3282
|
+
left: calc(100% - 20px - 2px);
|
|
3283
|
+
}
|
|
3284
|
+
.s34f1qb.ant-switch-small.ant-switch-checked .ant-switch-handle {
|
|
3285
|
+
left: calc(100% - 14px - 1px);
|
|
3286
|
+
}
|
|
3287
|
+
.s34f1qb.ant-switch-large.ant-switch-checked .ant-switch-handle {
|
|
3288
|
+
left: calc(100% - 28px - 2px);
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
.c1to9vb9 {
|
|
3292
|
+
margin-left: 5px;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
3295
|
.i1e4sgug {
|
|
3296
3296
|
display: inline-block;
|
|
3297
3297
|
}
|
|
@@ -3907,6 +3907,10 @@ input.rrg1fkn.ant-input {
|
|
|
3907
3907
|
color: rgba(44, 56, 82, 0.6);
|
|
3908
3908
|
}
|
|
3909
3909
|
|
|
3910
|
+
.iiqau4c.ant-input-group.ant-input-group-compact {
|
|
3911
|
+
display: flex;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3910
3914
|
.m1thnes4 {
|
|
3911
3915
|
color: rgba(44, 56, 82, 0.6);
|
|
3912
3916
|
text-align: center;
|
|
@@ -4068,14 +4072,6 @@ input.rrg1fkn.ant-input {
|
|
|
4068
4072
|
margin-left: 8px;
|
|
4069
4073
|
}
|
|
4070
4074
|
|
|
4071
|
-
.iiqau4c.ant-input-group.ant-input-group-compact {
|
|
4072
|
-
display: flex;
|
|
4073
|
-
}
|
|
4074
|
-
|
|
4075
|
-
.asgcu6r {
|
|
4076
|
-
height: 32px;
|
|
4077
|
-
}
|
|
4078
|
-
|
|
4079
4075
|
.t1gz6wqf {
|
|
4080
4076
|
height: 100%;
|
|
4081
4077
|
}
|
|
@@ -4106,6 +4102,10 @@ input.rrg1fkn.ant-input {
|
|
|
4106
4102
|
background: rgba(163, 180, 204, 0.18);
|
|
4107
4103
|
}
|
|
4108
4104
|
|
|
4105
|
+
.asgcu6r {
|
|
4106
|
+
height: 32px;
|
|
4107
|
+
}
|
|
4108
|
+
|
|
4109
4109
|
.d1h5z4k4.ant-dropdown {
|
|
4110
4110
|
background: #fff;
|
|
4111
4111
|
border: 1px solid #dfe4eb;
|
package/dist/umd/index.js
CHANGED
|
@@ -4,10 +4,36 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.antd, global.cs, global.React, global._, global.moment, global.reactDom, global.reactIs, global.react, global.icons, global.parrot, global.redux, global.reactRedux, global.core, null, global.TimeZones, global.reactI18next, global.dayjs));
|
|
5
5
|
})(this, (function (exports, antd, cs, React, _, moment, reactDom, reactIs, react, icons, parrot, redux, reactRedux, core, getScrollBarSize, TimeZones, reactI18next, dayjs) { 'use strict';
|
|
6
6
|
|
|
7
|
+
const MAGIC_METRIC_NULL = -2;
|
|
7
8
|
const SECOND = 1;
|
|
8
9
|
const MINUTE = 60 * SECOND;
|
|
9
10
|
const HOUR = 60 * MINUTE;
|
|
10
11
|
const DAY = 24 * HOUR;
|
|
12
|
+
function formatPercent(input, decimals = 2) {
|
|
13
|
+
if (input <= 0 || input === MAGIC_METRIC_NULL) {
|
|
14
|
+
input = 0;
|
|
15
|
+
}
|
|
16
|
+
if (input > 100) {
|
|
17
|
+
input = 100;
|
|
18
|
+
}
|
|
19
|
+
const value = parseFloat(input.toFixed(decimals));
|
|
20
|
+
if (value === 0 && input > 0) {
|
|
21
|
+
if (decimals - 1 >= 0) {
|
|
22
|
+
return {
|
|
23
|
+
value: parseFloat(`0.${"0".repeat(decimals - 1)}1`),
|
|
24
|
+
unit: "%"
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
value: 1,
|
|
29
|
+
unit: "%"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
value,
|
|
34
|
+
unit: "%"
|
|
35
|
+
};
|
|
36
|
+
}
|
|
11
37
|
|
|
12
38
|
const EMPTY_FUNCTION = () => {
|
|
13
39
|
};
|
|
@@ -101,8 +127,8 @@
|
|
|
101
127
|
style,
|
|
102
128
|
children,
|
|
103
129
|
prefixNode,
|
|
104
|
-
suffixIconSrc,
|
|
105
|
-
src
|
|
130
|
+
suffixIconSrc: SuffixSrc,
|
|
131
|
+
src: Src
|
|
106
132
|
} = _a, HTMLSpanElementProps = __objRest$o(_a, [
|
|
107
133
|
"alt",
|
|
108
134
|
"className",
|
|
@@ -123,9 +149,9 @@
|
|
|
123
149
|
style: _.pickBy(__spreadValues$s({ cursor }, style))
|
|
124
150
|
}, HTMLSpanElementProps),
|
|
125
151
|
prefixNode,
|
|
126
|
-
/* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, /* @__PURE__ */ React.createElement("img", { alt, src, width, height })),
|
|
152
|
+
/* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React.createElement(Src, { width, height })),
|
|
127
153
|
children && /* @__PURE__ */ React.createElement("span", { className: "icon-children" }, children),
|
|
128
|
-
|
|
154
|
+
SuffixSrc && /* @__PURE__ */ React.createElement("span", { className: "icon-inner suffix" }, typeof SuffixSrc === "string" ? /* @__PURE__ */ React.createElement("img", { alt, src: SuffixSrc, width, height }) : /* @__PURE__ */ React.createElement(SuffixSrc, { width, height }))
|
|
129
155
|
);
|
|
130
156
|
}
|
|
131
157
|
);
|
|
@@ -2248,6 +2274,28 @@
|
|
|
2248
2274
|
}))));
|
|
2249
2275
|
};
|
|
2250
2276
|
|
|
2277
|
+
function isEmpty(rawValue) {
|
|
2278
|
+
if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue)) {
|
|
2279
|
+
return true;
|
|
2280
|
+
}
|
|
2281
|
+
return false;
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
const Empty = /* @__PURE__ */ React.createElement(React.Fragment, null, "-");
|
|
2285
|
+
|
|
2286
|
+
const Percent = ({
|
|
2287
|
+
rawValue,
|
|
2288
|
+
decimals,
|
|
2289
|
+
valueClassName,
|
|
2290
|
+
unitClassName
|
|
2291
|
+
}) => {
|
|
2292
|
+
if (isEmpty(rawValue)) {
|
|
2293
|
+
return Empty;
|
|
2294
|
+
}
|
|
2295
|
+
const { value, unit } = formatPercent(rawValue, decimals);
|
|
2296
|
+
return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2251
2299
|
var __defProp$5 = Object.defineProperty;
|
|
2252
2300
|
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
2253
2301
|
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
@@ -2870,6 +2918,9 @@
|
|
|
2870
2918
|
textArea: TextArea,
|
|
2871
2919
|
checkbox: Checkbox,
|
|
2872
2920
|
fields,
|
|
2921
|
+
units: {
|
|
2922
|
+
Percent
|
|
2923
|
+
},
|
|
2873
2924
|
inputGroup: InputGroup,
|
|
2874
2925
|
alert: Alert,
|
|
2875
2926
|
searchInput: SearchInput,
|