generated from atls-lab/template
-
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: connect inter font 400 width from google fonts
- Loading branch information
1 parent
4129d6e
commit a06e704
Showing
37 changed files
with
1,010 additions
and
8 deletions.
There are no files selected for viewing
Binary file added
BIN
+5.28 KB
.yarn/cache/@atls-ui-parts-events-state-npm-0.0.6-44c96d68a0-951248e278.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.04 KB
.yarn/cache/@atls-ui-parts-styles-npm-0.1.1-81e56174aa-a275b47e18.zip
Binary file not shown.
Binary file added
BIN
+2.08 KB
.yarn/cache/@atls-utils-use-hover-npm-0.0.2-b5fd27e7ba-2c85f1b9bc.zip
Binary file not shown.
Binary file added
BIN
+18.6 KB
.yarn/cache/@emotion-is-prop-valid-npm-1.2.2-53f93f2b2d-0fa3960abf.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.45 KB
.yarn/cache/@styled-system-background-npm-5.1.2-0b07cb6c1a-8874bc2f99.zip
Binary file not shown.
Binary file added
BIN
+4.41 KB
.yarn/cache/@styled-system-border-npm-5.1.5-1e220a39fb-6070fbe468.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.44 KB
.yarn/cache/@styled-system-flexbox-npm-5.1.2-9832e992b1-43c357b845.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.99 KB
.yarn/cache/@styled-system-layout-npm-5.1.2-ea143a71e4-0ffbc1cf32.zip
Binary file not shown.
Binary file added
BIN
+3.7 KB
.yarn/cache/@styled-system-position-npm-5.1.2-ce38b58782-bf659a45fd.zip
Binary file not shown.
Binary file added
BIN
+3.31 KB
.yarn/cache/@styled-system-shadow-npm-5.1.2-3ca697965a-6b13e35f7d.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.75 KB
.yarn/cache/@styled-system-typography-npm-5.1.2-5987b8ad66-fc931c8a01.zip
Binary file not shown.
Binary file added
BIN
+5.56 KB
.yarn/cache/@styled-system-variant-npm-5.1.5-b63323f6f9-170b7dd0ab.zip
Binary file not shown.
Binary file added
BIN
+11.9 KB
.yarn/cache/@types-styled-system-npm-5.1.22-5df778941b-61aa4d7ffa.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,26 @@ | ||
{ | ||
"name": "@ui/input", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"main": "src/index.ts", | ||
"dependencies": { | ||
"@atls-ui-parts/input": "0.1.1", | ||
"@ui/utils": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@emotion/react": "11.11.4", | ||
"@emotion/styled": "11.11.0", | ||
"@types/styled-system": "^5", | ||
"styled-system": "5.1.5", | ||
"styled-tools": "1.7.2" | ||
}, | ||
"peerDependencies": { | ||
"@emotion/react": "*", | ||
"@emotion/styled": "*", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"styled-system": "*", | ||
"styled-tools": "*" | ||
} | ||
} |
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,2 @@ | ||
export * from './input.component' | ||
export * from './input.interfaces' |
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,31 @@ | ||
import styled from '@emotion/styled' | ||
|
||
import React from 'react' | ||
import { ForwardRefRenderFunction } from 'react' | ||
import { forwardRef } from 'react' | ||
|
||
import { RawInput } from '@atls-ui-parts/input' | ||
import { useChangeValue } from '@atls-ui-parts/input' | ||
|
||
import { InputProps } from './input.interfaces' | ||
|
||
import { baseStyles } from './input.styles' | ||
import { shapeStyles } from './input.styles' | ||
import { appearanceStyles } from './input.styles' | ||
|
||
export const InputElement = styled.div(baseStyles, shapeStyles, appearanceStyles) | ||
|
||
export const InputWithoutRef: ForwardRefRenderFunction<HTMLInputElement, InputProps> = ( | ||
{ size, value, disabled, onChange, onChangeNative, ...props }, | ||
ref | ||
) => { | ||
const changeValue = useChangeValue(disabled, onChange, onChangeNative) | ||
|
||
return ( | ||
<InputElement {...props} size={size}> | ||
<RawInput ref={ref} {...props} disabled={disabled} value={value} onChange={changeValue} /> | ||
</InputElement> | ||
) | ||
} | ||
|
||
export const Input = forwardRef<HTMLInputElement, InputProps>(InputWithoutRef) |
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,5 @@ | ||
import { InputProps as BaseInputProps } from '@atls-ui-parts/input' | ||
|
||
export interface InputProps extends BaseInputProps { | ||
errorText?: string | ||
} |
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 { prop } from 'styled-tools' | ||
import { switchProp } from 'styled-tools' | ||
|
||
import { createBaseStyles } from '@atls-ui-parts/input' | ||
import { createShapeStyles } from '@atls-ui-parts/input' | ||
import { createAppearanceStyles } from '@atls-ui-parts/input' | ||
|
||
export const shapeStyles = createShapeStyles({ | ||
fontFamily: prop('theme.fonts.primary'), | ||
size: 52, | ||
fontWeight: 400, | ||
fontSize: 13, | ||
rounding: 9, | ||
paddingLeft: 18, | ||
paddingRight: 18, | ||
}) | ||
|
||
export const baseStyles = createBaseStyles() | ||
export const appearanceStyles = createAppearanceStyles({ | ||
backgroundColor: 'white', | ||
fontColor: 'black', | ||
borderColor: '#DADEED', | ||
}) | ||
|
||
// export const shapeStyles = switchProp(prop('size', 'normal'), { | ||
// small: smallNormalSizeStyles, | ||
// normal: shapeNormalSizeStyles, | ||
// large: largeNormalSizeStyles, | ||
// }) |
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,15 @@ | ||
import { Global } from '@emotion/react' | ||
import { css } from '@emotion/react' | ||
|
||
import React from 'react' | ||
import { useEffect } from 'react' | ||
|
||
export const GlobalStyles = () => { | ||
return ( | ||
<Global | ||
styles={css` | ||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap'); | ||
`} | ||
/> | ||
) | ||
} |
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,14 @@ | ||
{ | ||
"name": "@ui/utils", | ||
"exports": { | ||
".": "./src/index.ts" | ||
}, | ||
"dependencies": { | ||
"@atls-utils/use-hover": "0.0.2", | ||
"react-laag": "2.0.5" | ||
}, | ||
"peerDependencies": { | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0" | ||
} | ||
} |
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 * from '@atls-utils/use-hover' |
Oops, something went wrong.