-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync changes with netbird cloud (#407)
* Update axa oidc library and package.json * Update ACL port state to show correct value * Filter user groups by unique groups only * Add peer multiselect, optimize dropdown performance for peer selection, remove 'all' group from some dropdowns, various ui / ux optimizations * Add peer multiselect, optimize dropdown performance for peer selection, remove 'all' group from some dropdowns, various ui / ux optimizations
- Loading branch information
Showing
51 changed files
with
2,236 additions
and
748 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 @@ | ||
import * as React from "react"; | ||
|
||
type Props = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const DropdownInfoText = ({ children }: Props) => { | ||
return ( | ||
<div className={"text-center pt-2 mb-6 text-nb-gray-400"}>{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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { IconArrowBack } from "@tabler/icons-react"; | ||
import { cn } from "@utils/helpers"; | ||
import { SearchIcon } from "lucide-react"; | ||
import * as React from "react"; | ||
import { forwardRef } from "react"; | ||
|
||
type Props = { | ||
value: string; | ||
onChange: (value: string) => void; | ||
placeholder?: string; | ||
}; | ||
|
||
export const DropdownInput = forwardRef<HTMLInputElement, Props>( | ||
({ value, onChange, placeholder = "Search..." }, ref) => { | ||
return ( | ||
<div className={"relative w-full"}> | ||
<input | ||
ref={ref} | ||
className={cn( | ||
"min-h-[42px] w-full relative", | ||
"border-b-0 border-t-0 border-r-0 border-l-0 border-neutral-200 dark:border-nb-gray-700 items-center", | ||
"bg-transparent text-sm outline-none focus-visible:outline-none ring-0 focus-visible:ring-0", | ||
"dark:placeholder:text-nb-gray-400 font-light placeholder:text-neutral-500 pl-10", | ||
)} | ||
value={value} | ||
onChange={(e) => onChange(e.target.value)} | ||
placeholder={placeholder} | ||
/> | ||
<div className={"absolute left-0 top-0 h-full flex items-center pl-4"}> | ||
<div className={"flex items-center"}> | ||
<SearchIcon size={14} /> | ||
</div> | ||
</div> | ||
<div className={"absolute right-0 top-0 h-full flex items-center pr-4"}> | ||
<div | ||
className={ | ||
"flex items-center bg-nb-gray-800 py-1 px-1.5 rounded-[4px] border border-nb-gray-500" | ||
} | ||
> | ||
<IconArrowBack size={10} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}, | ||
); | ||
|
||
DropdownInput.displayName = "DropdownInput"; |
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.