@hanzo/ui 4.3.1 → 4.3.3
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/package.json
CHANGED
package/primitives/skeleton.tsx
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { cn } from '../util'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const Skeleton: React.FC<{
|
|
4
|
+
reverse?: boolean
|
|
5
|
+
} & React.HTMLAttributes<HTMLDivElement>> = ({
|
|
6
|
+
reverse=false,
|
|
4
7
|
className,
|
|
5
8
|
...props
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
9
|
+
}) => (
|
|
10
|
+
<div
|
|
11
|
+
className={cn(
|
|
12
|
+
'rounded-md bg-level-2',
|
|
13
|
+
reverse ? 'animate-pulsereverse' : 'animate-pulse',
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
{...props}
|
|
17
|
+
/>
|
|
18
|
+
)
|
|
14
19
|
|
|
15
20
|
export default Skeleton
|
|
@@ -31,8 +31,8 @@ export default {
|
|
|
31
31
|
none: 'none',
|
|
32
32
|
spin: 'spin 1s linear infinite',
|
|
33
33
|
ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
|
|
34
|
-
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1)
|
|
35
|
-
|
|
34
|
+
pulse: 'pulse 2s linear(0, 1) infinite', // cubic-bezier(0.4, 0, 0.6, 1)
|
|
35
|
+
pulsereverse: 'pulse 2s linear(1, 0) infinite',
|
|
36
36
|
bounce: 'bounce 1s infinite',
|
|
37
37
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
38
38
|
"accordion-up": "accordion-up 0.2s ease-out",
|