-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(root): Release 2024-11-26 17:36 (#7135)
- Loading branch information
Showing
19 changed files
with
246 additions
and
196 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Card } from '../primitives/card'; | ||
|
||
export function AuthCard({ children }: { children: React.ReactNode }) { | ||
return <Card className="flex h-[692px] w-full overflow-hidden">{children}</Card>; | ||
} |
45 changes: 45 additions & 0 deletions
45
apps/dashboard/src/components/auth/create-organization.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,45 @@ | ||
import { OrganizationList as OrganizationListForm } from '@clerk/clerk-react'; | ||
import { ROUTES } from '../../utils/routes'; | ||
import { clerkSignupAppearance } from '../../utils/clerk-appearance'; | ||
import { AuthCard } from './auth-card'; | ||
import { RiArrowLeftSLine } from 'react-icons/ri'; | ||
|
||
export default function OrganizationCreate() { | ||
return ( | ||
<div className="mx-auto flex w-full max-w-[1130px] flex-col gap-3"> | ||
<AuthCard> | ||
<div className="flex min-w-[564px] max-w-[564px] items-center p-[60px]"> | ||
<div className="flex flex-col gap-[4px]"> | ||
<StepIndicator /> | ||
<OrganizationListForm | ||
appearance={{ | ||
elements: { | ||
...clerkSignupAppearance.elements, | ||
cardBox: { boxShadow: 'none' }, | ||
card: { paddingTop: 0, padding: 0 }, | ||
}, | ||
}} | ||
hidePersonal | ||
skipInvitationScreen | ||
afterSelectOrganizationUrl={ROUTES.ENV} | ||
afterCreateOrganizationUrl={ROUTES.ENV} | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="w-full max-w-[564px] flex-1"> | ||
<img src="/images/auth/ui-org.svg" alt="create-org-illustration" className="opacity-70" /> | ||
</div> | ||
</AuthCard> | ||
</div> | ||
); | ||
} | ||
|
||
function StepIndicator(): JSX.Element { | ||
return ( | ||
<div className="text-foreground-600 inline-flex items-center gap-[2px] pl-[20px]"> | ||
<RiArrowLeftSLine className="h-4 w-4" /> | ||
<span className="font-label-x-small text-xs">1/3</span> | ||
</div> | ||
); | ||
} |
8 changes: 7 additions & 1 deletion
8
apps/dashboard/src/components/header-navigation/header-button.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
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,41 @@ | ||
import * as React from 'react'; | ||
|
||
import { cn } from '@/utils/ui'; | ||
|
||
const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn('rounded-xl border border-neutral-200 bg-white shadow', className)} {...props} /> | ||
)); | ||
Card.displayName = 'Card'; | ||
|
||
const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( | ||
({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} /> | ||
) | ||
); | ||
CardHeader.displayName = 'CardHeader'; | ||
|
||
const CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( | ||
({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn('font-semibold leading-none tracking-tight', className)} {...props} /> | ||
) | ||
); | ||
CardTitle.displayName = 'CardTitle'; | ||
|
||
const CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( | ||
({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn('text-foreground-600 text-sm', className)} {...props} /> | ||
) | ||
); | ||
CardDescription.displayName = 'CardDescription'; | ||
|
||
const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( | ||
({ className, ...props }, ref) => <div ref={ref} className={cn('p-6 pt-0', className)} {...props} /> | ||
); | ||
CardContent.displayName = 'CardContent'; | ||
|
||
const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>( | ||
({ className, ...props }, ref) => <div ref={ref} className={cn('flex items-center p-6 pt-0', className)} {...props} /> | ||
); | ||
CardFooter.displayName = 'CardFooter'; | ||
|
||
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }; |
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,9 @@ | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
export const useTestPage = () => { | ||
const { pathname } = useLocation(); | ||
|
||
return { | ||
isTestPage: pathname.includes('/test'), | ||
}; | ||
}; |
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,24 +1,12 @@ | ||
import { OrganizationList as OrganizationListForm } from '@clerk/clerk-react'; | ||
import { PageMeta } from '@/components/page-meta'; | ||
import { ROUTES } from '@/utils/routes'; | ||
import OrganizationCreate from '../components/auth/create-organization'; | ||
|
||
export const OrganizationListPage = () => { | ||
return ( | ||
<> | ||
<PageMeta title="Select or create organization" /> | ||
<OrganizationListForm | ||
appearance={{ | ||
elements: { | ||
organizationAvatarUploaderContainer: { | ||
display: 'none', | ||
}, | ||
}, | ||
}} | ||
hidePersonal | ||
skipInvitationScreen | ||
afterSelectOrganizationUrl={ROUTES.ENV} | ||
afterCreateOrganizationUrl={ROUTES.ENV} | ||
/> | ||
|
||
<OrganizationCreate /> | ||
</> | ||
); | ||
}; |
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.