Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Jan 3, 2025
1 parent 9166608 commit f2fc3a2
Show file tree
Hide file tree
Showing 37 changed files with 67 additions and 65 deletions.
5 changes: 0 additions & 5 deletions assets/@radix-ui-C1GVTVHq.js

This file was deleted.

Binary file removed assets/@radix-ui-C1GVTVHq.js.gz
Binary file not shown.
5 changes: 5 additions & 0 deletions assets/@radix-ui-fzlTYvwu.js

Large diffs are not rendered by default.

Binary file added assets/@radix-ui-fzlTYvwu.js.gz
Binary file not shown.
1 change: 0 additions & 1 deletion assets/class-variance-authority-Bb4qSo10.js

This file was deleted.

Binary file removed assets/class-variance-authority-Bb4qSo10.js.gz
Binary file not shown.
1 change: 1 addition & 0 deletions assets/class-variance-authority-Dp3B9jqt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/index-5swxZSbc.css

This file was deleted.

Binary file removed assets/index-5swxZSbc.css.gz
Binary file not shown.
1 change: 1 addition & 0 deletions assets/index-BPz1m_rk.css

Large diffs are not rendered by default.

Binary file added assets/index-BPz1m_rk.css.gz
Binary file not shown.
Binary file removed assets/index-BW53B8ap.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/index-BW53B8ap.js → assets/index-D8B1XSxA.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/index-D8B1XSxA.js.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions assets/react-remove-scroll-B39LlJdP.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/react-remove-scroll-B39LlJdP.js.gz
Binary file not shown.
4 changes: 0 additions & 4 deletions assets/react-remove-scroll-Df20_Mxm.js

This file was deleted.

Binary file removed assets/react-remove-scroll-Df20_Mxm.js.gz
Binary file not shown.
38 changes: 38 additions & 0 deletions assets/react-remove-scroll-bar-BpiLyRPr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import{r as i}from"./react-BMrMXMSG.js";import{g as v}from"./get-nonce-C-Z93AgS.js";var l="right-scroll-bar-position",u="width-before-scroll-bar",m="with-scroll-bars-hidden",p="--removed-body-scroll-bar-size";function h(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var t=v();return t&&n.setAttribute("nonce",t),n}function y(n,t){n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}function b(n){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(n)}var S=function(){var n=0,t=null;return{add:function(r){n==0&&(t=h())&&(y(t,r),b(t)),n++},remove:function(){n--,!n&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var n=S();return function(t,r){i.useEffect(function(){return n.add(t),function(){n.remove()}},[t&&r])}},w=function(){var n=x(),t=function(r){var e=r.styles,o=r.dynamic;return n(e,o),null};return t},C={left:0,top:0,right:0,gap:0},s=function(n){return parseInt(n||"",10)||0},N=function(n){var t=window.getComputedStyle(document.body),r=t[n==="padding"?"paddingLeft":"marginLeft"],e=t[n==="padding"?"paddingTop":"marginTop"],o=t[n==="padding"?"paddingRight":"marginRight"];return[s(r),s(e),s(o)]},A=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return C;var t=N(n),r=document.documentElement.clientWidth,e=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,e-r+t[2]-t[0])}},E=w(),c="data-scroll-locked",R=function(n,t,r,e){var o=n.left,d=n.top,g=n.right,a=n.gap;return r===void 0&&(r="margin"),`
.`.concat(m,` {
overflow: hidden `).concat(e,`;
padding-right: `).concat(a,"px ").concat(e,`;
}
body[`).concat(c,`] {
overflow: hidden `).concat(e,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(e,";"),r==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(d,`px;
padding-right: `).concat(g,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(e,`;
`),r==="padding"&&"padding-right: ".concat(a,"px ").concat(e,";")].filter(Boolean).join(""),`
}
.`).concat(l,` {
right: `).concat(a,"px ").concat(e,`;
}
.`).concat(u,` {
margin-right: `).concat(a,"px ").concat(e,`;
}
.`).concat(l," .").concat(l,` {
right: 0 `).concat(e,`;
}
.`).concat(u," .").concat(u,` {
margin-right: 0 `).concat(e,`;
}
body[`).concat(c,`] {
`).concat(p,": ").concat(a,`px;
}
`)},f=function(){var n=parseInt(document.body.getAttribute(c)||"0",10);return isFinite(n)?n:0},T=function(){i.useEffect(function(){return document.body.setAttribute(c,(f()+1).toString()),function(){var n=f()-1;n<=0?document.body.removeAttribute(c):document.body.setAttribute(c,n.toString())}},[])},z=function(n){var t=n.noRelative,r=n.noImportant,e=n.gapMode,o=e===void 0?"margin":e;T();var d=i.useMemo(function(){return A(o)},[o]);return i.createElement(E,{styles:R(d,!t,o,r?"":"!important")})};export{z as R,u as f,l as z};
Binary file added assets/react-remove-scroll-bar-BpiLyRPr.js.gz
Binary file not shown.
Loading

0 comments on commit f2fc3a2

Please sign in to comment.