@majoo-ui/react 1.53.1 → 1.54.0
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/components/index.d.ts +1 -0
- package/components/loadingBar/LoadingBar.d.ts +7 -9
- package/components/skeleton/Skeleton.d.ts +3 -0
- package/components/skeleton/index.d.ts +1 -0
- package/index.esm.css +56 -0
- package/index.esm.js +665 -107
- package/index.umd.css +56 -0
- package/index.umd.js +667 -107
- package/package.json +4 -3
package/components/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface LoadingBarProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* To set the completion percentage.
|
|
6
6
|
*/
|
|
7
|
-
progress
|
|
7
|
+
progress?: number;
|
|
8
8
|
/**
|
|
9
9
|
* Additional description under progress.
|
|
10
10
|
*/
|
|
@@ -18,25 +18,23 @@ interface LoadingBarProps {
|
|
|
18
18
|
*/
|
|
19
19
|
showProgressOnly?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* To
|
|
22
|
-
*/
|
|
23
|
-
isAuto?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* To show and hide percentage when condition `isAuto`.
|
|
21
|
+
* To show and hide percentage when condition auto.
|
|
26
22
|
*/
|
|
27
23
|
show?: boolean;
|
|
28
24
|
/**
|
|
29
|
-
* Event callback when percentage is 100
|
|
25
|
+
* Event callback when percentage is 100%.
|
|
30
26
|
*/
|
|
31
27
|
onCompleted?: React.ChangeEventHandler;
|
|
28
|
+
/**
|
|
29
|
+
* Change Indicator colors.
|
|
30
|
+
*/
|
|
31
|
+
colors?: string[];
|
|
32
32
|
}
|
|
33
33
|
declare function LoadingBar(props: LoadingBarProps): JSX.Element;
|
|
34
34
|
declare namespace LoadingBar {
|
|
35
35
|
var defaultProps: {
|
|
36
36
|
showProgressOnly: boolean;
|
|
37
|
-
isAuto: boolean;
|
|
38
37
|
show: boolean;
|
|
39
|
-
progress: number;
|
|
40
38
|
description: string;
|
|
41
39
|
};
|
|
42
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Skeleton } from './Skeleton';
|
package/index.esm.css
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
@-webkit-keyframes react-loading-skeleton {
|
|
2
|
+
100% {
|
|
3
|
+
transform: translateX(100%);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@keyframes react-loading-skeleton {
|
|
8
|
+
100% {
|
|
9
|
+
transform: translateX(100%);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.react-loading-skeleton {
|
|
14
|
+
--base-color: #ebebeb;
|
|
15
|
+
--highlight-color: #f5f5f5;
|
|
16
|
+
--animation-duration: 1.5s;
|
|
17
|
+
--animation-direction: normal;
|
|
18
|
+
--pseudo-element-display: block; /* Enable animation */
|
|
19
|
+
|
|
20
|
+
background-color: var(--base-color);
|
|
21
|
+
|
|
22
|
+
width: 100%;
|
|
23
|
+
border-radius: 0.25rem;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
|
|
27
|
+
position: relative;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
z-index: 1; /* Necessary for overflow: hidden to work correctly in Safari */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.react-loading-skeleton::after {
|
|
33
|
+
content: ' ';
|
|
34
|
+
display: var(--pseudo-element-display);
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background-repeat: no-repeat;
|
|
41
|
+
background-image: linear-gradient(90deg, var(--base-color), var(--highlight-color), var(--base-color));
|
|
42
|
+
transform: translateX(-100%);
|
|
43
|
+
|
|
44
|
+
-webkit-animation-name: react-loading-skeleton;
|
|
45
|
+
|
|
46
|
+
animation-name: react-loading-skeleton;
|
|
47
|
+
-webkit-animation-direction: var(--animation-direction);
|
|
48
|
+
animation-direction: var(--animation-direction);
|
|
49
|
+
-webkit-animation-duration: var(--animation-duration);
|
|
50
|
+
animation-duration: var(--animation-duration);
|
|
51
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
52
|
+
animation-timing-function: ease-in-out;
|
|
53
|
+
-webkit-animation-iteration-count: infinite;
|
|
54
|
+
animation-iteration-count: infinite;
|
|
55
|
+
}
|
|
56
|
+
|
|
1
57
|
.ReactCrop {
|
|
2
58
|
position: relative;
|
|
3
59
|
display: inline-block;
|