-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(admin-ui): various fixes (#4554)
- Loading branch information
Showing
237 changed files
with
1,987 additions
and
2,171 deletions.
There are no files selected for viewing
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
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
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,2 +1,2 @@ | ||
export * from "./AutoComplete"; | ||
export * from "./primitives/AutoCompletePrimitive"; | ||
export * from "./primitives"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./AutoCompletePrimitive"; |
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
19 changes: 19 additions & 0 deletions
19
packages/admin-ui/src/Avatar/components/AvatarFallback.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,19 @@ | ||
import * as React from "react"; | ||
import * as AvatarPrimitive from "@radix-ui/react-avatar"; | ||
import { cn, makeDecoratable } from "~/utils"; | ||
|
||
type AvatarFallbackProps = AvatarPrimitive.AvatarFallbackProps; | ||
|
||
const AvatarFallbackBase = ({ className, ...props }: AvatarFallbackProps) => ( | ||
<AvatarPrimitive.Fallback | ||
className={cn( | ||
"wby-flex wby-h-full wby-w-full wby-items-center wby-justify-center wby-rounded-sm", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
); | ||
|
||
const AvatarFallback = makeDecoratable("AvatarFallback", AvatarFallbackBase); | ||
|
||
export { AvatarFallback, type AvatarFallbackProps }; |
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,13 @@ | ||
import * as React from "react"; | ||
import * as AvatarPrimitive from "@radix-ui/react-avatar"; | ||
import { cn, makeDecoratable } from "~/utils"; | ||
|
||
type AvatarImageProps = AvatarPrimitive.AvatarImageProps; | ||
|
||
const AvatarImageBase = ({ className, ...props }: AvatarImageProps) => ( | ||
<AvatarPrimitive.Image className={cn("wby-aspect-square", className)} {...props} /> | ||
); | ||
|
||
const AvatarImage = makeDecoratable("AvatarImage", AvatarImageBase); | ||
|
||
export { AvatarImage, type AvatarImageProps }; |
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,2 @@ | ||
export * from "./AvatarFallback"; | ||
export * from "./AvatarImage"; |
Oops, something went wrong.