ab-ui-library 1.37.4 → 1.37.6
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.
|
@@ -183,7 +183,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, _ref2) {
|
|
|
183
183
|
maxLength: maxCount,
|
|
184
184
|
inputMode: 'numeric',
|
|
185
185
|
disabled: disabled,
|
|
186
|
-
isAllowed: isAllowed
|
|
186
|
+
isAllowed: isAllowed,
|
|
187
|
+
getInputRef: _ref2
|
|
187
188
|
}, currentValue !== undefined ? {
|
|
188
189
|
value: currentValue
|
|
189
190
|
} : {})) :
|
|
@@ -122,7 +122,10 @@ var Select = function Select(props) {
|
|
|
122
122
|
} : _props$selectRightIco2,
|
|
123
123
|
labelAddons = props.labelAddons,
|
|
124
124
|
tooltipAddons = props.tooltipAddons,
|
|
125
|
-
renderOptions = props.renderOptions
|
|
125
|
+
renderOptions = props.renderOptions,
|
|
126
|
+
_props$inputType = props.inputType,
|
|
127
|
+
inputType = _props$inputType === void 0 ? 'text' : _props$inputType,
|
|
128
|
+
isAllowed = props.isAllowed;
|
|
126
129
|
var scrollRef = useRef(null);
|
|
127
130
|
var inputRef = useRef(null);
|
|
128
131
|
var containerRef = useRef(null);
|
|
@@ -281,9 +284,11 @@ var Select = function Select(props) {
|
|
|
281
284
|
placeholder: placeHolder,
|
|
282
285
|
value: searchValue || (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || '',
|
|
283
286
|
isValid: isValid,
|
|
287
|
+
type: inputType,
|
|
284
288
|
disabled: disabled,
|
|
285
289
|
helperText: outerHelperText,
|
|
286
290
|
ref: inputRef,
|
|
291
|
+
isAllowed: isAllowed,
|
|
287
292
|
labelAddons: labelAddons,
|
|
288
293
|
autoComplete: "false"
|
|
289
294
|
}), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
@@ -130,6 +130,12 @@ export interface TSingleSelectPropTypes extends IFormCompProps, TSelectBaseProps
|
|
|
130
130
|
labelAddons?: JSX.Element;
|
|
131
131
|
tooltipAddons?: TTooltipProps;
|
|
132
132
|
isCreateOnOutsideClick?: boolean;
|
|
133
|
+
inputType?: 'text' | 'number' | 'time' | 'password' | 'email' | 'file' | 'tel' | 'date' | 'numeric';
|
|
134
|
+
isAllowed?: (values: {
|
|
135
|
+
formattedValue: string;
|
|
136
|
+
value: string;
|
|
137
|
+
floatValue: number | undefined;
|
|
138
|
+
}) => boolean;
|
|
133
139
|
renderOptions?: (props: IRenderOptionItemProps) => JSX.Element;
|
|
134
140
|
}
|
|
135
141
|
export type TSelectFooterPropTypes = {
|