Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/breezy-trains-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@alfalab/core-components-select': major
---

- Удалён проп `optionsSize`. Размер пунктов списка определяется размером `Select` и содержимым опции.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ exports[`InputAutocompleteMobile Snapshots tests should match snapshot in open s
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r1:-item-0"
role="option"
>
Expand Down Expand Up @@ -255,7 +255,7 @@ exports[`InputAutocompleteMobile Snapshots tests should match snapshot in open s
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r1:-item-1"
role="option"
>
Expand Down
60 changes: 30 additions & 30 deletions packages/picker-button/src/__snapshots__/Component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-0"
role="option"
>
Expand All @@ -432,7 +432,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-1"
role="option"
>
Expand All @@ -453,7 +453,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-2"
role="option"
>
Expand All @@ -474,7 +474,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-3"
role="option"
>
Expand All @@ -495,7 +495,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-4"
role="option"
>
Expand All @@ -516,7 +516,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-5"
role="option"
>
Expand All @@ -537,7 +537,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-6"
role="option"
>
Expand All @@ -558,7 +558,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-7"
role="option"
>
Expand All @@ -579,7 +579,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-8"
role="option"
>
Expand All @@ -600,7 +600,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-9"
role="option"
>
Expand All @@ -621,7 +621,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-10"
role="option"
>
Expand All @@ -642,7 +642,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-11"
role="option"
>
Expand All @@ -663,7 +663,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-12"
role="option"
>
Expand All @@ -684,7 +684,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-13"
role="option"
>
Expand All @@ -705,7 +705,7 @@ exports[`Snapshots tests should display opened correctly 4`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r3:-item-14"
role="option"
>
Expand Down Expand Up @@ -902,7 +902,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-0"
role="option"
>
Expand All @@ -923,7 +923,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-1"
role="option"
>
Expand All @@ -944,7 +944,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-2"
role="option"
>
Expand All @@ -965,7 +965,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-3"
role="option"
>
Expand All @@ -986,7 +986,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-4"
role="option"
>
Expand All @@ -1007,7 +1007,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-5"
role="option"
>
Expand All @@ -1028,7 +1028,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-6"
role="option"
>
Expand All @@ -1049,7 +1049,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-7"
role="option"
>
Expand All @@ -1070,7 +1070,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-8"
role="option"
>
Expand All @@ -1091,7 +1091,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-9"
role="option"
>
Expand All @@ -1112,7 +1112,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-10"
role="option"
>
Expand All @@ -1133,7 +1133,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-11"
role="option"
>
Expand All @@ -1154,7 +1154,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-12"
role="option"
>
Expand All @@ -1175,7 +1175,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-13"
role="option"
>
Expand All @@ -1196,7 +1196,7 @@ exports[`Snapshots tests should display opened correctly 6`] = `
<div
aria-disabled="false"
aria-selected="false"
class="option size-56 option"
class="option size-48 option"
id="downshift-:r5:-item-14"
role="option"
>
Expand Down
3 changes: 1 addition & 2 deletions packages/select/src/components/base-select/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export const BaseSelect = forwardRef<unknown, ComponentProps>(
id,
selected,
size = 48,
optionsSize = size,
error,
hint,
block,
Expand Down Expand Up @@ -476,7 +475,7 @@ export const BaseSelect = forwardRef<unknown, ComponentProps>(
multiple,
index,
option,
size: optionsSize,
size,
disabled: option.disabled,
highlighted: index === highlightedIndex,
selected: selectedItems.some(({ key }) => key === option.key),
Expand Down
2 changes: 0 additions & 2 deletions packages/select/src/mobile/Component.mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const SelectMobile = forwardRef(
defaultOpen = false,
open: openProp,
size = 56,
optionsSize = 56,
fieldProps = {},
optionProps = {},
optionsListProps = {},
Expand Down Expand Up @@ -93,7 +92,6 @@ export const SelectMobile = forwardRef(
defaultOpen={defaultOpen}
open={openProp}
size={size}
optionsSize={optionsSize}
fieldProps={{
FormControlComponent: FormControlMobile,
...(fieldProps as object),
Expand Down
5 changes: 0 additions & 5 deletions packages/select/src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ export interface BaseSelectProps {
*/
size?: FormControlProps['size'];

/**
* Размер пунктов меню
*/
optionsSize?: 40 | 48 | 56 | 64 | 72;

/**
* Растягивает компонент на ширину контейнера
*/
Expand Down
Loading