Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/AlertBar/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
// import Img from '@/Img'
// import { theme } from '@/utils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css } from '@/utils'
import Img from '@/Img'

Expand Down
6 changes: 3 additions & 3 deletions src/components/Buttons/OrButton/HorizontalButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

import type { TSIZE } from '@/spec'
import { SIZE } from '@/constant'
import { TButtonSize } from '@/spec'

import {
Wrapper,
Expand All @@ -12,7 +12,7 @@ import {

type TProps = {
activeKey: string
size?: TButtonSize
size?: TSIZE
onClick: (key: string) => void
group: {
key: string
Expand All @@ -22,7 +22,7 @@ type TProps = {

const HorizontalButton: React.FC<TProps> = ({
onClick,
size = SIZE.SMALL as TButtonSize,
size = SIZE.SMALL as TSIZE,
activeKey,
group,
}) => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Buttons/styles/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components'
import { lighten } from 'polished'

import { css, theme } from '@/utils'
import { TButtonSize, TButton } from '@/spec'
import type { TSIZE, TButton } from '@/spec'

import {
getColor,
Expand Down Expand Up @@ -67,7 +67,7 @@ export const Wrapper = styled.button<TButton>`
opacity: 1;
}
`
export const ChildrenWrapper = styled.div<{ size: TButtonSize }>`
export const ChildrenWrapper = styled.div<{ size: TSIZE }>`
${css.flex('align-both')};
font-size: ${({ size }) => getFontSize(size)};
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/styles/metircs/button.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SIZE } from '@/constant'
import { theme } from '@/utils'

import { TTheme } from '@/spec'
import type { TTheme } from '@/spec'

export const getColor = (ghost: boolean, disabled: boolean): TTheme => {
if (ghost) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/styles/notify_button/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
4 changes: 2 additions & 2 deletions src/components/Buttons/styles/or_button/horizontal_button.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import styled from 'styled-components'
// import { lighten } from 'polished'

import { TButton, TButtonSize } from '@/spec'
import type { TButton, TSIZE } from '@/spec'
import { theme, css } from '@/utils'

import { Wrapper as BaseBtnWrapper } from '../button'
import { OrSignBase } from './index'

export const Wrapper = styled.div<{ size: TButtonSize }>`
export const Wrapper = styled.div<{ size: TSIZE }>`
${css.flex('align-center')};
position: relative;
`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Buttons/styles/or_button/vertical_button.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components'
// import { lighten } from 'polished'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { css, theme } from '@/utils'

import { Wrapper as BaseBtnWrapper } from '../button'
Expand Down
2 changes: 1 addition & 1 deletion src/components/BuyMeChuanChuan/styles/chuan_selector.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { animate, theme, css } from '@/utils'
import Img from '@/Img'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Charger/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled, { css as styledCss, keyframes } from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { theme, css } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Checker/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/CollapseMenu/styles/item.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css } from '@/utils'

export const Wrapper = styled.div<TActive>`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TSpace } from '@/spec'
import type { TSpace } from '@/spec'

export const Br = styled.div<TSpace>`
margin-top: ${({ top }) => `${top}px` || 0};
Expand Down
2 changes: 1 addition & 1 deletion src/components/CommunityList/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TSpace } from '@/spec'
import type { TSpace } from '@/spec'
import { css, theme } from '@/utils'
import Img from '@/Img'

Expand Down
2 changes: 1 addition & 1 deletion src/components/CommunityStatesPad/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
// import Img from '@/Img'
import { theme, css } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentFilter/styles/filter_result.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css } from '@/utils'

export const Wrapper = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContentFilter/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css } from '@/utils'
import Img from '@/Img'

Expand Down
2 changes: 1 addition & 1 deletion src/components/CrashErrorHint/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import { css, theme, themeSkins } from '@/utils'

type TThemeName = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomScroller/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
// import { getShadowWidth } from './helpers'

type TBox = { width: string; height: string }
Expand Down
2 changes: 1 addition & 1 deletion src/components/DigestSentence/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TSpace } from '@/spec'
import type { TTestable, TSpace } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/DivideText/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
// import Img from '@/Img'
import { css } from '@/utils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import { css } from '@/utils'

export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/EmailSubscriber/styles/email_hint_icon.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { theme, css, animate } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/EmailSubscriber/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'

export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({
'data-test-id': testid,
Expand Down
2 changes: 1 addition & 1 deletion src/components/EmailSubscriber/styles/simple_layout.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import Input from '@/components/Input'
import { css } from '@/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorPage/styles/code_snippets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import { theme, css } from '@/utils'

export const Wrapper = styled.div.attrs(({ testid }: TTestable) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorPage/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components'

import { theme, css } from '@/utils'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
// import PromptIcon from '@/components/PromptIcon'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorPage/styles/spin_planet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import { animate } from '@/utils'
// import Img from '@/Img'
// import PromptIcon from '@/components/PromptIcon'
Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpandIcon/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ExpandIcon/styles/metric.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { theme } from '@/utils'
import { SIZE } from '@/constant'

import { TTheme } from '@/spec'
import type { TTheme } from '@/spec'

export const getNormalColor = (type: string): TTheme => {
switch (type) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/FaqPeekList/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TActive } from '@/spec'
import type { TTestable, TActive } from '@/spec'
import Img from '@/Img'
import { theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersMenu/styles/filter/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
// import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersMenu/styles/header.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TActive } from '@/spec'
import type { TTestable, TActive } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/FiltersMenu/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/FocusLine/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css } from '@/utils'
import Img from '@/Img'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Folder/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/FormItem/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TSpace } from '@/spec'
import type { TSpace } from '@/spec'
import { theme, css } from '@/utils'
import Input from '@/components/Input'

Expand Down
2 changes: 1 addition & 1 deletion src/components/GithubRepoPage/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TActive } from '@/spec'
import type { TActive } from '@/spec'
import { theme, css, animate } from '@/utils'
import { Button } from '@/components/Buttons'

Expand Down
2 changes: 1 addition & 1 deletion src/components/GotoTop/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/IconText/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ImgFallback/styles/avatar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TSpace } from '@/spec'
import type { TTestable, TSpace } from '@/spec'
import { css, theme } from '@/utils'
import { getFontSize } from './metric/avatar'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ImgFallback/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable } from '@/spec'
import type { TTestable } from '@/spec'
// import Img from '@/Img'
// import { theme } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ImgFallback/styles/work.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TSpace } from '@/spec'
import type { TTestable, TSpace } from '@/spec'
// import Img from '@/Img'
import { css } from '@/utils'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Input/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

import { TTestable, TActive } from '@/spec'
import type { TTestable, TActive } from '@/spec'
import Img from '@/Img'
import { css, theme } from '@/utils'

Expand Down
Loading