@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.
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -4
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +4 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es34.js +20 -20
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +10 -10
- package/dist/index.es37.js +6 -6
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +14 -14
- package/dist/index.es40.js +13 -13
- package/dist/index.es41.js +7 -7
- package/dist/index.es42.js +9 -9
- package/dist/index.es43.js +8 -8
- package/dist/index.es44.js +2 -2
- package/dist/index.es45.js +8 -8
- package/dist/index.es47.js +7 -30
- package/dist/index.es48.js +66 -5
- package/dist/index.es49.js +33 -67
- package/dist/index.es5.js +15 -15
- package/dist/index.es50.js +170 -114
- package/dist/index.es51.js +50 -13
- package/dist/index.es52.js +7 -134
- package/dist/index.es53.js +24 -10
- package/dist/index.es54.js +5 -218
- package/dist/index.es55.js +69 -14
- package/dist/index.es56.js +29 -68
- package/dist/index.es57.js +10 -33
- package/dist/index.es58.js +120 -43
- package/dist/index.es59.js +13 -50
- package/dist/index.es60.js +133 -48
- package/dist/index.es61.js +218 -8
- package/dist/index.es62.js +14 -9
- package/dist/index.es63.js +47 -29
- package/dist/index.es64.js +50 -6
- package/dist/index.es65.js +9 -25
- package/dist/index.es66.js +8 -180
- package/dist/index.es67.js +30 -8
- package/dist/index.es69.js +310 -30
- package/dist/index.es70.js +30 -46
- package/dist/index.es71.js +3 -117
- package/dist/index.es72.js +41 -43
- package/dist/index.es73.js +45 -307
- package/dist/index.es74.js +10 -3
- package/dist/index.es75.js +4 -48
- package/dist/index.es76.js +117 -10
- package/dist/index.es77.js +48 -4
- package/dist/index.es79.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +3 -3
- package/dist/index.es86.js +3 -3
- package/dist/index.es87.js +3 -3
- package/dist/index.es88.js +525 -5
- package/dist/index.es89.js +128 -3
- package/dist/index.es90.js +132 -22
- package/dist/index.es91.js +5 -110
- package/dist/index.es92.js +3 -16
- package/dist/index.es93.js +21 -522
- package/dist/index.es94.js +109 -127
- package/dist/index.es95.js +15 -133
- package/dist/index.es97.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs94.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
package/dist/index.cjs95.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 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;
|
package/dist/index.cjs97.js
CHANGED
|
@@ -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.
|
|
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,`;
|
package/dist/index.es33.js
CHANGED
package/dist/index.es34.js
CHANGED
|
@@ -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.
|
|
4
|
-
import { composeEventHandlers as E } from "./index.
|
|
5
|
-
import { createCollection as st } from "./index.
|
|
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.
|
|
8
|
-
import { useDirection as ct } from "./index.
|
|
9
|
-
import { DismissableLayer as it } from "./index.
|
|
10
|
-
import { useFocusGuards as at } from "./index.
|
|
11
|
-
import { FocusScope as dt } from "./index.
|
|
12
|
-
import { useId as Ie } from "./index.
|
|
13
|
-
import { createPopperScope as _e, Anchor as ut, Root as pt, Content as ft, Arrow as mt } from "./index.
|
|
14
|
-
import { Portal as ht } from "./index.
|
|
15
|
-
import { Primitive as M } from "./index.
|
|
16
|
-
import { createSlot as vt } from "./index.
|
|
17
|
-
import { useCallbackRef as gt } from "./index.
|
|
18
|
-
import { useControllableState as Ee } from "./index.
|
|
19
|
-
import { useLayoutEffect as Y } from "./index.
|
|
20
|
-
import { usePrevious as St } from "./index.
|
|
21
|
-
import { VISUALLY_HIDDEN_STYLES as wt } from "./index.
|
|
22
|
-
import { hideOthers as Ct } from "./index.
|
|
23
|
-
import yt from "./index.
|
|
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,
|
package/dist/index.es35.js
CHANGED
package/dist/index.es36.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { composeEventHandlers as g } from "./index.
|
|
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.
|
|
5
|
-
import { DismissableLayer as X } from "./index.
|
|
6
|
-
import { useId as K } from "./index.
|
|
7
|
-
import { createPopperScope as N, Root as W, Anchor as z, Arrow as J, Content as Q } from "./index.
|
|
8
|
-
import { Presence as Z } from "./index.
|
|
9
|
-
import { Primitive as $ } from "./index.
|
|
10
|
-
import { createSlottable as ee } from "./index.
|
|
11
|
-
import { useControllableState as te } from "./index.
|
|
12
|
-
import { Root as oe } from "./index.
|
|
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
|
package/dist/index.es37.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { composeEventHandlers as T } from "./index.
|
|
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.
|
|
5
|
-
import { useControllableState as M } from "./index.
|
|
6
|
-
import { usePrevious as H } from "./index.
|
|
7
|
-
import { useSize as j } from "./index.
|
|
8
|
-
import { Primitive as y } from "./index.
|
|
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) => {
|
package/dist/index.es38.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { Primitive as v } from "./index.
|
|
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" };
|
package/dist/index.es39.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { composeEventHandlers as P } from "./index.
|
|
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.
|
|
5
|
-
import { DismissableLayer as H } from "./index.
|
|
6
|
-
import { useFocusGuards as K } from "./index.
|
|
7
|
-
import { FocusScope as $ } from "./index.
|
|
8
|
-
import { useId as j } from "./index.
|
|
9
|
-
import { createPopperScope as _, Anchor as x, Root as U, Content as V, Arrow as W } from "./index.
|
|
10
|
-
import { Portal as Z } from "./index.
|
|
11
|
-
import { Presence as w } from "./index.
|
|
12
|
-
import { Primitive as E } from "./index.
|
|
13
|
-
import { createSlot as q } from "./index.
|
|
14
|
-
import { useControllableState as z } from "./index.
|
|
15
|
-
import { hideOthers as B } from "./index.
|
|
16
|
-
import J from "./index.
|
|
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
|
_
|
package/dist/index.es40.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
|
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.
|
|
5
|
-
import { useId as R } from "./index.
|
|
6
|
-
import { useControllableState as K } from "./index.
|
|
7
|
-
import { DismissableLayer as U } from "./index.
|
|
8
|
-
import { FocusScope as Y } from "./index.
|
|
9
|
-
import { Portal as Z } from "./index.
|
|
10
|
-
import { Presence as h } from "./index.
|
|
11
|
-
import { Primitive as m } from "./index.
|
|
12
|
-
import { useFocusGuards as z } from "./index.
|
|
13
|
-
import J from "./index.
|
|
14
|
-
import { hideOthers as Q } from "./index.
|
|
15
|
-
import { createSlot as X } from "./index.
|
|
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 {
|
package/dist/index.es41.js
CHANGED
|
@@ -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.
|
|
4
|
-
import { composeEventHandlers as S } from "./index.
|
|
5
|
-
import { useControllableState as O } from "./index.
|
|
6
|
-
import { usePrevious as j } from "./index.
|
|
7
|
-
import { useSize as H } from "./index.
|
|
8
|
-
import { Presence as z } from "./index.
|
|
9
|
-
import { Primitive as P } from "./index.
|
|
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) {
|
package/dist/index.es42.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { composeEventHandlers as I } from "./index.
|
|
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.
|
|
5
|
-
import { Primitive as b } from "./index.
|
|
6
|
-
import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index.
|
|
7
|
-
import { useControllableState as K } from "./index.
|
|
8
|
-
import { useDirection as T } from "./index.
|
|
9
|
-
import { useSize as U } from "./index.
|
|
10
|
-
import { usePrevious as V } from "./index.
|
|
11
|
-
import { Presence as j } from "./index.
|
|
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) => {
|
package/dist/index.es43.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import s from "react";
|
|
2
|
-
import { createContextScope as X } from "./index.
|
|
3
|
-
import { createCollection as Z } from "./index.
|
|
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.
|
|
6
|
-
import { useControllableState as M } from "./index.
|
|
7
|
-
import { Primitive as V } from "./index.
|
|
8
|
-
import { createCollapsibleScope as H, Root as oe, Trigger as re, Content as te } from "./index.
|
|
9
|
-
import { useId as ne } from "./index.
|
|
10
|
-
import { useDirection as ce } from "./index.
|
|
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,
|
package/dist/index.es44.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { createContextScope as w } from "./index.
|
|
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.
|
|
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, [
|
package/dist/index.es45.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as v from "react";
|
|
2
|
-
import { composeEventHandlers as g } from "./index.
|
|
3
|
-
import { createContextScope as x } from "./index.
|
|
4
|
-
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index.
|
|
5
|
-
import { Presence as w } from "./index.
|
|
6
|
-
import { Primitive as b } from "./index.
|
|
7
|
-
import { useDirection as D } from "./index.
|
|
8
|
-
import { useControllableState as V } from "./index.
|
|
9
|
-
import { useId as G } from "./index.
|
|
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
|
package/dist/index.es47.js
CHANGED
|
@@ -1,32 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
8
|
+
h as composeEventHandlers
|
|
32
9
|
};
|
package/dist/index.es48.js
CHANGED
|
@@ -1,9 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
68
|
+
w as createContext,
|
|
69
|
+
_ as createContextScope
|
|
9
70
|
};
|
package/dist/index.es49.js
CHANGED
|
@@ -1,70 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
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
|
-
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
|
-
|
|
69
|
-
|
|
34
|
+
h as Primitive,
|
|
35
|
+
w as dispatchDiscreteCustomEvent
|
|
70
36
|
};
|
package/dist/index.es5.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { cva as
|
|
6
|
-
const
|
|
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
|
-
),
|
|
36
|
-
({ variant: t, size: o, asChild: l = !1,
|
|
37
|
-
l ?
|
|
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:
|
|
41
|
-
ref:
|
|
42
|
-
...
|
|
40
|
+
className: c(u({ variant: t, size: o, rounded: e, className: v })),
|
|
41
|
+
ref: r,
|
|
42
|
+
...s
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
g.displayName = "Button";
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
g as Button,
|
|
49
|
+
u as buttonVariants
|
|
50
50
|
};
|