@ikas/popup-renderer 1.0.195 → 1.0.197

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{observer as t}from"mobx-react";import{generateRandomId as r}from"../../../helpers/index.js";var o=t((function(t){var o=t.checkboxItem,c=t.formInputSettings,n="checkbox-".concat(r());e.useEffect((function(){o.showInCheckedStatus?o.isChecked=!0:o.isChecked=!1}),[o.showInCheckedStatus]);var i=o.requiredToBeChecked,a=e.useCallback((function(){var e=/<pre[^>]*>([\s\S]*?)<\/pre>/.exec(o.text);return e?e[1]:o.text}),[o.text]);return e.createElement("div",{style:{width:"100%",display:"flex",gap:6,flexDirection:"column"}},e.createElement("div",{style:{width:"100%",display:"flex",gap:8,flexDirection:"row",alignItems:"baseline",wordBreak:"break-word"}},e.createElement("input",{style:{width:"16px",height:"16px",cursor:"pointer",position:"relative",top:3},type:"checkbox",checked:o.isChecked,onChange:function(){o.isChecked=!o.isChecked,i&&i.hasError&&o.isChecked&&(i.hasError=!1)},id:n}),e.createElement("style",null,"\n #".concat(n,' input[type="checkbox"] {\n border-color: ').concat(c.borderColor,";\n }\n ")),e.createElement("div",{style:{color:c.checkboxTextColor},dangerouslySetInnerHTML:{__html:a()}})),!!i&&i.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},i.validationErrorMessage))}));export{o as CheckboxItemView};
1
+ import e from"react";import{observer as r}from"mobx-react";import{generateRandomId as t}from"../../../helpers/index.js";var o=r((function(r){var o=r.checkboxItem,c=r.formInputSettings,i="checkbox-".concat(t());e.useEffect((function(){o.showInCheckedStatus?o.isChecked=!0:o.isChecked=!1}),[o.showInCheckedStatus]);var n=o.requiredToBeChecked,a={width:"16px",height:"16px",cursor:"pointer",position:"relative",top:3,appearance:"none",border:"1px solid ".concat(c.borderColor),borderRadius:"4px"},s=e.useCallback((function(){var e=/<pre[^>]*>([\s\S]*?)<\/pre>/.exec(o.text);return e?e[1]:o.text}),[o.text]);return e.createElement("div",{style:{width:"100%",display:"flex",gap:6,flexDirection:"column"}},e.createElement("div",{style:{width:"100%",display:"flex",gap:8,flexDirection:"row",alignItems:"baseline",wordBreak:"break-word"}},e.createElement("input",{style:a,type:"checkbox",checked:o.isChecked,onChange:function(){o.isChecked=!o.isChecked,n&&n.hasError&&o.isChecked&&(n.hasError=!1)},id:i}),e.createElement("div",{style:{color:c.checkboxTextColor},dangerouslySetInnerHTML:{__html:s()}})),!!n&&n.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},n.validationErrorMessage))}));export{o as CheckboxItemView};
@@ -1 +1 @@
1
- import{makeObservable as o,observable as r}from"mobx";import{IkasPopupRendererFontFamily as t}from"../../base/index.js";var e=function(e){var l,d;void 0===e&&(e={}),this.formInputSettings=e.formInputSettings?new i(e.formInputSettings):new i({borderColor:"#E3E8EF",focusBorderColor:"#000000"}),this.gapBetweenItems=null!==(l=e.gapBetweenItems)&&void 0!==l?l:12,this.fontFamily=new t(e.fontFamily),this.fontSize=null!==(d=e.fontSize)&&void 0!==d?d:14,o(this,{formInputSettings:r,gapBetweenItems:r,fontFamily:r,fontSize:r})},i=function(t){var e,i,l;void 0===t&&(t={}),this.bgColor=t.bgColor||"",this.borderWidth=null!==(e=t.borderWidth)&&void 0!==e?e:1,this.borderRadius=null!==(i=t.borderRadius)&&void 0!==i?i:4,this.borderColor=t.borderColor||"",this.focusBorderColor=t.focusBorderColor||"",this.height=null!==(l=t.height)&&void 0!==l?l:40,this.placeholderColor=t.placeholderColor||"#999999",this.titleColor=t.titleColor||"#000000",this.checkboxTextColor=t.checkboxTextColor||"#000000",o(this,{bgColor:r,borderWidth:r,borderRadius:r,borderColor:r,focusBorderColor:r,height:r,placeholderColor:r,titleColor:r,checkboxTextColor:r})};export{i as FormInputSettings,e as FormSettings};
1
+ import{makeObservable as o,observable as r}from"mobx";import{IkasPopupRendererFontFamily as e}from"../../base/index.js";var t=function(t){var l,d;void 0===t&&(t={}),this.formInputSettings=t.formInputSettings?new i(t.formInputSettings):new i({borderColor:"#E3E8EF",focusBorderColor:"#000000"}),this.gapBetweenItems=null!==(l=t.gapBetweenItems)&&void 0!==l?l:12,this.fontFamily=new e(t.fontFamily),this.fontSize=null!==(d=t.fontSize)&&void 0!==d?d:14,o(this,{formInputSettings:r,gapBetweenItems:r,fontFamily:r,fontSize:r})},i=function(e){var t,i,l;void 0===e&&(e={}),this.bgColor=e.bgColor||"",this.borderWidth=null!==(t=e.borderWidth)&&void 0!==t?t:1,this.borderRadius=null!==(i=e.borderRadius)&&void 0!==i?i:4,this.borderColor=e.borderColor||"",this.focusBorderColor=e.focusBorderColor||"",this.height=null!==(l=e.height)&&void 0!==l?l:40,this.placeholderColor=e.placeholderColor?e.placeholderColor:"#697586",this.titleColor=e.titleColor?e.titleColor:"#121926",this.checkboxTextColor=e.checkboxTextColor?e.checkboxTextColor:"#121926",o(this,{bgColor:r,borderWidth:r,borderRadius:r,borderColor:r,focusBorderColor:r,height:r,placeholderColor:r,titleColor:r,checkboxTextColor:r})};export{i as FormInputSettings,t as FormSettings};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/popup-renderer",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",