Skip to content

Commit

Permalink
Merge branch 'move-types-and-styles'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Dec 18, 2024
2 parents 3049106 + cebf31c commit 6b7d555
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useMemo } from 'react';
import styled from 'styled-components';

import { NonTransientProps } from '../lib/styles';
import { NonTransientProps } from '../lib/types';

export interface IImageViewProps
extends NonTransientProps<IImageMaskProps, 'tintColor' | 'tintHoverColor'> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ import {

type VariablesProps = React.PropsWithChildren<object>;

const Reset = createGlobalStyle`
button {
all: unset;
}
`;

const VariablesGlobalStyle = createGlobalStyle`
:root {
${Object.entries({
Expand All @@ -36,7 +30,6 @@ const VariablesGlobalStyle = createGlobalStyle`
export const Theme = ({ children }: VariablesProps) => {
return (
<>
<Reset />
<VariablesGlobalStyle />
{children}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { forwardRef } from 'react';
import styled from 'styled-components';

import { Colors, Radius, Spacings } from '../../foundations';
import { buttonReset } from '../../styles';
import { Flex } from '../layout';
import { buttonReset } from '../mixins';
import { BodySmallSemiBold } from '../typography';

export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';

import ImageView from '../../../components/ImageView';
import { Colors } from '../../foundations';
import { buttonReset } from '../mixins';
import { buttonReset } from '../../styles';

export interface IconButtonProps
extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components';
import { Colors, Radius } from '../../foundations';
import { useHistory } from '../../history';
import { RoutePath } from '../../routes';
import { buttonReset } from '../mixins';
import { buttonReset } from '../../styles';
import { Text, TextProps } from './Text';

export interface LinkProps extends TextProps, Omit<React.HtmlHTMLAttributes<'button'>, 'color'> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { forwardRef } from 'react';
import styled from 'styled-components';

import { Colors, Typography, typography, TypographyProperties } from '../../foundations';
import { TransientProps } from '../../styles';
import { TransientProps } from '../../types';

export type TextProps = React.PropsWithChildren<{
variant?: Typography;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './mixins';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './transient-props';

0 comments on commit 6b7d555

Please sign in to comment.