@plyaz/ui 0.4.6 → 0.4.8
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/ui.cjs20.js +1 -1
- package/dist/ui.cjs21.js +1 -1
- package/dist/ui.cjs22.js +1 -1
- package/dist/ui.cjs23.js +1 -1
- package/dist/ui.cjs24.js +1 -1
- package/dist/ui.cjs25.js +1 -1
- package/dist/ui.cjs31.js +1 -1
- package/dist/ui.cjs32.js +1 -1
- package/dist/ui.cjs35.js +1 -1
- package/dist/ui.cjs38.js +1 -1
- package/dist/ui.cjs40.js +1 -1
- package/dist/ui.cjs42.js +1 -1
- package/dist/ui.cjs54.js +1 -6
- package/dist/ui.cjs55.js +1 -6
- package/dist/ui.cjs56.js +1 -6
- package/dist/ui.cjs57.js +1 -6
- package/dist/ui.cjs58.js +1 -1
- package/dist/ui.cjs59.js +6 -1
- package/dist/ui.cjs60.js +6 -1
- package/dist/ui.cjs61.js +6 -1
- package/dist/ui.cjs62.js +6 -1
- package/dist/ui.cjs67.js +1 -1
- package/dist/ui.cjs69.js +1 -1
- package/dist/ui.cjs74.js +1 -38
- package/dist/ui.cjs75.js +38 -1
- package/dist/ui.cjs76.js +1 -1
- package/dist/ui.cjs77.js +1 -1
- package/dist/ui.cjs78.js +1 -1
- package/dist/ui.es20.js +1 -1
- package/dist/ui.es21.js +1 -1
- package/dist/ui.es22.js +1 -1
- package/dist/ui.es23.js +1 -1
- package/dist/ui.es24.js +1 -1
- package/dist/ui.es25.js +1 -1
- package/dist/ui.es31.js +2724 -22
- package/dist/ui.es32.js +22 -2724
- package/dist/ui.es35.js +1 -1
- package/dist/ui.es38.js +2 -2
- package/dist/ui.es40.js +1 -1
- package/dist/ui.es42.js +5 -5
- package/dist/ui.es54.js +12 -25
- package/dist/ui.es55.js +205 -21
- package/dist/ui.es56.js +21 -38
- package/dist/ui.es57.js +25 -18
- package/dist/ui.es58.js +396 -10
- package/dist/ui.es59.js +25 -206
- package/dist/ui.es60.js +22 -22
- package/dist/ui.es61.js +39 -25
- package/dist/ui.es62.js +17 -397
- package/dist/ui.es67.js +1 -1
- package/dist/ui.es69.js +4 -4
- package/dist/ui.es74.js +65 -69
- package/dist/ui.es75.js +68 -8
- package/dist/ui.es76.js +9 -14
- package/dist/ui.es77.js +14 -66
- package/dist/ui.es78.js +65 -64
- package/package.json +4 -3
package/dist/ui.cjs62.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
"use strict"
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/var t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};module.exports=t;
|
package/dist/ui.cjs67.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.cjs74.js");var r=e.createSidecarMedium();exports.effectCar=r;
|
package/dist/ui.cjs69.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./ui.cjs63.js"),q=require("react"),j=require("./ui.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./ui.cjs63.js"),q=require("react"),j=require("./ui.cjs75.js"),_=require("./ui.cjs76.js"),v=require("./ui.cjs77.js"),P=require("./ui.cjs78.js");function A(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=A(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},x=function(e,a){return e[0]===a[0]&&e[1]===a[1]},p=function(e){return`
|
|
2
2
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
3
3
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
4
4
|
`)},I=0,d=[];function W(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(I++)[0],S=n.useState(_.styleSingleton)[0],b=n.useRef(e);n.useEffect(function(){b.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=O.__spreadArray([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var R=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!b.current.allowPinchZoom;var s=g(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,k=t.target,m=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&m==="h"&&k.type==="range")return!1;var C=P.locationCouldBeScrolled(m,k);if(!C)return!0;if(C?c=m:(c=m==="v"?"h":"v",C=P.locationCouldBeScrolled(m,k)),!C)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var Y=i.current||c;return P.handleScroll(Y,r,t,Y==="h"?o:f)},[]),y=n.useCallback(function(t){var r=t;if(!(!d.length||d[d.length-1]!==S)){var s="deltaY"in r?E(r):g(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&x(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(b.current.shards||[]).map(M).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?R(r,o[0]):!b.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),w=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:z(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),T=n.useCallback(function(t){l.current=g(t),i.current=void 0},[]),L=n.useCallback(function(t){w(t.type,E(t),t.target,R(t,e.lockRef.current))},[]),X=n.useCallback(function(t){w(t.type,g(t),t.target,R(t,e.lockRef.current))},[]);n.useEffect(function(){return d.push(S),e.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:X}),document.addEventListener("wheel",y,v.nonPassive),document.addEventListener("touchmove",y,v.nonPassive),document.addEventListener("touchstart",T,v.nonPassive),function(){d=d.filter(function(t){return t!==S}),document.removeEventListener("wheel",y,v.nonPassive),document.removeEventListener("touchmove",y,v.nonPassive),document.removeEventListener("touchstart",T,v.nonPassive)}},[]);var B=e.removeScrollBar,D=e.inert;return n.createElement(n.Fragment,null,D?n.createElement(S,{styles:p(h)}):null,B?n.createElement(j.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function z(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=W;exports.getDeltaXY=E;exports.getTouchXY=g;
|
package/dist/ui.cjs74.js
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
.`.concat(o.noScrollbarsClassName,` {
|
|
3
|
-
overflow: hidden `).concat(n,`;
|
|
4
|
-
padding-right: `).concat(a,"px ").concat(n,`;
|
|
5
|
-
}
|
|
6
|
-
body[`).concat(r,`] {
|
|
7
|
-
overflow: hidden `).concat(n,`;
|
|
8
|
-
overscroll-behavior: contain;
|
|
9
|
-
`).concat([c&&"position: relative ".concat(n,";"),e==="margin"&&`
|
|
10
|
-
padding-left: `.concat(i,`px;
|
|
11
|
-
padding-top: `).concat(l,`px;
|
|
12
|
-
padding-right: `).concat(d,`px;
|
|
13
|
-
margin-left:0;
|
|
14
|
-
margin-top:0;
|
|
15
|
-
margin-right: `).concat(a,"px ").concat(n,`;
|
|
16
|
-
`),e==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.`).concat(o.zeroRightClassName,` {
|
|
20
|
-
right: `).concat(a,"px ").concat(n,`;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.`).concat(o.fullWidthClassName,` {
|
|
24
|
-
margin-right: `).concat(a,"px ").concat(n,`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(o.zeroRightClassName," .").concat(o.zeroRightClassName,` {
|
|
28
|
-
right: 0 `).concat(n,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(o.fullWidthClassName," .").concat(o.fullWidthClassName,` {
|
|
32
|
-
margin-right: 0 `).concat(n,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
body[`).concat(r,`] {
|
|
36
|
-
`).concat(o.removedBarSizeVariable,": ").concat(a,`px;
|
|
37
|
-
}
|
|
38
|
-
`)},s=function(){var t=parseInt(document.body.getAttribute(r)||"0",10);return isFinite(t)?t:0},g=function(){u.useEffect(function(){return document.body.setAttribute(r,(s()+1).toString()),function(){var t=s()-1;t<=0?document.body.removeAttribute(r):document.body.setAttribute(r,t.toString())}},[])},y=function(t){var c=t.noRelative,e=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;g();var l=u.useMemo(function(){return p.getGapWidth(i)},[i]);return u.createElement(m,{styles:h(l,!c,i,e?"":"!important")})};exports.RemoveScrollBar=y;exports.lockAttribute=r;exports.useLockAttribute=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./ui.cjs63.js");function l(n){return n}function h(n,t){t===void 0&&(t=l);var e=[],o=!1,c={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(u){var r=t(u,o);return e.push(r),function(){e=e.filter(function(i){return i!==r})}},assignSyncMedium:function(u){for(o=!0;e.length;){var r=e;e=[],r.forEach(u)}e={push:function(i){return u(i)},filter:function(){return e}}},assignMedium:function(u){o=!0;var r=[];if(e.length){var i=e;e=[],i.forEach(u),r=e}var s=function(){var f=r;r=[],f.forEach(u)},a=function(){return Promise.resolve().then(s)};a(),e={push:function(f){r.push(f),a()},filter:function(f){return r=r.filter(f),e}}}};return c}function m(n){n===void 0&&(n={});var t=h(null);return t.options=d.__assign({async:!0,ssr:!1},n),t}exports.createSidecarMedium=m;
|
package/dist/ui.cjs75.js
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("./ui.cjs76.js"),o=require("./ui.cjs66.js"),p=require("./ui.cjs81.js");function v(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(c,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return c.default=t,Object.freeze(c)}const u=v(f);var m=b.styleSingleton(),r="data-scroll-locked",h=function(t,c,e,n){var i=t.left,l=t.top,d=t.right,a=t.gap;return e===void 0&&(e="margin"),`
|
|
2
|
+
.`.concat(o.noScrollbarsClassName,` {
|
|
3
|
+
overflow: hidden `).concat(n,`;
|
|
4
|
+
padding-right: `).concat(a,"px ").concat(n,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(r,`] {
|
|
7
|
+
overflow: hidden `).concat(n,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([c&&"position: relative ".concat(n,";"),e==="margin"&&`
|
|
10
|
+
padding-left: `.concat(i,`px;
|
|
11
|
+
padding-top: `).concat(l,`px;
|
|
12
|
+
padding-right: `).concat(d,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
16
|
+
`),e==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(o.zeroRightClassName,` {
|
|
20
|
+
right: `).concat(a,"px ").concat(n,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(o.fullWidthClassName,` {
|
|
24
|
+
margin-right: `).concat(a,"px ").concat(n,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(o.zeroRightClassName," .").concat(o.zeroRightClassName,` {
|
|
28
|
+
right: 0 `).concat(n,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(o.fullWidthClassName," .").concat(o.fullWidthClassName,` {
|
|
32
|
+
margin-right: 0 `).concat(n,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(r,`] {
|
|
36
|
+
`).concat(o.removedBarSizeVariable,": ").concat(a,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},s=function(){var t=parseInt(document.body.getAttribute(r)||"0",10);return isFinite(t)?t:0},g=function(){u.useEffect(function(){return document.body.setAttribute(r,(s()+1).toString()),function(){var t=s()-1;t<=0?document.body.removeAttribute(r):document.body.setAttribute(r,t.toString())}},[])},y=function(t){var c=t.noRelative,e=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n;g();var l=u.useMemo(function(){return p.getGapWidth(i)},[i]);return u.createElement(m,{styles:h(l,!c,i,e?"":"!important")})};exports.RemoveScrollBar=y;exports.lockAttribute=r;exports.useLockAttribute=g;
|
package/dist/ui.cjs76.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui.cjs82.js");var i=function(){var t=r.styleHookSingleton(),n=function(e){var l=e.styles,o=e.dynamic;return t(l,o),null};return n};exports.styleSingleton=i;
|
package/dist/ui.cjs77.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t=!1;if(typeof window<"u")try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{t=!1}var r=t?{passive:!1}:!1;exports.nonPassive=r;
|
package/dist/ui.cjs78.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var N=function(e){return e.tagName==="TEXTAREA"},b=function(e,r){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[r]!=="hidden"&&!(t.overflowY===t.overflowX&&!N(e)&&t[r]==="visible")},B=function(e){return b(e,"overflowY")},D=function(e){return b(e,"overflowX")},E=function(e,r){var t=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var f=g(e,l);if(f){var n=m(e,l),c=n[1],o=n[2];if(c>o)return!0}l=l.parentNode}while(l&&l!==t.body);return!1},H=function(e){var r=e.scrollTop,t=e.scrollHeight,l=e.clientHeight;return[r,t,l]},T=function(e){var r=e.scrollLeft,t=e.scrollWidth,l=e.clientWidth;return[r,t,l]},g=function(e,r){return e==="v"?B(r):D(r)},m=function(e,r){return e==="v"?H(r):T(r)},p=function(e,r){return e==="h"&&r==="rtl"?-1:1},M=function(e,r,t,l,f){var n=p(e,window.getComputedStyle(r).direction),c=n*l,o=t.target,d=r.contains(o),i=!1,s=c>0,h=0,S=0;do{if(!o)break;var u=m(e,o),v=u[0],C=u[1],y=u[2],w=C-y-n*v;(v||w)&&g(e,o)&&(h+=w,S+=v);var a=o.parentNode;o=a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.host:a}while(!d&&o!==document.body||d&&(r.contains(o)||r===o));return(s&&Math.abs(h)<1||!s&&Math.abs(S)<1)&&(i=!0),i};exports.handleScroll=M;exports.locationCouldBeScrolled=E;
|
package/dist/ui.es20.js
CHANGED
package/dist/ui.es21.js
CHANGED
package/dist/ui.es22.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as Re from "react-dom";
|
|
|
3
3
|
import { clamp as Te } from "./ui.es33.js";
|
|
4
4
|
import { composeEventHandlers as E } from "./ui.es34.js";
|
|
5
5
|
import { createCollection as nt } from "./ui.es35.js";
|
|
6
|
-
import { useComposedRefs as k } from "./ui.
|
|
6
|
+
import { useComposedRefs as k } from "./ui.es32.js";
|
|
7
7
|
import { createContextScope as rt } from "./ui.es36.js";
|
|
8
8
|
import { useDirection as st } from "./ui.es37.js";
|
|
9
9
|
import { DismissableLayer as lt } from "./ui.es38.js";
|
package/dist/ui.es23.js
CHANGED
package/dist/ui.es24.js
CHANGED
package/dist/ui.es25.js
CHANGED