-
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(shared): Generated the React components lib
- Loading branch information
1 parent
33aeaa1
commit f6f882b
Showing
46 changed files
with
734 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,5 @@ tools/**/out-test/** | |
.docusaurus/ | ||
.cache-loader/ | ||
libs/shared-ui-design-components-react/**/generated | ||
|
||
.next |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,11 @@ | ||
import Link from "next/link"; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<head /> | ||
<body className="bg-gray-1100"> | ||
<nav> | ||
<div className="flex flex-row gap-2"> | ||
<Link href="/" className="rounded-lg bg-gray-900 hover:bg-gray-800"> | ||
Home | ||
</Link> | ||
<Link | ||
href="/contact" | ||
className="rounded-lg bg-gray-900 hover:bg-gray-800"> | ||
Contact | ||
</Link> | ||
<Link | ||
href="/about" | ||
className="rounded-lg bg-gray-900 hover:bg-gray-800"> | ||
About | ||
</Link> | ||
</div> | ||
</nav> | ||
|
||
<div className="lg:pl-72">{children}</div> | ||
</body> | ||
</html> | ||
<div className="flex flex-row gap-2"> | ||
<div className="lg:pl-72">{children}</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { handleAuth } from "@auth0/nextjs-auth0"; | ||
|
||
export default handleAuth(); |
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
30 changes: 0 additions & 30 deletions
30
design-system/components/src/components/os-button/os-button.types.ts
This file was deleted.
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
21 changes: 0 additions & 21 deletions
21
design-system/components/src/components/os-select/os-select.types.ts
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
declare interface SelectOption { | ||
/** | ||
* The string value to display in the field | ||
*/ | ||
name: string; | ||
|
||
/** | ||
* The value stored behind the scenes when selected | ||
*/ | ||
value: string; | ||
|
||
/** | ||
* Is the option value valid for selection in the dropdown | ||
*/ | ||
disabled: boolean; | ||
|
||
/** | ||
* Sets or retrieves whether the option in the list box is the default item. | ||
*/ | ||
selected: boolean; | ||
} | ||
|
||
declare enum ButtonVariants { | ||
GRADIENT = "gradient", | ||
PRIMARY = "primary", | ||
SECONDARY = "secondary", | ||
TERTIARY = "tertiary", | ||
} | ||
|
||
declare enum ButtonTransitionDirections { | ||
LEFT = "left", | ||
RIGHT = "right", | ||
TOP = "top", | ||
BOTTOM = "bottom", | ||
} | ||
|
||
declare enum ButtonTypes { | ||
/** | ||
* The button is a submit button (submits form-data) | ||
*/ | ||
SUBMIT = "submit", | ||
|
||
/** | ||
* The button is a reset button (resets the form-data to its initial values) | ||
*/ | ||
RESET = "reset", | ||
|
||
/** | ||
* The button is a clickable button | ||
*/ | ||
BUTTON = "button", | ||
} |
Oops, something went wrong.