ab-ui-library 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -303,12 +303,13 @@ var Select = function Select(props) {
|
|
|
303
303
|
size: "xsmall",
|
|
304
304
|
type: "secondary",
|
|
305
305
|
className: "content-top__label"
|
|
306
|
-
}, innerHelperText)) : null, filteredData.map(function (item) {
|
|
306
|
+
}, innerHelperText)) : null, filteredData.map(function (item, i) {
|
|
307
307
|
var isSelected = item.value === currentSelection;
|
|
308
308
|
return /*#__PURE__*/React.createElement(React.Fragment, null, renderOptions ? renderOptions({
|
|
309
309
|
key: item.value,
|
|
310
310
|
onClick: clickHandler(isSelected),
|
|
311
311
|
data: item,
|
|
312
|
+
index: i,
|
|
312
313
|
disabled: item.disabled,
|
|
313
314
|
isSelected: isSelected
|
|
314
315
|
}) : /*#__PURE__*/React.createElement(OptionItem, {
|
|
@@ -109,6 +109,7 @@ export interface TButtonSelectPropTypes extends IFormCompProps, TSelectBaseProps
|
|
|
109
109
|
}
|
|
110
110
|
export interface IRenderOptionItemProps extends TSelectItemProps {
|
|
111
111
|
key?: string;
|
|
112
|
+
index: number;
|
|
112
113
|
}
|
|
113
114
|
export interface TSingleSelectPropTypes extends IFormCompProps, TSelectBaseProps {
|
|
114
115
|
options: TSelectOptions;
|