@che-ins-ui/contacts
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -162,5 +162,5 @@ 'use strict'; | ||
children: jsxRuntime.jsx("div", { | ||
"data-options": mangoDataOptions, | ||
className: "mango-call-site", | ||
children: jsxRuntime.jsxs("button", { | ||
"data-options": mangoDataOptions, | ||
className: classnames(classNames.contactsCallUsButtonClassName, "support-call-button"), | ||
@@ -167,0 +167,0 @@ children: [jsxRuntime.jsx(CallIcon.CallIcon, {}), callUsButton.title] |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,s,e=require("react/jsx-runtime"),a=require("react"),c=(t=require("classnames"))&&"object"==typeof t&&"default"in t?t.default:t,n=require("@che-ins-ui/icons/CallIcon"),i=require("@che-ins-ui/theme"),o=require("react-jss"),l={contactsList:"contactsList",contactsListItem:"contactsListItem",contactsListItemLink:"contactsListItemLink",contactsListItemSocialNetworks:"contactsListItemSocialNetworks",contactsSocialNetworkLink:"contactsSocialNetworkLink",callUsButton:"callUsButton"},r=((s={})[l.contactsList]={padding:"0px",listStyle:"none",margin:"0px",display:"flex",flexDirection:"column",gap:"9px",width:"max-content",flexShrink:0},s[l.contactsListItem]={color:"#808FA4",fontSize:"13px",fontWeight:400,letterSpacing:"-.45px"},s[l.contactsListItemSocialNetworks]={marginTop:"19px",display:"flex",gap:"20px"},s[l.contactsSocialNetworkLink]={},s[l.contactsListItemLink]={textDecoration:"none",marginRight:"3px",fontSize:"13px",fontWeight:400,letterSpacing:"-.45px",color:"#636AFF"},s[l.callUsButton]={display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"25px",background:"white",border:"1px solid currentColor",borderRadius:"8px",padding:"0 6px",color:"#636AFF",cursor:"pointer",transition:"0.2s","& svg":{marginRight:"5px"},"&:hover":{background:"#EDF4FE"},"&:active":{transform:"scale(0.95)"}},s),m=o.createUseStyles(i.createClasses(r,"@che/contacts"),{name:"contacts"}),N=a.memo((function(t){var s=t.baseAppearance,o=void 0===s?"base":s,l=t.appearance,r=void 0===l?"base":l,N=t.contacts,p=N.availableTime,u=N.phones,L=N.email,x=N.callUsButton,C=N.socialNetworks,d=m(),h=a.useMemo((function(){return{contactsListClassName:i.getClassName(d,o,r,"contactsList"),contactsListItemClassName:i.getClassName(d,o,r,"contactsListItem"),contactsListItemLinkClassName:i.getClassName(d,o,r,"contactsListItemLink"),contactsCallUsButtonClassName:i.getClassName(d,o,r,"callUsButton"),contactsListItemSocialNetworksClassName:i.getClassName(d,o,r,"contactsListItemSocialNetworks"),contactsSocialNetworkLinkClassName:i.getClassName(d,o,r,"contactsSocialNetworkLink")}}),[d,o,r]),g=JSON.stringify({host:"widgets.mango-office.ru/",id:"MTAwMTc3NjI=",errorMessage:"В данный момент наблюдаются технические проблемы и совершение звонка невозможно"});return e.jsxs("ul",{className:h.contactsListClassName,children:[e.jsx("li",{className:h.contactsListItemClassName,children:p}),u.map((function(t){var s=t.phone,a=t.label;return e.jsxs("li",{className:h.contactsListItemClassName,children:[e.jsx("a",{href:"tel:"+s,className:h.contactsListItemLinkClassName,children:t.title})," ",e.jsx("span",{children:a})]},s)})),e.jsx("li",{className:h.contactsListItemClassName,children:e.jsx("a",{href:"mailto:"+L,className:h.contactsListItemLinkClassName,children:L})}),x&&e.jsx("li",{className:h.contactsListItemClassName,children:e.jsx("div",{className:"mango-call-site",children:e.jsxs("button",{"data-options":g,className:c(h.contactsCallUsButtonClassName,"support-call-button"),children:[e.jsx(n.CallIcon,{}),x.title]})})}),!(null==C||!C.length)&&e.jsx("li",{className:h.contactsListItemSocialNetworksClassName,children:C.map((function(t,s){return e.jsx("a",{href:t.link,target:"_blank",referrerPolicy:"no-referrer",className:h.contactsSocialNetworkLinkClassName,children:t.icon},s)}))})]})}));exports.CONTACTS_COMPONENTS_NAMES=l,exports.CONTACTS_COMPONENT_NAMESPACE="@che/contacts",exports.Contacts=N; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,s,e=require("react/jsx-runtime"),a=require("react"),c=(t=require("classnames"))&&"object"==typeof t&&"default"in t?t.default:t,n=require("@che-ins-ui/icons/CallIcon"),i=require("@che-ins-ui/theme"),o=require("react-jss"),l={contactsList:"contactsList",contactsListItem:"contactsListItem",contactsListItemLink:"contactsListItemLink",contactsListItemSocialNetworks:"contactsListItemSocialNetworks",contactsSocialNetworkLink:"contactsSocialNetworkLink",callUsButton:"callUsButton"},r=((s={})[l.contactsList]={padding:"0px",listStyle:"none",margin:"0px",display:"flex",flexDirection:"column",gap:"9px",width:"max-content",flexShrink:0},s[l.contactsListItem]={color:"#808FA4",fontSize:"13px",fontWeight:400,letterSpacing:"-.45px"},s[l.contactsListItemSocialNetworks]={marginTop:"19px",display:"flex",gap:"20px"},s[l.contactsSocialNetworkLink]={},s[l.contactsListItemLink]={textDecoration:"none",marginRight:"3px",fontSize:"13px",fontWeight:400,letterSpacing:"-.45px",color:"#636AFF"},s[l.callUsButton]={display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:"25px",background:"white",border:"1px solid currentColor",borderRadius:"8px",padding:"0 6px",color:"#636AFF",cursor:"pointer",transition:"0.2s","& svg":{marginRight:"5px"},"&:hover":{background:"#EDF4FE"},"&:active":{transform:"scale(0.95)"}},s),m=o.createUseStyles(i.createClasses(r,"@che/contacts"),{name:"contacts"}),N=a.memo((function(t){var s=t.baseAppearance,o=void 0===s?"base":s,l=t.appearance,r=void 0===l?"base":l,N=t.contacts,p=N.availableTime,u=N.phones,L=N.email,x=N.callUsButton,C=N.socialNetworks,d=m(),h=a.useMemo((function(){return{contactsListClassName:i.getClassName(d,o,r,"contactsList"),contactsListItemClassName:i.getClassName(d,o,r,"contactsListItem"),contactsListItemLinkClassName:i.getClassName(d,o,r,"contactsListItemLink"),contactsCallUsButtonClassName:i.getClassName(d,o,r,"callUsButton"),contactsListItemSocialNetworksClassName:i.getClassName(d,o,r,"contactsListItemSocialNetworks"),contactsSocialNetworkLinkClassName:i.getClassName(d,o,r,"contactsSocialNetworkLink")}}),[d,o,r]),g=JSON.stringify({host:"widgets.mango-office.ru/",id:"MTAwMTc3NjI=",errorMessage:"В данный момент наблюдаются технические проблемы и совершение звонка невозможно"});return e.jsxs("ul",{className:h.contactsListClassName,children:[e.jsx("li",{className:h.contactsListItemClassName,children:p}),u.map((function(t){var s=t.phone,a=t.label;return e.jsxs("li",{className:h.contactsListItemClassName,children:[e.jsx("a",{href:"tel:"+s,className:h.contactsListItemLinkClassName,children:t.title})," ",e.jsx("span",{children:a})]},s)})),e.jsx("li",{className:h.contactsListItemClassName,children:e.jsx("a",{href:"mailto:"+L,className:h.contactsListItemLinkClassName,children:L})}),x&&e.jsx("li",{className:h.contactsListItemClassName,children:e.jsx("div",{"data-options":g,className:"mango-call-site",children:e.jsxs("button",{className:c(h.contactsCallUsButtonClassName,"support-call-button"),children:[e.jsx(n.CallIcon,{}),x.title]})})}),!(null==C||!C.length)&&e.jsx("li",{className:h.contactsListItemSocialNetworksClassName,children:C.map((function(t,s){return e.jsx("a",{href:t.link,target:"_blank",referrerPolicy:"no-referrer",className:h.contactsSocialNetworkLinkClassName,children:t.icon},s)}))})]})}));exports.CONTACTS_COMPONENTS_NAMES=l,exports.CONTACTS_COMPONENT_NAMESPACE="@che/contacts",exports.Contacts=N; | ||
//# sourceMappingURL=contacts.cjs.production.min.js.map |
@@ -156,5 +156,5 @@ import { jsxs, jsx } from 'react/jsx-runtime'; | ||
children: jsx("div", { | ||
"data-options": mangoDataOptions, | ||
className: "mango-call-site", | ||
children: jsxs("button", { | ||
"data-options": mangoDataOptions, | ||
className: classnames(classNames.contactsCallUsButtonClassName, "support-call-button"), | ||
@@ -161,0 +161,0 @@ children: [jsx(CallIcon, {}), callUsButton.title] |
{ | ||
"name": "@che-ins-ui/contacts", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "<>", | ||
@@ -26,4 +26,4 @@ "build:storybook": "src/index.ts", | ||
"dependencies": { | ||
"@che-ins-ui/icons": "^2.1.4", | ||
"@che-ins-ui/theme": "^2.0.6", | ||
"@che-ins-ui/icons": "^2.1.5", | ||
"@che-ins-ui/theme": "^2.0.7", | ||
"classnames": "^2.3.1" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "d3295ca7c989d56216472e69620ebcd8f3889a1b" | ||
"gitHead": "b41ba72251f3e402078aeba2f5f18275abd4f3c7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57997
Updated@che-ins-ui/icons@^2.1.5
Updated@che-ins-ui/theme@^2.0.7