indicator-ui 0.0.42 → 0.0.44
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.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/scss/ui/InputFields/TextareaField/styles/mixin/textareaField.scss +4 -0
- 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/dist/types/src/ui/InputFields/TextareaField/types/TextareaFieldTypes.d.ts +5 -0
- package/dist/types/src/ui/InputFields/TextareaField/ui/TextareaField.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3178,7 +3178,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3178
3178
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3179
3179
|
/* harmony export */ });
|
|
3180
3180
|
// extracted by mini-css-extract-plugin
|
|
3181
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"flexField":"InputField-module__flexField___aNE6o","inputField":"InputField-module__inputField___mzakH","placeholder":"InputField-module__placeholder___ybb3Y","icon":"InputField-module__icon___xR6jG","textSupport":"InputField-module__textSupport___njpRn","userPic":"InputField-module__userPic___OQ_q0","help":"InputField-module__help___uSjvq","dropdown":"InputField-module__dropdown___QQuFp","dropdownReverse":"InputField-module__dropdownReverse___Nfb9Z","button":"InputField-module__button___jm0td","red":"InputField-module__red___euINw","gray":"InputField-module__gray___GGFcb","pointer":"InputField-module__pointer___Ij_hP","focus":"InputField-module__focus___xpWhB","isError":"InputField-module__isError___x2fXo","disabled":"InputField-module__disabled___hH7HA","inputFieldWrapper":"InputField-module__inputFieldWrapper___ao9Rs","labelText":"InputField-module__labelText___Fxxc3","required":"InputField-module__required___p4MLk","hintText":"InputField-module__hintText___LC2Oq","hintError":"InputField-module__hintError___LrJWr","helperLink":"InputField-module__helperLink___A_6Ua","selectField":"InputField-module__selectField___ED0Q3","modalWindow":"InputField-module__modalWindow___JplNC","selectModalWindow":"InputField-module__selectModalWindow___Dg52i","selectFieldOptionsItem":"InputField-module__selectFieldOptionsItem___HBdJA","label":"InputField-module__label___Wlb6C","active":"InputField-module__active___RcF6w","switcherField":"InputField-module__switcherField___Qezr0","radioFieldItem":"InputField-module__radioFieldItem___c6OMz","checkbox":"InputField-module__checkbox___KcnRp","textareaField":"InputField-module__textareaField___iuYg7"});
|
|
3181
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"flexField":"InputField-module__flexField___aNE6o","inputField":"InputField-module__inputField___mzakH","placeholder":"InputField-module__placeholder___ybb3Y","icon":"InputField-module__icon___xR6jG","textSupport":"InputField-module__textSupport___njpRn","userPic":"InputField-module__userPic___OQ_q0","help":"InputField-module__help___uSjvq","dropdown":"InputField-module__dropdown___QQuFp","dropdownReverse":"InputField-module__dropdownReverse___Nfb9Z","button":"InputField-module__button___jm0td","red":"InputField-module__red___euINw","gray":"InputField-module__gray___GGFcb","pointer":"InputField-module__pointer___Ij_hP","focus":"InputField-module__focus___xpWhB","isError":"InputField-module__isError___x2fXo","disabled":"InputField-module__disabled___hH7HA","inputFieldWrapper":"InputField-module__inputFieldWrapper___ao9Rs","labelText":"InputField-module__labelText___Fxxc3","required":"InputField-module__required___p4MLk","hintText":"InputField-module__hintText___LC2Oq","hintError":"InputField-module__hintError___LrJWr","helperLink":"InputField-module__helperLink___A_6Ua","selectField":"InputField-module__selectField___ED0Q3","modalWindow":"InputField-module__modalWindow___JplNC","selectModalWindow":"InputField-module__selectModalWindow___Dg52i","selectFieldOptionsItem":"InputField-module__selectFieldOptionsItem___HBdJA","label":"InputField-module__label___Wlb6C","active":"InputField-module__active___RcF6w","switcherField":"InputField-module__switcherField___Qezr0","radioFieldItem":"InputField-module__radioFieldItem___c6OMz","checkbox":"InputField-module__checkbox___KcnRp","textareaField":"InputField-module__textareaField___iuYg7","offFocus":"InputField-module__offFocus___FeRXp"});
|
|
3182
3182
|
|
|
3183
3183
|
/***/ }),
|
|
3184
3184
|
|
|
@@ -3242,7 +3242,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3242
3242
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3243
3243
|
/* harmony export */ });
|
|
3244
3244
|
// extracted by mini-css-extract-plugin
|
|
3245
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"textareaField":"TextareaField-module__textareaField___Vcg4L","isError":"TextareaField-module__isError___VGTeU"});
|
|
3245
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"textareaField":"TextareaField-module__textareaField___Vcg4L","offFocus":"TextareaField-module__offFocus___HcAxy","isError":"TextareaField-module__isError___VGTeU"});
|
|
3246
3246
|
|
|
3247
3247
|
/***/ }),
|
|
3248
3248
|
|
|
@@ -8726,7 +8726,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8726
8726
|
|
|
8727
8727
|
|
|
8728
8728
|
|
|
8729
|
-
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, button, buttonState = 'gray', onButtonClick, className = _styles__WEBPACK_IMPORTED_MODULE_5__.FlexFieldStyle, }, ref) => {
|
|
8729
|
+
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, buttonState = 'gray', onButtonClick, className = _styles__WEBPACK_IMPORTED_MODULE_5__.FlexFieldStyle, }, ref) => {
|
|
8730
8730
|
const [isFocus, setIsFocus] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false);
|
|
8731
8731
|
const handleChange = (newValue) => {
|
|
8732
8732
|
onChange && onChange(newValue);
|
|
@@ -8807,7 +8807,7 @@ const FlexField = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ value, ty
|
|
|
8807
8807
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { ref: ref, onClick: onClick, className: (0,clsx__WEBPACK_IMPORTED_MODULE_3__["default"])(className?.flexField, {
|
|
8808
8808
|
[className?.isError]: isError,
|
|
8809
8809
|
[className?.disabled]: disabled,
|
|
8810
|
-
[className?.focus]: isFocus,
|
|
8810
|
+
[className?.focus]: isFocus && !offFocus,
|
|
8811
8811
|
[className?.pointer]: !!onClick,
|
|
8812
8812
|
}), children: [getIcon(), getTextSupport(), getUserPic(), getInput(), getHelp(), getDropdown(), getButton()] }));
|
|
8813
8813
|
});
|
|
@@ -9795,13 +9795,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9795
9795
|
|
|
9796
9796
|
|
|
9797
9797
|
|
|
9798
|
-
function TextareaField({ value, name, placeholder, onChange, required = false, disabled = false, isError = false, className = _styles__WEBPACK_IMPORTED_MODULE_2__.TextareaFieldStyle, }) {
|
|
9798
|
+
function TextareaField({ value, name, placeholder, onChange, required = false, disabled = false, isError = false, offFocus = false, className = _styles__WEBPACK_IMPORTED_MODULE_2__.TextareaFieldStyle, }) {
|
|
9799
9799
|
const handleOnChange = (e) => {
|
|
9800
9800
|
e.preventDefault();
|
|
9801
9801
|
onChange && onChange(e.target.value);
|
|
9802
9802
|
};
|
|
9803
9803
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("textarea", { name: name, placeholder: placeholder, value: value || '', onChange: handleOnChange, required: required, disabled: disabled, className: (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])(className?.textareaField, {
|
|
9804
9804
|
[className?.isError]: isError,
|
|
9805
|
+
[className?.offFocus]: offFocus,
|
|
9805
9806
|
}) }));
|
|
9806
9807
|
}
|
|
9807
9808
|
|
|
@@ -10135,7 +10136,7 @@ function SlideTransition({ children, animation, additionStyles, animationOptions
|
|
|
10135
10136
|
const animateConfig = getConfig('exit-down');
|
|
10136
10137
|
animateDropWrapperRef.current.animate([
|
|
10137
10138
|
{ transform: 'scaleY(1)', transformOrigin: 'bottom' },
|
|
10138
|
-
{ transform: 'scaleY(0)', transformOrigin: 'bottom' },
|
|
10139
|
+
{ transform: 'scaleY(0)', transformOrigin: 'bottom', display: 'none' },
|
|
10139
10140
|
], animateConfig);
|
|
10140
10141
|
mainRef.current.animate([
|
|
10141
10142
|
{ transform: 'translateY(0)' },
|
|
@@ -10147,7 +10148,7 @@ function SlideTransition({ children, animation, additionStyles, animationOptions
|
|
|
10147
10148
|
const animateConfig = getConfig('exit-up');
|
|
10148
10149
|
animateDropWrapperRef.current.animate([
|
|
10149
10150
|
{ height: `${mainHeight}px` },
|
|
10150
|
-
{ height: `0
|
|
10151
|
+
{ height: `0`, display: 'none' },
|
|
10151
10152
|
], animateConfig);
|
|
10152
10153
|
mainRef.current.animate([
|
|
10153
10154
|
{ transform: 'translateY(0)' },
|
|
@@ -10157,7 +10158,7 @@ function SlideTransition({ children, animation, additionStyles, animationOptions
|
|
|
10157
10158
|
const animateEnterDown = () => {
|
|
10158
10159
|
const animateConfig = getConfig('exit-down');
|
|
10159
10160
|
animateDropWrapperRef.current.animate([
|
|
10160
|
-
{ transform: 'scaleY(0)', transformOrigin: 'bottom' },
|
|
10161
|
+
{ transform: 'scaleY(0)', transformOrigin: 'bottom', display: 'block' },
|
|
10161
10162
|
{ transform: 'scaleY(1)', transformOrigin: 'bottom' },
|
|
10162
10163
|
], animateConfig);
|
|
10163
10164
|
mainRef.current.animate([
|
|
@@ -10169,7 +10170,7 @@ function SlideTransition({ children, animation, additionStyles, animationOptions
|
|
|
10169
10170
|
const mainHeight = mainRef.current.clientHeight;
|
|
10170
10171
|
const animateConfig = getConfig('exit-up');
|
|
10171
10172
|
animateDropWrapperRef.current.animate([
|
|
10172
|
-
{ height: `0
|
|
10173
|
+
{ height: `0`, display: 'block' },
|
|
10173
10174
|
{ height: `${mainHeight}px` },
|
|
10174
10175
|
], animateConfig);
|
|
10175
10176
|
mainRef.current.animate([
|