-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple enhancements, adjustments, and bug fixes to frontend code (#809
- Loading branch information
1 parent
44ba1d9
commit 0eef0de
Showing
40 changed files
with
519 additions
and
233 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
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,2 @@ | ||
export { MenuButton } from "./menuButton"; | ||
export type { MenuButtonProps } from "./menuButton"; |
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 React from "react"; | ||
|
||
import { MenuButton as MuiMenuButton } from "@mui/base/MenuButton"; | ||
|
||
export type MenuButtonProps = { | ||
ref?: React.Ref<HTMLButtonElement>; | ||
label?: string; | ||
disabled?: boolean; | ||
children?: React.ReactNode; | ||
}; | ||
|
||
export function MenuButton(props: MenuButtonProps): React.ReactNode { | ||
return ( | ||
<MuiMenuButton | ||
{...props} | ||
className="hover:bg-blue-200 focus:outline-blue-600 p-1 text-sm rounded flex gap-1 items-center focus:outline focus:outline-1 hover:text-gray-900 text-gray-600" | ||
/> | ||
); | ||
} |
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,9 +1,21 @@ | ||
import { resolveClassNames } from "@lib/utils/resolveClassNames"; | ||
|
||
export type MenuHeadingProps = { | ||
classNames?: string; | ||
style?: React.CSSProperties; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export function MenuHeading(props: MenuHeadingProps): React.ReactNode { | ||
return ( | ||
<div className="text-xs text-gray-500 uppercase font-semibold tracking-wider px-3 py-1">{props.children}</div> | ||
<div | ||
className={resolveClassNames( | ||
"text-xs text-gray-500 uppercase font-semibold tracking-wider px-3 py-1", | ||
props.classNames ?? "" | ||
)} | ||
style={props.style} | ||
> | ||
{props.children} | ||
</div> | ||
); | ||
} |
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,7 +1,7 @@ | ||
export { SortableList } from "./sortableList"; | ||
export { SortableList, ItemType } from "./sortableList"; | ||
export { SortableListItem } from "./sortableListItem"; | ||
export { SortableListGroup } from "./sortableListGroup"; | ||
|
||
export type { SortableListProps } from "./sortableList"; | ||
export type { SortableListProps, IsMoveAllowedArgs } from "./sortableList"; | ||
export type { SortableListItemProps } from "./sortableListItem"; | ||
export type { SortableListGroupProps } from "./sortableListGroup"; |
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
Oops, something went wrong.