New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ikas/popup-renderer

Package Overview
Dependencies
Maintainers
0
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ikas/popup-renderer - npm Package Compare versions

Comparing version 1.0.203 to 1.0.204

2

build/popup-renderer/components/form-element-renderer/checkbox-item-view/index.js

@@ -1,1 +0,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",flex:"0 0 16px"},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};
import e from"react";import{observer as t}from"mobx-react";import{generateRandomId as n}from"../../../helpers/index.js";var o=t((function(t){var o=t.checkboxItem,r=t.formInputSettings,c=e.useMemo((function(){return"checkbox-".concat(n())}),[o]);e.useEffect((function(){o.showInCheckedStatus?o.isChecked=!0:o.isChecked=!1}),[o.showInCheckedStatus]);var i=o.requiredToBeChecked,a={width:"16px",height:"16px",cursor:"pointer",position:"relative",top:3,appearance:"none",border:"1px solid ".concat(r.borderColor),borderRadius:"4px",flex:"0 0 16px"},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,i&&i.hasError&&o.isChecked&&(i.hasError=!1)},id:c}),e.createElement("div",{style:{color:r.checkboxTextColor},dangerouslySetInnerHTML:{__html:s()}})),!!i&&i.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},i.validationErrorMessage),e.createElement("style",null,"\n #".concat(c," {\n position: relative; /* so pseudo-element is positioned correctly */\n display: inline-block; /* ensures ::after layering works as expected */\n }\n\n #").concat(c,":checked {\n background-color: ").concat(r.borderColor," !important;\n }\n\n /* Draw a checkmark using ::after */\n #").concat(c,'::after {\n content: "";\n position: absolute;\n top: 2px; /* tweak to position your checkmark within the box */\n left: 5px; /* tweak as needed */\n width: 3px;\n height: 8px;\n border: solid #fff;\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n }\n\n #').concat(c,":checked::after {\n opacity: 1;\n }\n ")))}));export{o as CheckboxItemView};

@@ -1,1 +0,1 @@

import e from"react";import{observer as t}from"mobx-react";import{generateRandomId as r}from"../../../helpers/index.js";import{PhoneNumberInput as o}from"../phone-input-item-view/index.js";var n=t((function(t){var n=e.useState(!1),l=n[0],a=n[1];e.useRef(null);var i=e.useMemo((function(){return r()}),[]),c=t.placeholder,u=t.isRequired,s=t.inputLabel;t.updateCurrentInfo;var p=t.validationErrorMessage,d=t.formInputSettings,m=t.value,f=t.onValueChange,x=t.isPhoneInput,h=t.sfProps,v={width:"100%",backgroundColor:d.bgColor?"".concat(d.bgColor):"transparent",border:"".concat(d.borderWidth,"px solid ").concat(l?d.focusBorderColor:d.borderColor),borderRadius:"".concat(d.borderRadius,"px"),fontSize:"14px",padding:"10px 12px",height:"".concat(d.height,"px"),outline:"none"},g=function(e){f(e),u&&u.hasError&&e.length>0&&(u.hasError=!1)},E=u?((null==c?void 0:c.text)||"")+" *":(null==c?void 0:c.text)||"";return e.createElement("div",{style:{width:"100%",display:"flex",gap:2,flexDirection:"column"}},(s||u)&&e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:"6px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},s&&e.createElement("label",{style:{color:d.titleColor,fontSize:"14px"}},s.text)),u&&u.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},u.validationErrorMessage),!!p&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},p)),x?e.createElement(o,{onChange:function(e){return g(e)},placeholder:E,value:m||"",inputStyle:v,sfProps:h,className:"ikas-form-input-item-view-".concat(i)}):e.createElement("input",{type:"text",placeholder:E,value:m||"",onChange:function(e){return g(e.target.value)},style:v,onFocus:function(){return a(!0)},onBlur:function(){return a(!1)},className:"ikas-form-input-item-view-".concat(i)}),e.createElement("style",null,"\n .ikas-form-input-item-view-".concat(i,"::placeholder {\n color: ").concat(d.placeholderColor," !important;\n }\n ")))}));export{n as default};
import e from"react";import{observer as t}from"mobx-react";import{generateRandomId as o}from"../../../helpers/index.js";import{PhoneNumberInput as r}from"../phone-input-item-view/index.js";var n=t((function(t){var n=e.useState(!1),l=n[0],a=n[1];e.useRef(null);var i=e.useMemo((function(){return o()}),[]),c=t.placeholder,s=t.isRequired,u=t.inputLabel;t.updateCurrentInfo;var p=t.validationErrorMessage,d=t.formInputSettings,m=t.value,f=t.onValueChange,x=t.isPhoneInput,h=t.sfProps,v={width:"100%",backgroundColor:d.bgColor?"".concat(d.bgColor):"transparent",border:"".concat(d.borderWidth,"px solid ").concat(l?d.focusBorderColor:d.borderColor),borderRadius:"".concat(d.borderRadius,"px"),fontSize:"14px",padding:"10px 12px",height:"".concat(d.height,"px"),outline:"none"},g=function(e){f(e),s&&s.hasError&&e.length>0&&(s.hasError=!1)},E=s?((null==c?void 0:c.text)||"")+" *":(null==c?void 0:c.text)||"";return e.createElement("div",{style:{width:"100%",display:"flex",gap:2,flexDirection:"column"}},(u||s)&&e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:"6px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},u&&e.createElement("label",{style:{color:d.titleColor,fontSize:"14px"}},u.text)),s&&s.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},s.validationErrorMessage),!!p&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},p)),x?e.createElement(r,{onChange:function(e){return g(e)},placeholder:E,value:m||"",inputStyle:v,sfProps:h,className:"ikas-form-input-item-view-".concat(i),setIsFocused:a}):e.createElement("input",{type:"text",placeholder:E,value:m||"",onChange:function(e){return g(e.target.value)},style:v,onFocus:function(){return a(!0)},onBlur:function(){return a(!1)},className:"ikas-form-input-item-view-".concat(i)}),e.createElement("style",null,"\n .ikas-form-input-item-view-".concat(i,"::placeholder {\n color: ").concat(d.placeholderColor," !important;\n }\n ")))}));export{n as default};

@@ -11,4 +11,5 @@ import * as React from "react";

className?: string;
setIsFocused: (isFocused: boolean) => void;
};
export declare const PhoneNumberInput: React.FC<Props>;
export {};

@@ -1,1 +0,1 @@

import{__awaiter as e,__assign as t,__generator as o}from'./../../../../ext/tslib/tslib.es6.mjs.js';import*as r from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import n from'./../../../../ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js';import'./../../../../ext/libphonenumber-js/es6/PhoneNumberMatcher.js';import'./../../../../ext/libphonenumber-js/es6/AsYouTypeFormatter.js';import{parsePhoneNumber as i}from'./../../../../ext/libphonenumber-js/min/exports/parsePhoneNumber.js';import'./../../../../ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js';import'./../../../../ext/libphonenumber-js/min/exports/AsYouType.js';import{isSupportedCountry as s}from'./../../../../ext/libphonenumber-js/min/exports/isSupportedCountry.js';import{getCountryCallingCode as l}from'./../../../../ext/libphonenumber-js/min/exports/getCountryCallingCode.js';import'./../../../../ext/libphonenumber-js/min/exports/Metadata.js';import{formatIncompletePhoneNumber as a}from'./../../../../ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js';import'./../../../../ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js';import'./../../../../ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js';import m from"./get-countries.js";import{observer as u}from'./../../../../ext/mobx-react-lite/es/observer.js';var d=u((function(u){var d=u.disabled,p=void 0!==d&&d,c=u.placeholder,b=u.value,h=u.onChange,v=u.inputStyle,f=u.className,g=u.sfProps,j=r.useState([]),x=j[0],y=j[1],C=r.useState((null==g?void 0:g.currentCountryCode)||"TR"),_=C[0],E=C[1],N=r.useState(""),w=N[0],S=N[1];r.useEffect((function(){P();var e=_;if(s(e)||(e="US"),b){var t=i(b);t&&t.country&&(e=t.country),S(a(b,e))}else k(e);E(e)}),[null==g?void 0:g.currentCountryCode]);var P=function(){return e(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,m(null==g?void 0:g.currentLocale)];case 1:return e=t.sent(),y(e),[2]}}))}))},k=function(e){var t=l(e);S("+".concat(t))},I=function(e){return a(e,_)};return r.createElement("div",{style:t({position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",gap:8,pointerEvents:g?void 0:"none"},v)},r.createElement("div",{style:{}},r.createElement("div",{style:{position:"relative",width:"35px",height:"24px",flex:"0 0 35px"}},r.createElement("div",{style:{position:"relative",width:"35px",height:"24px",display:"flex",alignItems:"center"}},r.createElement("img",{style:{width:"24px",flex:"0 0 24px"},alt:_,src:"https://cdn.myikas.com/sf/assets/flags/3x2/".concat(_,".svg")}),r.createElement("div",{style:{display:"block",width:"0.3em",height:"0.3em",marginLeft:"0.35em",marginTop:"-0.2em",borderStyle:"solid",borderColor:"inherit",borderTopWidth:0,borderBottomWidth:"1px",borderLeftWidth:0,borderRightWidth:"1px",transform:"rotate(45deg)",opacity:.45,flex:"0 0 0.3em"}})),r.createElement("select",{style:{position:"absolute",top:0,left:0,zIndex:1,padding:0,opacity:0,border:0,width:"100%",height:"100%",cursor:"pointer"},value:_,onChange:function(e){if(e.target.value){var t=e.target.value;E(t),k(t)}},disabled:p},x.map((function(e){return r.createElement("option",{key:e.value,value:e.value},e.label)}))))),r.createElement("input",{type:"tel",autoComplete:"tel",value:w,onChange:function(e){var t=x.find((function(t){var o;return t.value===(null===(o=i(e.target.value))||void 0===o?void 0:o.country)}));t&&E(t.value);var o=I(e.target.value);S(o),h(o?n(o):e.target.value)},placeholder:c,disabled:p,className:f,style:{width:"100%",backgroundColor:"transparent",background:"transparent",border:"none",outline:"none"}}))}));export{d as PhoneNumberInput};
import{__awaiter as e,__assign as t,__generator as o}from'./../../../../ext/tslib/tslib.es6.mjs.js';import*as r from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import n from'./../../../../ext/libphonenumber-js/es6/parseIncompletePhoneNumber.js';import'./../../../../ext/libphonenumber-js/es6/PhoneNumberMatcher.js';import'./../../../../ext/libphonenumber-js/es6/AsYouTypeFormatter.js';import{parsePhoneNumber as i}from'./../../../../ext/libphonenumber-js/min/exports/parsePhoneNumber.js';import'./../../../../ext/libphonenumber-js/min/exports/PhoneNumberMatcher.js';import'./../../../../ext/libphonenumber-js/min/exports/AsYouType.js';import{isSupportedCountry as s}from'./../../../../ext/libphonenumber-js/min/exports/isSupportedCountry.js';import{getCountryCallingCode as l}from'./../../../../ext/libphonenumber-js/min/exports/getCountryCallingCode.js';import'./../../../../ext/libphonenumber-js/min/exports/Metadata.js';import{formatIncompletePhoneNumber as a}from'./../../../../ext/libphonenumber-js/min/exports/formatIncompletePhoneNumber.js';import'./../../../../ext/libphonenumber-js/es6/findNumbers/isValidCandidate.js';import'./../../../../ext/libphonenumber-js/index.es6.exports/PhoneNumberSearch.js';import u from"./get-countries.js";import{observer as m}from'./../../../../ext/mobx-react-lite/es/observer.js';var d=m((function(m){var d=m.disabled,p=void 0!==d&&d,c=m.placeholder,b=m.value,h=m.onChange,v=m.inputStyle,f=m.className,g=m.sfProps,j=m.setIsFocused,x=r.useState([]),y=x[0],C=x[1],_=r.useState((null==g?void 0:g.currentCountryCode)||"TR"),E=_[0],N=_[1],w=r.useState(""),S=w[0],P=w[1];r.useEffect((function(){I();var e=E;if(s(e)||(e="US"),b){var t=i(b);t&&t.country&&(e=t.country),P(a(b,e))}else k(e);N(e)}),[null==g?void 0:g.currentCountryCode]);var I=function(){return e(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,u(null==g?void 0:g.currentLocale)];case 1:return e=t.sent(),C(e),[2]}}))}))},k=function(e){var t=l(e);P("+".concat(t))},T=function(e){return a(e,E)};return r.createElement("div",{style:t({position:"relative",width:"100%",height:"100%",display:"flex",alignItems:"center",gap:8,pointerEvents:g?void 0:"none"},v),onFocus:function(){return j(!0)},onBlur:function(){return j(!1)}},r.createElement("div",{style:{}},r.createElement("div",{style:{position:"relative",width:"35px",height:"24px",flex:"0 0 35px"}},r.createElement("div",{style:{position:"relative",width:"35px",height:"24px",display:"flex",alignItems:"center"}},r.createElement("img",{style:{width:"24px",flex:"0 0 24px"},alt:E,src:"https://cdn.myikas.com/sf/assets/flags/3x2/".concat(E,".svg")}),r.createElement("div",{style:{display:"block",width:"0.3em",height:"0.3em",marginLeft:"0.35em",marginTop:"-0.2em",borderStyle:"solid",borderColor:"inherit",borderTopWidth:0,borderBottomWidth:"1px",borderLeftWidth:0,borderRightWidth:"1px",transform:"rotate(45deg)",opacity:.45,flex:"0 0 0.3em"}})),r.createElement("select",{style:{position:"absolute",top:0,left:0,zIndex:1,padding:0,opacity:0,border:0,width:"100%",height:"100%",cursor:"pointer"},value:E,onChange:function(e){if(e.target.value){var t=e.target.value;N(t),k(t)}},disabled:p},y.map((function(e){return r.createElement("option",{key:e.value,value:e.value},e.label)}))))),r.createElement("input",{type:"tel",autoComplete:"tel",value:S,onChange:function(e){var t=y.find((function(t){var o;return t.value===(null===(o=i(e.target.value))||void 0===o?void 0:o.country)}));t&&N(t.value);var o=T(e.target.value);P(o),h(o?n(o):e.target.value)},placeholder:c,disabled:p,className:f,style:{width:"100%",backgroundColor:"transparent",background:"transparent",border:"none",outline:"none"}}))}));export{d as PhoneNumberInput};
{
"name": "@ikas/popup-renderer",
"version": "1.0.203",
"version": "1.0.204",
"description": "",

@@ -5,0 +5,0 @@ "author": "ucy",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc