-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: menubar, dropdown menu, badge & table
- Loading branch information
1 parent
4a802ea
commit 9a2317d
Showing
94 changed files
with
1,429 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const CircleIcon = (props: React.ComponentPropsWithRef<'svg'>) => { | ||
return ( | ||
<svg | ||
viewBox='0 0 24 24' | ||
fill='none' | ||
stroke='currentColor' | ||
strokeWidth='2' | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
{...props} | ||
> | ||
<circle cx='12' cy='12' r='10' /> | ||
</svg> | ||
) | ||
} | ||
|
||
export { CircleIcon } |
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,13 @@ | ||
import { DEFAULT_BADGE_CONSTANTS } from '@/components/badge/constants/constants' | ||
import type { BadgeProps } from '@/components/badge/types/badge' | ||
import { cn, polymorphic } from '@renderui/utils' | ||
|
||
const Badge = (props: BadgeProps) => { | ||
const { asChild, className, ...restProps } = props | ||
|
||
const Component = polymorphic(asChild, 'div') | ||
|
||
return <Component className={cn(DEFAULT_BADGE_CONSTANTS, className)} {...restProps} /> | ||
} | ||
|
||
export { Badge } |
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,4 @@ | ||
const DEFAULT_BADGE_CONSTANTS = | ||
'_badge inline-flex items-center bg-mode-accent rounded-full px-2.5 py-0.5 text-xs font-medium transition-[background-color,shadow] duration-fast outline-none focus:ring-ring-width ring-ring-color [&]:ring-ring-offset ring-offset-background' | ||
|
||
export { DEFAULT_BADGE_CONSTANTS } |
Oops, something went wrong.