This file contains hidden or 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
| import React, { useMemo } from 'react'; | |
| import { variant } from 'styled-system'; | |
| import styled from '@emotion/styled'; | |
| import { skipForwardProps } from '../../props'; | |
| import { kindVariants as textKindVariants } from '../../private/BaseText'; | |
| import { Box } from '../../private/Box'; | |
| import { Icon } from '../Media/Icon'; | |
| const kindVariants = { | |
| fill: { |
This file contains hidden or 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
| const Box = styled('div', { | |
| shouldForwardProp, | |
| })( | |
| action, | |
| animator, | |
| background, | |
| border, | |
| color, | |
| flexbox, | |
| input, |
This file contains hidden or 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
| import type { LayoutProps as SystemLayoutProps } from 'styled-system'; | |
| import { compose, layout as systemLayout, system } from 'styled-system'; | |
| import type { ResponsiveValue } from './types'; | |
| export type LayoutProps = SystemLayoutProps & { | |
| hideScroll?: ResponsiveValue<boolean>; | |
| }; | |
| const customLayout = system({ | |
| hideScroll: (value: boolean) => |
This file contains hidden or 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
| const Container = styled(VStack)` | |
| scrollbar-width: none; | |
| -ms-overflow-style: none; | |
| &::-webkit-scrollbar { | |
| display: none; | |
| } | |
| `; |
This file contains hidden or 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
| <Box | |
| fontSize={4} | |
| fontWeight='bold' | |
| padding={3} | |
| marginBottom={[4, 5]} | |
| color='white' | |
| bg='primary' | |
| > | |
| Hello | |
| </Box> |
This file contains hidden or 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
| import styled from '@emotion/styled' | |
| import { typography, space, color } from 'styled-system' | |
| const Box = styled('div')( | |
| typography, | |
| space, | |
| color | |
| ) |
This file contains hidden or 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
| import { | |
| Button, | |
| Caption, | |
| HStack, | |
| Link, | |
| TextField, | |
| VStack, | |
| } from '@class101/oui'; | |
| const EmailLoginForm = () => ( |
This file contains hidden or 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
| import styled from "styled-components"; | |
| import { | |
| Button, | |
| ButtonColor, | |
| ButtonSize, | |
| Colors, | |
| FormGroup, | |
| Input, | |
| TextStyles | |
| } from "@class101/ui"; |
This file contains hidden or 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
| import styled from "@emotion/styled"; | |
| const Form = styled.form` | |
| display: flex; | |
| flex-direction: column; | |
| `; | |
| const FormGroup = styled.div` | |
| display: flex; | |
| flex-direction: column; |
This file contains hidden or 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
| const baseTheme = { | |
| space: { | |
| 0: 0, | |
| 2: 2, | |
| 4: 4, | |
| 6: 6, | |
| 8: 8, | |
| 10: 10, | |
| 12: 12, | |
| 14: 14, |
NewerOlder