@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.
@@ -46,3 +46,4 @@ export * from './chart';
46
46
  export * from './checkboxTable';
47
47
  export * from './contentEditor';
48
48
  export * from './contextMenu';
49
+ export * from './skeleton';
@@ -4,7 +4,7 @@ interface LoadingBarProps {
4
4
  /**
5
5
  * To set the completion percentage.
6
6
  */
7
- progress: number;
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 make the loading bar automatically display the static percentage.
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% and condition `isAuto`.
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,3 @@
1
+ /// <reference types="react" />
2
+ import './styles.css';
3
+ export default function Skeleton(): JSX.Element;
@@ -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;