@boxcustodia/library 0.2.3 → 0.2.4
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.d.ts +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es104.js +9 -4
- package/dist/index.es105.js +4 -14
- package/dist/index.es106.js +14 -5
- package/dist/index.es107.js +4 -56
- package/dist/index.es108.js +55 -222
- package/dist/index.es109.js +224 -11
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +11 -41
- package/dist/index.es112.js +41 -11
- package/dist/index.es113.js +21 -33
- package/dist/index.es114.js +12 -21
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +4 -3
- package/dist/index.es117.js +4 -5
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +813 -55
- package/dist/index.es120.js +9 -822
- package/dist/index.es121.js +5 -3
- package/dist/index.es122.js +4 -11
- package/dist/index.es123.js +64 -4
- package/dist/index.es124.js +33 -13
- package/dist/index.es125.js +13 -33
- package/dist/index.es126.js +216 -13
- package/dist/index.es127.js +13 -8
- package/dist/index.es128.js +7 -215
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +12 -9
- package/dist/index.es133.js +196 -204
- package/dist/index.es134.js +41 -10
- package/dist/index.es135.js +9 -12
- package/dist/index.es136.js +204 -196
- package/dist/index.es137.js +10 -41
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +12 -6
- package/dist/index.es142.js +5 -63
- package/dist/index.es143.js +64 -10
- package/dist/index.es144.js +10 -124
- package/dist/index.es145.js +116 -126
- package/dist/index.es146.js +134 -13
- package/dist/index.es147.js +14 -33
- package/dist/index.es148.js +32 -14
- package/dist/index.es149.js +14 -8
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +9 -50
- package/dist/index.es151.js +50 -6
- package/dist/index.es152.js +6 -2
- package/dist/index.es153.js +2 -44
- package/dist/index.es154.js +40 -646
- package/dist/index.es155.js +648 -11
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +45 -3
- package/dist/index.es159.js +7 -45
- package/dist/index.es160.js +4 -8
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +6 -118
- package/dist/index.es164.js +3 -35
- package/dist/index.es165.js +2054 -2
- package/dist/index.es166.js +118 -2
- package/dist/index.es167.js +33 -6
- package/dist/index.es168.js +4 -3
- package/dist/index.es169.js +2 -2054
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es236.js +176 -19
- package/dist/index.es237.js +15 -3
- package/dist/index.es238.js +3 -32
- package/dist/index.es239.js +32 -12
- package/dist/index.es240.js +17 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +16 -18
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es283.js +16 -15
- package/dist/index.es284.js +8 -3
- package/dist/index.es285.js +15 -16
- package/dist/index.es286.js +3 -8
- package/dist/index.es29.js +3 -3
- package/dist/index.es30.js +23 -23
- package/dist/index.es32.js +2 -2
- package/dist/index.es325.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es335.js +3 -3
- package/dist/index.es338.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +46 -35
- package/dist/index.es342.js +2 -2
- package/dist/index.es343.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +2 -29
- package/dist/index.es351.js +106 -5
- package/dist/index.es352.js +76 -2
- package/dist/index.es353.js +36 -107
- package/dist/index.es354.js +60 -73
- package/dist/index.es355.js +28 -30
- package/dist/index.es356.js +63 -61
- package/dist/index.es357.js +109 -30
- package/dist/index.es358.js +87 -59
- package/dist/index.es359.js +40 -110
- package/dist/index.es360.js +3 -94
- package/dist/index.es361.js +3 -43
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +241 -4
- package/dist/index.es370.js +384 -4
- package/dist/index.es371.js +132 -204
- package/dist/index.es372.js +103 -334
- package/dist/index.es373.js +75 -102
- package/dist/index.es374.js +4 -153
- package/dist/index.es375.js +4 -142
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +5 -2
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +1 -1
- package/dist/index.es394.js +1 -1
- package/dist/index.es404.js +68 -2
- package/dist/index.es405.js +31 -47
- package/dist/index.es406.js +16 -83
- package/dist/index.es407.js +140 -13
- package/dist/index.es408.js +113 -340
- package/dist/index.es409.js +507 -63
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +126 -10
- package/dist/index.es411.js +117 -510
- package/dist/index.es412.js +64 -116
- package/dist/index.es413.js +10 -125
- package/dist/index.es414.js +2 -68
- package/dist/index.es415.js +47 -31
- package/dist/index.es416.js +83 -16
- package/dist/index.es417.js +13 -140
- package/dist/index.es418.js +340 -113
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +4 -4
- package/dist/index.es441.js +275 -3
- package/dist/index.es442.js +78 -105
- package/dist/index.es443.js +166 -2
- package/dist/index.es444.js +3 -2
- package/dist/index.es445.js +100 -268
- package/dist/index.es446.js +2 -80
- package/dist/index.es447.js +2 -166
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +5 -5
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +4 -4
- package/dist/index.es54.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +2 -2
- package/dist/index.es753.js +5 -5
- package/dist/index.es754.js +22 -14
- package/dist/index.es755.js +82 -59
- package/dist/index.es756.js +14 -22
- package/dist/index.es757.js +59 -82
- package/dist/index.es769.js +2 -8
- package/dist/index.es770.js +2 -56
- package/dist/index.es771.js +7 -18
- package/dist/index.es772.js +56 -2
- package/dist/index.es773.js +19 -2
- package/dist/index.es780.js +28 -28
- package/dist/index.es782.js +5 -5
- package/dist/index.es783.js +13 -17
- package/dist/index.es785.js +5 -11
- package/dist/index.es786.js +28 -28
- package/dist/index.es787.js +5 -5
- package/dist/index.es788.js +17 -13
- package/dist/index.es789.js +11 -5
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es805.js +8 -10
- package/dist/index.es806.js +9 -7
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +10 -8
- package/dist/index.es809.js +7 -9
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +25 -38
- package/dist/index.es825.js +38 -25
- package/dist/index.es826.js +15 -64
- package/dist/index.es827.js +7 -11
- package/dist/index.es828.js +61 -38
- package/dist/index.es829.js +7 -54
- package/dist/index.es830.js +40 -16
- package/dist/index.es831.js +57 -17
- package/dist/index.es832.js +20 -7
- package/dist/index.es833.js +1 -1
- package/dist/index.es84.js +305 -33
- package/dist/index.es85.js +12 -46
- package/dist/index.es86.js +34 -29
- package/dist/index.es87.js +42 -26
- package/dist/index.es88.js +27 -304
- package/dist/index.es89.js +30 -12
- package/dist/index.es90.js +55 -9
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +92 -55
- package/dist/index.es93.js +34 -87
- package/dist/index.es94.js +23 -36
- package/dist/index.es95.js +24 -18
- package/dist/index.es96.js +257 -28
- package/dist/index.es97.js +5 -5
- package/dist/index.es98.js +32 -258
- package/dist/index.es99.js +5 -5
- package/dist/style.css +8 -8
- package/package.json +1 -1
package/dist/index.es176.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import U from "./index.es170.js";
|
|
2
2
|
import { forwardRef as _, useContext as z, useState as C, useEffect as v, createElement as A, useRef as h, createContext as N } from "react";
|
|
3
3
|
import { composeEventHandlers as p } from "./index.es171.js";
|
|
4
|
-
import { Primitive as H, dispatchDiscreteCustomEvent as K } from "./index.
|
|
4
|
+
import { Primitive as H, dispatchDiscreteCustomEvent as K } from "./index.es134.js";
|
|
5
5
|
import { useComposedRefs as X } from "./index.es172.js";
|
|
6
6
|
import { useCallbackRef as T } from "./index.es281.js";
|
|
7
7
|
import { useEscapeKeydown as j } from "./index.es282.js";
|
package/dist/index.es177.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import P from "./index.es170.js";
|
|
2
2
|
import { forwardRef as _, useState as k, useRef as T, useEffect as h, useCallback as K, createElement as M } from "react";
|
|
3
3
|
import { useComposedRefs as R } from "./index.es172.js";
|
|
4
|
-
import { Primitive as w } from "./index.
|
|
4
|
+
import { Primitive as w } from "./index.es134.js";
|
|
5
5
|
import { useCallbackRef as y } from "./index.es281.js";
|
|
6
6
|
const E = "focusScope.autoFocusOnMount", b = "focusScope.autoFocusOnUnmount", N = {
|
|
7
7
|
bubbles: !1,
|
package/dist/index.es178.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "./index.es170.js";
|
|
2
2
|
import { forwardRef as i, createElement as c } from "react";
|
|
3
3
|
import d from "react-dom";
|
|
4
|
-
import { Primitive as f } from "./index.
|
|
4
|
+
import { Primitive as f } from "./index.es134.js";
|
|
5
5
|
const b = /* @__PURE__ */ i((e, t) => {
|
|
6
6
|
var o;
|
|
7
7
|
const { container: r = globalThis == null || (o = globalThis.document) === null || o === void 0 ? void 0 : o.body, ...a } = e;
|
package/dist/index.es181.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign as m } from "./index.es287.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { RemoveScroll as e } from "./index.
|
|
4
|
-
import t from "./index.
|
|
3
|
+
import { RemoveScroll as e } from "./index.es380.js";
|
|
4
|
+
import t from "./index.es381.js";
|
|
5
5
|
var s = r.forwardRef(function(a, o) {
|
|
6
6
|
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
|
7
7
|
});
|
package/dist/index.es183.js
CHANGED
package/dist/index.es203.js
CHANGED
package/dist/index.es22.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as o } from "./index.es83.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { Command as u } from "./index.
|
|
4
|
-
import m from "./index.
|
|
3
|
+
import { Command as u } from "./index.es84.js";
|
|
4
|
+
import m from "./index.es85.js";
|
|
5
5
|
import { cn as r } from "./index.es73.js";
|
|
6
6
|
import { DialogRoot as s, DialogContent as p } from "./index.es35.js";
|
|
7
7
|
const d = a.forwardRef(({ className: e, ...i }, t) => /* @__PURE__ */ o.jsx(
|
package/dist/index.es236.js
CHANGED
|
@@ -1,23 +1,180 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { composeEventHandlers as p } from "./index.es142.js";
|
|
3
|
+
import { createCollection as H } from "./index.es158.js";
|
|
4
|
+
import { useComposedRefs as V } from "./index.es135.js";
|
|
5
|
+
import { createContextScope as z } from "./index.es143.js";
|
|
6
|
+
import { useId as q } from "./index.es144.js";
|
|
7
|
+
import { Primitive as P } from "./index.es148.js";
|
|
8
|
+
import { useCallbackRef as J } from "./index.es137.js";
|
|
9
|
+
import { useControllableState as Q } from "./index.es89.js";
|
|
10
|
+
import { useDirection as W } from "./index.es159.js";
|
|
11
|
+
import { j as d } from "./index.es83.js";
|
|
12
|
+
var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [h, G, Z] = H(b), [$, Fe] = z(
|
|
13
|
+
b,
|
|
14
|
+
[Z]
|
|
15
|
+
), [ee, oe] = $(b), N = s.forwardRef(
|
|
16
|
+
(e, r) => /* @__PURE__ */ d.jsx(h.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(h.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
|
|
17
|
+
);
|
|
18
|
+
N.displayName = b;
|
|
19
|
+
var te = s.forwardRef((e, r) => {
|
|
20
|
+
const {
|
|
21
|
+
__scopeRovingFocusGroup: c,
|
|
22
|
+
orientation: o,
|
|
23
|
+
loop: F = !1,
|
|
24
|
+
dir: g,
|
|
25
|
+
currentTabStopId: R,
|
|
26
|
+
defaultCurrentTabStopId: E,
|
|
27
|
+
onCurrentTabStopIdChange: m,
|
|
28
|
+
onEntryFocus: u,
|
|
29
|
+
preventScrollOnEntryFocus: w = !1,
|
|
30
|
+
...C
|
|
31
|
+
} = e, v = s.useRef(null), I = V(r, v), t = W(g), [f = null, T] = Q({
|
|
32
|
+
prop: R,
|
|
33
|
+
defaultProp: E,
|
|
34
|
+
onChange: m
|
|
35
|
+
}), [a, i] = s.useState(!1), S = J(u), M = G(c), x = s.useRef(!1), [k, y] = s.useState(0);
|
|
36
|
+
return s.useEffect(() => {
|
|
37
|
+
const n = v.current;
|
|
38
|
+
if (n)
|
|
39
|
+
return n.addEventListener(_, S), () => n.removeEventListener(_, S);
|
|
40
|
+
}, [S]), /* @__PURE__ */ d.jsx(
|
|
41
|
+
ee,
|
|
42
|
+
{
|
|
43
|
+
scope: c,
|
|
44
|
+
orientation: o,
|
|
45
|
+
dir: t,
|
|
46
|
+
loop: F,
|
|
47
|
+
currentTabStopId: f,
|
|
48
|
+
onItemFocus: s.useCallback(
|
|
49
|
+
(n) => T(n),
|
|
50
|
+
[T]
|
|
51
|
+
),
|
|
52
|
+
onItemShiftTab: s.useCallback(() => i(!0), []),
|
|
53
|
+
onFocusableItemAdd: s.useCallback(
|
|
54
|
+
() => y((n) => n + 1),
|
|
55
|
+
[]
|
|
56
|
+
),
|
|
57
|
+
onFocusableItemRemove: s.useCallback(
|
|
58
|
+
() => y((n) => n - 1),
|
|
59
|
+
[]
|
|
60
|
+
),
|
|
61
|
+
children: /* @__PURE__ */ d.jsx(
|
|
62
|
+
P.div,
|
|
63
|
+
{
|
|
64
|
+
tabIndex: a || k === 0 ? -1 : 0,
|
|
65
|
+
"data-orientation": o,
|
|
66
|
+
...C,
|
|
67
|
+
ref: I,
|
|
68
|
+
style: { outline: "none", ...e.style },
|
|
69
|
+
onMouseDown: p(e.onMouseDown, () => {
|
|
70
|
+
x.current = !0;
|
|
71
|
+
}),
|
|
72
|
+
onFocus: p(e.onFocus, (n) => {
|
|
73
|
+
const L = !x.current;
|
|
74
|
+
if (n.target === n.currentTarget && L && !a) {
|
|
75
|
+
const D = new CustomEvent(_, X);
|
|
76
|
+
if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
77
|
+
const A = M().filter((l) => l.focusable), U = A.find((l) => l.active), B = A.find((l) => l.id === f), Y = [U, B, ...A].filter(
|
|
78
|
+
Boolean
|
|
79
|
+
).map((l) => l.ref.current);
|
|
80
|
+
j(Y, w);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
x.current = !1;
|
|
84
|
+
}),
|
|
85
|
+
onBlur: p(e.onBlur, () => i(!1))
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
18
89
|
);
|
|
19
|
-
|
|
90
|
+
}), O = "RovingFocusGroupItem", K = s.forwardRef(
|
|
91
|
+
(e, r) => {
|
|
92
|
+
const {
|
|
93
|
+
__scopeRovingFocusGroup: c,
|
|
94
|
+
focusable: o = !0,
|
|
95
|
+
active: F = !1,
|
|
96
|
+
tabStopId: g,
|
|
97
|
+
...R
|
|
98
|
+
} = e, E = q(), m = g || E, u = oe(O, c), w = u.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = u;
|
|
99
|
+
return s.useEffect(() => {
|
|
100
|
+
if (o)
|
|
101
|
+
return v(), () => I();
|
|
102
|
+
}, [o, v, I]), /* @__PURE__ */ d.jsx(
|
|
103
|
+
h.ItemSlot,
|
|
104
|
+
{
|
|
105
|
+
scope: c,
|
|
106
|
+
id: m,
|
|
107
|
+
focusable: o,
|
|
108
|
+
active: F,
|
|
109
|
+
children: /* @__PURE__ */ d.jsx(
|
|
110
|
+
P.span,
|
|
111
|
+
{
|
|
112
|
+
tabIndex: w ? 0 : -1,
|
|
113
|
+
"data-orientation": u.orientation,
|
|
114
|
+
...R,
|
|
115
|
+
ref: r,
|
|
116
|
+
onMouseDown: p(e.onMouseDown, (t) => {
|
|
117
|
+
o ? u.onItemFocus(m) : t.preventDefault();
|
|
118
|
+
}),
|
|
119
|
+
onFocus: p(e.onFocus, () => u.onItemFocus(m)),
|
|
120
|
+
onKeyDown: p(e.onKeyDown, (t) => {
|
|
121
|
+
if (t.key === "Tab" && t.shiftKey) {
|
|
122
|
+
u.onItemShiftTab();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (t.target !== t.currentTarget) return;
|
|
126
|
+
const f = se(t, u.orientation, u.dir);
|
|
127
|
+
if (f !== void 0) {
|
|
128
|
+
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
129
|
+
t.preventDefault();
|
|
130
|
+
let a = C().filter((i) => i.focusable).map((i) => i.ref.current);
|
|
131
|
+
if (f === "last") a.reverse();
|
|
132
|
+
else if (f === "prev" || f === "next") {
|
|
133
|
+
f === "prev" && a.reverse();
|
|
134
|
+
const i = a.indexOf(t.currentTarget);
|
|
135
|
+
a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
|
|
136
|
+
}
|
|
137
|
+
setTimeout(() => j(a));
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
K.displayName = O;
|
|
147
|
+
var re = {
|
|
148
|
+
ArrowLeft: "prev",
|
|
149
|
+
ArrowUp: "prev",
|
|
150
|
+
ArrowRight: "next",
|
|
151
|
+
ArrowDown: "next",
|
|
152
|
+
PageUp: "first",
|
|
153
|
+
Home: "first",
|
|
154
|
+
PageDown: "last",
|
|
155
|
+
End: "last"
|
|
20
156
|
};
|
|
157
|
+
function ne(e, r) {
|
|
158
|
+
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
159
|
+
}
|
|
160
|
+
function se(e, r, c) {
|
|
161
|
+
const o = ne(e.key, c);
|
|
162
|
+
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
163
|
+
return re[o];
|
|
164
|
+
}
|
|
165
|
+
function j(e, r = !1) {
|
|
166
|
+
const c = document.activeElement;
|
|
167
|
+
for (const o of e)
|
|
168
|
+
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
|
169
|
+
}
|
|
170
|
+
function ce(e, r) {
|
|
171
|
+
return e.map((c, o) => e[(r + o) % e.length]);
|
|
172
|
+
}
|
|
173
|
+
var ge = N, Re = K;
|
|
21
174
|
export {
|
|
22
|
-
|
|
175
|
+
Re as Item,
|
|
176
|
+
ge as Root,
|
|
177
|
+
N as RovingFocusGroup,
|
|
178
|
+
K as RovingFocusGroupItem,
|
|
179
|
+
Fe as createRovingFocusGroupScope
|
|
23
180
|
};
|
package/dist/index.es237.js
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { forwardRef as s, createElement as c } from "react";
|
|
2
|
+
import { mergeClasses as n, toKebabCase as f } from "./index.es238.js";
|
|
3
|
+
import l from "./index.es239.js";
|
|
1
4
|
/**
|
|
2
5
|
* @license lucide-react v0.379.0 - ISC
|
|
3
6
|
*
|
|
4
7
|
* This source code is licensed under the ISC license.
|
|
5
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
9
|
*/
|
|
7
|
-
const
|
|
10
|
+
const u = (e, r) => {
|
|
11
|
+
const o = s(
|
|
12
|
+
({ className: t, ...a }, m) => c(l, {
|
|
13
|
+
ref: m,
|
|
14
|
+
iconNode: r,
|
|
15
|
+
className: n(`lucide-${f(e)}`, t),
|
|
16
|
+
...a
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
return o.displayName = `${e}`, o;
|
|
20
|
+
};
|
|
8
21
|
export {
|
|
9
|
-
|
|
10
|
-
n as toKebabCase
|
|
22
|
+
u as default
|
|
11
23
|
};
|
package/dist/index.es238.js
CHANGED
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
import { forwardRef as i, createElement as o } from "react";
|
|
2
|
-
import b from "./index.es239.js";
|
|
3
|
-
import { mergeClasses as d } from "./index.es237.js";
|
|
4
1
|
/**
|
|
5
2
|
* @license lucide-react v0.379.0 - ISC
|
|
6
3
|
*
|
|
7
4
|
* This source code is licensed under the ISC license.
|
|
8
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
6
|
*/
|
|
10
|
-
const
|
|
11
|
-
({
|
|
12
|
-
color: m = "currentColor",
|
|
13
|
-
size: r = 24,
|
|
14
|
-
strokeWidth: e = 2,
|
|
15
|
-
absoluteStrokeWidth: a,
|
|
16
|
-
className: s = "",
|
|
17
|
-
children: t,
|
|
18
|
-
iconNode: u,
|
|
19
|
-
...f
|
|
20
|
-
}, l) => o(
|
|
21
|
-
"svg",
|
|
22
|
-
{
|
|
23
|
-
ref: l,
|
|
24
|
-
...b,
|
|
25
|
-
width: r,
|
|
26
|
-
height: r,
|
|
27
|
-
stroke: m,
|
|
28
|
-
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
-
className: d("lucide", s),
|
|
30
|
-
...f
|
|
31
|
-
},
|
|
32
|
-
[
|
|
33
|
-
...u.map(([p, c]) => o(p, c)),
|
|
34
|
-
...Array.isArray(t) ? t : [t]
|
|
35
|
-
]
|
|
36
|
-
)
|
|
37
|
-
);
|
|
7
|
+
const n = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), a = (...e) => e.filter((o, r, t) => !!o && t.indexOf(o) === r).join(" ");
|
|
38
8
|
export {
|
|
39
|
-
|
|
9
|
+
a as mergeClasses,
|
|
10
|
+
n as toKebabCase
|
|
40
11
|
};
|
package/dist/index.es239.js
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
|
+
import { forwardRef as i, createElement as o } from "react";
|
|
2
|
+
import b from "./index.es240.js";
|
|
3
|
+
import { mergeClasses as d } from "./index.es238.js";
|
|
1
4
|
/**
|
|
2
5
|
* @license lucide-react v0.379.0 - ISC
|
|
3
6
|
*
|
|
4
7
|
* This source code is licensed under the ISC license.
|
|
5
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
9
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
10
|
+
const N = i(
|
|
11
|
+
({
|
|
12
|
+
color: m = "currentColor",
|
|
13
|
+
size: r = 24,
|
|
14
|
+
strokeWidth: e = 2,
|
|
15
|
+
absoluteStrokeWidth: a,
|
|
16
|
+
className: s = "",
|
|
17
|
+
children: t,
|
|
18
|
+
iconNode: u,
|
|
19
|
+
...f
|
|
20
|
+
}, l) => o(
|
|
21
|
+
"svg",
|
|
22
|
+
{
|
|
23
|
+
ref: l,
|
|
24
|
+
...b,
|
|
25
|
+
width: r,
|
|
26
|
+
height: r,
|
|
27
|
+
stroke: m,
|
|
28
|
+
strokeWidth: a ? Number(e) * 24 / Number(r) : e,
|
|
29
|
+
className: d("lucide", s),
|
|
30
|
+
...f
|
|
31
|
+
},
|
|
32
|
+
[
|
|
33
|
+
...u.map(([p, c]) => o(p, c)),
|
|
34
|
+
...Array.isArray(t) ? t : [t]
|
|
35
|
+
]
|
|
36
|
+
)
|
|
37
|
+
);
|
|
18
38
|
export {
|
|
19
|
-
|
|
39
|
+
N as default
|
|
20
40
|
};
|
package/dist/index.es240.js
CHANGED
|
@@ -1,180 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
);
|
|
18
|
-
N.displayName = b;
|
|
19
|
-
var te = s.forwardRef((e, r) => {
|
|
20
|
-
const {
|
|
21
|
-
__scopeRovingFocusGroup: c,
|
|
22
|
-
orientation: o,
|
|
23
|
-
loop: F = !1,
|
|
24
|
-
dir: g,
|
|
25
|
-
currentTabStopId: R,
|
|
26
|
-
defaultCurrentTabStopId: E,
|
|
27
|
-
onCurrentTabStopIdChange: m,
|
|
28
|
-
onEntryFocus: u,
|
|
29
|
-
preventScrollOnEntryFocus: w = !1,
|
|
30
|
-
...C
|
|
31
|
-
} = e, v = s.useRef(null), I = V(r, v), t = W(g), [f = null, T] = Q({
|
|
32
|
-
prop: R,
|
|
33
|
-
defaultProp: E,
|
|
34
|
-
onChange: m
|
|
35
|
-
}), [a, i] = s.useState(!1), S = J(u), M = G(c), x = s.useRef(!1), [k, y] = s.useState(0);
|
|
36
|
-
return s.useEffect(() => {
|
|
37
|
-
const n = v.current;
|
|
38
|
-
if (n)
|
|
39
|
-
return n.addEventListener(_, S), () => n.removeEventListener(_, S);
|
|
40
|
-
}, [S]), /* @__PURE__ */ d.jsx(
|
|
41
|
-
ee,
|
|
42
|
-
{
|
|
43
|
-
scope: c,
|
|
44
|
-
orientation: o,
|
|
45
|
-
dir: t,
|
|
46
|
-
loop: F,
|
|
47
|
-
currentTabStopId: f,
|
|
48
|
-
onItemFocus: s.useCallback(
|
|
49
|
-
(n) => T(n),
|
|
50
|
-
[T]
|
|
51
|
-
),
|
|
52
|
-
onItemShiftTab: s.useCallback(() => i(!0), []),
|
|
53
|
-
onFocusableItemAdd: s.useCallback(
|
|
54
|
-
() => y((n) => n + 1),
|
|
55
|
-
[]
|
|
56
|
-
),
|
|
57
|
-
onFocusableItemRemove: s.useCallback(
|
|
58
|
-
() => y((n) => n - 1),
|
|
59
|
-
[]
|
|
60
|
-
),
|
|
61
|
-
children: /* @__PURE__ */ d.jsx(
|
|
62
|
-
P.div,
|
|
63
|
-
{
|
|
64
|
-
tabIndex: a || k === 0 ? -1 : 0,
|
|
65
|
-
"data-orientation": o,
|
|
66
|
-
...C,
|
|
67
|
-
ref: I,
|
|
68
|
-
style: { outline: "none", ...e.style },
|
|
69
|
-
onMouseDown: p(e.onMouseDown, () => {
|
|
70
|
-
x.current = !0;
|
|
71
|
-
}),
|
|
72
|
-
onFocus: p(e.onFocus, (n) => {
|
|
73
|
-
const L = !x.current;
|
|
74
|
-
if (n.target === n.currentTarget && L && !a) {
|
|
75
|
-
const D = new CustomEvent(_, X);
|
|
76
|
-
if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
77
|
-
const A = M().filter((l) => l.focusable), U = A.find((l) => l.active), B = A.find((l) => l.id === f), Y = [U, B, ...A].filter(
|
|
78
|
-
Boolean
|
|
79
|
-
).map((l) => l.ref.current);
|
|
80
|
-
j(Y, w);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
x.current = !1;
|
|
84
|
-
}),
|
|
85
|
-
onBlur: p(e.onBlur, () => i(!1))
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}), O = "RovingFocusGroupItem", K = s.forwardRef(
|
|
91
|
-
(e, r) => {
|
|
92
|
-
const {
|
|
93
|
-
__scopeRovingFocusGroup: c,
|
|
94
|
-
focusable: o = !0,
|
|
95
|
-
active: F = !1,
|
|
96
|
-
tabStopId: g,
|
|
97
|
-
...R
|
|
98
|
-
} = e, E = q(), m = g || E, u = oe(O, c), w = u.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = u;
|
|
99
|
-
return s.useEffect(() => {
|
|
100
|
-
if (o)
|
|
101
|
-
return v(), () => I();
|
|
102
|
-
}, [o, v, I]), /* @__PURE__ */ d.jsx(
|
|
103
|
-
h.ItemSlot,
|
|
104
|
-
{
|
|
105
|
-
scope: c,
|
|
106
|
-
id: m,
|
|
107
|
-
focusable: o,
|
|
108
|
-
active: F,
|
|
109
|
-
children: /* @__PURE__ */ d.jsx(
|
|
110
|
-
P.span,
|
|
111
|
-
{
|
|
112
|
-
tabIndex: w ? 0 : -1,
|
|
113
|
-
"data-orientation": u.orientation,
|
|
114
|
-
...R,
|
|
115
|
-
ref: r,
|
|
116
|
-
onMouseDown: p(e.onMouseDown, (t) => {
|
|
117
|
-
o ? u.onItemFocus(m) : t.preventDefault();
|
|
118
|
-
}),
|
|
119
|
-
onFocus: p(e.onFocus, () => u.onItemFocus(m)),
|
|
120
|
-
onKeyDown: p(e.onKeyDown, (t) => {
|
|
121
|
-
if (t.key === "Tab" && t.shiftKey) {
|
|
122
|
-
u.onItemShiftTab();
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
if (t.target !== t.currentTarget) return;
|
|
126
|
-
const f = se(t, u.orientation, u.dir);
|
|
127
|
-
if (f !== void 0) {
|
|
128
|
-
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
129
|
-
t.preventDefault();
|
|
130
|
-
let a = C().filter((i) => i.focusable).map((i) => i.ref.current);
|
|
131
|
-
if (f === "last") a.reverse();
|
|
132
|
-
else if (f === "prev" || f === "next") {
|
|
133
|
-
f === "prev" && a.reverse();
|
|
134
|
-
const i = a.indexOf(t.currentTarget);
|
|
135
|
-
a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
|
|
136
|
-
}
|
|
137
|
-
setTimeout(() => j(a));
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
K.displayName = O;
|
|
147
|
-
var re = {
|
|
148
|
-
ArrowLeft: "prev",
|
|
149
|
-
ArrowUp: "prev",
|
|
150
|
-
ArrowRight: "next",
|
|
151
|
-
ArrowDown: "next",
|
|
152
|
-
PageUp: "first",
|
|
153
|
-
Home: "first",
|
|
154
|
-
PageDown: "last",
|
|
155
|
-
End: "last"
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.379.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
156
17
|
};
|
|
157
|
-
function ne(e, r) {
|
|
158
|
-
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
159
|
-
}
|
|
160
|
-
function se(e, r, c) {
|
|
161
|
-
const o = ne(e.key, c);
|
|
162
|
-
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
163
|
-
return re[o];
|
|
164
|
-
}
|
|
165
|
-
function j(e, r = !1) {
|
|
166
|
-
const c = document.activeElement;
|
|
167
|
-
for (const o of e)
|
|
168
|
-
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
|
169
|
-
}
|
|
170
|
-
function ce(e, r) {
|
|
171
|
-
return e.map((c, o) => e[(r + o) % e.length]);
|
|
172
|
-
}
|
|
173
|
-
var ge = N, Re = K;
|
|
174
18
|
export {
|
|
175
|
-
|
|
176
|
-
ge as Root,
|
|
177
|
-
N as RovingFocusGroup,
|
|
178
|
-
K as RovingFocusGroupItem,
|
|
179
|
-
Fe as createRovingFocusGroupScope
|
|
19
|
+
t as default
|
|
180
20
|
};
|
package/dist/index.es242.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { formatDistance as o } from "./index.
|
|
2
|
-
import { formatLong as t } from "./index.
|
|
3
|
-
import { formatRelative as a } from "./index.
|
|
4
|
-
import { localize as r } from "./index.
|
|
5
|
-
import { match as e } from "./index.
|
|
1
|
+
import { formatDistance as o } from "./index.es404.js";
|
|
2
|
+
import { formatLong as t } from "./index.es405.js";
|
|
3
|
+
import { formatRelative as a } from "./index.es406.js";
|
|
4
|
+
import { localize as r } from "./index.es407.js";
|
|
5
|
+
import { match as e } from "./index.es408.js";
|
|
6
6
|
const c = {
|
|
7
7
|
code: "es",
|
|
8
8
|
formatDistance: o,
|
package/dist/index.es243.js
CHANGED
|
@@ -1,50 +1,48 @@
|
|
|
1
1
|
import { j as i } from "./index.es83.js";
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { CalendarContext as v } from "./index.
|
|
2
|
+
import { useContext as x, useMemo as g } from "react";
|
|
3
|
+
import { CalendarContext as v } from "./index.es90.js";
|
|
4
4
|
import { isSameMonth as h } from "./index.es220.js";
|
|
5
5
|
import { isWeekend as D } from "./index.es222.js";
|
|
6
6
|
import { isToday as M } from "./index.es221.js";
|
|
7
7
|
import { cn as b } from "./index.es73.js";
|
|
8
|
-
import { formatDate as o } from "./index.
|
|
9
|
-
const j = ({ day: t, navigationDate:
|
|
8
|
+
import { formatDate as o } from "./index.es108.js";
|
|
9
|
+
const j = ({ day: t, navigationDate: s, className: d, ...r }) => {
|
|
10
10
|
const {
|
|
11
11
|
isSelected: n,
|
|
12
|
-
mode:
|
|
13
|
-
selected:
|
|
12
|
+
mode: m,
|
|
13
|
+
selected: u,
|
|
14
14
|
isRangeMode: a,
|
|
15
|
-
selectDate:
|
|
16
|
-
isFirstDayFromRange:
|
|
15
|
+
selectDate: c,
|
|
16
|
+
isFirstDayFromRange: l,
|
|
17
17
|
isLastDayFromRange: f
|
|
18
|
-
} =
|
|
18
|
+
} = x(v), e = g(
|
|
19
19
|
() => n(t),
|
|
20
|
-
[t,
|
|
21
|
-
), p = !e && !h(t,
|
|
20
|
+
[t, u]
|
|
21
|
+
), p = !e && !h(t, s), y = !e && D(t);
|
|
22
22
|
return /* @__PURE__ */ i.jsx(
|
|
23
23
|
"button",
|
|
24
24
|
{
|
|
25
25
|
...r,
|
|
26
|
-
onClick: () =>
|
|
26
|
+
onClick: () => c(t),
|
|
27
27
|
type: "button",
|
|
28
|
-
"data-state-mode":
|
|
28
|
+
"data-state-mode": m,
|
|
29
29
|
"data-state-today": M(t) || void 0,
|
|
30
30
|
"data-state-selected": e || void 0,
|
|
31
31
|
"data-state-different-month": p || void 0,
|
|
32
32
|
"data-state-weekend": y || void 0,
|
|
33
33
|
"data-state-range-mode": a || void 0,
|
|
34
|
-
"data-state-first-day":
|
|
34
|
+
"data-state-first-day": l(t) || void 0,
|
|
35
35
|
"data-state-last-day": f(t) || void 0,
|
|
36
36
|
"data-state-in-range": a && e || void 0,
|
|
37
37
|
className: b(
|
|
38
|
-
"ui-mx-auto ui-flex ui-items-center ui-justify-center ui-w-full ui-aspect-square ui-mt-1 ui-transition-colors hover:ui-bg-accent",
|
|
39
|
-
"data-[state-mode='single']:ui-rounded-full",
|
|
40
|
-
"data-[state-mode='multiple']:ui-rounded-full",
|
|
38
|
+
"ui-mx-auto ui-flex ui-pt-px ui-rounded-md ui-items-center ui-justify-center ui-w-full ui-aspect-square ui-mt-1 ui-transition-colors hover:ui-bg-accent",
|
|
41
39
|
"data-[state-today]:ui-text-error",
|
|
42
40
|
"data-[state-selected]:ui-bg-primary data-[state-selected]:!ui-text-primary-foreground data-[state-selected]:hover:ui-bg-primary/80",
|
|
43
41
|
"data-[state-different-month]:ui-opacity-50 data-[state-weekend=true]:ui-opacity-50",
|
|
44
42
|
"data-[state-in-range]:ui-rounded-none",
|
|
45
43
|
"data-[state-first-day]:ui-rounded-l-full",
|
|
46
44
|
"data-[state-last-day]:ui-rounded-r-full",
|
|
47
|
-
|
|
45
|
+
d
|
|
48
46
|
),
|
|
49
47
|
children: /* @__PURE__ */ i.jsx("time", { dateTime: o(t, "yyyy-MM-dd"), children: o(t, "d") })
|
|
50
48
|
}
|