From 174c15c1e99952d314877298e8fb6766fb895201 Mon Sep 17 00:00:00 2001 From: Vadim Kalushko Date: Tue, 2 Jun 2026 10:55:54 +0300 Subject: [PATCH 1/2] =?UTF-8?q?fix(select):=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2=D1=8B=D1=81=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=20=D0=B2=20BaseOption=20=D0=B8=20Option=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=20optionsSize=20[DS-17210]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/breezy-trains-watch.md | 5 +++++ packages/select/src/components/base-select/Component.tsx | 3 +-- packages/select/src/mobile/Component.mobile.tsx | 2 -- packages/select/src/typings.ts | 5 ----- 4 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 .changeset/breezy-trains-watch.md diff --git a/.changeset/breezy-trains-watch.md b/.changeset/breezy-trains-watch.md new file mode 100644 index 0000000000..27e2438583 --- /dev/null +++ b/.changeset/breezy-trains-watch.md @@ -0,0 +1,5 @@ +--- +'@alfalab/core-components-select': major +--- + +- Удалён проп `optionsSize`. Размер пунктов списка определяется размером `Select` и содержимым опции. diff --git a/packages/select/src/components/base-select/Component.tsx b/packages/select/src/components/base-select/Component.tsx index e333f183cc..4e4da3eccf 100644 --- a/packages/select/src/components/base-select/Component.tsx +++ b/packages/select/src/components/base-select/Component.tsx @@ -78,7 +78,6 @@ export const BaseSelect = forwardRef( id, selected, size = 48, - optionsSize = size, error, hint, block, @@ -476,7 +475,7 @@ export const BaseSelect = forwardRef( multiple, index, option, - size: optionsSize, + size, disabled: option.disabled, highlighted: index === highlightedIndex, selected: selectedItems.some(({ key }) => key === option.key), diff --git a/packages/select/src/mobile/Component.mobile.tsx b/packages/select/src/mobile/Component.mobile.tsx index 0d5dec5a37..5f351379c1 100644 --- a/packages/select/src/mobile/Component.mobile.tsx +++ b/packages/select/src/mobile/Component.mobile.tsx @@ -31,7 +31,6 @@ export const SelectMobile = forwardRef( defaultOpen = false, open: openProp, size = 56, - optionsSize = 56, fieldProps = {}, optionProps = {}, optionsListProps = {}, @@ -93,7 +92,6 @@ export const SelectMobile = forwardRef( defaultOpen={defaultOpen} open={openProp} size={size} - optionsSize={optionsSize} fieldProps={{ FormControlComponent: FormControlMobile, ...(fieldProps as object), diff --git a/packages/select/src/typings.ts b/packages/select/src/typings.ts index ef5c58cef2..f863e17273 100644 --- a/packages/select/src/typings.ts +++ b/packages/select/src/typings.ts @@ -153,11 +153,6 @@ export interface BaseSelectProps { */ size?: FormControlProps['size']; - /** - * Размер пунктов меню - */ - optionsSize?: 40 | 48 | 56 | 64 | 72; - /** * Растягивает компонент на ширину контейнера */ From 0a0dc1b70653e5a5fd731ff9398ae43e74b53649 Mon Sep 17 00:00:00 2001 From: Vadim Kalushko Date: Tue, 2 Jun 2026 11:01:01 +0300 Subject: [PATCH 2/2] update snapshots --- .../src/__snapshots__/Component.test.tsx.snap | 4 +- .../src/__snapshots__/Component.test.tsx.snap | 60 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/packages/input-autocomplete/src/__snapshots__/Component.test.tsx.snap b/packages/input-autocomplete/src/__snapshots__/Component.test.tsx.snap index 4eb0d91878..8402d3e585 100644 --- a/packages/input-autocomplete/src/__snapshots__/Component.test.tsx.snap +++ b/packages/input-autocomplete/src/__snapshots__/Component.test.tsx.snap @@ -223,7 +223,7 @@ exports[`InputAutocompleteMobile Snapshots tests should match snapshot in open s
@@ -255,7 +255,7 @@ exports[`InputAutocompleteMobile Snapshots tests should match snapshot in open s
diff --git a/packages/picker-button/src/__snapshots__/Component.test.tsx.snap b/packages/picker-button/src/__snapshots__/Component.test.tsx.snap index 01fe191c3c..fae8649f4c 100644 --- a/packages/picker-button/src/__snapshots__/Component.test.tsx.snap +++ b/packages/picker-button/src/__snapshots__/Component.test.tsx.snap @@ -411,7 +411,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -432,7 +432,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -453,7 +453,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -474,7 +474,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -495,7 +495,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -516,7 +516,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -537,7 +537,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -558,7 +558,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -579,7 +579,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -600,7 +600,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -621,7 +621,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -642,7 +642,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -663,7 +663,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -684,7 +684,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -705,7 +705,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
@@ -902,7 +902,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -923,7 +923,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -944,7 +944,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -965,7 +965,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -986,7 +986,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1007,7 +1007,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1028,7 +1028,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1049,7 +1049,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1070,7 +1070,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1091,7 +1091,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1112,7 +1112,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1133,7 +1133,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1154,7 +1154,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1175,7 +1175,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
@@ -1196,7 +1196,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `