@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -1,15 +1,20 @@
1
1
  import { cn } from '../util'
2
2
 
3
- function Skeleton({
3
+ const Skeleton: React.FC<{
4
+ reverse?: boolean
5
+ } & React.HTMLAttributes<HTMLDivElement>> = ({
6
+ reverse=false,
4
7
  className,
5
8
  ...props
6
- }: React.HTMLAttributes<HTMLDivElement>) {
7
- return (
8
- <div
9
- className={cn('animate-pulse rounded-md bg-level-2', className)}
10
- {...props}
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) infinite',
35
- reversepulse: 'pulse 2s cubic-bezier(1, 0.6, 0, 0.4) infinite',
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",