indicator-ui 0.0.78 → 0.0.79
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.
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/types/src/hooks/index.d.ts +0 -2
- package/dist/types/src/hooks/useFormData.d.ts +1 -1
- package/dist/types/src/hooks/useIsErrorField.d.ts +1 -1
- package/dist/types/src/ui/FormBuilder/lib/formBuilder.d.ts +1 -1
- package/dist/types/src/ui/InputFields/FlexField/types/FlexFieldTypes.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6244,8 +6244,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6244
6244
|
"use strict";
|
|
6245
6245
|
__webpack_require__.r(__webpack_exports__);
|
|
6246
6246
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6247
|
-
/* harmony export */ useFormData: () => (/* reexport safe */ _useFormData__WEBPACK_IMPORTED_MODULE_1__
|
|
6248
|
-
/* harmony export */ useIsErrorField: () => (/* reexport safe */ _useIsErrorField__WEBPACK_IMPORTED_MODULE_0__
|
|
6247
|
+
/* harmony export */ useFormData: () => (/* reexport safe */ _useFormData__WEBPACK_IMPORTED_MODULE_1__.useFormData),
|
|
6248
|
+
/* harmony export */ useIsErrorField: () => (/* reexport safe */ _useIsErrorField__WEBPACK_IMPORTED_MODULE_0__.useIsErrorField)
|
|
6249
6249
|
/* harmony export */ });
|
|
6250
6250
|
/* harmony import */ var _useIsErrorField__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useIsErrorField */ "./src/hooks/useIsErrorField.ts");
|
|
6251
6251
|
/* harmony import */ var _useFormData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useFormData */ "./src/hooks/useFormData.ts");
|
|
@@ -6253,8 +6253,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6253
6253
|
|
|
6254
6254
|
|
|
6255
6255
|
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
6256
|
/***/ }),
|
|
6259
6257
|
|
|
6260
6258
|
/***/ "./src/hooks/useFormData.ts":
|
|
@@ -6266,7 +6264,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6266
6264
|
"use strict";
|
|
6267
6265
|
__webpack_require__.r(__webpack_exports__);
|
|
6268
6266
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6269
|
-
/* harmony export */
|
|
6267
|
+
/* harmony export */ useFormData: () => (/* binding */ useFormData)
|
|
6270
6268
|
/* harmony export */ });
|
|
6271
6269
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
6272
6270
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -6345,7 +6343,7 @@ function useFormData(value) {
|
|
|
6345
6343
|
"use strict";
|
|
6346
6344
|
__webpack_require__.r(__webpack_exports__);
|
|
6347
6345
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6348
|
-
/* harmony export */
|
|
6346
|
+
/* harmony export */ useIsErrorField: () => (/* binding */ useIsErrorField)
|
|
6349
6347
|
/* harmony export */ });
|
|
6350
6348
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
6351
6349
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8872,7 +8870,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8872
8870
|
|
|
8873
8871
|
|
|
8874
8872
|
|
|
8875
|
-
const FlexField = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ value, type, onChange, onFocus, onBlur, onClick, mask = /.*/, required = false, disabled = false, isError = false, placeholder, notInput = false, icon, help, dropdown, userPic, textSupport, dropdownState = false, offFocus = false, button, unmask, buttonState = 'gray', onButtonClick, className = _styles__WEBPACK_IMPORTED_MODULE_5__.FlexFieldStyle, }, ref) => {
|
|
8873
|
+
const FlexField = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ value, type, onChange, onFocus, onBlur, onClick, mask = /.*/, required = false, disabled = false, isError = false, placeholder, notInput = false, icon, help, dropdown, userPic, textSupport, dropdownState = false, offFocus = false, button, unmask, onDropdownClick, buttonState = 'gray', onButtonClick, className = _styles__WEBPACK_IMPORTED_MODULE_5__.FlexFieldStyle, }, ref) => {
|
|
8876
8874
|
const [isFocus, setIsFocus] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
|
|
8877
8875
|
const handleChange = (newValue) => {
|
|
8878
8876
|
onChange && onChange(newValue);
|
|
@@ -8929,6 +8927,9 @@ const FlexField = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ value, ty
|
|
|
8929
8927
|
return undefined;
|
|
8930
8928
|
const dropdownIcon = typeof dropdown === "boolean" ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_4__.ChevronDownSVG, {}) : dropdown;
|
|
8931
8929
|
let dropdownClassName = typeof dropdownState === 'string' ? dropdownState : (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(className?.dropdown, { [className?.dropdownReverse]: dropdownState });
|
|
8930
|
+
if (onDropdownClick !== undefined) {
|
|
8931
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", { onClick: onDropdownClick, className: dropdownClassName, children: dropdownIcon });
|
|
8932
|
+
}
|
|
8932
8933
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: dropdownClassName, children: dropdownIcon });
|
|
8933
8934
|
};
|
|
8934
8935
|
const getButton = () => {
|
|
@@ -9637,14 +9638,15 @@ function SelectField({ value, onChange, options = [], placeholder, isError, sear
|
|
|
9637
9638
|
searching(searchString, optionsState).then((newOptions) => newOptions !== undefined && setOptionsState(newOptions));
|
|
9638
9639
|
}
|
|
9639
9640
|
}, disabled: disabled, onFocus: () => {
|
|
9641
|
+
setIsShowModalWindow(true);
|
|
9640
9642
|
setIsFocus(true);
|
|
9641
9643
|
setIsShowModalWindow(true);
|
|
9642
9644
|
}, onBlur: () => {
|
|
9643
9645
|
setIsFocus(false);
|
|
9644
9646
|
onBlur && onBlur();
|
|
9645
|
-
},
|
|
9647
|
+
}, onDropdownClick: () => setIsShowModalWindow(prevState => !prevState), isError: isError, placeholder: placeholder, dropdown: true, dropdownState: isShowModalWindow, ref: inputRef });
|
|
9646
9648
|
}
|
|
9647
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_FlexField__WEBPACK_IMPORTED_MODULE_2__.FlexField, { value: (0,_lib__WEBPACK_IMPORTED_MODULE_3__.getStringValue)(value, optionsCacheRef.current), isError: isError, disabled: disabled, placeholder: placeholder, notInput: true, onClick: () => setIsShowModalWindow(
|
|
9649
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_FlexField__WEBPACK_IMPORTED_MODULE_2__.FlexField, { value: (0,_lib__WEBPACK_IMPORTED_MODULE_3__.getStringValue)(value, optionsCacheRef.current), isError: isError, disabled: disabled, placeholder: placeholder, notInput: true, onClick: () => setIsShowModalWindow(prevState => !prevState), dropdown: true, dropdownState: isShowModalWindow, ref: inputRef });
|
|
9648
9650
|
};
|
|
9649
9651
|
const processLoadMoreOptions = async () => {
|
|
9650
9652
|
if (requestPromiseRef.current)
|