@epilot/volt-ui 1.1.2-alpha.2 → 1.1.2-alpha.3

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.
Files changed (117) hide show
  1. package/dist/index.cjs33.js +1 -1
  2. package/dist/index.cjs34.js +1 -1
  3. package/dist/index.cjs35.js +1 -1
  4. package/dist/index.cjs36.js +1 -1
  5. package/dist/index.cjs37.js +1 -1
  6. package/dist/index.cjs38.js +1 -1
  7. package/dist/index.cjs39.js +1 -1
  8. package/dist/index.cjs40.js +1 -1
  9. package/dist/index.cjs41.js +1 -1
  10. package/dist/index.cjs42.js +1 -1
  11. package/dist/index.cjs43.js +1 -1
  12. package/dist/index.cjs44.js +1 -1
  13. package/dist/index.cjs45.js +1 -1
  14. package/dist/index.cjs47.js +1 -1
  15. package/dist/index.cjs48.js +1 -1
  16. package/dist/index.cjs49.js +1 -1
  17. package/dist/index.cjs5.js +1 -1
  18. package/dist/index.cjs50.js +1 -1
  19. package/dist/index.cjs51.js +1 -1
  20. package/dist/index.cjs52.js +1 -1
  21. package/dist/index.cjs53.js +1 -1
  22. package/dist/index.cjs54.js +1 -1
  23. package/dist/index.cjs55.js +1 -1
  24. package/dist/index.cjs56.js +1 -1
  25. package/dist/index.cjs57.js +1 -1
  26. package/dist/index.cjs58.js +1 -1
  27. package/dist/index.cjs59.js +1 -1
  28. package/dist/index.cjs60.js +1 -1
  29. package/dist/index.cjs61.js +1 -1
  30. package/dist/index.cjs62.js +1 -1
  31. package/dist/index.cjs63.js +1 -1
  32. package/dist/index.cjs64.js +1 -1
  33. package/dist/index.cjs65.js +1 -1
  34. package/dist/index.cjs66.js +1 -1
  35. package/dist/index.cjs67.js +1 -1
  36. package/dist/index.cjs69.js +1 -1
  37. package/dist/index.cjs70.js +1 -1
  38. package/dist/index.cjs71.js +1 -1
  39. package/dist/index.cjs72.js +1 -1
  40. package/dist/index.cjs73.js +1 -1
  41. package/dist/index.cjs74.js +1 -1
  42. package/dist/index.cjs75.js +1 -1
  43. package/dist/index.cjs76.js +1 -1
  44. package/dist/index.cjs77.js +1 -1
  45. package/dist/index.cjs79.js +1 -1
  46. package/dist/index.cjs81.js +1 -1
  47. package/dist/index.cjs82.js +1 -1
  48. package/dist/index.cjs86.js +1 -1
  49. package/dist/index.cjs87.js +1 -1
  50. package/dist/index.cjs88.js +1 -1
  51. package/dist/index.cjs89.js +1 -1
  52. package/dist/index.cjs90.js +1 -1
  53. package/dist/index.cjs91.js +1 -4
  54. package/dist/index.cjs92.js +1 -1
  55. package/dist/index.cjs93.js +1 -1
  56. package/dist/index.cjs94.js +4 -1
  57. package/dist/index.cjs95.js +1 -1
  58. package/dist/index.cjs97.js +1 -1
  59. package/dist/index.es33.js +1 -1
  60. package/dist/index.es34.js +20 -20
  61. package/dist/index.es35.js +1 -1
  62. package/dist/index.es36.js +10 -10
  63. package/dist/index.es37.js +6 -6
  64. package/dist/index.es38.js +1 -1
  65. package/dist/index.es39.js +14 -14
  66. package/dist/index.es40.js +13 -13
  67. package/dist/index.es41.js +7 -7
  68. package/dist/index.es42.js +9 -9
  69. package/dist/index.es43.js +8 -8
  70. package/dist/index.es44.js +2 -2
  71. package/dist/index.es45.js +8 -8
  72. package/dist/index.es47.js +7 -30
  73. package/dist/index.es48.js +66 -5
  74. package/dist/index.es49.js +33 -67
  75. package/dist/index.es5.js +15 -15
  76. package/dist/index.es50.js +170 -114
  77. package/dist/index.es51.js +50 -13
  78. package/dist/index.es52.js +7 -134
  79. package/dist/index.es53.js +24 -10
  80. package/dist/index.es54.js +5 -218
  81. package/dist/index.es55.js +69 -14
  82. package/dist/index.es56.js +29 -68
  83. package/dist/index.es57.js +10 -33
  84. package/dist/index.es58.js +120 -43
  85. package/dist/index.es59.js +13 -50
  86. package/dist/index.es60.js +133 -48
  87. package/dist/index.es61.js +218 -8
  88. package/dist/index.es62.js +14 -9
  89. package/dist/index.es63.js +47 -29
  90. package/dist/index.es64.js +50 -6
  91. package/dist/index.es65.js +9 -25
  92. package/dist/index.es66.js +8 -180
  93. package/dist/index.es67.js +30 -8
  94. package/dist/index.es69.js +310 -30
  95. package/dist/index.es70.js +30 -46
  96. package/dist/index.es71.js +3 -117
  97. package/dist/index.es72.js +41 -43
  98. package/dist/index.es73.js +45 -307
  99. package/dist/index.es74.js +10 -3
  100. package/dist/index.es75.js +4 -48
  101. package/dist/index.es76.js +117 -10
  102. package/dist/index.es77.js +48 -4
  103. package/dist/index.es79.js +1 -1
  104. package/dist/index.es81.js +1 -1
  105. package/dist/index.es82.js +3 -3
  106. package/dist/index.es86.js +3 -3
  107. package/dist/index.es87.js +3 -3
  108. package/dist/index.es88.js +525 -5
  109. package/dist/index.es89.js +128 -3
  110. package/dist/index.es90.js +132 -22
  111. package/dist/index.es91.js +5 -110
  112. package/dist/index.es92.js +3 -16
  113. package/dist/index.es93.js +21 -522
  114. package/dist/index.es94.js +109 -127
  115. package/dist/index.es95.js +15 -133
  116. package/dist/index.es97.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1,4 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index.cjs85.js"),q=require("react"),j=require("./index.cjs97.js"),_=require("./index.cjs98.js"),v=require("./index.cjs99.js"),P=require("./index.cjs100.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;
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs85.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;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("./index.cjs98.js"),o=require("./index.cjs88.js"),p=require("./index.cjs103.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"),`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),b=require("./index.cjs98.js"),o=require("./index.cjs91.js"),p=require("./index.cjs103.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
2
  .`.concat(o.noScrollbarsClassName,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(a,"px ").concat(n,`;
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as d } from "react/jsx-runtime";
2
- import { Command as e } from "./index.es73.js";
2
+ import { Command as e } from "./index.es69.js";
3
3
  import { cn as a } from "./index.es4.js";
4
4
  const n = (t) => /* @__PURE__ */ l(
5
5
  "svg",
@@ -1,26 +1,26 @@
1
1
  import * as t from "react";
2
2
  import * as be from "react-dom";
3
- import { clamp as Re } from "./index.es74.js";
4
- import { composeEventHandlers as E } from "./index.es48.js";
5
- import { createCollection as st } from "./index.es70.js";
3
+ import { clamp as Re } from "./index.es71.js";
4
+ import { composeEventHandlers as E } from "./index.es47.js";
5
+ import { createCollection as st } from "./index.es72.js";
6
6
  import { useComposedRefs as B } from "./index.es46.js";
7
- import { createContextScope as lt } from "./index.es49.js";
8
- import { useDirection as ct } from "./index.es67.js";
9
- import { DismissableLayer as it } from "./index.es50.js";
10
- import { useFocusGuards as at } from "./index.es51.js";
11
- import { FocusScope as dt } from "./index.es52.js";
12
- import { useId as Ie } from "./index.es53.js";
13
- import { createPopperScope as _e, Anchor as ut, Root as pt, Content as ft, Arrow as mt } from "./index.es54.js";
14
- import { Portal as ht } from "./index.es55.js";
15
- import { Primitive as M } from "./index.es57.js";
16
- import { createSlot as vt } from "./index.es75.js";
17
- import { useCallbackRef as gt } from "./index.es76.js";
18
- import { useControllableState as Ee } from "./index.es59.js";
19
- import { useLayoutEffect as Y } from "./index.es77.js";
20
- import { usePrevious as St } from "./index.es64.js";
21
- import { VISUALLY_HIDDEN_STYLES as wt } from "./index.es63.js";
22
- import { hideOthers as Ct } from "./index.es60.js";
23
- import yt from "./index.es61.js";
7
+ import { createContextScope as lt } from "./index.es48.js";
8
+ import { useDirection as ct } from "./index.es52.js";
9
+ import { DismissableLayer as it } from "./index.es58.js";
10
+ import { useFocusGuards as at } from "./index.es59.js";
11
+ import { FocusScope as dt } from "./index.es60.js";
12
+ import { useId as Ie } from "./index.es57.js";
13
+ import { createPopperScope as _e, Anchor as ut, Root as pt, Content as ft, Arrow as mt } from "./index.es61.js";
14
+ import { Portal as ht } from "./index.es62.js";
15
+ import { Primitive as M } from "./index.es49.js";
16
+ import { createSlot as vt } from "./index.es73.js";
17
+ import { useCallbackRef as gt } from "./index.es74.js";
18
+ import { useControllableState as Ee } from "./index.es51.js";
19
+ import { useLayoutEffect as Y } from "./index.es75.js";
20
+ import { usePrevious as St } from "./index.es54.js";
21
+ import { VISUALLY_HIDDEN_STYLES as wt } from "./index.es67.js";
22
+ import { hideOthers as Ct } from "./index.es64.js";
23
+ import yt from "./index.es65.js";
24
24
  import { jsx as m, jsxs as ce, Fragment as Te } from "react/jsx-runtime";
25
25
  var xt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = st(J), [te] = lt(J, [
26
26
  Tt,
@@ -1,5 +1,5 @@
1
1
  import * as i from "react";
2
- import { Primitive as f } from "./index.es47.js";
2
+ import { Primitive as f } from "./index.es70.js";
3
3
  import { jsx as l } from "react/jsx-runtime";
4
4
  var m = "Label", r = i.forwardRef((e, o) => /* @__PURE__ */ l(
5
5
  f.label,
@@ -1,15 +1,15 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as g } from "./index.es48.js";
2
+ import { composeEventHandlers as g } from "./index.es47.js";
3
3
  import { useComposedRefs as H } from "./index.es46.js";
4
- import { createContextScope as q } from "./index.es49.js";
5
- import { DismissableLayer as X } from "./index.es50.js";
6
- import { useId as K } from "./index.es53.js";
7
- import { createPopperScope as N, Root as W, Anchor as z, Arrow as J, Content as Q } from "./index.es54.js";
8
- import { Presence as Z } from "./index.es56.js";
9
- import { Primitive as $ } from "./index.es57.js";
10
- import { createSlottable as ee } from "./index.es62.js";
11
- import { useControllableState as te } from "./index.es59.js";
12
- import { Root as oe } from "./index.es63.js";
4
+ import { createContextScope as q } from "./index.es48.js";
5
+ import { DismissableLayer as X } from "./index.es58.js";
6
+ import { useId as K } from "./index.es57.js";
7
+ import { createPopperScope as N, Root as W, Anchor as z, Arrow as J, Content as Q } from "./index.es61.js";
8
+ import { Presence as Z } from "./index.es55.js";
9
+ import { Primitive as $ } from "./index.es49.js";
10
+ import { createSlottable as ee } from "./index.es66.js";
11
+ import { useControllableState as te } from "./index.es51.js";
12
+ import { Root as oe } from "./index.es67.js";
13
13
  import { jsx as h, jsxs as re } from "react/jsx-runtime";
14
14
  var [_] = q("Tooltip", [
15
15
  N
@@ -1,11 +1,11 @@
1
1
  import * as r from "react";
2
- import { composeEventHandlers as T } from "./index.es48.js";
2
+ import { composeEventHandlers as T } from "./index.es47.js";
3
3
  import { useComposedRefs as P } from "./index.es46.js";
4
- import { createContextScope as I } from "./index.es49.js";
5
- import { useControllableState as M } from "./index.es59.js";
6
- import { usePrevious as H } from "./index.es64.js";
7
- import { useSize as j } from "./index.es65.js";
8
- import { Primitive as y } from "./index.es57.js";
4
+ import { createContextScope as I } from "./index.es48.js";
5
+ import { useControllableState as M } from "./index.es51.js";
6
+ import { usePrevious as H } from "./index.es54.js";
7
+ import { useSize as j } from "./index.es53.js";
8
+ import { Primitive as y } from "./index.es49.js";
9
9
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
10
10
  var h = "Switch", [U] = I(h), [q, z] = U(h), R = r.forwardRef(
11
11
  (t, a) => {
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import { Primitive as v } from "./index.es69.js";
2
+ import { Primitive as v } from "./index.es56.js";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
5
5
  const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
@@ -1,19 +1,19 @@
1
1
  import * as i from "react";
2
- import { composeEventHandlers as P } from "./index.es48.js";
2
+ import { composeEventHandlers as P } from "./index.es47.js";
3
3
  import { useComposedRefs as O } from "./index.es46.js";
4
- import { createContextScope as G } from "./index.es49.js";
5
- import { DismissableLayer as H } from "./index.es50.js";
6
- import { useFocusGuards as K } from "./index.es51.js";
7
- import { FocusScope as $ } from "./index.es52.js";
8
- import { useId as j } from "./index.es53.js";
9
- import { createPopperScope as _, Anchor as x, Root as U, Content as V, Arrow as W } from "./index.es54.js";
10
- import { Portal as Z } from "./index.es55.js";
11
- import { Presence as w } from "./index.es56.js";
12
- import { Primitive as E } from "./index.es57.js";
13
- import { createSlot as q } from "./index.es58.js";
14
- import { useControllableState as z } from "./index.es59.js";
15
- import { hideOthers as B } from "./index.es60.js";
16
- import J from "./index.es61.js";
4
+ import { createContextScope as G } from "./index.es48.js";
5
+ import { DismissableLayer as H } from "./index.es58.js";
6
+ import { useFocusGuards as K } from "./index.es59.js";
7
+ import { FocusScope as $ } from "./index.es60.js";
8
+ import { useId as j } from "./index.es57.js";
9
+ import { createPopperScope as _, Anchor as x, Root as U, Content as V, Arrow as W } from "./index.es61.js";
10
+ import { Portal as Z } from "./index.es62.js";
11
+ import { Presence as w } from "./index.es55.js";
12
+ import { Primitive as E } from "./index.es49.js";
13
+ import { createSlot as q } from "./index.es63.js";
14
+ import { useControllableState as z } from "./index.es51.js";
15
+ import { hideOthers as B } from "./index.es64.js";
16
+ import J from "./index.es65.js";
17
17
  import { jsx as p } from "react/jsx-runtime";
18
18
  var C = "Popover", [b] = G(C, [
19
19
  _
@@ -1,18 +1,18 @@
1
1
  import * as s from "react";
2
- import { composeEventHandlers as p } from "./index.es48.js";
2
+ import { composeEventHandlers as p } from "./index.es47.js";
3
3
  import { useComposedRefs as _ } from "./index.es46.js";
4
- import { createContextScope as V, createContext as q } from "./index.es49.js";
5
- import { useId as R } from "./index.es53.js";
6
- import { useControllableState as K } from "./index.es59.js";
7
- import { DismissableLayer as U } from "./index.es50.js";
8
- import { FocusScope as Y } from "./index.es52.js";
9
- import { Portal as Z } from "./index.es55.js";
10
- import { Presence as h } from "./index.es56.js";
11
- import { Primitive as m } from "./index.es57.js";
12
- import { useFocusGuards as z } from "./index.es51.js";
13
- import J from "./index.es61.js";
14
- import { hideOthers as Q } from "./index.es60.js";
15
- import { createSlot as X } from "./index.es72.js";
4
+ import { createContextScope as V, createContext as q } from "./index.es48.js";
5
+ import { useId as R } from "./index.es57.js";
6
+ import { useControllableState as K } from "./index.es51.js";
7
+ import { DismissableLayer as U } from "./index.es58.js";
8
+ import { FocusScope as Y } from "./index.es60.js";
9
+ import { Portal as Z } from "./index.es62.js";
10
+ import { Presence as h } from "./index.es55.js";
11
+ import { Primitive as m } from "./index.es49.js";
12
+ import { useFocusGuards as z } from "./index.es59.js";
13
+ import J from "./index.es65.js";
14
+ import { hideOthers as Q } from "./index.es64.js";
15
+ import { createSlot as X } from "./index.es77.js";
16
16
  import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
17
17
  var v = "Dialog", [I, Ne] = V(v), [ee, u] = I(v), x = (e) => {
18
18
  const {
@@ -1,12 +1,12 @@
1
1
  import * as s from "react";
2
2
  import { useComposedRefs as B } from "./index.es46.js";
3
- import { createContextScope as L } from "./index.es49.js";
4
- import { composeEventHandlers as S } from "./index.es48.js";
5
- import { useControllableState as O } from "./index.es59.js";
6
- import { usePrevious as j } from "./index.es64.js";
7
- import { useSize as H } from "./index.es65.js";
8
- import { Presence as z } from "./index.es56.js";
9
- import { Primitive as P } from "./index.es57.js";
3
+ import { createContextScope as L } from "./index.es48.js";
4
+ import { composeEventHandlers as S } from "./index.es47.js";
5
+ import { useControllableState as O } from "./index.es51.js";
6
+ import { usePrevious as j } from "./index.es54.js";
7
+ import { useSize as H } from "./index.es53.js";
8
+ import { Presence as z } from "./index.es55.js";
9
+ import { Primitive as P } from "./index.es49.js";
10
10
  import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
11
11
  var g = "Checkbox", [U] = L(g), [X, E] = U(g);
12
12
  function J(t) {
@@ -1,14 +1,14 @@
1
1
  import * as i from "react";
2
- import { composeEventHandlers as I } from "./index.es48.js";
2
+ import { composeEventHandlers as I } from "./index.es47.js";
3
3
  import { useComposedRefs as E } from "./index.es46.js";
4
- import { createContextScope as w } from "./index.es49.js";
5
- import { Primitive as b } from "./index.es57.js";
6
- import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index.es66.js";
7
- import { useControllableState as K } from "./index.es59.js";
8
- import { useDirection as T } from "./index.es67.js";
9
- import { useSize as U } from "./index.es65.js";
10
- import { usePrevious as V } from "./index.es64.js";
11
- import { Presence as j } from "./index.es56.js";
4
+ import { createContextScope as w } from "./index.es48.js";
5
+ import { Primitive as b } from "./index.es49.js";
6
+ import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index.es50.js";
7
+ import { useControllableState as K } from "./index.es51.js";
8
+ import { useDirection as T } from "./index.es52.js";
9
+ import { useSize as U } from "./index.es53.js";
10
+ import { usePrevious as V } from "./index.es54.js";
11
+ import { Presence as j } from "./index.es55.js";
12
12
  import { jsx as p, jsxs as z } from "react/jsx-runtime";
13
13
  var _ = "Radio", [H, g] = w(_), [W, X] = H(_), k = i.forwardRef(
14
14
  (a, d) => {
@@ -1,13 +1,13 @@
1
1
  import s from "react";
2
- import { createContextScope as X } from "./index.es49.js";
3
- import { createCollection as Z } from "./index.es70.js";
2
+ import { createContextScope as X } from "./index.es48.js";
3
+ import { createCollection as Z } from "./index.es72.js";
4
4
  import { useComposedRefs as $ } from "./index.es46.js";
5
- import { composeEventHandlers as ee } from "./index.es48.js";
6
- import { useControllableState as M } from "./index.es59.js";
7
- import { Primitive as V } from "./index.es57.js";
8
- import { createCollapsibleScope as H, Root as oe, Trigger as re, Content as te } from "./index.es71.js";
9
- import { useId as ne } from "./index.es53.js";
10
- import { useDirection as ce } from "./index.es67.js";
5
+ import { composeEventHandlers as ee } from "./index.es47.js";
6
+ import { useControllableState as M } from "./index.es51.js";
7
+ import { Primitive as V } from "./index.es49.js";
8
+ import { createCollapsibleScope as H, Root as oe, Trigger as re, Content as te } from "./index.es76.js";
9
+ import { useId as ne } from "./index.es57.js";
10
+ import { useDirection as ce } from "./index.es52.js";
11
11
  import { jsx as n } from "react/jsx-runtime";
12
12
  var d = "Accordion", ie = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [E, ae, le] = Z(d), [b] = X(d, [
13
13
  le,
@@ -1,8 +1,8 @@
1
1
  import * as l from "react";
2
- import { createContextScope as w } from "./index.es49.js";
2
+ import { createContextScope as w } from "./index.es48.js";
3
3
  import { useComposedRefs as v } from "./index.es46.js";
4
4
  import { createDialogScope as A, Root as M, Portal as x, Overlay as I, Trigger as L, WarningProvider as $, Content as F, Title as G, Description as j, Close as f } from "./index.es40.js";
5
- import { composeEventHandlers as W } from "./index.es48.js";
5
+ import { composeEventHandlers as W } from "./index.es47.js";
6
6
  import { createSlottable as Y } from "./index.es68.js";
7
7
  import { jsx as i, jsxs as q } from "react/jsx-runtime";
8
8
  var D = "AlertDialog", [B] = w(D, [
@@ -1,12 +1,12 @@
1
1
  import * as v from "react";
2
- import { composeEventHandlers as g } from "./index.es48.js";
3
- import { createContextScope as x } from "./index.es49.js";
4
- import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index.es66.js";
5
- import { Presence as w } from "./index.es56.js";
6
- import { Primitive as b } from "./index.es57.js";
7
- import { useDirection as D } from "./index.es67.js";
8
- import { useControllableState as V } from "./index.es59.js";
9
- import { useId as G } from "./index.es53.js";
2
+ import { composeEventHandlers as g } from "./index.es47.js";
3
+ import { createContextScope as x } from "./index.es48.js";
4
+ import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index.es50.js";
5
+ import { Presence as w } from "./index.es55.js";
6
+ import { Primitive as b } from "./index.es49.js";
7
+ import { useDirection as D } from "./index.es52.js";
8
+ import { useControllableState as V } from "./index.es51.js";
9
+ import { useId as G } from "./index.es57.js";
10
10
  import { jsx as l } from "react/jsx-runtime";
11
11
  var p = "Tabs", [L] = x(p, [
12
12
  C
@@ -1,32 +1,9 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { createSlot as l } from "./index.es31.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], w = u.reduce((t, i) => {
24
- const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: a, ...p } = e, s = a ? o : i;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
5
+ };
6
+ }
30
7
  export {
31
- w as Primitive
8
+ h as composeEventHandlers
32
9
  };
@@ -1,9 +1,70 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
1
+ import * as u from "react";
2
+ import { jsx as h } from "react/jsx-runtime";
3
+ function w(e, c) {
4
+ const o = u.createContext(c), a = (r) => {
5
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
5
7
  };
8
+ a.displayName = e + "Provider";
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
14
+ }
15
+ return [a, i];
16
+ }
17
+ function _(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ const p = (d) => {
23
+ var S;
24
+ const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
+ return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
+ };
27
+ p.displayName = r + "Provider";
28
+ function f(d, x) {
29
+ var v;
30
+ const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
+ if (m) return m;
32
+ if (t !== void 0) return t;
33
+ throw new Error(`\`${d}\` must be used within \`${r}\``);
34
+ }
35
+ return [p, f];
36
+ }
37
+ const i = () => {
38
+ const r = o.map((t) => u.createContext(t));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[e]) || r;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = e, [a, l(i, ...c)];
48
+ }
49
+ function l(...e) {
50
+ const c = e[0];
51
+ if (e.length === 1) return c;
52
+ const o = () => {
53
+ const a = e.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(r) {
58
+ const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
+ const d = s(r)[`__scope${p}`];
60
+ return { ...n, ...d };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
+ };
64
+ };
65
+ return o.scopeName = c.scopeName, o;
6
66
  }
7
67
  export {
8
- h as composeEventHandlers
68
+ w as createContext,
69
+ _ as createContextScope
9
70
  };
@@ -1,70 +1,36 @@
1
- import * as u from "react";
2
- import { jsx as h } from "react/jsx-runtime";
3
- function w(e, c) {
4
- const o = u.createContext(c), a = (r) => {
5
- const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
- return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
7
- };
8
- a.displayName = e + "Provider";
9
- function i(r) {
10
- const t = u.useContext(o);
11
- if (t) return t;
12
- if (c !== void 0) return c;
13
- throw new Error(`\`${r}\` must be used within \`${e}\``);
14
- }
15
- return [a, i];
16
- }
17
- function _(e, c = []) {
18
- let o = [];
19
- function a(r, t) {
20
- const n = u.createContext(t), s = o.length;
21
- o = [...o, t];
22
- const p = (d) => {
23
- var S;
24
- const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
- return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
- };
27
- p.displayName = r + "Provider";
28
- function f(d, x) {
29
- var v;
30
- const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
- if (m) return m;
32
- if (t !== void 0) return t;
33
- throw new Error(`\`${d}\` must be used within \`${r}\``);
34
- }
35
- return [p, f];
36
- }
37
- const i = () => {
38
- const r = o.map((t) => u.createContext(t));
39
- return function(n) {
40
- const s = (n == null ? void 0 : n[e]) || r;
41
- return u.useMemo(
42
- () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
- [n, s]
44
- );
45
- };
46
- };
47
- return i.scopeName = e, [a, l(i, ...c)];
48
- }
49
- function l(...e) {
50
- const c = e[0];
51
- if (e.length === 1) return c;
52
- const o = () => {
53
- const a = e.map((i) => ({
54
- useScope: i(),
55
- scopeName: i.scopeName
56
- }));
57
- return function(r) {
58
- const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
- const d = s(r)[`__scope${p}`];
60
- return { ...n, ...d };
61
- }, {});
62
- return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
- };
64
- };
65
- return o.scopeName = c.scopeName, o;
1
+ import * as f from "react";
2
+ import * as p from "react-dom";
3
+ import { createSlot as c } from "./index.es78.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = u.reduce((t, i) => {
24
+ const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: s, ...a } = e, n = s ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && p.flushSync(() => t.dispatchEvent(i));
66
32
  }
