@gem-sdk/components 2.0.0-staging.815 → 2.0.0-staging.816
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/cjs/sticky/common/styles.js +1 -1
- package/dist/cjs/sticky/components/Sticky.js +1 -1
- package/dist/cjs/sticky/components/Sticky.liquid.js +5 -5
- package/dist/cjs/sticky/hooks/useSticky.js +1 -1
- package/dist/esm/sticky/common/styles.js +1 -1
- package/dist/esm/sticky/components/Sticky.js +1 -1
- package/dist/esm/sticky/components/Sticky.liquid.js +9 -9
- package/dist/esm/sticky/hooks/useSticky.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core");require("react/jsx-runtime"),require("react");var _const=require("../../common/const.js");const getCSSPosition=e=>"top"==e?"sticky":"fixed",getDisplayStyle=(e,t,l)=>{let
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core");require("react/jsx-runtime"),require("react");var _const=require("../../common/const.js");const getCSSPosition=e=>"top"==e?"sticky":"fixed",getDisplayStyle=(e,t,l)=>{let o={[`--top${e}`]:"auto",[`--${l+e}`]:"0",[`--pos${e}`]:getCSSPosition(l)};return"after-first-cart-button"===t&&(o[`--d${e}`]="none"),o},displayConditionStyle=(e,t)=>({...getDisplayStyle("",e?.desktop,t?.desktop),...getDisplayStyle("-tablet",e?.tablet??e?.desktop,t?.tablet??t?.desktop),...getDisplayStyle("-mobile",e?.mobile??e?.tablet??e?.desktop,t?.mobile??t?.tablet??t?.desktop)}),getCSSAlignByDevice=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),getCSSAlign=e=>({...getCSSAlignByDevice(e?.desktop,""),...getCSSAlignByDevice(e?.tablet??e?.desktop,"-tablet"),...getCSSAlignByDevice(e?.mobile??e?.tablet??e?.desktop,"-mobile")}),getContainerStyles=e=>{let{position:t,display:l,width:o}=e;return{margin:"0 auto",...core.makeStyleResponsive("w",o),...getCSSAlign(t),...displayConditionStyle(l,t),"z-index":_const.ELEMENT_Z_INDEX.STICKY}},getContentStyles=e=>{let{style:t,width:l,background:o}=e;return{...core.makeStyle({m:"0 auto"}),...getStylePadding(t),...core.makeStyleResponsive("w",l),...filterStyles(t),...core.getStyleBackgroundByDevice(o),...core.getGradientBgrStyleByDevice(o)}},getStylePadding=e=>{let t=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"],l={};return t.forEach(t=>{e?.[t]&&(l[t]=e[t])}),l},filterStyles=e=>{let t={...e},l=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"];return l.forEach(e=>{delete t?.[e]}),t};exports.displayConditionStyle=displayConditionStyle,exports.filterStyles=filterStyles,exports.getContainerStyles=getContainerStyles,exports.getContentStyles=getContentStyles,exports.getDisplayStyle=getDisplayStyle,exports.getStylePadding=getStylePadding;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Head=require("next/head"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js");require("react");var _const=require("../../common/const.js"),useSticky=require("../hooks/useSticky.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:r,style:t,builderProps:i,advanced:a})=>{let l=core.useEditorMode(),{background:n,preloadBgImage:c,width:m,isScrollToTop:d}=r??{},{positionStyle:u,displayStyle:o,makeDisplaySettingStyles:j,getCSSAlign:x,w:y}=useSticky.default(r),g=system.createStyle({margin:"0 auto",...y,...
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Head=require("next/head"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js");require("react");var _const=require("../../common/const.js"),useSticky=require("../hooks/useSticky.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:r,style:t,builderProps:i,advanced:a})=>{let l=core.useEditorMode(),{background:n,preloadBgImage:c,width:m,isScrollToTop:d}=r??{},{positionStyle:u,displayStyle:o,makeDisplaySettingStyles:j,getCSSAlign:x,w:y}=useSticky.default(r),g=system.createStyle({margin:"0 auto",...y,...o,...x,...u,zIndex:_const.ELEMENT_Z_INDEX.STICKY,..."edit"!==l&&j}),p=system.createStyle(styles.getContentStyles({width:m,style:t,background:n})),h=system.createClass(classes.getContainerClasses({uid:i?.uid,isScrollToTop:d,cssClass:a?.cssClass,isLiquid:!1}));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!c&&jsxRuntime.jsxs(Head,{children:[!!n?.desktop?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.desktop.image.src,as:"image"}),!!n?.tablet?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.tablet.image.src,as:"image"}),!!n?.mobile?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.mobile.image.src,as:"image"})]}),jsxRuntime.jsx("div",{className:h,id:i?.uid,style:g,children:jsxRuntime.jsx("div",{...s,"data-id":i?.uid,style:p,children:core.isEmptyChildren(e)?jsxRuntime.jsx(ChildrenDroppable.default,{}):e})})]})};exports.default=Sticky;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:t,style:r,builderProps:a,advanced:i})=>{let{width:l,position:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:t,style:r,builderProps:a,advanced:i})=>{let{width:l,position:d,display:c,preloadBgImage:o,background:n,isScrollToTop:p}=t??{},g=i?.d,m=system.createStyle({...styles.getContainerStyles({position:d,style:r,display:c,width:l})}),y=system.createStyle(styles.getContentStyles({width:l,style:r,background:n})),$=system.createClass(classes.getContainerClasses({uid:a?.uid,isScrollToTop:p,cssClass:i?.cssClass,isLiquid:!0})),k=system.createStateOrContext({uid:a?.uid,setting:{display:{desktop:c?.desktop,tablet:c?.tablet??c?.desktop,mobile:c?.mobile??c?.tablet??c?.desktop}},advanced:{d:g}}),u=`.drawer-page-content {
|
|
2
2
|
transform: none !important;
|
|
3
3
|
-webkit-transform: none !important;
|
|
4
4
|
}`;return core.template`
|
|
5
5
|
${core.RenderIf(!!o,`${core.RenderIf(!!n?.desktop?.image?.src,`<link rel="preload" href="${n?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!n?.tablet?.image?.src,`<link rel="preload" href="${n?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!n?.mobile?.image?.src,`<link rel="preload" href="${n?.mobile?.image?.src}" as="image" />`)}`)}
|
|
6
6
|
<gp-sticky
|
|
7
7
|
data-id="${a?.uid}"
|
|
8
|
-
gp-data='${JSON.stringify(
|
|
8
|
+
gp-data='${JSON.stringify(k)}'
|
|
9
9
|
id="${a?.uid}"
|
|
10
10
|
data-id="${a?.uid}"
|
|
11
11
|
class="${$} ${helpers.getSettingPreloadData("gps-lazy")}"
|
|
12
|
-
style="${
|
|
12
|
+
style="${m}"
|
|
13
13
|
>
|
|
14
|
-
<style>${
|
|
15
|
-
<div ${{...s}} style="${{...
|
|
14
|
+
<style>${u}</style>
|
|
15
|
+
<div ${{...s}} style="${{...y}}">
|
|
16
16
|
${e}
|
|
17
17
|
</div>
|
|
18
18
|
</gp-sticky>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),React=require("react");const useSticky=e=>{let{width:t,position:o}=e??{},s=core.makeStyleResponsive("w",t),a=core.usePageStore(e=>"interaction"===e.sidebarMode),l=core.useCurrentDevice(),p=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),React=require("react");const useSticky=e=>{let{width:t,position:o}=e??{},s=core.makeStyleResponsive("w",t),a=core.usePageStore(e=>"interaction"===e.sidebarMode),l=core.useCurrentDevice(),p=(e,t)=>({[`--left${t}`]:"top"==e?"0":"50%",[`--t${t}`]:"top"==e?"unset":"translateX(-50%)"}),i=React.useMemo(()=>({...p(o?.desktop,""),...p(o?.tablet??o?.desktop,"-tablet"),...p(o?.mobile??o?.tablet??o?.desktop,"-mobile")}),[o?.desktop,o?.mobile,o?.tablet]),b=React.useMemo(()=>{if(a&&o?.[l]==="top")return"40px"},[l,a,o]),d=React.useMemo(()=>({"--d":e?.display?.desktop==="after-first-cart-button"?"none":"block","--d-tablet":e?.display?.tablet??e?.display?.desktop==="after-first-cart-button"?"none":"block","--d-mobile":e?.display?.mobile??e?.display?.tablet??e?.display?.desktop==="after-first-cart-button"?"none":"block"}),[e?.display?.desktop,e?.display?.mobile,e?.display?.tablet]),r=React.useMemo(()=>({"--top":b??"auto","--top-tablet":b??"auto","--top-mobile":b??"auto",[`--${o?.desktop}`]:b??"0px",[`--${o?.tablet??o?.desktop}-tablet`]:b??"0px",[`--${o?.mobile??o?.tablet??o?.desktop}-mobile`]:b??"0px"}),[b,o?.desktop,o?.mobile,o?.tablet]),c=e=>"top"==e?"sticky":"fixed",u=React.useMemo(()=>({"--pos":c(o?.desktop),"--pos-tablet":c(o?.tablet??o?.desktop),"--pos-mobile":c(o?.mobile??o?.tablet??o?.desktop)}),[o?.desktop,o?.mobile,o?.tablet]);return{w:s,displayStyle:r,positionStyle:u,getCSSAlign:i,makeDisplaySettingStyles:d}};exports.default=useSticky;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyleResponsive as t,makeStyle as e,getStyleBackgroundByDevice as l,getGradientBgrStyleByDevice as i}from"@gem-sdk/core";import"react/jsx-runtime";import"react";import{ELEMENT_Z_INDEX as o}from"../../common/const.js";let getCSSPosition=t=>"top"==t?"sticky":"fixed",getDisplayStyle=(t,e,l)=>{let i={[`--top${t}`]:"auto",[`--${l+t}`]:"0",[`--pos${t}`]:getCSSPosition(l)};return"after-first-cart-button"===e&&(i[`--d${t}`]="none"),i},displayConditionStyle=(t,e)=>({...getDisplayStyle("",t?.desktop,e?.desktop),...getDisplayStyle("-tablet",t?.tablet,e?.tablet??e?.desktop),...getDisplayStyle("-mobile",t?.mobile,e?.mobile??e?.tablet??e?.desktop)}),getCSSAlignByDevice=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),getCSSAlign=t=>({...getCSSAlignByDevice(t?.desktop,""),...getCSSAlignByDevice(t?.tablet??t?.desktop,"-tablet"),...getCSSAlignByDevice(t?.mobile??t?.desktop,"-mobile")}),getContainerStyles=e=>{let{position:l,display:i,width:p}=e;return{margin:"0 auto",...t("w",p),...getCSSAlign(l),...displayConditionStyle(i,l),"z-index":o.STICKY}},getContentStyles=o=>{let{style:p,width:a,background:n}=o;return{...e({m:"0 auto"}),...getStylePadding(p),...t("w",a),...filterStyles(p),...l(n),...i(n)}},getStylePadding=t=>{let e=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"],l={};return e.forEach(e=>{t?.[e]&&(l[e]=t[e])}),l},
|
|
1
|
+
import{makeStyleResponsive as t,makeStyle as e,getStyleBackgroundByDevice as l,getGradientBgrStyleByDevice as i}from"@gem-sdk/core";import"react/jsx-runtime";import"react";import{ELEMENT_Z_INDEX as o}from"../../common/const.js";let getCSSPosition=t=>"top"==t?"sticky":"fixed",getDisplayStyle=(t,e,l)=>{let i={[`--top${t}`]:"auto",[`--${l+t}`]:"0",[`--pos${t}`]:getCSSPosition(l)};return"after-first-cart-button"===e&&(i[`--d${t}`]="none"),i},displayConditionStyle=(t,e)=>({...getDisplayStyle("",t?.desktop,e?.desktop),...getDisplayStyle("-tablet",t?.tablet??t?.desktop,e?.tablet??e?.desktop),...getDisplayStyle("-mobile",t?.mobile??t?.tablet??t?.desktop,e?.mobile??e?.tablet??e?.desktop)}),getCSSAlignByDevice=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),getCSSAlign=t=>({...getCSSAlignByDevice(t?.desktop,""),...getCSSAlignByDevice(t?.tablet??t?.desktop,"-tablet"),...getCSSAlignByDevice(t?.mobile??t?.tablet??t?.desktop,"-mobile")}),getContainerStyles=e=>{let{position:l,display:i,width:p}=e;return{margin:"0 auto",...t("w",p),...getCSSAlign(l),...displayConditionStyle(i,l),"z-index":o.STICKY}},getContentStyles=o=>{let{style:p,width:a,background:n}=o;return{...e({m:"0 auto"}),...getStylePadding(p),...t("w",a),...filterStyles(p),...l(n),...i(n)}},getStylePadding=t=>{let e=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"],l={};return e.forEach(e=>{t?.[e]&&(l[e]=t[e])}),l},filterStyles=t=>{let e={...t},l=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"];return l.forEach(t=>{delete e?.[t]}),e};export{displayConditionStyle,filterStyles,getContainerStyles,getContentStyles,getDisplayStyle,getStylePadding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{useEditorMode as s,isEmptyChildren as m}from"@gem-sdk/core";import o from"next/head";import t from"../../grid/components/ChildrenDroppable.js";import"react";import{ELEMENT_Z_INDEX as a}from"../../common/const.js";import l from"../hooks/useSticky.js";import{createStyle as d,createClass as c}from"@gem-sdk/system";import{
|
|
2
|
+
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{useEditorMode as s,isEmptyChildren as m}from"@gem-sdk/core";import o from"next/head";import t from"../../grid/components/ChildrenDroppable.js";import"react";import{ELEMENT_Z_INDEX as a}from"../../common/const.js";import l from"../hooks/useSticky.js";import{createStyle as d,createClass as c}from"@gem-sdk/system";import{getContentStyles as n}from"../common/styles.js";import{getContainerClasses as p}from"../common/classes.js";let Sticky=({children:f,builderAttrs:g,setting:k,style:h,builderProps:u,advanced:y})=>{let j=s(),{background:b,preloadBgImage:x,width:C,isScrollToTop:S}=k??{},{positionStyle:v,displayStyle:I,makeDisplaySettingStyles:q,getCSSAlign:z,w:D}=l(k),K=d({margin:"0 auto",...D,...I,...z,...v,zIndex:a.STICKY,..."edit"!==j&&q}),L=d(n({width:C,style:h,background:b})),N=c(p({uid:u?.uid,isScrollToTop:S,cssClass:y?.cssClass,isLiquid:!1}));return e(r,{children:[!!x&&e(o,{children:[!!b?.desktop?.image?.src&&i("link",{rel:"preload",href:b.desktop.image.src,as:"image"}),!!b?.tablet?.image?.src&&i("link",{rel:"preload",href:b.tablet.image.src,as:"image"}),!!b?.mobile?.image?.src&&i("link",{rel:"preload",href:b.mobile.image.src,as:"image"})]}),i("div",{className:N,id:u?.uid,style:K,children:i("div",{...g,"data-id":u?.uid,style:L,children:m(f)?i(t,{}):f})})]})};export{Sticky as default};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{template as s,RenderIf as e,isLocalEnv as
|
|
1
|
+
import{template as s,RenderIf as e,isLocalEnv as t,baseAssetURL as i}from"@gem-sdk/core";import{getSettingPreloadData as r}from"../../helpers.js";import{createStyle as a,createClass as d,createStateOrContext as l}from"@gem-sdk/system";import{getContainerStyles as o,getContentStyles as m}from"../common/styles.js";import{getContainerClasses as p}from"../common/classes.js";let Sticky=({children:c,builderAttrs:g,setting:$,style:n,builderProps:k,advanced:f})=>{let{width:y,position:u,display:b,preloadBgImage:S,background:h,isScrollToTop:j}=$??{},v=f?.d,E=a({...o({position:u,style:n,display:b,width:y})}),w=a(m({width:y,style:n,background:h})),A=d(p({uid:k?.uid,isScrollToTop:j,cssClass:f?.cssClass,isLiquid:!0})),C=l({uid:k?.uid,setting:{display:{desktop:b?.desktop,tablet:b?.tablet??b?.desktop,mobile:b?.mobile??b?.tablet??b?.desktop}},advanced:{d:v}}),G=`.drawer-page-content {
|
|
2
2
|
transform: none !important;
|
|
3
3
|
-webkit-transform: none !important;
|
|
4
4
|
}`;return s`
|
|
5
|
-
${e(!!
|
|
5
|
+
${e(!!S,`${e(!!h?.desktop?.image?.src,`<link rel="preload" href="${h?.desktop?.image?.src}" as="image" />`)}${e(!!h?.tablet?.image?.src,`<link rel="preload" href="${h?.tablet?.image?.src}" as="image" />`)}${e(!!h?.mobile?.image?.src,`<link rel="preload" href="${h?.mobile?.image?.src}" as="image" />`)}`)}
|
|
6
6
|
<gp-sticky
|
|
7
7
|
data-id="${k?.uid}"
|
|
8
|
-
gp-data='${JSON.stringify(
|
|
8
|
+
gp-data='${JSON.stringify(C)}'
|
|
9
9
|
id="${k?.uid}"
|
|
10
10
|
data-id="${k?.uid}"
|
|
11
|
-
class="${
|
|
12
|
-
style="${
|
|
11
|
+
class="${A} ${r("gps-lazy")}"
|
|
12
|
+
style="${E}"
|
|
13
13
|
>
|
|
14
|
-
<style>${
|
|
15
|
-
<div ${{
|
|
16
|
-
${
|
|
14
|
+
<style>${G}</style>
|
|
15
|
+
<div ${{...g}} style="${{...w}}">
|
|
16
|
+
${c}
|
|
17
17
|
</div>
|
|
18
18
|
</gp-sticky>
|
|
19
|
-
${e(
|
|
19
|
+
${e(t,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-sticky.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${i}/assets-v2/gp-sticky.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
20
20
|
`};export{Sticky as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyleResponsive as t,usePageStore as e,useCurrentDevice as o}from"@gem-sdk/core";import{useMemo as l}from"react";let useSticky=a=>{let{width:p,position:
|
|
1
|
+
import{makeStyleResponsive as t,usePageStore as e,useCurrentDevice as o}from"@gem-sdk/core";import{useMemo as l}from"react";let useSticky=a=>{let{width:p,position:s}=a??{},b=t("w",p),i=e(t=>"interaction"===t.sidebarMode),d=o(),k=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),r=l(()=>({...k(s?.desktop,""),...k(s?.tablet??s?.desktop,"-tablet"),...k(s?.mobile??s?.tablet??s?.desktop,"-mobile")}),[s?.desktop,s?.mobile,s?.tablet]),m=l(()=>{if(i&&s?.[d]==="top")return"40px"},[d,i,s]),n=l(()=>({"--d":a?.display?.desktop==="after-first-cart-button"?"none":"block","--d-tablet":a?.display?.tablet??a?.display?.desktop==="after-first-cart-button"?"none":"block","--d-mobile":a?.display?.mobile??a?.display?.tablet??a?.display?.desktop==="after-first-cart-button"?"none":"block"}),[a?.display?.desktop,a?.display?.mobile,a?.display?.tablet]),c=l(()=>({"--top":m??"auto","--top-tablet":m??"auto","--top-mobile":m??"auto",[`--${s?.desktop}`]:m??"0px",[`--${s?.tablet??s?.desktop}-tablet`]:m??"0px",[`--${s?.mobile??s?.tablet??s?.desktop}-mobile`]:m??"0px"}),[m,s?.desktop,s?.mobile,s?.tablet]),f=t=>"top"==t?"sticky":"fixed",u=l(()=>({"--pos":f(s?.desktop),"--pos-tablet":f(s?.tablet??s?.desktop),"--pos-mobile":f(s?.mobile??s?.tablet??s?.desktop)}),[s?.desktop,s?.mobile,s?.tablet]);return{w:b,displayStyle:c,positionStyle:u,getCSSAlign:r,makeDisplaySettingStyles:n}};export{useSticky as default};
|