-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from Kanaries/chore-remove_materialui-ks-0525
[Chore] remove mui
- Loading branch information
Showing
18 changed files
with
793 additions
and
638 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
const Divider = styled.hr` | ||
margin: 0; | ||
flex-shrink: 0; | ||
border-width: 0; | ||
border-top-width: thin; | ||
border-color: inherit; | ||
opacity: 0.12; | ||
border-style: solid; | ||
color: inherit; | ||
`; | ||
|
||
|
||
export default Divider; |
198 changes: 198 additions & 0 deletions
198
packages/rath-client/src/components/pagination/components.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,198 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
const Container = styled.div` | ||
margin-block: 1.75rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
`; | ||
|
||
const ContentSm = styled.div` | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
@media (min-width: 1024px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
const ContentLg = styled.div` | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
display: none; | ||
@media (min-width: 1024px) { | ||
display: flex; | ||
} | ||
align-items: center; | ||
justify-content: space-between; | ||
overflow: hidden; | ||
> * + * { | ||
margin-left: -1px; | ||
} | ||
`; | ||
|
||
const Description = styled.div` | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
min-width: 0; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
> p { | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
color: #4b5563; | ||
opacity: 0.6; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
`; | ||
|
||
const TabList = styled.div` | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
display: inline-flex; | ||
position: relative; | ||
padding: 2px; | ||
:not(:first-child) { | ||
margin-left: 1rem; | ||
} | ||
`; | ||
|
||
const CurrentTab = styled.div` | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
width: max-content; | ||
min-width: 2em; | ||
cursor: default; | ||
padding: 0.75rem 1rem; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
line-height: 1.25rem; | ||
letter-spacing: 0.025em; | ||
text-align: center; | ||
white-space: break-all; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
const Tab = styled.div` | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
width: max-content; | ||
min-width: 2em; | ||
cursor: pointer; | ||
padding: 0.75rem 1rem; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
line-height: 1.25rem; | ||
letter-spacing: 0.025em; | ||
text-align: center; | ||
white-space: break-all; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
opacity: 0.75; | ||
&:hover { | ||
opacity: 1; | ||
color: #6366f1; | ||
} | ||
&:focus { | ||
opacity: 1; | ||
color: #6366f1; | ||
outline: 2px solid transparent; | ||
outline-offset: 2px; | ||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5); | ||
} | ||
`; | ||
|
||
const Ellipsis = styled.div` | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
width: max-content; | ||
min-width: 2em; | ||
cursor: default; | ||
padding: 0.75rem 1rem; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
line-height: 1.25rem; | ||
letter-spacing: 0.025em; | ||
text-align: center; | ||
white-space: break-all; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
opacity: 0.75; | ||
`; | ||
|
||
const Button = styled.div` | ||
flex-grow: 0; | ||
flex-shrink: 0; | ||
width: max-content; | ||
min-width: 2em; | ||
cursor: pointer; | ||
padding: 0.75rem 1rem; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
line-height: 1.25rem; | ||
letter-spacing: 0.025em; | ||
text-align: center; | ||
white-space: break-all; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
opacity: 0.75; | ||
&[aria-disabled="false"]:hover { | ||
opacity: 1; | ||
color: #6366f1; | ||
} | ||
&[aria-disabled="false"]:focus { | ||
opacity: 1; | ||
color: #6366f1; | ||
outline: 2px solid transparent; | ||
outline-offset: 2px; | ||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5); | ||
} | ||
&[aria-disabled="true"] { | ||
cursor: default; | ||
} | ||
> * + * { | ||
margin-left: 0.5rem; | ||
} | ||
> span { | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
padding: 0; | ||
margin: -1px; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
white-space: nowrap; | ||
border-width: 0; | ||
} | ||
> i { | ||
width: 1.25rem; | ||
height: 1.25rem; | ||
} | ||
`; | ||
|
||
|
||
const PaginationComponents = { | ||
Container, | ||
ContentSm, | ||
ContentLg, | ||
Description, | ||
TabList, | ||
CurrentTab, | ||
Tab, | ||
Ellipsis, | ||
Button, | ||
}; | ||
|
||
|
||
export default PaginationComponents; |
Oops, something went wrong.
ebc28e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rath – ./
rath-git-master-kanaries.vercel.app
rath.kanaries.net
rath-steel.vercel.app
rath-kanaries.vercel.app