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/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`] = `
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; - /** * Растягивает компонент на ширину контейнера */