-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/wesh-import-export
- Loading branch information
Showing
93 changed files
with
6,068 additions
and
84 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
29 changes: 29 additions & 0 deletions
29
packages/components/BoxDetailTeritori/BoxDetailTeritori.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,29 @@ | ||
import React from "react"; | ||
|
||
import { neutral77 } from "../../utils/style/colors"; | ||
import { fontSemibold12, fontSemibold14 } from "../../utils/style/fonts"; | ||
import { layout } from "../../utils/style/layout"; | ||
import { BrandText } from "../BrandText"; | ||
import { TertiaryBox } from "../boxes/TertiaryBox"; | ||
|
||
export const BoxDetailTeritori: React.FC<{ | ||
title: string; | ||
descripation: string; | ||
}> = ({ title, descripation }) => { | ||
return ( | ||
<TertiaryBox | ||
style={{ | ||
borderRadius: 6, | ||
padding: layout.spacing_x1_5, | ||
flex: 1, | ||
}} | ||
> | ||
<BrandText style={[fontSemibold12, { color: neutral77 }]}> | ||
{title} | ||
</BrandText> | ||
<BrandText style={[fontSemibold14, { marginTop: layout.spacing_x0_75 }]}> | ||
{descripation} | ||
</BrandText> | ||
</TertiaryBox> | ||
); | ||
}; |
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
50 changes: 50 additions & 0 deletions
50
packages/components/FilePreview/AssetsPagination/AssetsPagination.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,50 @@ | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
|
||
import { LeftContainer } from "./LeftContainer"; | ||
import { PaginationProps } from "./PaginationProps.type"; | ||
import { RightContainer } from "./RightContainer"; | ||
import { layout } from "../../../utils/style/layout"; | ||
import { SpacerRow } from "../../spacer"; | ||
|
||
export const AssetsPagination = ({ | ||
currentPage, | ||
maxPage, | ||
onChangePage, | ||
}: PaginationProps) => { | ||
const handleChangePage = (pageIndex: number) => { | ||
if (pageIndex < 0) { | ||
pageIndex = 0; | ||
} else if (pageIndex >= maxPage) { | ||
pageIndex = maxPage - 1; | ||
} | ||
if (pageIndex !== currentPage) { | ||
onChangePage(pageIndex); | ||
} | ||
}; | ||
|
||
return ( | ||
<View | ||
style={{ | ||
flexDirection: "row", | ||
justifyContent: "space-around", | ||
width: "100%", | ||
paddingHorizontal: layout.spacing_x2, | ||
}} | ||
> | ||
<LeftContainer | ||
currentPage={currentPage} | ||
maxPage={maxPage} | ||
onChangePage={handleChangePage} | ||
/> | ||
|
||
<SpacerRow size={1} /> | ||
|
||
<RightContainer | ||
currentPage={currentPage} | ||
maxPage={maxPage} | ||
onChangePage={handleChangePage} | ||
/> | ||
</View> | ||
); | ||
}; |
90 changes: 90 additions & 0 deletions
90
packages/components/FilePreview/AssetsPagination/LeftContainer.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,90 @@ | ||
import React from "react"; | ||
import { TextInput, View } from "react-native"; | ||
|
||
import { PaginationProps } from "./PaginationProps.type"; | ||
import { | ||
neutral17, | ||
neutral77, | ||
secondaryColor, | ||
} from "../../../utils/style/colors"; | ||
import { fontSemibold14 } from "../../../utils/style/fonts"; | ||
import { layout } from "../../../utils/style/layout"; | ||
import { BrandText } from "../../BrandText"; | ||
import { SEARCH_BAR_INPUT_HEIGHT } from "../../Search/SearchBarInput"; | ||
import { TertiaryBox } from "../../boxes/TertiaryBox"; | ||
|
||
export const LeftContainer = ({ | ||
currentPage, | ||
maxPage, | ||
onChangePage, | ||
}: PaginationProps) => { | ||
return ( | ||
<View style={{ flex: 1, flexDirection: "row" }}> | ||
<View | ||
style={{ | ||
flexDirection: "row", | ||
alignItems: "center", | ||
justifyContent: "flex-start", | ||
}} | ||
> | ||
<BrandText | ||
style={{ | ||
...fontSemibold14, | ||
color: neutral77, | ||
paddingRight: layout.spacing_x1, | ||
lineHeight: layout.spacing_x2, | ||
}} | ||
> | ||
Page {currentPage + 1} of {maxPage} | ||
</BrandText> | ||
</View> | ||
<View | ||
style={{ | ||
flexDirection: "row", | ||
alignItems: "center", | ||
justifyContent: "flex-start", | ||
}} | ||
> | ||
<BrandText | ||
style={{ | ||
...fontSemibold14, | ||
color: neutral77, | ||
paddingRight: layout.spacing_x1, | ||
lineHeight: layout.spacing_x2, | ||
}} | ||
> | ||
| Go to page: | ||
</BrandText> | ||
<TertiaryBox | ||
style={[ | ||
{ | ||
flexDirection: "row", | ||
paddingHorizontal: layout.spacing_x1_5, | ||
backgroundColor: neutral17, | ||
width: 80, | ||
height: SEARCH_BAR_INPUT_HEIGHT, | ||
alignItems: "center", | ||
}, | ||
]} | ||
> | ||
<TextInput | ||
defaultValue={(currentPage + 1).toString()} | ||
inputMode="numeric" | ||
style={[ | ||
fontSemibold14, | ||
{ | ||
color: secondaryColor, | ||
flex: 1, | ||
width: 56, | ||
}, | ||
{ outlineStyle: "none" } as any, | ||
]} | ||
onSubmitEditing={(value) => { | ||
onChangePage(+value.nativeEvent.text - 1); | ||
}} | ||
/> | ||
</TertiaryBox> | ||
</View> | ||
</View> | ||
); | ||
}; |
Oops, something went wrong.