funda-ui 1.0.546 → 1.0.560

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/Input/index.js CHANGED
@@ -218,7 +218,7 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
218
218
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
219
219
  // update default value
220
220
  //--------------
221
- setChangedVal(value || '');
221
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
222
222
  }, [value]);
223
223
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
224
224
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
@@ -749,6 +749,9 @@ var LiveSearch = function LiveSearch(props) {
749
749
  // It is on top when no scrollbars have been added
750
750
  if (!isInViewport(el)) {
751
751
  if (el.getBoundingClientRect().top < 0) {
752
+ el.classList.remove(PLACEMENT_BOTTOMEND);
753
+ el.style.removeProperty('bottom');
754
+ //
752
755
  listContentRef.current.style.height = el.offsetHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
753
756
  listContentRef.current.style.overflowY = 'auto';
754
757
  }
@@ -947,6 +947,9 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
947
947
  // It is on top when no scrollbars have been added
948
948
  if (!isInViewport(el)) {
949
949
  if (el.getBoundingClientRect().top < 0) {
950
+ el.classList.remove(PLACEMENT_BOTTOMEND);
951
+ el.style.removeProperty('bottom');
952
+ //
950
953
  listContentRef.current.style.height = _contentHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
951
954
  listContentRef.current.style.overflowY = 'auto';
952
955
  }
@@ -360,7 +360,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
360
360
  (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
361
361
  // update default value
362
362
  //--------------
363
- setChangedVal(value || '');
363
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
364
364
  }, [value]);
365
365
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
366
366
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
package/Textarea/index.js CHANGED
@@ -292,7 +292,7 @@ var Textarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
292
292
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
293
293
  // update default value
294
294
  //--------------
295
- setChangedVal(value || '');
295
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
296
296
  }, [value]);
297
297
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
298
298
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
@@ -218,7 +218,7 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
218
218
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
219
219
  // update default value
220
220
  //--------------
221
- setChangedVal(value || '');
221
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
222
222
  }, [value]);
223
223
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
224
224
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
@@ -749,6 +749,9 @@ var LiveSearch = function LiveSearch(props) {
749
749
  // It is on top when no scrollbars have been added
750
750
  if (!isInViewport(el)) {
751
751
  if (el.getBoundingClientRect().top < 0) {
752
+ el.classList.remove(PLACEMENT_BOTTOMEND);
753
+ el.style.removeProperty('bottom');
754
+ //
752
755
  listContentRef.current.style.height = el.offsetHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
753
756
  listContentRef.current.style.overflowY = 'auto';
754
757
  }
@@ -947,6 +947,9 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
947
947
  // It is on top when no scrollbars have been added
948
948
  if (!isInViewport(el)) {
949
949
  if (el.getBoundingClientRect().top < 0) {
950
+ el.classList.remove(PLACEMENT_BOTTOMEND);
951
+ el.style.removeProperty('bottom');
952
+ //
950
953
  listContentRef.current.style.height = _contentHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
951
954
  listContentRef.current.style.overflowY = 'auto';
952
955
  }
@@ -360,7 +360,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
360
360
  (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
361
361
  // update default value
362
362
  //--------------
363
- setChangedVal(value || '');
363
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
364
364
  }, [value]);
365
365
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
366
366
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
@@ -292,7 +292,7 @@ var Textarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
292
292
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
293
293
  // update default value
294
294
  //--------------
295
- setChangedVal(value || '');
295
+ setChangedVal("".concat(value) || ''); // Avoid displaying the number 0
296
296
  }, [value]);
297
297
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
298
298
  className: wrapperClassName || wrapperClassName === '' ? wrapperClassName : "mb-3 position-relative",
@@ -162,10 +162,10 @@ const Input = forwardRef((props: InputProps, ref: any) => {
162
162
 
163
163
 
164
164
  useEffect(() => {
165
-
165
+
166
166
  // update default value
167
167
  //--------------
168
- setChangedVal(value || '');
168
+ setChangedVal(`${value}` || ''); // Avoid displaying the number 0
169
169
 
170
170
  }, [value]);
171
171
 
@@ -187,6 +187,9 @@ const LiveSearch = (props: LiveSearchProps) => {
187
187
  // It is on top when no scrollbars have been added
188
188
  if ( !isInViewport(el) ) {
189
189
  if ( el.getBoundingClientRect().top < 0 ) {
190
+ el.classList.remove(PLACEMENT_BOTTOMEND);
191
+ el.style.removeProperty('bottom');
192
+ //
190
193
  listContentRef.current.style.height = el.offsetHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
191
194
  listContentRef.current.style.overflowY = 'auto';
192
195
  }
@@ -302,6 +302,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
302
302
  */
303
303
  function isInViewport(elem: HTMLElement) {
304
304
  const bounding = elem.getBoundingClientRect();
305
+
305
306
  return (
306
307
  bounding.top >= 0 &&
307
308
  bounding.left >= 0 &&
@@ -421,6 +422,9 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
421
422
  // It is on top when no scrollbars have been added
422
423
  if ( !isInViewport(el) ) {
423
424
  if ( el.getBoundingClientRect().top < 0 ) {
425
+ el.classList.remove(PLACEMENT_BOTTOMEND);
426
+ el.style.removeProperty('bottom');
427
+ //
424
428
  listContentRef.current.style.height = _contentHeight + el.getBoundingClientRect().top - elMinWindowSpacing + 'px';
425
429
  listContentRef.current.style.overflowY = 'auto';
426
430
  }
@@ -139,7 +139,7 @@ const Textarea = forwardRef((props: TextareaProps, ref: any) => {
139
139
 
140
140
  // update default value
141
141
  //--------------
142
- setChangedVal(value || '');
142
+ setChangedVal(`${value}` || ''); // Avoid displaying the number 0
143
143
 
144
144
  }, [value]);
145
145
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "UIUX Lab",
3
3
  "email": "uiuxlab@gmail.com",
4
4
  "name": "funda-ui",
5
- "version": "1.0.546",
5
+ "version": "1.0.560",
6
6
  "description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
7
7
  "repository": {
8
8
  "type": "git",