-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' of github.com:nextui-org/nextui into canary
- Loading branch information
Showing
58 changed files
with
7,918 additions
and
1,553 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,33 @@ | ||
import React from "react"; | ||
|
||
export const InfoCircle = ({ | ||
size = 24, | ||
width, | ||
height, | ||
...props | ||
}: { | ||
size?: number; | ||
width?: number; | ||
height?: number; | ||
[key: string]: any; | ||
}) => ( | ||
<svg | ||
fill="none" | ||
height={size || height} | ||
viewBox="0 0 24 24" | ||
width={size || width} | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<path | ||
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" | ||
stroke="currentColor" | ||
strokeWidth="1.5" | ||
/> | ||
<path d="M12 17V11" stroke="currentColor" strokeLinecap="round" strokeWidth="1.5" /> | ||
<path | ||
d="M12 7C12.5523 7 13 7.44772 13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8C11 7.44772 11.4477 7 12 7Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); |
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,73 @@ | ||
import type {ComponentProps, FC} from "react"; | ||
|
||
import {cn, table} from "@nextui-org/theme"; | ||
|
||
const tableSlots = table(); | ||
|
||
export const TableRoot: FC<ComponentProps<"div">> = ({children, className, ...props}) => { | ||
return ( | ||
<div {...props} className={tableSlots.base({className})}> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export const Table: FC< | ||
ComponentProps<"table"> & { | ||
layout?: "fixed" | "auto"; | ||
} | ||
> = ({children, className, layout = "auto", ...props}) => { | ||
return ( | ||
<table {...props} className={tableSlots.table({className, layout})}> | ||
{children} | ||
</table> | ||
); | ||
}; | ||
|
||
export const TableHeader: FC<ComponentProps<"thead">> = ({children, className, ...props}) => { | ||
return ( | ||
<thead {...props} className={tableSlots.thead({className})}> | ||
{children} | ||
</thead> | ||
); | ||
}; | ||
|
||
export const TableBody: FC<ComponentProps<"tbody">> = ({children, className, ...props}) => { | ||
return ( | ||
<tbody {...props} className={tableSlots.tbody({className})}> | ||
{children} | ||
</tbody> | ||
); | ||
}; | ||
|
||
export const TableRow: FC<ComponentProps<"tr">> = ({children, className, ...props}) => { | ||
return ( | ||
<tr {...props} className={tableSlots.tr({className})}> | ||
{children} | ||
</tr> | ||
); | ||
}; | ||
|
||
export const TableColumnHeader: FC<ComponentProps<"th">> = ({children, className, ...props}) => { | ||
return ( | ||
<td {...props} className={tableSlots.th({className})}> | ||
{children} | ||
</td> | ||
); | ||
}; | ||
|
||
export const TableCell: FC<ComponentProps<"td">> = ({children, className, ...props}) => { | ||
return ( | ||
<td {...props} className={tableSlots.td({class: cn("p-0", className)})}> | ||
{children} | ||
</td> | ||
); | ||
}; | ||
|
||
export const TableColumn: FC<ComponentProps<"th">> = ({children, className, ...props}) => { | ||
return ( | ||
<th {...props} className={tableSlots.th({class: cn("p-0", className)})}> | ||
{children} | ||
</th> | ||
); | ||
}; |
Oops, something went wrong.