Commit 67c406c5 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин 🕓
Browse files

refactor: replaced 'medium' (size) with 'normal'

parent cfe12013
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ export type TDarkness = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;

export type TThemeColorNoWhite = Exclude<TThemeColor, 'white'>;

export type TSize = 'small' | 'medium' | 'large' | 'huge';
export type TSize = 'small' | 'normal' | 'large' | 'huge';

export type TTextStyle = 'bold' | 'italic';

+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ const meta: Meta = {
  },
  argTypes: {
    label: { control: 'text' },
    size: { control: 'select', options: ['small', 'medium', 'large', 'huge'] },
    size: { control: 'select', options: ['small', 'normal', 'large', 'huge'] },
    textStyle: { control: 'select', options: ['bold', 'italic'] },
    iconPos: { control: 'select', options: ['left', 'top', 'right', 'bottom'] },
    width: { control: 'text' },
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import type { IButtonProps } from '@interfaces/componentsProps';
import { convertThemeToColor } from '@helpers/common';

const props = withDefaults(defineProps<IButtonProps>(), {
  size: 'medium',
  size: 'normal',
  theme: 'white',
  textColor: 'black',
  iconPos: 'left',
+2 −2
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ const meta: Meta = {
  },
  argTypes: {
    items: { control: 'object' },
    size: { control: 'select', options: ['small', 'medium', 'large', 'huge'] },
    size: { control: 'select', options: ['small', 'normal', 'large', 'huge'] },
    direction: { control: 'select', options: ['up', 'down', 'left', 'right'] },
    darknessTheme: { control: 'select', options: [100, 200, 300, 400, 500, 600, 700, 800, 900] },
    theme: {
@@ -125,6 +125,6 @@ export const Huge: Story = {
    theme: 'red',
    darknessTheme: 700,
    direction: 'right',
    size: 'medium',
    size: 'normal',
  },
};
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ import { convertWhiteOrBlackToColor } from '@helpers/colors';
const props = withDefaults(defineProps<IMDProps>(), {
  theme: 'white',
  darknessTheme: 500,
  size: 'medium',
  size: 'normal',
  direction: 'right',
});
const active = defineModel('active');
Loading