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 {
|
import {
|
||||||
StyledButtonContentFlex,
|
StyledButtonContentFlex,
|
||||||
StyledButtonContentGrid,
|
StyledButtonContentGrid,
|
||||||
} from './button-content.styled';
|
} from './button-content.styles';
|
||||||
import { ButtonIcon } from './button-icon';
|
import { ButtonIcon } from './button-icon';
|
||||||
|
|
||||||
export type ButtonContentProps = Pick<
|
export type ButtonContentProps = Pick<
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import * as React from 'react';
|
||||||
import {
|
import {
|
||||||
ButtonIconSpanProps,
|
ButtonIconSpanProps,
|
||||||
StyledButtonIconSpan,
|
StyledButtonIconSpan,
|
||||||
} from './button-icon.styled';
|
} from './button-icon.styles';
|
||||||
|
|
||||||
export const ButtonIcon: React.FC<ButtonIconSpanProps> = (props) => {
|
export const ButtonIcon: React.FC<ButtonIconSpanProps> = (props) => {
|
||||||
const { children, className, ...rest } = props;
|
const { children, className, ...rest } = props;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
StyledButtonSpinnerBox,
|
StyledButtonSpinnerBox,
|
||||||
StyledButtonSpinnerDot,
|
StyledButtonSpinnerDot,
|
||||||
StyledButtonSpinnerDotsBox,
|
StyledButtonSpinnerDotsBox,
|
||||||
} from './button-spinner.styled';
|
} from './button-spinner.styles';
|
||||||
|
|
||||||
export const ButtonSpinner: React.FC<ButtonSpinnerProps> = (props) => {
|
export const ButtonSpinner: React.FC<ButtonSpinnerProps> = (props) => {
|
||||||
const {
|
const {
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@ export const StyledButton = styled('button', {
|
||||||
],
|
],
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
colorScheme: 'gray',
|
colorScheme: 'gray',
|
||||||
variant: 'solid',
|
variant: 'outline',
|
||||||
size: 'md',
|
size: 'md',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -54,15 +54,12 @@ export const IconButton = forwardRef<IconButtonProps, 'button'>(
|
||||||
const { minWidth, fontSize } = useMemo(() => {
|
const { minWidth, fontSize } = useMemo(() => {
|
||||||
const props = {
|
const props = {
|
||||||
sm: {
|
sm: {
|
||||||
minWidth: '$8',
|
|
||||||
fontSize: '$lg',
|
fontSize: '$lg',
|
||||||
},
|
},
|
||||||
md: {
|
md: {
|
||||||
minWidth: '$11',
|
|
||||||
fontSize: '$xl',
|
fontSize: '$xl',
|
||||||
},
|
},
|
||||||
lg: {
|
lg: {
|
||||||
minWidth: '$14',
|
|
||||||
fontSize: '$2xl',
|
fontSize: '$2xl',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
export * from './button.styles';
|
export * from './button.styles';
|
||||||
export * from './button';
|
export * from './button';
|
||||||
|
export * from './icon-button';
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
export * from './button';
|
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 './grid.styles';
|
||||||
export * from './flex.styles';
|
export * from './flex.styles';
|
||||||
|
export * from './stepper';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { Button } from '../../core';
|
import { Button } from '../../core';
|
||||||
import { Stepper } from './stepper';
|
import { Stepper } from './stepper';
|
||||||
import { Flex } from '../flex.styled';
|
import { Flex } from '../../layout';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Components/Layout/Stepper',
|
title: 'Components/Layout/Stepper',
|
||||||
|
|
@ -21,7 +21,7 @@ const StepperButton: React.FC = () => {
|
||||||
export const Default = () => {
|
export const Default = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stepper.Root initialStep={1} totalSteps={4}>
|
<Stepper.Root initialStep={1}>
|
||||||
<Stepper.Container>
|
<Stepper.Container>
|
||||||
<Stepper.Step>
|
<Stepper.Step>
|
||||||
{/* Step 1 */}
|
{/* Step 1 */}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { Flex } from '@/components';
|
||||||
import React, { useMemo, useState } from 'react';
|
import React, { useMemo, useState } from 'react';
|
||||||
import { createContext } from '../../..//utils';
|
import { createContext } from '../../../utils';
|
||||||
import { Flex } from '../flex.styled';
|
|
||||||
import { StepperStyles } from './stepper.styles';
|
import { StepperStyles } from './stepper.styles';
|
||||||
|
|
||||||
export type SelectContext = {
|
export type SelectContext = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
import { Button, Flex } from '@/components';
|
import { Button, Flex, IconButton, Icon, Stepper } 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';
|
|
||||||
|
|
||||||
// TODO remove after flow integration
|
// TODO remove after flow integration
|
||||||
const StepperButton: React.FC = () => {
|
const StepperButton: React.FC = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue