@sunrise-upc/mobile-prod-card 13.1.0-beta.0 → 13.2.0-beta.1
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/dist/esm/components/StaticLineTable/StaticProductEntitlement.js +1 -1
- package/dist/esm/components/StaticLineTable/StaticProductEntitlement.js.map +1 -1
- package/dist/esm/components/ToolTip/ToolTip.css +1 -1
- package/dist/esm/components/ToolTip/ToolTip.js +1 -1
- package/dist/esm/components/ToolTip/ToolTip.js.map +1 -1
- package/dist/esm/components/ToolTip/ToolTip.module.scss.js +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as l}from"react";import t from"./StaticProductEntitle.module.scss.js";import i from"../ToolTip/ToolTip.js";import n from"../richtext.js";import{AssetPathPropConfig as a}from"../../services/LineTableBasicPropConfig.js";import"../../services/ProductTeaserPropsConfig.js";import"../../services/LinecheckBasicPropConfig.js";import"../../services/LoginBasicPropConfig.js";import"../../services/DevicePropConfig.js";import"../../services/StickyBottomSheetConfig.js";import"../../services/ServiceOptionsPropConfig.js";import{Form as o}from"react-bootstrap";import d from"./TvOptionsContainer.js";const c=({content:c,constants:s,showModalPopup:r,setToggleState:
|
|
1
|
+
import e,{useRef as l}from"react";import t from"./StaticProductEntitle.module.scss.js";import i from"../ToolTip/ToolTip.js";import n from"../richtext.js";import{AssetPathPropConfig as a}from"../../services/LineTableBasicPropConfig.js";import"../../services/ProductTeaserPropsConfig.js";import"../../services/LinecheckBasicPropConfig.js";import"../../services/LoginBasicPropConfig.js";import"../../services/DevicePropConfig.js";import"../../services/StickyBottomSheetConfig.js";import"../../services/ServiceOptionsPropConfig.js";import{Form as o}from"react-bootstrap";import d from"./TvOptionsContainer.js";const c=({content:c,constants:s,showModalPopup:r,setToggleState:v,toggleState:m,noTabs:g,mainContent:u,enableTVStreamingOptions:p,metadata:T,setTvOptionsData:f,sectionId:E,tabIndex:N,rowIndex:h})=>{var S,x,j,b,C,P;const V=l(null),O=null===(S=null==a?void 0:a.getInstance())||void 0===S?void 0:S.getAssetPath(),y=(null==m?void 0:m.TV)&&(null==c?void 0:c.addTV)?null==c?void 0:c.addedTVTitle:(null==m?void 0:m.Netflix)&&(null==c?void 0:c.addNetflix)?null==c?void 0:c.addedNetflixTitle:((null==c?void 0:c.addTV)||(null==c?void 0:c.addNetflix))&&g?null==c?void 0:c.toggleTitle:!(null==m?void 0:m.gigaSpeed)&&(null==c?void 0:c.addGigaSpeedToggle)?null==c?void 0:c.addGigaSpeedToggleTitle:(null==m?void 0:m.gigaSpeed)&&(null==c?void 0:c.addGigaSpeedToggle)?null==c?void 0:c.addedGigaSpeedToggleTitle:null==c?void 0:c.title;return e.createElement("div",null,e.createElement("div",{ref:V},e.createElement("div",{className:t.productdetailswrapper,id:E,"data-entitlement-tab":N,"data-entitlement-row":h},e.createElement("div",{className:t.configheadersection,style:{width:"100%"}},(null===(x=null==c?void 0:c.icon)||void 0===x?void 0:x.filename)&&e.createElement("span",null,e.createElement("img",{src:null===(j=null==c?void 0:c.icon)||void 0===j?void 0:j.filename,alt:"img",width:24,height:24,className:t.imagecontainer})),e.createElement("span",{className:((null==c?void 0:c.addTV)||(null==c?void 0:c.addNetflix)||(null==c?void 0:c.addGigaSpeedToggle))&&g?t.titlename:t.displayname},y),e.createElement("div",{className:t.tvcontainer},(null==c?void 0:c.addTV)&&(null==c?void 0:c.TVPrice)&&g&&e.createElement("span",{className:t.price},null==c?void 0:c.TVPrice),(null==c?void 0:c.addNetflix)&&(null==c?void 0:c.NetflixPrice)&&g&&e.createElement("span",{className:t.price},null==c?void 0:c.NetflixPrice),(null==c?void 0:c.addTV)&&g&&e.createElement("span",{className:t.toggle},e.createElement(o,null,e.createElement(o.Check,{type:"switch",readOnly:!0,checked:null==m?void 0:m.TV,onClick:()=>{v(Object.assign(Object.assign({},m),{TV:!(null==m?void 0:m.TV),Netflix:!1}))}}))),(null==c?void 0:c.addNetflix)&&g&&e.createElement("span",{className:t.toggle},e.createElement(o,null,e.createElement(o.Check,{type:"switch",readOnly:!0,checked:null==m?void 0:m.Netflix,onClick:()=>{v(Object.assign(Object.assign({},m),{Netflix:!(null==m?void 0:m.Netflix)}))}}))),(null==c?void 0:c.addGigaSpeedToggle)&&g&&e.createElement("span",{className:t.toggle},e.createElement(o,null,e.createElement(o.Check,{type:"switch",readOnly:!0,checked:null==m?void 0:m.gigaSpeed,onClick:()=>{v(Object.assign(Object.assign({},m),{gigaSpeed:!(null==m?void 0:m.gigaSpeed),gigaSpeedSelectionTitle:(null==c?void 0:c.addGigaSpeedToggleAnalyticsTitle)||"Enable 2.5 Gbits Mode"}))}})))),!(null==c?void 0:c.addGigaSpeedToggle)&&((null===(b=null==c?void 0:c.advancedTooltip)||void 0===b?void 0:b.length)>0||(null==c?void 0:c.tooltip))?e.createElement("div",{className:t.tooltip,style:{marginLeft:"auto"}},e.createElement(i,{content:null==c?void 0:c.tooltip,advancedTooltip:null==c?void 0:c.advancedTooltip,defaultPlacement:"left"})):null),e.createElement("div",{className:t.gigacontainer},(null==c?void 0:c.addGigaSpeedToggle)&&((null===(C=null==c?void 0:c.advancedTooltip)||void 0===C?void 0:C.length)>0||(null==c?void 0:c.tooltip))?e.createElement(e.Fragment,null,e.createElement("div",null,null==c?void 0:c.title),e.createElement("div",{className:t.bundletooltip,style:{marginLeft:"auto"}},e.createElement(i,{content:null==c?void 0:c.tooltip,advancedTooltip:null==c?void 0:c.advancedTooltip,defaultPlacement:"left"}))):null),e.createElement("div",{className:t.configdetailssection},(null==c?void 0:c.channelName)&&(null==c?void 0:c.enableTV)&&e.createElement("div",{className:t.newmodal,onClick:()=>{r()}},e.createElement("div",{className:t.tvHeading},null==c?void 0:c.channelName),e.createElement("div",{className:t.changeBtn},s.changeText),e.createElement("img",{src:`${O}/icons/chevron-down-red.svg`,height:24,width:24,alt:""})),(null==c?void 0:c.descriptionList)&&e.createElement("div",{id:"entitledespV3"},null===(P=null==c?void 0:c.descriptionList)||void 0===P?void 0:P.map((l,i)=>e.createElement("div",{key:i,className:t.descList},e.createElement(n,{content:null==l?void 0:l.text}))))),((null==c?void 0:c.addTV)||"tv"===(null==c?void 0:c.type))&&p&&e.createElement("div",{className:t.TvOptionsection},e.createElement(d,{content:u,constants:s,metadata:T,setTvOptionsData:f})))))};export{c as default};
|
|
2
2
|
//# sourceMappingURL=StaticProductEntitlement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticProductEntitlement.js","sources":["../../../../src/components/StaticLineTable/StaticProductEntitlement.tsx"],"sourcesContent":[null],"names":["StaticProductEntitlement","content","constants","showModalPopup","setToggleState","toggleState","noTabs","mainContent","enableTVStreamingOptions","metadata","setTvOptionsData","sectionId","tabIndex","rowIndex","entitlementSection","useRef","assetPath","_a","AssetPathPropConfig","getInstance","getAssetPath","titleTV","TV","addTV","addedTVTitle","Netflix","addNetflix","addedNetflixTitle","toggleTitle","gigaSpeed","addGigaSpeedToggle","addGigaSpeedToggleTitle","addedGigaSpeedToggleTitle","title","React","createElement","ref","className","Styles","productdetailswrapper","id","configheadersection","style","width","_b","icon","filename","src","_c","alt","height","imagecontainer","titlename","displayname","tvcontainer","TVPrice","price","NetflixPrice","toggle","Form","Check","type","readOnly","checked","onClick","Object","assign","gigaSpeedSelectionTitle","addGigaSpeedToggleAnalyticsTitle","tooltip","marginLeft","ToolTip","gigacontainer","Fragment","bundletooltip","configdetailssection","channelName","enableTV","newmodal","tvHeading","changeBtn","changeText","descriptionList","
|
|
1
|
+
{"version":3,"file":"StaticProductEntitlement.js","sources":["../../../../src/components/StaticLineTable/StaticProductEntitlement.tsx"],"sourcesContent":[null],"names":["StaticProductEntitlement","content","constants","showModalPopup","setToggleState","toggleState","noTabs","mainContent","enableTVStreamingOptions","metadata","setTvOptionsData","sectionId","tabIndex","rowIndex","entitlementSection","useRef","assetPath","_a","AssetPathPropConfig","getInstance","getAssetPath","titleTV","TV","addTV","addedTVTitle","Netflix","addNetflix","addedNetflixTitle","toggleTitle","gigaSpeed","addGigaSpeedToggle","addGigaSpeedToggleTitle","addedGigaSpeedToggleTitle","title","React","createElement","ref","className","Styles","productdetailswrapper","id","configheadersection","style","width","_b","icon","filename","src","_c","alt","height","imagecontainer","titlename","displayname","tvcontainer","TVPrice","price","NetflixPrice","toggle","Form","Check","type","readOnly","checked","onClick","Object","assign","gigaSpeedSelectionTitle","addGigaSpeedToggleAnalyticsTitle","_d","advancedTooltip","length","tooltip","marginLeft","ToolTip","defaultPlacement","gigacontainer","_e","Fragment","bundletooltip","configdetailssection","channelName","enableTV","newmodal","tvHeading","changeBtn","changeText","descriptionList","_f","map","item","index","key","descList","RichText","text","TvOptionsection","TvOptionsContainer"],"mappings":"8lBAQA,MAAMA,EAAoC,EACxCC,UACAC,YACAC,iBACAC,iBACAC,cACAC,SACAC,cACAC,2BACAC,WACAC,mBACAC,YACAC,WACAC,+BAEA,MAAMC,EAAqBC,EAAuB,MAC5CC,EAA8C,QAAlCC,EAAAC,aAAmB,EAAnBA,EAAqBC,qBAAa,IAAAF,OAAA,EAAAA,EAAEG,eAChDC,GACJhB,eAAAA,EAAaiB,MAAMrB,eAAAA,EAASsB,OACxBtB,aAAO,EAAPA,EAASuB,cACTnB,eAAAA,EAAaoB,WAAWxB,eAAAA,EAASyB,YAC/BzB,aAAO,EAAPA,EAAS0B,oBACR1B,aAAO,EAAPA,EAASsB,SAAStB,aAAO,EAAPA,EAASyB,cAAepB,EACzCL,aAAO,EAAPA,EAAS2B,cACRvB,eAAAA,EAAawB,aAAa5B,eAAAA,EAAS6B,oBAClC7B,aAAO,EAAPA,EAAS8B,yBACT1B,eAAAA,EAAawB,aAAa5B,eAAAA,EAAS6B,oBACjC7B,aAAO,EAAPA,EAAS+B,0BACT/B,eAAAA,EAASgC,MAEvB,OACEC,EAAAC,cAAA,MAAA,KACED,EAAAC,cAAA,MAAA,CAAKC,IAAKtB,GACRoB,EAAAC,cAAA,MAAA,CACEE,UAAWC,EAAOC,sB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px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}.card_eq9Pj.border-top_owz6e{border-top-left-radius:16px;border-top-right-radius:16px;box-shadow:0 -2px 20px 0 rgba(61,57,53,.2);border:none}@media (min-width:768px){.sr-desk-card_ss7EA{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}@media (max-width:767px){.sr-mob-card_iNYOk{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}@media (min-width:1024px){.sr-md-card_TrrAG{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}.tooltipicon_U5Rvt{height:24px;margin-left:4px;min-width:20px;width:24px;cursor:pointer}@media (max-width:767px){.tooltipicon_U5Rvt img{width:inherit;height:inherit}}.benefits_-gI-y img{width:20px!important;height:20px!important}.errorTrigger_R-1jN{display:inline-flex;align-items:center;cursor:pointer;margin-left:4px}.errorPopover_7wgbR{max-width:320px}.errorPopover_7wgbR .popover-body{padding:14px 44px 14px 14px;position:relative}.errorPopoverLayout_3Agk-{display:flex;align-items:flex-start;gap:10px;position:relative}.errorPopoverWarningIcon_otRG6{flex-shrink:0;margin-top:7px}.errorPopoverContent_KVPLZ{flex:1 1 auto;min-width:0}.errorPopoverContent_KVPLZ p{margin:0}.errorPopoverContent_KVPLZ p:not(:last-child){margin-bottom:6px}.errorPopoverHeaderText_NIa1t{font-weight:700;line-height:1.25;margin-bottom:6px}.errorPopoverHeaderText_NIa1t h1,.errorPopoverHeaderText_NIa1t h2,.errorPopoverHeaderText_NIa1t h3,.errorPopoverHeaderText_NIa1t h4,.errorPopoverHeaderText_NIa1t h5,.errorPopoverHeaderText_NIa1t h6,.errorPopoverHeaderText_NIa1t p{margin:0;padding:0;font:inherit;display:inline}.errorPopoverCloseBtn_19Y--{position:absolute;top:8px;right:4px;background:transparent;border:none;padding:0;margin:0;line-height:0;cursor:pointer}.errorPopoverCloseBtn_19Y--:focus{outline:none}.errorPopoverCloseBtn_19Y-- img{display:block}
|
|
1
|
+
.card_eq9Pj.sr-card_AL8-i{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}.card_eq9Pj.border-top_owz6e{border-top-left-radius:16px;border-top-right-radius:16px;box-shadow:0 -2px 20px 0 rgba(61,57,53,.2);border:none}@media (min-width:768px){.sr-desk-card_ss7EA{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}@media (max-width:767px){.sr-mob-card_iNYOk{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}@media (min-width:1024px){.sr-md-card_TrrAG{border-radius:8px;box-shadow:0 2px 4px 0 rgba(87,84,82,.2);border:none;background-color:#fff;position:relative;display:flex;flex-direction:column}}.tooltipicon_U5Rvt{height:24px;margin-left:4px;min-width:20px;width:24px;cursor:pointer}@media (max-width:767px){.tooltipicon_U5Rvt img{width:inherit;height:inherit}}.benefits_-gI-y img{width:20px!important;height:20px!important}.errorTrigger_R-1jN{display:inline-flex;align-items:center;cursor:pointer;margin-left:4px}.errorPopover_7wgbR{max-width:320px}.errorPopover_7wgbR .popover-body{padding:14px 44px 14px 14px;position:relative}.errorPopoverLayout_3Agk-{display:flex;align-items:flex-start;gap:10px;position:relative}.errorPopoverWarningIcon_otRG6{flex-shrink:0;margin-top:7px}.errorPopoverContent_KVPLZ{flex:1 1 auto;min-width:0}.errorPopoverContent_KVPLZ p{margin:0}.errorPopoverContent_KVPLZ p:not(:last-child){margin-bottom:6px}.errorPopoverHeaderText_NIa1t{font-weight:700;line-height:1.25;margin-bottom:6px}.errorPopoverHeaderText_NIa1t h1,.errorPopoverHeaderText_NIa1t h2,.errorPopoverHeaderText_NIa1t h3,.errorPopoverHeaderText_NIa1t h4,.errorPopoverHeaderText_NIa1t h5,.errorPopoverHeaderText_NIa1t h6,.errorPopoverHeaderText_NIa1t p{margin:0;padding:0;font:inherit;display:inline}.errorPopoverCloseBtn_19Y--{position:absolute;top:8px;right:4px;background:transparent;border:none;padding:0;margin:0;line-height:0;cursor:pointer}.errorPopoverCloseBtn_19Y--:focus{outline:none}.errorPopoverCloseBtn_19Y-- img{display:block}.tooltipPopover_R761a.bs-popover-top{margin-bottom:4px}.tooltipPopover_R761a.bs-popover-left,.tooltipPopover_R761a.bs-popover-start{margin-right:4px}.tooltipPopover_R761a.bs-popover-end,.tooltipPopover_R761a.bs-popover-right{margin-left:4px}.advancedPopover_xSJR3{max-width:420px;min-width:280px}.advancedPopover_xSJR3.bs-popover-top{margin-bottom:4px}.advancedPopover_xSJR3 .popover-body{padding:0}.advancedTitle_d0Q2y{font-size:20px;font-weight:700;line-height:28px;margin-bottom:12px}.advancedContent_E6IGp p{color:inherit}.advancedImage_m26Mw{border-radius:16px;display:block;height:auto;margin-top:16px;margin-left:auto;margin-right:auto;max-height:150px;max-width:100%;object-fit:contain}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"./ToolTip.module.scss.js";import t,{useRef as o,useState as
|
|
1
|
+
import e from"./ToolTip.module.scss.js";import t,{useRef as o,useState as l,useEffect as n}from"react";import{OverlayTrigger as r,Popover as i}from"react-bootstrap";import{viewport as a,isTouchScreen as s}from"../../utils/utils.js";import{AssetPathPropConfig as c}from"../../services/LineTableBasicPropConfig.js";const d=({content:d,heading:m="",tooltipClass:v="",isBenefit:p=!1,variant:g="default",advancedTooltip:u,defaultPlacement:f})=>{var E,C;const h=a(),w=s(),b=null===(E=null==c?void 0:c.getInstance())||void 0===E?void 0:E.getAssetPath(),P=o(null),L=o(Symbol("tooltip")),$="error"===g,[N,y]=l(!1),[x,B]=l(1),T=$?"click":"mobile"===h||"tablet"===h||w?"click":"hover",k=null==u?void 0:u[0],j=Boolean(k),I="mobile"===h||"tablet"===h,M=null==k?void 0:k.position,R=M||(f||(I?"left":"top"));n(()=>{B(Math.max(1,Math.ceil(window.devicePixelRatio||1)))},[]);const H=(null===(C=null==k?void 0:k.image)||void 0===C?void 0:C.filename)?`${k.image.filename}/m/0x${150*x}`:"";n(()=>{const e=e=>{e.detail!==L.current&&y(!1)};return window.addEventListener("sunrise-tooltip-open",e),()=>window.removeEventListener("sunrise-tooltip-open",e)},[]);const A=$&&t.createElement("div",{className:e.errorPopoverLayout},b&&t.createElement("img",{src:`${b}/icons/tooltip-warning-icon.svg`,width:24,height:24,alt:"",className:e.errorPopoverWarningIcon}),t.createElement("div",{className:e.errorPopoverContent},""!==m&&t.createElement("div",{className:e.errorPopoverHeaderText},m),t.createElement("div",null,d)),t.createElement("button",{type:"button","aria-label":"Close",className:e.errorPopoverCloseBtn,onClick:e=>{e.stopPropagation(),y(!1)}},t.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.21967 0.21967C0.512563 -0.0732233 0.987437 -0.0732233 1.28033 0.21967L6.75 5.68934L12.2197 0.21967C12.5126 -0.0732233 12.9874 -0.0732233 13.2803 0.21967C13.5732 0.512563 13.5732 0.987437 13.2803 1.28033L7.81066 6.75L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L6.75 7.81066L1.28033 13.2803C0.987437 13.5732 0.512563 13.5732 0.21967 13.2803C-0.0732233 12.9874 -0.0732233 12.5126 0.21967 12.2197L5.68934 6.75L0.21967 1.28033C-0.0732233 0.987437 -0.0732233 0.512563 0.21967 0.21967Z",fill:"white"})))),F={show:N,onToggle:e=>{e&&window.dispatchEvent(new CustomEvent("sunrise-tooltip-open",{detail:L.current})),y(e)}};return d&&t.createElement(r,Object.assign({placement:j?R:f||(I?"left":"top"),rootClose:!0,rootCloseEvent:"click",trigger:T,popperConfig:{modifiers:[{name:"offset",options:{offset:[15,4]}}]}},F,{overlay:d&&t.createElement(i,{id:"popover-basic",className:`${e.tooltipPopover} ${$?e.errorPopover:""} ${j?e.advancedPopover:""}`,style:j?{backgroundColor:k.backgroundColor||"#3d3935","--advanced-tooltip-bg":k.backgroundColor||"#3d3935"}:void 0},$?t.createElement(i.Body,null,A):j?t.createElement(i.Body,null,t.createElement("div",{className:e.advancedContent,style:{color:k.textColor||"#fff"}},k.title&&t.createElement("div",{className:e.advancedTitle},k.title),k.description&&t.createElement("div",null,k.description)),H&&t.createElement("img",{src:H,alt:k.image.alt||"",className:e.advancedImage})):t.createElement(t.Fragment,null,""!==m&&t.createElement(i.Header,null,m),t.createElement(i.Body,null,d)))}),t.createElement("div",{ref:P,className:`${e.tooltipicon} ${v} ${p?e.benefits:""} ${$?e.errorTrigger:""}`},$?b&&t.createElement("img",{src:`${b}/icons/red-info-icon.svg`,width:20,height:20,alt:""}):b&&t.createElement("img",{src:`${b}/icons/tooltip_icon.svg`,width:24,height:24,alt:""})))};export{d as default};
|
|
2
2
|
//# sourceMappingURL=ToolTip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolTip.js","sources":["../../../../src/components/ToolTip/ToolTip.tsx"],"sourcesContent":[null],"names":["ToolTip","content","heading","tooltipClass","isBenefit","variant","viewPort","viewport","touchDevice","isTouchScreen","assetPath","_a","AssetPathPropConfig","getInstance","getAssetPath","triggerRef","useRef","isError","show","setShow","useState","trigger","errorBody","React","className","Styles","errorPopoverLayout","createElement","src","width","height","alt","errorPopoverWarningIcon","errorPopoverContent","errorPopoverHeaderText","type","errorPopoverCloseBtn","onClick","e","stopPropagation","viewBox","fill","xmlns","fillRule","clipRule","d","controlledProps","onToggle","nextShow","
|
|
1
|
+
{"version":3,"file":"ToolTip.js","sources":["../../../../src/components/ToolTip/ToolTip.tsx"],"sourcesContent":[null],"names":["ToolTip","content","heading","tooltipClass","isBenefit","variant","advancedTooltip","defaultPlacement","viewPort","viewport","touchDevice","isTouchScreen","assetPath","_a","AssetPathPropConfig","getInstance","getAssetPath","triggerRef","useRef","tooltipId","Symbol","isError","show","setShow","useState","imagePixelRatio","setImagePixelRatio","trigger","advancedContent","isAdvanced","Boolean","isMobileLayout","configuredPlacement","position","advancedPlacement","useEffect","Math","max","ceil","window","devicePixelRatio","advancedImageUrl","_b","image","filename","closeWhenAnotherTooltipOpens","event","detail","current","addEventListener","removeEventListener","errorBody","React","className","Styles","errorPopoverLayout","createElement","src","width","height","alt","errorPopoverWarningIcon","errorPopoverContent","errorPopoverHeaderText","type","errorPopoverCloseBtn","onClick","e","stopPropagation","viewBox","fill","xmlns","fillRule","clipRule","d","controlledProps","onToggle","nextShow","dispatchEvent","CustomEvent","OverlayTrigger","placement","rootClose","rootCloseEvent","popperConfig","modifiers","name","options","offset","overlay","Popover","id","tooltipPopover","errorPopover","advancedPopover","style","backgroundColor","undefined","Body","color","textColor","title","advancedTitle","description","advancedImage","Fragment","Header","ref","tooltipicon","benefits","errorTrigger"],"mappings":"yTAMA,MAAMA,EAAU,EACdC,UACAC,UAAU,GACVC,eAAe,GACfC,aAAY,EACZC,UAAU,UACVC,kBACAC,+BAEA,MAAMC,EAAWC,IACXC,EAAcC,IACdC,EAA8C,QAAlCC,EAAAC,aAAmB,EAAnBA,EAAqBC,qBAAa,IAAAF,OAAA,EAAAA,EAAEG,eAChDC,EAAaC,EAA8B,MAC3CC,EAAYD,EAAOE,OAAO,YAE1BC,EAAsB,UAAZhB,GAITiB,EAAMC,GAAWC,GAAkB,IACnCC,EAAiBC,GAAsBF,EAAS,GAKjDG,EAAeN,EAAU,QAHhB,WAAbb,GAAsC,WAAbA,GAAyBE,EAAc,QAAU,QAItEkB,EAAkBtB,eAAAA,EAAkB,GACpCuB,EAAaC,QAAQF,GACrBG,EAA8B,WAAbvB,GAAsC,WAAbA,EAC1CwB,EAAsBJ,aAAe,EA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AAQ,GAAIC,IAAI,KAE/EhD,GACEwC,EAAAI,cAAA,MAAA,CAAKC,IAAK,GAAG7C,2BAAoC8C,MAAO,GAAIC,OAAQ,GAAIC,IAAI"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './ToolTip.css';
|
|
2
|
-
var
|
|
2
|
+
var o={tooltipicon:"tooltipicon_U5Rvt",benefits:"benefits_-gI-y",errorTrigger:"errorTrigger_R-1jN",errorPopover:"errorPopover_7wgbR",errorPopoverLayout:"errorPopoverLayout_3Agk-",errorPopoverWarningIcon:"errorPopoverWarningIcon_otRG6",errorPopoverContent:"errorPopoverContent_KVPLZ",errorPopoverHeaderText:"errorPopoverHeaderText_NIa1t",errorPopoverCloseBtn:"errorPopoverCloseBtn_19Y--",tooltipPopover:"tooltipPopover_R761a",advancedPopover:"advancedPopover_xSJR3",advancedTitle:"advancedTitle_d0Q2y",advancedContent:"advancedContent_E6IGp",advancedImage:"advancedImage_m26Mw"};export{o as default};
|
|
3
3
|
//# sourceMappingURL=ToolTip.module.scss.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunrise-upc/mobile-prod-card",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0-beta.1",
|
|
4
4
|
"description": "Starter project to create reusable functional component",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"uuid": "^13.0.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"swiper": "^14.
|
|
87
|
+
"swiper": "^14.4.0"
|
|
88
88
|
}
|
|
89
89
|
}
|