67
33
  export {
68
- w as createContext,
69
- _ as createContextScope
34
+ h as Primitive,
35
+ w as dispatchDiscreteCustomEvent
70
36
  };
package/dist/index.es5.js CHANGED
@@ -1,9 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { Root as n } from "./index.es31.js";
4
- import { cn as a } from "./index.es4.js";
5
- import { cva as c } from "./index.es32.js";
6
- const p = c(
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
+ import { Root as a } from "./index.es31.js";
4
+ import { cn as c } from "./index.es4.js";
5
+ import { cva as p } from "./index.es32.js";
6
+ const u = p(
7
7
  "volt-inline-flex volt-items-center volt-justify-center volt-font-normal volt-whitespace-nowrap volt-transition-all volt-cursor-pointer volt-focus-visible:outline-2 volt-focus-visible:outline-offset-2 volt-disabled:pointer-events-none volt-disabled:opacity-50 volt-shrink-0 [&_svg]:shrink-0 [&_svg]:pointer-events-none [&_svg]:text-current",
8
8
  {
9
9
  variants: {
@@ -32,19 +32,19 @@ const p = c(
32
32
  rounded: "full"
33
33
  }
34
34
  }
35
- ), u = i(
36
- ({ variant: t, size: o, asChild: l = !1, className: e, ...v }, s) => /* @__PURE__ */ r(
37
- l ? n : "button",
35
+ ), g = n(
36
+ ({ variant: t, size: o, asChild: l = !1, rounded: e, className: v, ...s }, r) => /* @__PURE__ */ i(
37
+ l ? a : "button",
38
38
  {
39
39
  "data-slot": "button",
40
- className: a(p({ variant: t, size: o, className: e })),
41
- ref: s,
42
- ...v
40
+ className: c(u({ variant: t, size: o, rounded: e, className: v })),
41
+ ref: r,
42
+ ...s
43
43
  }
44
44
  )
45
45
  );
46
- u.displayName = "Button";
46
+ g.displayName = "Button";
47
47
  export {
48
- u as Button,
49
- p as buttonVariants
48
+ g as Button,
49
+ u as buttonVariants
50
50
  };