-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/medusa-v2-docs-typo
- Loading branch information
Showing
266 changed files
with
26,908 additions
and
19,692 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
packages/admin/dashboard/src/components/common/logo-box/avatar-box.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { motion } from "framer-motion" | ||
|
||
import { IconAvatar } from "../icon-avatar" | ||
|
||
export default function AvatarBox({ checked }: { checked?: boolean }) { | ||
return ( | ||
<IconAvatar | ||
size="xlarge" | ||
className="bg-ui-button-neutral shadow-buttons-neutral after:button-neutral-gradient relative mb-4 flex size-14 items-center justify-center rounded-xl after:inset-0 after:content-['']" | ||
> | ||
{checked && ( | ||
<motion.div | ||
className="absolute -right-[5px] -top-1 flex size-5 items-center justify-center rounded-full border-[0.5px] border-[rgba(3,7,18,0.2)] bg-[#3B82F6] bg-gradient-to-b from-white/0 to-white/20 shadow-[0px_1px_2px_0px_rgba(3,7,18,0.12),0px_1px_2px_0px_rgba(255,255,255,0.10)_inset,0px_-1px_5px_0px_rgba(255,255,255,0.10)_inset,0px_0px_0px_0px_rgba(3,7,18,0.06)_inset]" | ||
initial={{ opacity: 0, scale: 0.5 }} | ||
animate={{ opacity: 1, scale: 1 }} | ||
transition={{ | ||
duration: 1.2, | ||
delay: 0.8, | ||
ease: [0, 0.71, 0.2, 1.01], | ||
}} | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
> | ||
<motion.path | ||
d="M5.8335 10.4167L9.16683 13.75L14.1668 6.25" | ||
stroke="white" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
initial={{ pathLength: 0, opacity: 0 }} | ||
animate={{ pathLength: 1, opacity: 1 }} | ||
transition={{ | ||
duration: 1.3, | ||
delay: 1.1, | ||
bounce: 0.6, | ||
ease: [0.1, 0.8, 0.2, 1.01], | ||
}} | ||
/> | ||
</svg> | ||
</motion.div> | ||
)} | ||
|
||
<img width={44} height={44} src="/medusa-avatar.png" /> | ||
</IconAvatar> | ||
) | ||
} |
1 change: 1 addition & 0 deletions
1
packages/admin/dashboard/src/components/common/logo-box/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./logo-box" | ||
export * from "./avatar-box" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.