@plyaz/ui 0.4.1 → 0.4.2
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/types/App.d.ts.map +1 -1
- package/dist/types/components/AuroraText/AuroraText.d.ts +10 -0
- package/dist/types/components/AuroraText/AuroraText.d.ts.map +1 -0
- package/dist/types/components/AuroraText/AuroraText.stories.d.ts +10 -0
- package/dist/types/components/AuroraText/AuroraText.stories.d.ts.map +1 -0
- package/dist/types/components/Box/Box.d.ts.map +1 -1
- package/dist/types/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +7 -0
- package/dist/types/components/Button/Button.d.ts.map +1 -0
- package/dist/types/components/Button/Button.stories.d.ts +14 -0
- package/dist/types/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/types/components/Container/Container.d.ts.map +1 -1
- package/dist/types/components/Container/Container.stories.d.ts.map +1 -1
- package/dist/types/components/ExternalLink/ExternalLink.d.ts.map +1 -1
- package/dist/types/components/ExternalLink/ExternalLink.stories.d.ts.map +1 -1
- package/dist/types/components/Flex/Flex.stories.d.ts.map +1 -1
- package/dist/types/components/Form/FormComposition.d.ts +1 -1
- package/dist/types/components/Form/FormComposition.d.ts.map +1 -1
- package/dist/types/components/Form/LoginForm.d.ts.map +1 -1
- package/dist/types/components/Form/SignupForm.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.d.ts +4 -4
- package/dist/types/components/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +3 -0
- package/dist/types/components/Input/Input.d.ts.map +1 -0
- package/dist/types/components/Input/Input.stories.d.ts +10 -0
- package/dist/types/components/Input/Input.stories.d.ts.map +1 -0
- package/dist/types/components/Layout/Layout.d.ts.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/types/components/Section/Section.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts +16 -0
- package/dist/types/components/Select/Select.d.ts.map +1 -0
- package/dist/types/components/Select/Select.stories.d.ts +11 -0
- package/dist/types/components/Select/Select.stories.d.ts.map +1 -0
- package/dist/types/components/Stack/Stack.d.ts +1 -1
- package/dist/types/components/Stack/Stack.d.ts.map +1 -1
- package/dist/types/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/constants/constant.d.ts +12 -8
- package/dist/types/constants/constant.d.ts.map +1 -1
- package/dist/types/lib/utils.d.ts +3 -0
- package/dist/types/lib/utils.d.ts.map +1 -0
- package/dist/types/types/type.d.ts +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.cjs10.js +1 -1
- package/dist/ui.cjs11.js +1 -1
- package/dist/ui.cjs12.js +1 -1
- package/dist/ui.cjs13.js +19 -1
- package/dist/ui.cjs14.js +7 -1
- package/dist/ui.cjs15.js +53 -1
- package/dist/ui.cjs16.js +1 -1
- package/dist/ui.cjs17.js +1 -9
- package/dist/ui.cjs18.js +31 -14
- package/dist/ui.cjs19.js +1 -1
- package/dist/ui.cjs2.js +1 -1
- package/dist/ui.cjs20.js +1 -1
- package/dist/ui.cjs21.js +1 -0
- package/dist/ui.cjs22.js +6 -0
- package/dist/ui.cjs23.js +6 -0
- package/dist/ui.cjs24.js +6 -0
- package/dist/ui.cjs25.js +1 -0
- package/dist/ui.cjs26.js +1 -0
- package/dist/ui.cjs27.js +9 -0
- package/dist/ui.cjs28.js +14 -0
- package/dist/ui.cjs29.js +1 -0
- package/dist/ui.cjs3.js +2 -2
- package/dist/ui.cjs30.js +1 -0
- package/dist/ui.cjs31.js +1 -0
- package/dist/ui.cjs32.js +1 -0
- package/dist/ui.cjs33.js +1 -0
- package/dist/ui.cjs34.js +1 -0
- package/dist/ui.cjs35.js +1 -0
- package/dist/ui.cjs36.js +1 -0
- package/dist/ui.cjs37.js +1 -0
- package/dist/ui.cjs38.js +1 -0
- package/dist/ui.cjs39.js +1 -0
- package/dist/ui.cjs4.js +1 -1
- package/dist/ui.cjs40.js +1 -0
- package/dist/ui.cjs41.js +1 -0
- package/dist/ui.cjs42.js +1 -0
- package/dist/ui.cjs43.js +1 -0
- package/dist/ui.cjs44.js +1 -0
- package/dist/ui.cjs45.js +1 -0
- package/dist/ui.cjs46.js +1 -0
- package/dist/ui.cjs47.js +1 -0
- package/dist/ui.cjs48.js +1 -0
- package/dist/ui.cjs49.js +1 -0
- package/dist/ui.cjs5.js +1 -1
- package/dist/ui.cjs50.js +1 -0
- package/dist/ui.cjs51.js +1 -0
- package/dist/ui.cjs52.js +1 -0
- package/dist/ui.cjs53.js +1 -0
- package/dist/ui.cjs54.js +1 -0
- package/dist/ui.cjs55.js +1 -0
- package/dist/ui.cjs56.js +1 -0
- package/dist/ui.cjs57.js +1 -0
- package/dist/ui.cjs58.js +6 -0
- package/dist/ui.cjs59.js +6 -0
- package/dist/ui.cjs6.js +1 -1
- package/dist/ui.cjs60.js +6 -0
- package/dist/ui.cjs61.js +6 -0
- package/dist/ui.cjs62.js +1 -0
- package/dist/ui.cjs63.js +1 -0
- package/dist/ui.cjs64.js +1 -0
- package/dist/ui.cjs65.js +1 -0
- package/dist/ui.cjs66.js +1 -0
- package/dist/ui.cjs67.js +1 -0
- package/dist/ui.cjs68.js +4 -0
- package/dist/ui.cjs69.js +1 -0
- package/dist/ui.cjs7.js +1 -1
- package/dist/ui.cjs70.js +1 -0
- package/dist/ui.cjs71.js +1 -0
- package/dist/ui.cjs72.js +1 -0
- package/dist/ui.cjs73.js +38 -0
- package/dist/ui.cjs74.js +1 -0
- package/dist/ui.cjs75.js +1 -0
- package/dist/ui.cjs76.js +1 -0
- package/dist/ui.cjs77.js +1 -0
- package/dist/ui.cjs78.js +1 -0
- package/dist/ui.cjs79.js +1 -0
- package/dist/ui.cjs8.js +1 -1
- package/dist/ui.cjs80.js +1 -0
- package/dist/ui.cjs81.js +1 -0
- package/dist/ui.cjs82.js +1 -0
- package/dist/ui.cjs83.js +1 -0
- package/dist/ui.cjs9.js +2 -2
- package/dist/ui.es.js +37 -20
- package/dist/ui.es10.js +8 -15
- package/dist/ui.es11.js +4 -4
- package/dist/ui.es12.js +23 -3
- package/dist/ui.es13.js +37 -14
- package/dist/ui.es14.js +44 -44
- package/dist/ui.es15.js +205 -7
- package/dist/ui.es16.js +3 -2
- package/dist/ui.es17.js +14 -32
- package/dist/ui.es18.js +98 -243
- package/dist/ui.es19.js +51 -2
- package/dist/ui.es2.js +2 -7
- package/dist/ui.es20.js +6 -2
- package/dist/ui.es21.js +863 -0
- package/dist/ui.es22.js +12 -0
- package/dist/ui.es23.js +12 -0
- package/dist/ui.es24.js +12 -0
- package/dist/ui.es25.js +10 -0
- package/dist/ui.es26.js +4 -0
- package/dist/ui.es27.js +35 -0
- package/dist/ui.es28.js +247 -0
- package/dist/ui.es29.js +35 -0
- package/dist/ui.es3.js +11 -15
- package/dist/ui.es30.js +29 -0
- package/dist/ui.es31.js +2731 -0
- package/dist/ui.es32.js +6 -0
- package/dist/ui.es33.js +9 -0
- package/dist/ui.es34.js +48 -0
- package/dist/ui.es35.js +55 -0
- package/dist/ui.es36.js +10 -0
- package/dist/ui.es37.js +127 -0
- package/dist/ui.es38.js +17 -0
- package/dist/ui.es39.js +137 -0
- package/dist/ui.es4.js +7 -6
- package/dist/ui.es40.js +13 -0
- package/dist/ui.es41.js +220 -0
- package/dist/ui.es42.js +16 -0
- package/dist/ui.es43.js +36 -0
- package/dist/ui.es44.js +13 -0
- package/dist/ui.es45.js +54 -0
- package/dist/ui.es46.js +6 -0
- package/dist/ui.es47.js +8 -0
- package/dist/ui.es48.js +30 -0
- package/dist/ui.es49.js +52 -0
- package/dist/ui.es5.js +13 -12
- package/dist/ui.es50.js +11 -0
- package/dist/ui.es51.js +4 -0
- package/dist/ui.es52.js +4 -0
- package/dist/ui.es53.js +14 -0
- package/dist/ui.es54.js +208 -0
- package/dist/ui.es55.js +24 -0
- package/dist/ui.es56.js +27 -0
- package/dist/ui.es57.js +400 -0
- package/dist/ui.es58.js +27 -0
- package/dist/ui.es59.js +24 -0
- package/dist/ui.es6.js +10 -15
- package/dist/ui.es60.js +41 -0
- package/dist/ui.es61.js +20 -0
- package/dist/ui.es62.js +27 -0
- package/dist/ui.es63.js +31 -0
- package/dist/ui.es64.js +7 -0
- package/dist/ui.es65.js +7 -0
- package/dist/ui.es66.js +5 -0
- package/dist/ui.es67.js +26 -0
- package/dist/ui.es68.js +112 -0
- package/dist/ui.es69.js +18 -0
- package/dist/ui.es7.js +3 -8
- package/dist/ui.es70.js +527 -0
- package/dist/ui.es71.js +130 -0
- package/dist/ui.es72.js +136 -0
- package/dist/ui.es73.js +71 -0
- package/dist/ui.es74.js +11 -0
- package/dist/ui.es75.js +16 -0
- package/dist/ui.es76.js +68 -0
- package/dist/ui.es77.js +67 -0
- package/dist/ui.es78.js +6 -0
- package/dist/ui.es79.js +25 -0
- package/dist/ui.es8.js +7 -11
- package/dist/ui.es80.js +25 -0
- package/dist/ui.es81.js +15 -0
- package/dist/ui.es82.js +30 -0
- package/dist/ui.es83.js +7 -0
- package/dist/ui.es9.js +9 -12
- package/package.json +16 -9
package/dist/ui.cjs65.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r="right-scroll-bar-position",a="width-before-scroll-bar",e="with-scroll-bars-hidden",l="--removed-body-scroll-bar-size";exports.fullWidthClassName=a;exports.noScrollbarsClassName=e;exports.removedBarSizeVariable=l;exports.zeroRightClassName=r;
|
package/dist/ui.cjs66.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.cjs77.js");var r=e.createSidecarMedium();exports.effectCar=r;
|
package/dist/ui.cjs67.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),c=require("./ui.cjs78.js"),g=require("./ui.cjs79.js");function d(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(u,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return u.default=e,Object.freeze(u)}const f=d(l);var b=typeof window<"u"?f.useLayoutEffect:f.useEffect,i=new WeakMap;function p(e,u){var t=g.useCallbackRef(null,function(n){return e.forEach(function(r){return c.assignRef(r,n)})});return b(function(){var n=i.get(t);if(n){var r=new Set(n),o=new Set(e),s=t.current;r.forEach(function(a){o.has(a)||c.assignRef(a,null)}),o.forEach(function(a){r.has(a)||c.assignRef(a,s)})}i.set(t,e)},[e]),t}exports.useMergeRefs=p;
|
package/dist/ui.cjs68.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./ui.cjs62.js"),q=require("react"),j=require("./ui.cjs73.js"),_=require("./ui.cjs74.js"),v=require("./ui.cjs75.js"),P=require("./ui.cjs76.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
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
3
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
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.cjs69.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui.cjs62.js"),n=require("react");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=c(n);var a=function(e){var r=e.sideCar,t=o.__rest(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return s.createElement(i,o.__assign({},t))};a.isSideCarExport=!0;function u(e,r){return e.useMedium(r),a}exports.exportSidecar=u;
|
package/dist/ui.cjs7.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./ui.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./ui.cjs16.js"),u=require("./ui.cjs17.js"),e=({children:t,className:r,href:n,...l})=>s.jsxRuntimeExports.jsx("a",{"data-testid":"link",href:n,rel:"noopener noreferrer",target:"_blank",className:u.clsx(`
|
|
2
2
|
text-blue-600
|
|
3
3
|
visited:text-purple-600
|
|
4
4
|
hover:underline
|
package/dist/ui.cjs70.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ui.cjs71.js");function B(n,t,g){let{reference:l,floating:f}=n;const i=e.getSideAxis(t),a=e.getAlignmentAxis(t),d=e.getAxisLength(a),h=e.getSide(t),w=i==="y",c=l.x+l.width/2-f.width/2,o=l.y+l.height/2-f.height/2,m=l[d]/2-f[d]/2;let s;switch(h){case"top":s={x:c,y:l.y-f.height};break;case"bottom":s={x:c,y:l.y+l.height};break;case"right":s={x:l.x+l.width,y:o};break;case"left":s={x:l.x-f.width,y:o};break;default:s={x:l.x,y:l.y}}switch(e.getAlignment(t)){case"start":s[a]-=m*(g&&w?-1:1);break;case"end":s[a]+=m*(g&&w?-1:1);break}return s}const _=async(n,t,g)=>{const{placement:l="bottom",strategy:f="absolute",middleware:i=[],platform:a}=g,d=i.filter(Boolean),h=await(a.isRTL==null?void 0:a.isRTL(t));let w=await a.getElementRects({reference:n,floating:t,strategy:f}),{x:c,y:o}=B(w,l,h),m=l,s={},r=0;for(let u=0;u<d.length;u++){const{name:x,fn:v}=d[u],{x:y,y:A,data:b,reset:p}=await v({x:c,y:o,initialPlacement:l,placement:m,strategy:f,middlewareData:s,rects:w,platform:a,elements:{reference:n,floating:t}});c=y??c,o=A??o,s={...s,[x]:{...s[x],...b}},p&&r<=50&&(r++,typeof p=="object"&&(p.placement&&(m=p.placement),p.rects&&(w=p.rects===!0?await a.getElementRects({reference:n,floating:t,strategy:f}):p.rects),{x:c,y:o}=B(w,m,h)),u=-1)}return{x:c,y:o,placement:m,strategy:f,middlewareData:s}};async function V(n,t){var g;t===void 0&&(t={});const{x:l,y:f,platform:i,rects:a,elements:d,strategy:h}=n,{boundary:w="clippingAncestors",rootBoundary:c="viewport",elementContext:o="floating",altBoundary:m=!1,padding:s=0}=e.evaluate(t,n),r=e.getPaddingObject(s),x=d[m?o==="floating"?"reference":"floating":o],v=e.rectToClientRect(await i.getClippingRect({element:(g=await(i.isElement==null?void 0:i.isElement(x)))==null||g?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:w,rootBoundary:c,strategy:h})),y=o==="floating"?{x:l,y:f,width:a.floating.width,height:a.floating.height}:a.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),b=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},p=e.rectToClientRect(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:y,offsetParent:A,strategy:h}):y);return{top:(v.top-p.top+r.top)/b.y,bottom:(p.bottom-v.bottom+r.bottom)/b.y,left:(v.left-p.left+r.left)/b.x,right:(p.right-v.right+r.right)/b.x}}const X=n=>({name:"arrow",options:n,async fn(t){const{x:g,y:l,placement:f,rects:i,platform:a,elements:d,middlewareData:h}=t,{element:w,padding:c=0}=e.evaluate(n,t)||{};if(w==null)return{};const o=e.getPaddingObject(c),m={x:g,y:l},s=e.getAlignmentAxis(f),r=e.getAxisLength(s),u=await a.getDimensions(w),x=s==="y",v=x?"top":"left",y=x?"bottom":"right",A=x?"clientHeight":"clientWidth",b=i.reference[r]+i.reference[s]-m[s]-i.floating[r],p=m[s]-i.reference[s],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(w));let C=P?P[A]:0;(!C||!await(a.isElement==null?void 0:a.isElement(P)))&&(C=d.floating[A]||i.floating[r]);const M=b/2-p/2,D=C/2-u[r]/2-1,O=e.min(o[v],D),L=e.min(o[y],D),T=O,H=C-u[r]-L,S=C/2-u[r]/2+M,F=e.clamp(T,S,H),E=!h.arrow&&e.getAlignment(f)!=null&&S!==F&&i.reference[r]/2-(S<T?O:L)-u[r]/2<0,R=E?S<T?S-T:S-H:0;return{[s]:m[s]+R,data:{[s]:F,centerOffset:S-F-R,...E&&{alignmentOffset:R}},reset:E}}}),q=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var g,l;const{placement:f,middlewareData:i,rects:a,initialPlacement:d,platform:h,elements:w}=t,{mainAxis:c=!0,crossAxis:o=!0,fallbackPlacements:m,fallbackStrategy:s="bestFit",fallbackAxisSideDirection:r="none",flipAlignment:u=!0,...x}=e.evaluate(n,t);if((g=i.arrow)!=null&&g.alignmentOffset)return{};const v=e.getSide(f),y=e.getSideAxis(d),A=e.getSide(d)===d,b=await(h.isRTL==null?void 0:h.isRTL(w.floating)),p=m||(A||!u?[e.getOppositePlacement(d)]:e.getExpandedPlacements(d)),P=r!=="none";!m&&P&&p.push(...e.getOppositeAxisPlacements(d,u,r,b));const C=[d,...p],M=await V(t,x),D=[];let O=((l=i.flip)==null?void 0:l.overflows)||[];if(c&&D.push(M[v]),o){const S=e.getAlignmentSides(f,a,b);D.push(M[S[0]],M[S[1]])}if(O=[...O,{placement:f,overflows:D}],!D.every(S=>S<=0)){var L,T;const S=(((L=i.flip)==null?void 0:L.index)||0)+1,F=C[S];if(F&&(!(o==="alignment"?y!==e.getSideAxis(F):!1)||O.every(k=>k.overflows[0]>0&&e.getSideAxis(k.placement)===y)))return{data:{index:S,overflows:O},reset:{placement:F}};let E=(T=O.filter(R=>R.overflows[0]<=0).sort((R,k)=>R.overflows[1]-k.overflows[1])[0])==null?void 0:T.placement;if(!E)switch(s){case"bestFit":{var H;const R=(H=O.filter(k=>{if(P){const j=e.getSideAxis(k.placement);return j===y||j==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(j=>j>0).reduce((j,$)=>j+$,0)]).sort((k,j)=>k[1]-j[1])[0])==null?void 0:H[0];R&&(E=R);break}case"initialPlacement":E=d;break}if(f!==E)return{reset:{placement:E}}}return{}}}};function z(n,t){return{top:n.top-t.height,right:n.right-t.width,bottom:n.bottom-t.height,left:n.left-t.width}}function W(n){return e.sides.some(t=>n[t]>=0)}const I=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(t){const{rects:g}=t,{strategy:l="referenceHidden",...f}=e.evaluate(n,t);switch(l){case"referenceHidden":{const i=await V(t,{...f,elementContext:"reference"}),a=z(i,g.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:W(a)}}}case"escaped":{const i=await V(t,{...f,altBoundary:!0}),a=z(i,g.floating);return{data:{escapedOffsets:a,escaped:W(a)}}}default:return{}}}}},Y=new Set(["left","top"]);async function U(n,t){const{placement:g,platform:l,elements:f}=n,i=await(l.isRTL==null?void 0:l.isRTL(f.floating)),a=e.getSide(g),d=e.getAlignment(g),h=e.getSideAxis(g)==="y",w=Y.has(a)?-1:1,c=i&&h?-1:1,o=e.evaluate(t,n);let{mainAxis:m,crossAxis:s,alignmentAxis:r}=typeof o=="number"?{mainAxis:o,crossAxis:0,alignmentAxis:null}:{mainAxis:o.mainAxis||0,crossAxis:o.crossAxis||0,alignmentAxis:o.alignmentAxis};return d&&typeof r=="number"&&(s=d==="end"?r*-1:r),h?{x:s*c,y:m*w}:{x:m*w,y:s*c}}const G=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var g,l;const{x:f,y:i,placement:a,middlewareData:d}=t,h=await U(t,n);return a===((g=d.offset)==null?void 0:g.placement)&&(l=d.arrow)!=null&&l.alignmentOffset?{}:{x:f+h.x,y:i+h.y,data:{...h,placement:a}}}}},J=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:g,y:l,placement:f}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:d={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...h}=e.evaluate(n,t),w={x:g,y:l},c=await V(t,h),o=e.getSideAxis(e.getSide(f)),m=e.getOppositeAxis(o);let s=w[m],r=w[o];if(i){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=s+c[x],A=s-c[v];s=e.clamp(y,s,A)}if(a){const x=o==="y"?"top":"left",v=o==="y"?"bottom":"right",y=r+c[x],A=r-c[v];r=e.clamp(y,r,A)}const u=d.fn({...t,[m]:s,[o]:r});return{...u,data:{x:u.x-g,y:u.y-l,enabled:{[m]:i,[o]:a}}}}}},K=function(n){return n===void 0&&(n={}),{options:n,fn(t){const{x:g,y:l,placement:f,rects:i,middlewareData:a}=t,{offset:d=0,mainAxis:h=!0,crossAxis:w=!0}=e.evaluate(n,t),c={x:g,y:l},o=e.getSideAxis(f),m=e.getOppositeAxis(o);let s=c[m],r=c[o];const u=e.evaluate(d,t),x=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(h){const A=m==="y"?"height":"width",b=i.reference[m]-i.floating[A]+x.mainAxis,p=i.reference[m]+i.reference[A]-x.mainAxis;s<b?s=b:s>p&&(s=p)}if(w){var v,y;const A=m==="y"?"width":"height",b=Y.has(e.getSide(f)),p=i.reference[o]-i.floating[A]+(b&&((v=a.offset)==null?void 0:v[o])||0)+(b?0:x.crossAxis),P=i.reference[o]+i.reference[A]+(b?0:((y=a.offset)==null?void 0:y[o])||0)-(b?x.crossAxis:0);r<p?r=p:r>P&&(r=P)}return{[m]:s,[o]:r}}}},N=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){var g,l;const{placement:f,rects:i,platform:a,elements:d}=t,{apply:h=()=>{},...w}=e.evaluate(n,t),c=await V(t,w),o=e.getSide(f),m=e.getAlignment(f),s=e.getSideAxis(f)==="y",{width:r,height:u}=i.floating;let x,v;o==="top"||o==="bottom"?(x=o,v=m===(await(a.isRTL==null?void 0:a.isRTL(d.floating))?"start":"end")?"left":"right"):(v=o,x=m==="end"?"top":"bottom");const y=u-c.top-c.bottom,A=r-c.left-c.right,b=e.min(u-c[x],y),p=e.min(r-c[v],A),P=!t.middlewareData.shift;let C=b,M=p;if((g=t.middlewareData.shift)!=null&&g.enabled.x&&(M=A),(l=t.middlewareData.shift)!=null&&l.enabled.y&&(C=y),P&&!m){const O=e.max(c.left,0),L=e.max(c.right,0),T=e.max(c.top,0),H=e.max(c.bottom,0);s?M=r-2*(O!==0||L!==0?O+L:e.max(c.left,c.right)):C=u-2*(T!==0||H!==0?T+H:e.max(c.top,c.bottom))}await h({...t,availableWidth:M,availableHeight:C});const D=await a.getDimensions(d.floating);return r!==D.width||u!==D.height?{reset:{rects:!0}}:{}}}};exports.rectToClientRect=e.rectToClientRect;exports.arrow=X;exports.computePosition=_;exports.detectOverflow=V;exports.flip=q;exports.hide=I;exports.limitShift=K;exports.offset=G;exports.shift=J;exports.size=N;
|
package/dist/ui.cjs71.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=["top","right","bottom","left"],f=Math.min,p=Math.max,O=Math.round,S=Math.floor,y=t=>({x:t,y:t}),M={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function w(t,e,n){return p(t,f(e,n))}function C(t,e){return typeof t=="function"?t(e):t}function l(t){return t.split("-")[0]}function a(t){return t.split("-")[1]}function d(t){return t==="x"?"y":"x"}function h(t){return t==="y"?"height":"width"}const L=new Set(["top","bottom"]);function x(t){return L.has(l(t))?"y":"x"}function A(t){return d(x(t))}function T(t,e,n){n===void 0&&(n=!1);const r=a(t),i=A(t),o=h(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=g(s)),[s,g(s)]}function E(t){const e=g(t);return[c(t),e,c(e)]}function c(t){return t.replace(/start|end/g,e=>j[e])}const m=["left","right"],u=["right","left"],R=["top","bottom"],v=["bottom","top"];function k(t,e,n){switch(t){case"top":case"bottom":return n?e?u:m:e?m:u;case"left":case"right":return e?R:v;default:return[]}}function q(t,e,n,r){const i=a(t);let o=k(l(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(c)))),o}function g(t){return t.replace(/left|right|bottom|top/g,e=>M[e])}function b(t){return{top:0,right:0,bottom:0,left:0,...t}}function z(t){return typeof t!="number"?b(t):{top:t,right:t,bottom:t,left:t}}function B(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}exports.clamp=w;exports.createCoords=y;exports.evaluate=C;exports.expandPaddingObject=b;exports.floor=S;exports.getAlignment=a;exports.getAlignmentAxis=A;exports.getAlignmentSides=T;exports.getAxisLength=h;exports.getExpandedPlacements=E;exports.getOppositeAlignmentPlacement=c;exports.getOppositeAxis=d;exports.getOppositeAxisPlacements=q;exports.getOppositePlacement=g;exports.getPaddingObject=z;exports.getSide=l;exports.getSideAxis=x;exports.max=p;exports.min=f;exports.rectToClientRect=B;exports.round=O;exports.sides=P;
|
package/dist/ui.cjs72.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(){return typeof window<"u"}function c(e){return d(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function N(e){var t;return(t=(d(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function d(e){return s()?e instanceof Node||e instanceof i(e).Node:!1}function m(e){return s()?e instanceof Element||e instanceof i(e).Element:!1}function w(e){return s()?e instanceof HTMLElement||e instanceof i(e).HTMLElement:!1}function u(e){return!s()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof i(e).ShadowRoot}const C=new Set(["inline","contents"]);function p(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!C.has(r)}const D=new Set(["table","td","th"]);function k(e){return D.has(c(e))}const O=[":popover-open",":modal"];function h(e){return O.some(t=>{try{return e.matches(t)}catch{return!1}})}const A=["transform","translate","scale","rotate","perspective"],B=["transform","translate","scale","rotate","perspective","filter"],M=["paint","layout","strict","content"];function E(e){const t=T(),n=m(e)?y(e):e;return A.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||B.some(o=>(n.willChange||"").includes(o))||M.some(o=>(n.contain||"").includes(o))}function P(e){let t=l(e);for(;w(t)&&!g(t);){if(E(t))return t;if(h(t))return null;t=l(t)}return null}function T(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R=new Set(["html","body","#document"]);function g(e){return R.has(c(e))}function y(e){return i(e).getComputedStyle(e)}function V(e){return m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function l(e){if(c(e)==="html")return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||N(e);return u(t)?t.host:t}function S(e){const t=l(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:w(t)&&p(t)?t:S(t)}function f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=S(e),L=r===((o=e.ownerDocument)==null?void 0:o.body),a=i(r);if(L){const b=v(a);return t.concat(a,a.visualViewport||[],p(r)?r:[],b&&n?f(b):[])}return t.concat(r,f(r,[],n))}function v(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}exports.getComputedStyle=y;exports.getContainingBlock=P;exports.getDocumentElement=N;exports.getFrameElement=v;exports.getNearestOverflowAncestor=S;exports.getNodeName=c;exports.getNodeScroll=V;exports.getOverflowAncestors=f;exports.getParentNode=l;exports.getWindow=i;exports.isContainingBlock=E;exports.isElement=m;exports.isHTMLElement=w;exports.isLastTraversableNode=g;exports.isNode=d;exports.isOverflowElement=p;exports.isShadowRoot=u;exports.isTableElement=k;exports.isTopLayer=h;exports.isWebKit=T;
|
package/dist/ui.cjs73.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("./ui.cjs74.js"),o=require("./ui.cjs65.js"),p=require("./ui.cjs80.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.cjs74.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui.cjs81.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.cjs75.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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.cjs76.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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.cjs77.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./ui.cjs62.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.cjs78.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}exports.assignRef=e;
|
package/dist/ui.cjs79.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function l(c,t){var e=u.useState(function(){return{value:c,callback:t,facade:{get current(){return e.value},set current(a){var r=e.value;r!==a&&(e.value=a,e.callback(a,r))}}}})[0];return e.callback=t,e.facade}exports.useCallbackRef=l;
|
package/dist/ui.cjs8.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ui.cjs16.js"),i=require("./ui.cjs11.js");require("./ui.cjs14.js");const n={xs:"xs",sm:"sm",base:"base",lg:"lg"},e=({children:t,className:r,size:s,...a})=>u.jsxRuntimeExports.jsx(i.Text,{className:r,element:"p",size:n[s],variant:"body",weight:"normal",...a,children:t});exports.Paragraph=e;exports.default=e;
|
package/dist/ui.cjs80.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a={left:0,top:0,right:0,gap:0},r=function(t){return parseInt(t||"",10)||0},o=function(t){var i=window.getComputedStyle(document.body),n=i[t==="padding"?"paddingLeft":"marginLeft"],e=i[t==="padding"?"paddingTop":"marginTop"],d=i[t==="padding"?"paddingRight":"marginRight"];return[r(n),r(e),r(d)]},g=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return a;var i=o(t),n=document.documentElement.clientWidth,e=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,e-n+i[2]-i[0])}};exports.getGapWidth=g;exports.zeroGap=a;
|
package/dist/ui.cjs81.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),c=require("./ui.cjs82.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=u(r);var a=function(){var e=c.stylesheetSingleton();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}};exports.styleHookSingleton=a;
|
package/dist/ui.cjs82.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./ui.cjs83.js");function r(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=o.getNonce();return e&&t.setAttribute("nonce",e),t}function l(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function i(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var u=function(){var t=0,e=null;return{add:function(n){t==0&&(e=r())&&(l(e,n),i(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};exports.stylesheetSingleton=u;
|
package/dist/ui.cjs83.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};exports.getNonce=e;
|
package/dist/ui.cjs9.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./ui.cjs16.js"),u=require("./ui.cjs17.js"),i=require("./ui.cjs2.js");require("./ui.cjs14.js");const e=({className:t="",children:s,...r})=>o.jsxRuntimeExports.jsx(i.Box,{element:"section",className:u.clsx(`
|
|
2
2
|
mx-2 my-4 p-4
|
|
3
3
|
sm:p-6
|
|
4
|
-
`,t),...
|
|
4
|
+
`,t),...r,children:s});exports.Section=e;exports.default=e;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
import { Box as
|
|
2
|
-
import { Container as
|
|
3
|
-
import { Flex as
|
|
4
|
-
import { Grid as
|
|
5
|
-
import { Heading as
|
|
6
|
-
import { ExternalLink as
|
|
7
|
-
import { Paragraph as
|
|
8
|
-
import { Section as
|
|
9
|
-
import { Stack as
|
|
10
|
-
import { Text as
|
|
1
|
+
import { Box as r } from "./ui.es2.js";
|
|
2
|
+
import { Container as l } from "./ui.es3.js";
|
|
3
|
+
import { Flex as x } from "./ui.es4.js";
|
|
4
|
+
import { Grid as f } from "./ui.es5.js";
|
|
5
|
+
import { Heading as S } from "./ui.es6.js";
|
|
6
|
+
import { ExternalLink as n } from "./ui.es7.js";
|
|
7
|
+
import { Paragraph as i } from "./ui.es8.js";
|
|
8
|
+
import { Section as g } from "./ui.es9.js";
|
|
9
|
+
import { Stack as T } from "./ui.es10.js";
|
|
10
|
+
import { Text as s } from "./ui.es11.js";
|
|
11
|
+
import { default as G } from "./ui.es12.js";
|
|
12
|
+
import { default as L } from "./ui.es13.js";
|
|
13
|
+
import { AuroraText as h } from "./ui.es14.js";
|
|
14
|
+
import { Select as A, SelectContent as D, SelectGroup as E, SelectItem as F, SelectLabel as H, SelectScrollDownButton as P, SelectScrollUpButton as U, SelectSeparator as V, SelectTrigger as j, SelectValue as q } from "./ui.es15.js";
|
|
11
15
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
S as
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
h as AuroraText,
|
|
17
|
+
r as Box,
|
|
18
|
+
G as Button,
|
|
19
|
+
l as Container,
|
|
20
|
+
n as ExternalLink,
|
|
21
|
+
x as Flex,
|
|
22
|
+
f as Grid,
|
|
23
|
+
S as Heading,
|
|
24
|
+
L as Input,
|
|
25
|
+
i as Paragraph,
|
|
26
|
+
g as Section,
|
|
27
|
+
A as Select,
|
|
28
|
+
D as SelectContent,
|
|
29
|
+
E as SelectGroup,
|
|
30
|
+
F as SelectItem,
|
|
31
|
+
H as SelectLabel,
|
|
32
|
+
P as SelectScrollDownButton,
|
|
33
|
+
U as SelectScrollUpButton,
|
|
34
|
+
V as SelectSeparator,
|
|
35
|
+
j as SelectTrigger,
|
|
36
|
+
q as SelectValue,
|
|
37
|
+
T as Stack,
|
|
38
|
+
s as Text
|
|
22
39
|
};
|
package/dist/ui.es10.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { j as a } from "./ui.
|
|
2
|
-
import { clsx as c } from "./ui.
|
|
3
|
-
import { Box as
|
|
4
|
-
|
|
1
|
+
import { j as a } from "./ui.es16.js";
|
|
2
|
+
import { clsx as c } from "./ui.es17.js";
|
|
3
|
+
import { Box as i } from "./ui.es2.js";
|
|
4
|
+
import "./ui.es14.js";
|
|
5
|
+
const j = ({
|
|
5
6
|
children: o,
|
|
6
7
|
direction: r = "horizontal",
|
|
7
8
|
spacing: t = "space-x-2",
|
|
@@ -10,17 +11,9 @@ const p = ({
|
|
|
10
11
|
...x
|
|
11
12
|
}) => {
|
|
12
13
|
const l = r === "vertical" ? "flex-col" : "flex-row";
|
|
13
|
-
return /* @__PURE__ */ a.jsx(
|
|
14
|
-
f,
|
|
15
|
-
{
|
|
16
|
-
className: c("flex", l, t, s),
|
|
17
|
-
element: e,
|
|
18
|
-
...x,
|
|
19
|
-
children: o
|
|
20
|
-
}
|
|
21
|
-
);
|
|
14
|
+
return /* @__PURE__ */ a.jsx(i, { className: c("flex", l, t, s), element: e, ...x, children: o });
|
|
22
15
|
};
|
|
23
16
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
j as Stack,
|
|
18
|
+
j as default
|
|
26
19
|
};
|
package/dist/ui.es11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as x } from "./ui.
|
|
2
|
-
import { clsx as n } from "./ui.
|
|
3
|
-
import { SIZES_MAPPER as f, TEXT_WEIGHT_MAPPER as P, VARIANT_MAPPER as T } from "./ui.
|
|
1
|
+
import { j as x } from "./ui.es16.js";
|
|
2
|
+
import { clsx as n } from "./ui.es17.js";
|
|
3
|
+
import { SIZES_MAPPER as f, TEXT_WEIGHT_MAPPER as P, VARIANT_MAPPER as T } from "./ui.es18.js";
|
|
4
4
|
const c = ({
|
|
5
5
|
className: r,
|
|
6
6
|
children: E,
|
|
@@ -16,7 +16,7 @@ const c = ({
|
|
|
16
16
|
{
|
|
17
17
|
"data-testid": "text",
|
|
18
18
|
className: n(
|
|
19
|
-
"font-sans font-normal
|
|
19
|
+
"font-sans text-base font-normal",
|
|
20
20
|
s && f[s],
|
|
21
21
|
t && P[t],
|
|
22
22
|
o && T[o],
|
package/dist/ui.es12.js
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { j as m } from "./ui.es16.js";
|
|
2
|
+
import { Root as u } from "./ui.es19.js";
|
|
3
|
+
import { cn as i } from "./ui.es20.js";
|
|
4
|
+
import { buttonVariants as e } from "./ui.es18.js";
|
|
5
|
+
function c({
|
|
6
|
+
className: t,
|
|
7
|
+
variant: o,
|
|
8
|
+
size: a,
|
|
9
|
+
asChild: r = !1,
|
|
10
|
+
...s
|
|
11
|
+
}) {
|
|
12
|
+
const n = r ? u : "button";
|
|
13
|
+
return /* @__PURE__ */ m.jsx(
|
|
14
|
+
n,
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "button",
|
|
17
|
+
className: i(e({ variant: o, size: a, className: t })),
|
|
18
|
+
...s,
|
|
19
|
+
"data-testid": "button"
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
3
23
|
export {
|
|
4
|
-
|
|
24
|
+
c as default
|
|
5
25
|
};
|
package/dist/ui.es13.js
CHANGED
|
@@ -1,17 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as t } from "./ui.es16.js";
|
|
2
|
+
import { cn as n } from "./ui.es20.js";
|
|
3
|
+
function d({ className: e, type: i, ...r }) {
|
|
4
|
+
return /* @__PURE__ */ t.jsx(
|
|
5
|
+
"input",
|
|
6
|
+
{
|
|
7
|
+
type: i,
|
|
8
|
+
"data-slot": "input",
|
|
9
|
+
className: n(
|
|
10
|
+
`
|
|
11
|
+
flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
|
|
12
|
+
px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
|
|
13
|
+
outline-none
|
|
14
|
+
selection:bg-primary selection:text-primary-foreground
|
|
15
|
+
file:inline-flex file:h-7 file:border-0 file:bg-transparent
|
|
16
|
+
file:text-sm file:font-medium file:text-foreground
|
|
17
|
+
placeholder:text-muted-foreground
|
|
18
|
+
disabled:pointer-events-none disabled:cursor-not-allowed
|
|
19
|
+
disabled:opacity-50
|
|
20
|
+
md:text-sm
|
|
21
|
+
dark:bg-input/30
|
|
22
|
+
`,
|
|
23
|
+
`
|
|
24
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
25
|
+
focus-visible:ring-ring/50
|
|
26
|
+
`,
|
|
27
|
+
`
|
|
28
|
+
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
29
|
+
dark:aria-invalid:ring-destructive/40
|
|
30
|
+
`,
|
|
31
|
+
e
|
|
32
|
+
),
|
|
33
|
+
...r,
|
|
34
|
+
"data-testid": "input"
|
|
35
|
+
}
|
|
36
|
+
);
|
|
13
37
|
}
|
|
14
38
|
export {
|
|
15
|
-
|
|
16
|
-
i as default
|
|
39
|
+
d as default
|
|
17
40
|
};
|
package/dist/ui.es14.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
1
|
+
import { j as a } from "./ui.es16.js";
|
|
2
|
+
import { memo as s } from "react";
|
|
3
|
+
const o = s(
|
|
4
|
+
({
|
|
5
|
+
children: t,
|
|
6
|
+
className: r = "",
|
|
7
|
+
colors: e = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],
|
|
8
|
+
speed: n = 1
|
|
9
|
+
}) => {
|
|
10
|
+
const i = {
|
|
11
|
+
backgroundImage: `linear-gradient(135deg, ${e.join(", ")}, ${e[0]})`,
|
|
12
|
+
WebkitBackgroundClip: "text",
|
|
13
|
+
WebkitTextFillColor: "transparent",
|
|
14
|
+
animationDuration: `${10 / n}s`
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ a.jsxs(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
className: `
|
|
20
|
+
relative inline-block
|
|
21
|
+
${r}
|
|
22
|
+
`,
|
|
23
|
+
"data-testid": "auroraText",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: t }),
|
|
26
|
+
/* @__PURE__ */ a.jsx(
|
|
27
|
+
"span",
|
|
28
|
+
{
|
|
29
|
+
className: `
|
|
30
|
+
relative animate-aurora bg-clip-text text-transparent
|
|
31
|
+
bg-[length:200%_auto]
|
|
32
|
+
`,
|
|
33
|
+
style: i,
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: t
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
o.displayName = "AuroraText";
|
|
40
44
|
export {
|
|
41
|
-
|
|
42
|
-
t as JUASTIFY_MAPPER,
|
|
43
|
-
n as SIZES_MAPPER,
|
|
44
|
-
x as TEXT_WEIGHT_MAPPER,
|
|
45
|
-
s as VARIANT_MAPPER
|
|
45
|
+
o as AuroraText
|
|
46
46
|
};
|