Skip to content

Commit

Permalink
feat(pure-input): changed size L (72 → 64), added size XL (72)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: size L changed to size XL
  • Loading branch information
SiebenSieben committed Mar 2, 2021
1 parent 858359a commit af4cfb5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pure-input/src/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { name, version } from '../package.json';

<Story name='PureInput'>
<PureInput
size={select('size', ['s', 'm', 'l'], 's')}
size={select('size', ['s', 'm', 'l', 'xl'], 's')}
type={select(
'type',
['number', 'card', 'email', 'money', 'password', 'tel', 'text'],
Expand Down
2 changes: 1 addition & 1 deletion packages/pure-input/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type PureInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
/**
* Размер компонента
*/
size?: 's' | 'm' | 'l';
size?: 's' | 'm' | 'l' | 'xl';

/**
* Дополнительный класс
Expand Down
6 changes: 6 additions & 0 deletions packages/pure-input/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
padding-top: 1px;
}

.xl {
height: var(--form-control-xl-min-height);
padding: var(--form-control-l-paddings);
padding-top: 1px;
}

/* DISABLED STATE */

.component:disabled {
Expand Down

0 comments on commit af4cfb5

Please sign in to comment.