-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
498554e
commit 1f122d2
Showing
10 changed files
with
59 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import Input from './Input'; | ||
import InputGroup from './InputGroup'; | ||
import { RawInputLeftElement, RawInputRightElement } from './InputElement'; | ||
import { RawInputLeftAddon, RawInputRightAddon } from './InputAddon'; | ||
import { InputLeftElement, InputRightElement } from './InputElement'; | ||
import { InputLeftAddon, InputRightAddon } from './InputAddon'; | ||
|
||
export type InputComponentType = typeof Input & { | ||
Group: typeof InputGroup; | ||
LeftElement: typeof RawInputLeftElement; | ||
RightElement: typeof RawInputRightElement; | ||
LeftAddon: typeof RawInputLeftAddon; | ||
RightAddon: typeof RawInputRightAddon; | ||
LeftElement: typeof InputLeftElement; | ||
RightElement: typeof InputRightElement; | ||
LeftAddon: typeof InputLeftAddon; | ||
RightAddon: typeof InputRightAddon; | ||
}; | ||
|
||
(Input as InputComponentType).Group = InputGroup; | ||
(Input as InputComponentType).LeftElement = RawInputLeftElement; | ||
(Input as InputComponentType).RightElement = RawInputRightElement; | ||
(Input as InputComponentType).LeftAddon = RawInputLeftAddon; | ||
(Input as InputComponentType).RightAddon = RawInputRightAddon; | ||
(Input as InputComponentType).LeftElement = InputLeftElement; | ||
(Input as InputComponentType).RightElement = InputRightElement; | ||
(Input as InputComponentType).LeftAddon = InputLeftAddon; | ||
(Input as InputComponentType).RightAddon = InputRightAddon; | ||
|
||
export default Input as InputComponentType; |
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,16 @@ | ||
import React, { FC, PropsWithChildren } from 'react'; | ||
import { PaginationProps } from './Pagination.types'; | ||
|
||
const Pagination: FC<PropsWithChildren<PaginationProps>> = ({ | ||
page, | ||
defaultPage, | ||
count, | ||
limit, | ||
onChange, | ||
children, | ||
...restProps | ||
}) => { | ||
return <div></div>; | ||
}; | ||
|
||
export default Pagination; |
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,16 @@ | ||
import { HTMLAttributes } from 'react'; | ||
|
||
interface BasePaginationProps { | ||
page?: number; | ||
defaultPage?: number; | ||
count?: number; | ||
limit?: number; | ||
onChange?: (page: number) => void; | ||
} | ||
|
||
type NativePaginationProps = Omit< | ||
HTMLAttributes<HTMLElement>, | ||
keyof BasePaginationProps | ||
>; | ||
|
||
export type PaginationProps = BasePaginationProps & NativePaginationProps; |
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 @@ | ||
export { default } from './Pagination'; |