@ikas/popup-renderer 1.0.50 → 1.0.52

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.
@@ -1 +1 @@
1
- import e from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import r from"react-date-picker";import{observer as t}from'./../../../../ext/mobx-react-lite/es/observer.js';var o=t((function(t){var o=e.useState(!1),a=o[0],l=o[1],n=e.useRef(null);t.placeholder;var i=t.isRequired,c=t.inputLabel;t.updateCurrentInfo;var s=t.formInputSettings,u=t.value,d=t.onValueChange;e.useEffect((function(){if(n.current){var e=n.current.getElementsByClassName("react-date-picker__wrapper");if(e.length>0){var r=e[0];r.style.backgroundColor=s.bgColor,r.style.border="".concat(s.borderWidth,"px solid ").concat(a?s.focusBorderColor:s.borderColor),r.style.borderRadius="".concat(s.borderRadius,"px"),r.style.fontSize="14px",r.style.padding="10px 12px",r.style.height="".concat(s.height,"px")}}}),[n.current]);return e.createElement("div",{style:{width:"100%",display:"flex",gap:2,flexDirection:"column"},ref:n},(c||i)&&e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:"6px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},c&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},c.text),i&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},"*")),i&&i.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},i.validationErrorMessage)),e.createElement(r,{onChange:function(e){return function(e){var r=e?e.valueOf().toString():"";d(r),i&&i.hasError&&r.length>0&&(i.hasError=!1)}(e)},value:u?new Date(Number(u)):null,className:"ikas-popup-datepicker",disableCalendar:!0,format:"dd / MM / yyyy",maxDate:new Date,clearIcon:null,onFocus:function(){return l(!0)},onBlur:function(){return l(!1)}}))}));export{o as default};
1
+ import e from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import t from"react-date-picker";import{observer as r}from'./../../../../ext/mobx-react-lite/es/observer.js';var o=r((function(r){var o=e.useState(!1),a=o[0],n=o[1],l=e.useRef(null);r.placeholder;var i=r.isRequired,c=r.inputLabel;r.updateCurrentInfo;var s=r.formInputSettings,u=r.value,d=r.onValueChange;e.useEffect((function(){if(l.current){var e=l.current.getElementsByClassName("react-date-picker__wrapper");if(e.length>0){var t=e[0];t.style.backgroundColor=s.bgColor,t.style.border="".concat(s.borderWidth,"px solid ").concat(a?s.focusBorderColor:s.borderColor),t.style.borderRadius="".concat(s.borderRadius,"px"),t.style.fontSize="14px",t.style.padding="10px 12px",t.style.height="".concat(s.height,"px");for(var r=t.getElementsByTagName("input"),o=0;o<r.length;o++){var n=r[o];n.style.outline="none !important",n.style.border="none !important"}}}}),[l.current]);return e.createElement("div",{style:{width:"100%",display:"flex",gap:2,flexDirection:"column"},ref:l},(c||i)&&e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:"6px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},c&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},c.text),i&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},"*")),i&&i.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},i.validationErrorMessage)),e.createElement(t,{onChange:function(e){return function(e){var t=e?e.valueOf().toString():"";d(t),i&&i.hasError&&t.length>0&&(i.hasError=!1)}(e)},value:u?new Date(Number(u)):null,className:"ikas-popup-datepicker",disableCalendar:!0,format:"dd / MM / yyyy",maxDate:new Date,clearIcon:null,onFocus:function(){return n(!0)},onBlur:function(){return n(!1)}}))}));export{o as default};
@@ -70,11 +70,6 @@
70
70
  background-color: #cdd5df !important;
71
71
  }
72
72
 
73
- .ikas-popup-datepicker.react-date-picker__inputGroup__input:focus-visible {
74
- outline: none !important;
75
- border: none !important;
76
- }
77
-
78
73
  .visible-on-hover {
79
74
  opacity: 0;
80
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/popup-renderer",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",