styles: fix styles icon button (#98)
* chore: rename files * styles: fix styles icon button * chore: remove commented lines
This commit is contained in:
parent
e8baad8303
commit
3901033f81
|
|
@ -4,7 +4,7 @@ import { ButtonProps } from '.';
|
|||
import {
|
||||
StyledButtonContentFlex,
|
||||
StyledButtonContentGrid,
|
||||
} from './button-content.styled';
|
||||
} from './button-content.styles';
|
||||
import { ButtonIcon } from './button-icon';
|
||||
|
||||
export type ButtonContentProps = Pick<
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import * as React from 'react';
|
|||
import {
|
||||
ButtonIconSpanProps,
|
||||
StyledButtonIconSpan,
|
||||
} from './button-icon.styled';
|
||||
} from './button-icon.styles';
|
||||
|
||||
export const ButtonIcon: React.FC<ButtonIconSpanProps> = (props) => {
|
||||
const { children, className, ...rest } = props;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
StyledButtonSpinnerBox,
|
||||
StyledButtonSpinnerDot,
|
||||
StyledButtonSpinnerDotsBox,
|
||||
} from './button-spinner.styled';
|
||||
} from './button-spinner.styles';
|
||||
|
||||
export const ButtonSpinner: React.FC<ButtonSpinnerProps> = (props) => {
|
||||
const {
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ export const StyledButton = styled('button', {
|
|||
],
|
||||
defaultVariants: {
|
||||
colorScheme: 'gray',
|
||||
variant: 'solid',
|
||||
variant: 'outline',
|
||||
size: 'md',
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,15 +54,12 @@ export const IconButton = forwardRef<IconButtonProps, 'button'>(
|
|||
const { minWidth, fontSize } = useMemo(() => {
|
||||
const props = {
|
||||
sm: {
|
||||
minWidth: '$8',
|
||||
fontSize: '$lg',
|
||||
},
|
||||
md: {
|
||||
minWidth: '$11',
|
||||
fontSize: '$xl',
|
||||
},
|
||||
lg: {
|
||||
minWidth: '$14',
|
||||
fontSize: '$2xl',
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
export * from './button.styles';
|
||||
export * from './button';
|
||||
export * from './icon-button';
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
export * from './button';
|
||||
export * from './icon';
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
import { dripStitches } from '../../theme'; //TODO replace with absolute path
|
||||
import React from 'react';
|
||||
|
||||
const { styled } = dripStitches;
|
||||
|
||||
export const Flex = styled('div', {
|
||||
display: 'flex',
|
||||
});
|
||||
|
||||
export type FlexProps = React.ComponentProps<typeof Flex>;
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
export * from './grid.styles';
|
||||
export * from './flex.styles';
|
||||
export * from './stepper';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Button } from '../../core';
|
||||
import { Stepper } from './stepper';
|
||||
import { Flex } from '../flex.styled';
|
||||
import { Flex } from '../../layout';
|
||||
|
||||
export default {
|
||||
title: 'Components/Layout/Stepper',
|
||||
|
|
@ -21,7 +21,7 @@ const StepperButton: React.FC = () => {
|
|||
export const Default = () => {
|
||||
return (
|
||||
<>
|
||||
<Stepper.Root initialStep={1} totalSteps={4}>
|
||||
<Stepper.Root initialStep={1}>
|
||||
<Stepper.Container>
|
||||
<Stepper.Step>
|
||||
{/* Step 1 */}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Flex } from '@/components';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import { createContext } from '../../..//utils';
|
||||
import { Flex } from '../flex.styled';
|
||||
import { createContext } from '../../../utils';
|
||||
import { StepperStyles } from './stepper.styles';
|
||||
|
||||
export type SelectContext = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
import { Button, Flex } from '@/components';
|
||||
import { IconButton } from '@/components/core/button/icon-button';
|
||||
import { Icon } from '@/components/core/icon';
|
||||
import React from 'react';
|
||||
import { Stepper } from '@/components/layout/stepper/stepper';
|
||||
import { Button, Flex, IconButton, Icon, Stepper } from '@/components';
|
||||
|
||||
// TODO remove after flow integration
|
||||
const StepperButton: React.FC = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue