Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/form control size 40 #1461

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4413d9c
feat(form-control): add size 40
fulcanellee Nov 21, 2024
e04f87e
feat(input): add size 40
fulcanellee Nov 21, 2024
8171359
feat(amount-input): add size 40
fulcanellee Nov 21, 2024
e6f08a9
feat(input-autocomplete): add size 40
fulcanellee Nov 21, 2024
504572e
feat(number-input): add size 40
fulcanellee Nov 21, 2024
ed90400
feat(universal-date-input): add size 40
fulcanellee Nov 22, 2024
6628ede
feat(textarea): add size 40
fulcanellee Nov 22, 2024
1d06e05
feat(select): add size 40
fulcanellee Nov 22, 2024
2bf5fc9
feat(select): fix types
fulcanellee Nov 22, 2024
e513fbf
feat: add changeset
fulcanellee Nov 22, 2024
df453ee
feat: improve input 40 paddings
fulcanellee Nov 28, 2024
18ad211
feat(textarea): fix fontsize
fulcanellee Nov 28, 2024
0f76ba8
feat(form-control): fix label font, position
fulcanellee Nov 28, 2024
8ce9fd5
feat(input): change clear icon size
fulcanellee Nov 28, 2024
3462ef0
feat(input): change success, error icon size
fulcanellee Nov 28, 2024
3726244
feat(input): typo
fulcanellee Nov 28, 2024
44e4f8f
feat(input): update screenshots
fulcanellee Nov 28, 2024
c1a32b2
feat(form-control): fix site theme
fulcanellee Nov 28, 2024
3af4056
feat: update screenshots
fulcanellee Nov 29, 2024
f1eb2a0
Merge remote-tracking branch 'refs/remotes/origin/master' into feat/f…
fulcanellee Nov 29, 2024
24bba88
feat(select): improve size 40
fulcanellee Nov 29, 2024
4bc93e1
feat(select): fix chevron
fulcanellee Nov 29, 2024
210fadf
feat(select): fix options size
fulcanellee Nov 29, 2024
88420d9
feat(phone-input): add size 40
fulcanellee Nov 29, 2024
7b2240b
feat(select): fix lint
fulcanellee Nov 29, 2024
f8e392a
feat: update changeset
fulcanellee Nov 29, 2024
a9b5df1
feat(with-suffix): add size 40
fulcanellee Dec 11, 2024
082e40a
feat(input): fix icon size 40 for input and form-control
fulcanellee Dec 11, 2024
c15b991
feat(select): fix chevron for size 40
fulcanellee Dec 11, 2024
21510b2
feat: update glyph
fulcanellee Dec 11, 2024
bc87e91
feat: update addon sizes
fulcanellee Dec 11, 2024
6475523
Merge remote-tracking branch 'refs/remotes/origin/master' into feat/f…
fulcanellee Dec 11, 2024
08eb32d
feat(form-control): fix hint for size 40
fulcanellee Dec 11, 2024
b167b63
feat(form-control): fix outer label for size 40
fulcanellee Dec 11, 2024
31d85ee
feat(select): fix placeholder for size 40
fulcanellee Dec 11, 2024
7f96eda
feat(select): improve option
fulcanellee Dec 12, 2024
4af6198
feat(select): improve arrow
fulcanellee Dec 12, 2024
1af34ca
feat(number-input): fix icons for size 40
fulcanellee Dec 12, 2024
1f6530e
feat(textarea): fix resizable, fix paddings
fulcanellee Dec 12, 2024
ca8a4a6
feat(universal-date-input): fix icons for size 40
fulcanellee Dec 12, 2024
aecba9f
feat(textarea): update screenshots
fulcanellee Dec 12, 2024
37382df
feat: update changeset
fulcanellee Dec 12, 2024
a4c68cb
feat: merge conflict
fulcanellee Dec 16, 2024
daa2aed
feat(form-control): fix paddings
fulcanellee Dec 16, 2024
426abd7
Merge remote-tracking branch 'refs/remotes/origin/master' into feat/f…
fulcanellee Dec 26, 2024
bbe93e1
feat: update yarn.lock
fulcanellee Dec 26, 2024
4495c05
feat: split changeset
fulcanellee Dec 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions .changeset/good-wombats-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
'@alfalab/core-components-accordion': patch
'@alfalab/core-components-action-button': patch
'@alfalab/core-components-alert': patch
'@alfalab/core-components-amount': patch
'@alfalab/core-components-attach': patch
'@alfalab/core-components-backdrop': patch
'@alfalab/core-components-badge': patch
'@alfalab/core-components-bank-card': patch
'@alfalab/core-components-base-modal': patch
'@alfalab/core-components-bottom-sheet': patch
'@alfalab/core-components-button': patch
'@alfalab/core-components-calendar': patch
'@alfalab/core-components-calendar-input': patch
'@alfalab/core-components-calendar-range': patch
'@alfalab/core-components-calendar-with-skeleton': patch
'@alfalab/core-components-card-image': patch
'@alfalab/core-components-cdn-icon': patch
'@alfalab/core-components-chart': patch
'@alfalab/core-components-checkbox': patch
'@alfalab/core-components-checkbox-group': patch
'@alfalab/core-components-circular-progress-bar': patch
'@alfalab/core-components-code-input': patch
'@alfalab/core-components-collapse': patch
'@alfalab/core-components-comment': patch
'@alfalab/core-components-confirmation': patch
'@alfalab/core-components-confirmation-v1': patch
'@alfalab/core-components-custom-button': patch
'@alfalab/core-components-custom-picker-button': patch
'@alfalab/core-components-date-input': patch
'@alfalab/core-components-date-range-input': patch
'@alfalab/core-components-date-time-input': patch
'@alfalab/core-components-divider': patch
'@alfalab/core-components-drawer': patch
'@alfalab/core-components-dropzone': patch
'@alfalab/core-components-file-upload-item': patch
'@alfalab/core-components-file-upload-item-v1': patch
'@alfalab/core-components-filter-tag': patch
'@alfalab/core-components-gallery': patch
'@alfalab/core-components-gap': patch
'@alfalab/core-components-generic-wrapper': patch
'@alfalab/core-components-grid': patch
'@alfalab/core-components-hatching-progress-bar': patch
'@alfalab/core-components-icon-button': patch
'@alfalab/core-components-icon-view': patch
'@alfalab/core-components-indicator': patch
'@alfalab/core-components-international-phone-input': patch
'@alfalab/core-components-intl-phone-input': patch
'@alfalab/core-components-link': patch
'@alfalab/core-components-list': patch
'@alfalab/core-components-list-header': patch
'@alfalab/core-components-loader': patch
'@alfalab/core-components-markdown': patch
'@alfalab/core-components-masked-input': patch
'@alfalab/core-components-modal': patch
'@alfalab/core-components-navigation-bar': patch
'@alfalab/core-components-navigation-bar-private': patch
'@alfalab/core-components-notification': patch
'@alfalab/core-components-notification-manager': patch
'@alfalab/core-components-pagination': patch
'@alfalab/core-components-pass-code': patch
'@alfalab/core-components-pass-code-v1': patch
'@alfalab/core-components-pattern-lock': patch
'@alfalab/core-components-pattern-lock-v1': patch
'@alfalab/core-components-picker-button': patch
'@alfalab/core-components-plate': patch
'@alfalab/core-components-popover': patch
'@alfalab/core-components-popup-sheet': patch
'@alfalab/core-components-product-cover': patch
'@alfalab/core-components-progress-bar': patch
'@alfalab/core-components-pure-cell': patch
'@alfalab/core-components-radio': patch
'@alfalab/core-components-radio-group': patch
'@alfalab/core-components-scrollbar': patch
'@alfalab/core-components-segmented-control': patch
'@alfalab/core-components-side-panel': patch
'@alfalab/core-components-skeleton': patch
'@alfalab/core-components-slider': patch
'@alfalab/core-components-sortable-list': patch
'@alfalab/core-components-space': patch
'@alfalab/core-components-spinner': patch
'@alfalab/core-components-status': patch
'@alfalab/core-components-status-badge': patch
'@alfalab/core-components-stepped-progress-bar': patch
'@alfalab/core-components-steps': patch
'@alfalab/core-components-switch': patch
'@alfalab/core-components-system-message': patch
'@alfalab/core-components-tab-bar': patch
'@alfalab/core-components-table': patch
'@alfalab/core-components-tabs': patch
'@alfalab/core-components-tag': patch
'@alfalab/core-components-text': patch
'@alfalab/core-components-time-input': patch
'@alfalab/core-components-toast': patch
'@alfalab/core-components-toast-plate': patch
'@alfalab/core-components-tooltip': patch
'@alfalab/core-components-typography': patch
'@alfalab/core-components-underlay': patch
'@alfalab/core-components-with-suffix': patch
---

Обновление зависимостей
17 changes: 17 additions & 0 deletions .changeset/odd-eyes-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@alfalab/core-components-amount-input': minor
'@alfalab/core-components-form-control': minor
'@alfalab/core-components-input': minor
'@alfalab/core-components-input-autocomplete': minor
'@alfalab/core-components-number-input': minor
'@alfalab/core-components-password-input': minor
'@alfalab/core-components-phone-input': minor
'@alfalab/core-components-select': minor
'@alfalab/core-components-select-with-tags': minor
'@alfalab/core-components-slider-input': minor
'@alfalab/core-components-textarea': minor
'@alfalab/core-components-themes': minor
'@alfalab/core-components-universal-date-input': minor
---

Добавлен 40 размер
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"@alfalab/data": "^1.9.1",
"@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
"@alfalab/icons-glyph": "^2.210.0",
"@alfalab/icons-logotype": "^2.27.0",
"@alfalab/react-canvas-pattern-lock": "^2.0.7",
"@alfalab/utils": "^1.17.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.139.0",
"@alfalab/icons-glyph": "^2.210.0",
"@juggle/resize-observer": "^3.3.1",
"@alfalab/core-components-typography": "^4.11.1"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions packages/amount-input/src/__snapshots__/Component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Object {
class="inputWrapper"
>
<div
class="input"
class="input size-48"
>
<input
class="input input input"
class="input size-48 input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -67,10 +67,10 @@ Object {
class="inputWrapper"
>
<div
class="input"
class="input size-48"
>
<input
class="input input input"
class="input size-48 input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -173,10 +173,10 @@ Object {
class="inputWrapper"
>
<div
class="input"
class="input size-48"
>
<input
class="input input input"
class="input size-48 input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -221,10 +221,10 @@ Object {
class="inputWrapper"
>
<div
class="input"
class="input size-48"
>
<input
class="input input input"
class="input size-48 input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 $"
Expand Down Expand Up @@ -274,10 +274,10 @@ Object {
class="inputWrapper"
>
<div
class="input"
class="input size-48"
>
<input
class="input input input"
class="input size-48 input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 $"
Expand Down
10 changes: 10 additions & 0 deletions packages/amount-input/src/component.screenshots.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ describe(
},
}),
],
[
'sprite size',
createSpriteStorybookUrl({
componentName: 'AmountInput',
knobs: {
minority: 100,
size: [40, 48, 56, 64, 72],
},
}),
],
],
}),
);
9 changes: 7 additions & 2 deletions packages/amount-input/src/docs/Component.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { text, select, boolean, number } from '@storybook/addon-knobs';
import { StarMIcon } from '@alfalab/icons-glyph/StarMIcon';
import { DiamondsSIcon } from '@alfalab/icons-glyph/DiamondsSIcon';
import { AmountInput } from '@alfalab/core-components-amount-input';

const meta: Meta<typeof AmountInput> = {
Expand All @@ -15,6 +16,9 @@ type Story = StoryObj<typeof AmountInput>;
export const amount_input: Story = {
name: 'AmountInput',
render: () => {
const size = select('size', [40, 48, 56, 64, 72], 48);
const IconComponent = size === 40 ? DiamondsSIcon : StarMIcon;

return (
<AmountInput
value={number('value', null)}
Expand All @@ -26,16 +30,17 @@ export const amount_input: Story = {
positiveOnly={boolean('positiveOnly', true)}
bold={boolean('bold', true)}
block={boolean('block', false)}
size={select('size', [48, 56, 64, 72], 48)}
size={size}
disabled={boolean('disabled', false)}
placeholder={text('placeholder', undefined)}
label={text('label', '')}
hint={text('hint', '')}
error={text('error', '')}
leftAddons={boolean('leftAddons', false) && <StarMIcon />}
leftAddons={boolean('leftAddons', false) && <IconComponent />}
bottomAddons={boolean('bottomAddons', false) && <span>bottom text</span>}
clear={boolean('clear', false)}
readOnly={boolean('readOnly', false)}
labelView={select('labelView', ['inner', 'outer'], 'inner')}
/>
);
},
Expand Down
2 changes: 1 addition & 1 deletion packages/attach/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@alfalab/core-components-button": "^11.11.1",
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
"@alfalab/core-components-progress-bar": "^3.5.1",
"@alfalab/icons-glyph": "^2.139.0",
"@alfalab/icons-glyph": "^2.210.0",
"@alfalab/utils": "^1.17.1",
"classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/bank-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@alfalab/core-components-masked-input": "^6.3.29",
"@alfalab/icons-glyph": "^2.139.0",
"@alfalab/icons-glyph": "^2.210.0",
"@alfalab/icons-logotype": "^2.27.0",
"classnames": "^2.5.1",
"tslib": "^2.4.0"
Expand Down
24 changes: 12 additions & 12 deletions packages/bank-card/src/__snapshots__/Component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ exports[`BankCard Snapshots tests should match snapshots 1`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер карты или счёта"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down Expand Up @@ -172,11 +172,11 @@ exports[`BankCard Snapshots tests should match snapshots 2`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер карты или счёта"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down Expand Up @@ -287,11 +287,11 @@ exports[`BankCard Snapshots tests should match snapshots 3`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер карты или счёта"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down Expand Up @@ -402,11 +402,11 @@ exports[`BankCard Snapshots tests should match snapshots 4`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер карты или счёта"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down Expand Up @@ -501,11 +501,11 @@ exports[`BankCard Snapshots tests should match snapshots 5`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер карты"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down Expand Up @@ -616,11 +616,11 @@ exports[`BankCard Snapshots tests should match snapshots 6`] = `
</span>
</div>
<div
class="input"
class="input size-m"
>
<input
aria-label="Номер счёта"
class="input input size-56 hasInnerLabel input"
class="input size-m input size-56 hasInnerLabel input"
inputmode="numeric"
pattern="[0-9]*"
type="text"
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-popover": "^6.3.4",
"@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.139.0",
"@alfalab/icons-glyph": "^2.210.0",
"classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
Expand Down
Loading
Loading