@datawire-ai/busyfile-design-library 1.30.3 → 1.30.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/index10.js +46 -46
- package/dist/index100.js +10 -69
- package/dist/index101.js +219 -10
- package/dist/index102.js +13 -124
- package/dist/index103.js +29 -135
- package/dist/index104.js +134 -13
- package/dist/index106.js +3 -3
- package/dist/index108.js +10 -181
- package/dist/index109.js +3 -7
- package/dist/index11.js +6 -6
- package/dist/index110.js +10 -217
- package/dist/index111.js +4 -30
- package/dist/index112.js +46 -10
- package/dist/index113.js +15 -4
- package/dist/index114.js +648 -10
- package/dist/index115.js +1 -1
- package/dist/index116.js +22 -22
- package/dist/index117.js +23 -649
- package/dist/index118.js +22 -15
- package/dist/index119.js +39 -4
- package/dist/index12.js +67 -67
- package/dist/index120.js +18 -47
- package/dist/index121.js +12 -25
- package/dist/index122.js +205 -21
- package/dist/index123.js +21 -38
- package/dist/index124.js +399 -17
- package/dist/index125.js +6 -2
- package/dist/index126.js +25 -2
- package/dist/index127.js +29 -12
- package/dist/index128.js +5 -206
- package/dist/index129.js +2 -22
- package/dist/index13.js +95 -95
- package/dist/index130.js +47 -394
- package/dist/index131.js +65 -6
- package/dist/index132.js +52 -25
- package/dist/index133.js +5 -29
- package/dist/index134.js +5 -5
- package/dist/index135.js +16 -2
- package/dist/index136.js +5 -52
- package/dist/index137.js +8 -64
- package/dist/index138.js +17 -52
- package/dist/index139.js +4 -4
- package/dist/index14.js +15 -15
- package/dist/index140.js +3 -3
- package/dist/index141.js +5 -15
- package/dist/index142.js +5 -5
- package/dist/index143.js +3 -7
- package/dist/index144.js +4 -16
- package/dist/index145.js +6 -4
- package/dist/index146.js +24 -4
- package/dist/index147.js +6 -5
- package/dist/index148.js +4 -5
- package/dist/index149.js +5 -3
- package/dist/index15.js +54 -54
- package/dist/index150.js +4 -3
- package/dist/index151.js +4 -6
- package/dist/index152.js +5 -24
- package/dist/index153.js +4 -6
- package/dist/index154.js +7 -3
- package/dist/index155.js +5 -6
- package/dist/index156.js +4 -5
- package/dist/index157.js +3 -3
- package/dist/index158.js +5 -4
- package/dist/index159.js +58 -4
- package/dist/index16.js +12 -12
- package/dist/index160.js +65 -7
- package/dist/index161.js +240 -5
- package/dist/index162.js +39 -4
- package/dist/index163.js +4 -4
- package/dist/index164.js +7 -6
- package/dist/index165.js +13 -58
- package/dist/index166.js +7 -66
- package/dist/index167.js +10 -240
- package/dist/index168.js +9 -38
- package/dist/index169.js +8 -4
- package/dist/index17.js +30 -30
- package/dist/index170.js +16 -7
- package/dist/index171.js +24 -14
- package/dist/index172.js +20 -8
- package/dist/index173.js +52 -9
- package/dist/index174.js +41 -10
- package/dist/index175.js +9 -8
- package/dist/index176.js +20 -16
- package/dist/index177.js +17 -24
- package/dist/index178.js +7 -20
- package/dist/index179.js +23 -53
- package/dist/index18.js +18 -18
- package/dist/index180.js +19 -42
- package/dist/index181.js +16 -10
- package/dist/index182.js +6 -20
- package/dist/index183.js +4 -16
- package/dist/index184.js +4 -6
- package/dist/index185.js +4 -23
- package/dist/index186.js +5 -19
- package/dist/index187.js +4 -16
- package/dist/index188.js +5 -5
- package/dist/index189.js +7 -4
- package/dist/index19.js +29 -29
- package/dist/index190.js +6 -4
- package/dist/index191.js +5 -4
- package/dist/index192.js +3 -4
- package/dist/index193.js +1 -1
- package/dist/index194.js +3 -6
- package/dist/index195.js +3 -7
- package/dist/index196.js +4 -6
- package/dist/index197.js +3 -5
- package/dist/index198.js +3 -3
- package/dist/index199.js +3 -3
- package/dist/index20.js +6 -6
- package/dist/index200.js +524 -3
- package/dist/index201.js +127 -3
- package/dist/index202.js +133 -4
- package/dist/index203.js +5 -4
- package/dist/index204.js +3 -4
- package/dist/index205.js +23 -3
- package/dist/index206.js +110 -5
- package/dist/index207.js +16 -3
- package/dist/index208.js +2 -24
- package/dist/index209.js +2 -110
- package/dist/index21.js +22 -22
- package/dist/index210.js +8 -15
- package/dist/index211.js +17 -522
- package/dist/index212.js +15 -126
- package/dist/index213.js +4 -132
- package/dist/index214.js +6 -2
- package/dist/index215.js +7 -2
- package/dist/index216.js +4 -8
- package/dist/index217.js +7 -19
- package/dist/index218.js +17 -16
- package/dist/index219.js +5 -5
- package/dist/index22.js +31 -32
- package/dist/index220.js +5 -5
- package/dist/index221.js +13 -6
- package/dist/index222.js +10 -4
- package/dist/index223.js +14 -7
- package/dist/index224.js +5 -17
- package/dist/index225.js +6 -5
- package/dist/index226.js +8 -5
- package/dist/index227.js +6 -13
- package/dist/index228.js +56 -10
- package/dist/index229.js +9 -14
- package/dist/index23.js +24 -24
- package/dist/index230.js +3 -3
- package/dist/index231.js +5 -6
- package/dist/index232.js +9 -8
- package/dist/index233.js +4 -5
- package/dist/index234.js +5 -56
- package/dist/index235.js +4 -9
- package/dist/index236.js +11 -5
- package/dist/index237.js +10 -5
- package/dist/index238.js +10 -9
- package/dist/index239.js +11 -5
- package/dist/index24.js +6 -6
- package/dist/index240.js +11 -5
- package/dist/index241.js +10 -4
- package/dist/index242.js +7 -11
- package/dist/index243.js +6 -10
- package/dist/index244.js +4 -9
- package/dist/index245.js +6 -11
- package/dist/index246.js +8 -11
- package/dist/index247.js +6 -10
- package/dist/index248.js +23 -7
- package/dist/index249.js +18 -6
- package/dist/index25.js +10 -10
- package/dist/index250.js +7 -5
- package/dist/index251.js +10 -6
- package/dist/index252.js +10 -8
- package/dist/index253.js +21 -6
- package/dist/index254.js +10 -23
- package/dist/index255.js +9 -18
- package/dist/index256.js +9 -7
- package/dist/index257.js +4 -10
- package/dist/index258.js +5 -10
- package/dist/index259.js +16 -21
- package/dist/index26.js +10 -10
- package/dist/index260.js +9 -10
- package/dist/index261.js +18 -9
- package/dist/index262.js +15 -9
- package/dist/index263.js +12 -4
- package/dist/index264.js +29 -5
- package/dist/index265.js +11 -15
- package/dist/index266.js +25 -9
- package/dist/index267.js +5 -18
- package/dist/index268.js +62 -13
- package/dist/index269.js +69 -13
- package/dist/index27.js +21 -21
- package/dist/index270.js +9 -30
- package/dist/index271.js +13 -12
- package/dist/index272.js +63 -23
- package/dist/index273.js +68 -6
- package/dist/index274.js +31 -65
- package/dist/index275.js +9 -69
- package/dist/index276.js +152 -8
- package/dist/index277.js +107 -13
- package/dist/index278.js +5 -66
- package/dist/index279.js +13 -68
- package/dist/index28.js +202 -214
- package/dist/index280.js +4 -31
- package/dist/index281.js +23 -9
- package/dist/index282.js +6 -153
- package/dist/index283.js +6 -108
- package/dist/index284.js +4 -5
- package/dist/index285.js +15 -12
- package/dist/index286.js +8 -3
- package/dist/index287.js +5 -22
- package/dist/index288.js +4 -5
- package/dist/index289.js +512 -5
- package/dist/index29.js +42 -42
- package/dist/index290.js +50 -4
- package/dist/index291.js +17 -15
- package/dist/index292.js +6 -8
- package/dist/index293.js +8 -5
- package/dist/index294.js +7 -4
- package/dist/index295.js +8 -512
- package/dist/index296.js +13 -50
- package/dist/index297.js +10 -17
- package/dist/index298.js +14 -6
- package/dist/index299.js +6 -8
- package/dist/index3.js +13 -14
- package/dist/index30.js +113 -113
- package/dist/index300.js +15 -7
- package/dist/index301.js +28 -8
- package/dist/index302.js +12 -12
- package/dist/index303.js +23 -11
- package/dist/index304.js +13 -15
- package/dist/index305.js +27 -6
- package/dist/index306.js +5 -16
- package/dist/index307.js +4 -28
- package/dist/index308.js +57 -13
- package/dist/index31.js +18 -18
- package/dist/index32.js +3 -3
- package/dist/index33.js +80 -80
- package/dist/index34.js +13 -13
- package/dist/index35.js +60 -60
- package/dist/index36.js +92 -92
- package/dist/index4.js +9 -9
- package/dist/index40.js +57 -6
- package/dist/index41.js +25 -55
- package/dist/index42.js +130 -25
- package/dist/index43.js +23 -132
- package/dist/index44.js +238 -23
- package/dist/index45.js +29 -238
- package/dist/index46.js +251 -29
- package/dist/index47.js +18 -251
- package/dist/index48.js +10 -18
- package/dist/index49.js +261 -10
- package/dist/index5.js +18 -18
- package/dist/index50.js +13 -261
- package/dist/index51.js +31 -13
- package/dist/index52.js +334 -26
- package/dist/index53.js +37 -335
- package/dist/index54.js +23 -37
- package/dist/index55.js +8 -16
- package/dist/index56.js +5 -11
- package/dist/index57.js +3 -6
- package/dist/index58.js +13 -10
- package/dist/index59.js +74 -12
- package/dist/index6.js +8 -8
- package/dist/index60.js +83 -69
- package/dist/index61.js +13 -89
- package/dist/index62.js +11 -5
- package/dist/index63.js +20 -17
- package/dist/index64.js +69 -20
- package/dist/index65.js +15 -71
- package/dist/index66.js +13 -9
- package/dist/index67.js +7 -7
- package/dist/index68.js +8 -13
- package/dist/index69.js +2 -14
- package/dist/index7.js +46 -46
- package/dist/index70.js +10 -2
- package/dist/index71.js +8 -4
- package/dist/index72.js +6 -14
- package/dist/index73.js +13 -6
- package/dist/index74.js +22 -13
- package/dist/index75.js +160 -19
- package/dist/index76.js +21 -161
- package/dist/index77.js +33 -23
- package/dist/index78.js +13 -33
- package/dist/index79.js +10 -4
- package/dist/index8.js +25 -28
- package/dist/index80.js +174 -17
- package/dist/index81.js +10 -176
- package/dist/index82.js +862 -10
- package/dist/index83.js +27 -853
- package/dist/index84.js +10 -36
- package/dist/index85.js +243 -10
- package/dist/index86.js +298 -230
- package/dist/index87.js +216 -300
- package/dist/index88.js +10 -227
- package/dist/index89.js +7 -10
- package/dist/index9.js +19 -19
- package/dist/index90.js +27 -2
- package/dist/index91.js +65 -30
- package/dist/index92.js +51 -242
- package/dist/index93.js +5 -26
- package/dist/index94.js +24 -6
- package/dist/index95.js +33 -67
- package/dist/index96.js +178 -48
- package/dist/index97.js +7 -5
- package/dist/index98.js +68 -23
- package/dist/index99.js +124 -32
- package/package.json +6 -7
- package/dist/index309.js +0 -25
- package/dist/index310.js +0 -15
- package/dist/index311.js +0 -30
- package/dist/index312.js +0 -7
- package/dist/index313.js +0 -7
- package/dist/index314.js +0 -59
package/dist/index172.js
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var o;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
|
|
4
|
+
})(o || (o = {}));
|
|
5
|
+
var t;
|
|
6
|
+
(function(e) {
|
|
7
|
+
e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
|
|
8
|
+
})(t || (t = {}));
|
|
9
|
+
var r;
|
|
10
|
+
(function(e) {
|
|
11
|
+
e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
|
|
12
|
+
})(r || (r = {}));
|
|
13
|
+
var n;
|
|
14
|
+
(function(e) {
|
|
15
|
+
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
16
|
+
})(n || (n = {}));
|
|
8
17
|
export {
|
|
9
|
-
|
|
18
|
+
n as Animation,
|
|
19
|
+
t as DayFlag,
|
|
20
|
+
r as SelectionState,
|
|
21
|
+
o as UI
|
|
10
22
|
};
|
package/dist/index173.js
CHANGED
|
@@ -1,13 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useRef as q, useLayoutEffect as z } from "react";
|
|
2
|
+
import { Animation as o } from "./index172.js";
|
|
3
|
+
const l = (e) => e instanceof HTMLElement ? e : null, w = (e) => [
|
|
4
|
+
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
5
|
+
], I = (e) => l(e.querySelector("[data-animated-month]")), S = (e) => l(e.querySelector("[data-animated-caption]")), A = (e) => l(e.querySelector("[data-animated-weeks]")), B = (e) => l(e.querySelector("[data-animated-nav]")), P = (e) => l(e.querySelector("[data-animated-weekdays]"));
|
|
6
|
+
function D(e, b, { classNames: s, months: a, focused: g, dateLib: H }) {
|
|
7
|
+
const p = q(null), h = q(a), v = q(!1);
|
|
8
|
+
z(() => {
|
|
9
|
+
const f = h.current;
|
|
10
|
+
if (h.current = a, !b || !e.current || // safety check because the ref can be set to anything by consumers
|
|
11
|
+
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
12
|
+
a.length === 0 || f.length === 0 || a.length !== f.length)
|
|
13
|
+
return;
|
|
14
|
+
const M = H.isSameMonth(a[0].date, f[0].date), u = H.isAfter(a[0].date, f[0].date), m = u ? s[o.caption_after_enter] : s[o.caption_before_enter], L = u ? s[o.weeks_after_enter] : s[o.weeks_before_enter], x = p.current, _ = e.current.cloneNode(!0);
|
|
15
|
+
if (_ instanceof HTMLElement ? (w(_).forEach((t) => {
|
|
16
|
+
if (!(t instanceof HTMLElement))
|
|
17
|
+
return;
|
|
18
|
+
const c = I(t);
|
|
19
|
+
c && t.contains(c) && t.removeChild(c);
|
|
20
|
+
const n = S(t);
|
|
21
|
+
n && n.classList.remove(m);
|
|
22
|
+
const r = A(t);
|
|
23
|
+
r && r.classList.remove(L);
|
|
24
|
+
}), p.current = _) : p.current = null, v.current || M || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
25
|
+
g)
|
|
26
|
+
return;
|
|
27
|
+
const k = x instanceof HTMLElement ? w(x) : [], d = w(e.current);
|
|
28
|
+
if (d != null && d.every((i) => i instanceof HTMLElement) && k && k.every((i) => i instanceof HTMLElement)) {
|
|
29
|
+
v.current = !0, e.current.style.isolation = "isolate";
|
|
30
|
+
const i = B(e.current);
|
|
31
|
+
i && (i.style.zIndex = "1"), d.forEach((t, c) => {
|
|
32
|
+
const n = k[c];
|
|
33
|
+
if (!n)
|
|
34
|
+
return;
|
|
35
|
+
t.style.position = "relative", t.style.overflow = "hidden";
|
|
36
|
+
const r = S(t);
|
|
37
|
+
r && r.classList.add(m);
|
|
38
|
+
const y = A(t);
|
|
39
|
+
y && y.classList.add(L);
|
|
40
|
+
const W = () => {
|
|
41
|
+
v.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(m), y && y.classList.remove(L), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
|
|
42
|
+
};
|
|
43
|
+
n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
|
|
44
|
+
const C = P(n);
|
|
45
|
+
C && (C.style.opacity = "0");
|
|
46
|
+
const E = S(n);
|
|
47
|
+
E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
|
|
48
|
+
const T = A(n);
|
|
49
|
+
T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
9
52
|
});
|
|
10
53
|
}
|
|
11
54
|
export {
|
|
12
|
-
|
|
55
|
+
D as useAnimation
|
|
13
56
|
};
|
package/dist/index174.js
CHANGED
|
@@ -1,13 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useEffect as I } from "react";
|
|
2
|
+
import { getDates as N } from "./index249.js";
|
|
3
|
+
import { getDays as k } from "./index250.js";
|
|
4
|
+
import { getDisplayMonths as C } from "./index251.js";
|
|
5
|
+
import { getInitialMonth as g } from "./index252.js";
|
|
6
|
+
import { getMonths as O } from "./index253.js";
|
|
7
|
+
import { getNavMonths as q } from "./index254.js";
|
|
8
|
+
import { getNextMonth as F } from "./index255.js";
|
|
9
|
+
import { getPreviousMonth as P } from "./index256.js";
|
|
10
|
+
import { getWeeks as S } from "./index257.js";
|
|
11
|
+
import { useControlledValue as V } from "./index258.js";
|
|
12
|
+
function X(t, n) {
|
|
13
|
+
const [i, o] = q(t, n), { startOfMonth: r, endOfMonth: d } = n, c = g(t, i, o, n), [m, h] = V(
|
|
14
|
+
c,
|
|
15
|
+
// initialMonth is always computed from props.month if provided
|
|
16
|
+
t.month ? c : void 0
|
|
17
|
+
);
|
|
18
|
+
I(() => {
|
|
19
|
+
const e = g(t, i, o, n);
|
|
20
|
+
h(e);
|
|
21
|
+
}, [t.timeZone]);
|
|
22
|
+
const M = C(m, o, t, n), y = N(M, t.endMonth ? d(t.endMonth) : void 0, t, n), f = O(M, y, t, n), l = S(f), v = k(f), D = P(m, i, t, n), T = F(m, o, t, n), { disableNavigation: w, onMonthChange: a } = t, x = (e) => l.some((s) => s.days.some((E) => E.isEqualTo(e))), u = (e) => {
|
|
23
|
+
if (w)
|
|
24
|
+
return;
|
|
25
|
+
let s = r(e);
|
|
26
|
+
i && s < r(i) && (s = r(i)), o && s > r(o) && (s = r(o)), h(s), a == null || a(s);
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
months: f,
|
|
30
|
+
weeks: l,
|
|
31
|
+
days: v,
|
|
32
|
+
navStart: i,
|
|
33
|
+
navEnd: o,
|
|
34
|
+
previousMonth: D,
|
|
35
|
+
nextMonth: T,
|
|
36
|
+
goToMonth: u,
|
|
37
|
+
goToDay: (e) => {
|
|
38
|
+
x(e) || u(e.date);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
10
41
|
}
|
|
11
42
|
export {
|
|
12
|
-
|
|
43
|
+
X as useCalendar
|
|
13
44
|
};
|
package/dist/index175.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
1
|
+
import { createContext as t, useContext as n } from "react";
|
|
2
|
+
const o = t(void 0);
|
|
3
|
+
function c() {
|
|
4
|
+
const e = n(o);
|
|
5
|
+
if (e === void 0)
|
|
6
|
+
throw new Error("useDayPicker() must be used within a custom component.");
|
|
7
|
+
return e;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
o as dayPickerContext,
|
|
11
|
+
c as useDayPicker
|
|
11
12
|
};
|
package/dist/index176.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { useState as r } from "react";
|
|
2
|
+
import { calculateFocusTarget as g } from "./index259.js";
|
|
3
|
+
import { getNextFocus as v } from "./index260.js";
|
|
4
|
+
function S(n, o, F, a, i) {
|
|
5
|
+
const { autoFocus: f } = n, [d, m] = r(), s = g(o.days, F, a || (() => !1), d), [t, u] = r(f ? s : void 0);
|
|
6
|
+
return {
|
|
7
|
+
isFocusTarget: (e) => !!(s != null && s.isEqualTo(e)),
|
|
8
|
+
setFocused: u,
|
|
9
|
+
focused: t,
|
|
10
|
+
blur: () => {
|
|
11
|
+
m(t), u(void 0);
|
|
12
|
+
},
|
|
13
|
+
moveFocus: (e, l) => {
|
|
14
|
+
if (!t)
|
|
15
|
+
return;
|
|
16
|
+
const c = v(e, l, t, o.navStart, o.navEnd, n, i);
|
|
17
|
+
c && (o.goToDay(c), u(c));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
16
20
|
}
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
S as useFocus
|
|
19
23
|
};
|
package/dist/index177.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useMulti as i } from "./index261.js";
|
|
2
|
+
import { useRange as o } from "./index262.js";
|
|
3
|
+
import { useSingle as s } from "./index263.js";
|
|
4
|
+
function f(e, n) {
|
|
5
|
+
const t = s(e, n), r = i(e, n), u = o(e, n);
|
|
6
|
+
switch (e.mode) {
|
|
7
|
+
case "single":
|
|
8
|
+
return t;
|
|
9
|
+
case "multiple":
|
|
10
|
+
return r;
|
|
11
|
+
case "range":
|
|
12
|
+
return u;
|
|
13
|
+
default:
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
export {
|
|
13
|
-
|
|
14
|
-
o as labelDay,
|
|
15
|
-
l as labelDayButton,
|
|
16
|
-
b as labelGrid,
|
|
17
|
-
m as labelGridcell,
|
|
18
|
-
f as labelMonthDropdown,
|
|
19
|
-
n as labelNav,
|
|
20
|
-
u as labelNext,
|
|
21
|
-
N as labelPrevious,
|
|
22
|
-
v as labelWeekNumber,
|
|
23
|
-
G as labelWeekNumberHeader,
|
|
24
|
-
y as labelWeekday,
|
|
25
|
-
h as labelYearDropdown
|
|
18
|
+
f as useSelection
|
|
26
19
|
};
|
package/dist/index178.js
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
|
|
8
|
-
})(t || (t = {}));
|
|
9
|
-
var r;
|
|
10
|
-
(function(e) {
|
|
11
|
-
e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
|
|
12
|
-
})(r || (r = {}));
|
|
13
|
-
var n;
|
|
14
|
-
(function(e) {
|
|
15
|
-
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
16
|
-
})(n || (n = {}));
|
|
1
|
+
import { defaultDateLib as s } from "./index161.js";
|
|
2
|
+
function u(f, r, t = !1, o = s) {
|
|
3
|
+
let { from: n, to: e } = f;
|
|
4
|
+
const { differenceInCalendarDays: i, isSameDay: a } = o;
|
|
5
|
+
return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
|
|
6
|
+
}
|
|
17
7
|
export {
|
|
18
|
-
|
|
19
|
-
t as DayFlag,
|
|
20
|
-
r as SelectionState,
|
|
21
|
-
o as UI
|
|
8
|
+
u as rangeIncludesDate
|
|
22
9
|
};
|
package/dist/index179.js
CHANGED
|
@@ -1,56 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const c = I(t);
|
|
19
|
-
c && t.contains(c) && t.removeChild(c);
|
|
20
|
-
const n = S(t);
|
|
21
|
-
n && n.classList.remove(m);
|
|
22
|
-
const r = A(t);
|
|
23
|
-
r && r.classList.remove(L);
|
|
24
|
-
}), p.current = _) : p.current = null, v.current || M || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
25
|
-
g)
|
|
26
|
-
return;
|
|
27
|
-
const k = x instanceof HTMLElement ? w(x) : [], d = w(e.current);
|
|
28
|
-
if (d != null && d.every((i) => i instanceof HTMLElement) && k && k.every((i) => i instanceof HTMLElement)) {
|
|
29
|
-
v.current = !0, e.current.style.isolation = "isolate";
|
|
30
|
-
const i = B(e.current);
|
|
31
|
-
i && (i.style.zIndex = "1"), d.forEach((t, c) => {
|
|
32
|
-
const n = k[c];
|
|
33
|
-
if (!n)
|
|
34
|
-
return;
|
|
35
|
-
t.style.position = "relative", t.style.overflow = "hidden";
|
|
36
|
-
const r = S(t);
|
|
37
|
-
r && r.classList.add(m);
|
|
38
|
-
const y = A(t);
|
|
39
|
-
y && y.classList.add(L);
|
|
40
|
-
const W = () => {
|
|
41
|
-
v.current = !1, e.current && (e.current.style.isolation = ""), i && (i.style.zIndex = ""), r && r.classList.remove(m), y && y.classList.remove(L), t.style.position = "", t.style.overflow = "", t.contains(n) && t.removeChild(n);
|
|
42
|
-
};
|
|
43
|
-
n.style.pointerEvents = "none", n.style.position = "absolute", n.style.overflow = "hidden", n.setAttribute("aria-hidden", "true");
|
|
44
|
-
const C = P(n);
|
|
45
|
-
C && (C.style.opacity = "0");
|
|
46
|
-
const E = S(n);
|
|
47
|
-
E && (E.classList.add(u ? s[o.caption_before_exit] : s[o.caption_after_exit]), E.addEventListener("animationend", W));
|
|
48
|
-
const T = A(n);
|
|
49
|
-
T && T.classList.add(u ? s[o.weeks_before_exit] : s[o.weeks_after_exit]), t.insertBefore(n, t.firstChild);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
1
|
+
function o(e) {
|
|
2
|
+
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
3
|
+
}
|
|
4
|
+
function t(e) {
|
|
5
|
+
return !!(e && typeof e == "object" && "from" in e);
|
|
6
|
+
}
|
|
7
|
+
function r(e) {
|
|
8
|
+
return !!(e && typeof e == "object" && "after" in e);
|
|
9
|
+
}
|
|
10
|
+
function f(e) {
|
|
11
|
+
return !!(e && typeof e == "object" && "before" in e);
|
|
12
|
+
}
|
|
13
|
+
function i(e) {
|
|
14
|
+
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
15
|
+
}
|
|
16
|
+
function y(e, n) {
|
|
17
|
+
return Array.isArray(e) && e.every(n.isDate);
|
|
53
18
|
}
|
|
54
19
|
export {
|
|
55
|
-
|
|
20
|
+
r as isDateAfterType,
|
|
21
|
+
f as isDateBeforeType,
|
|
22
|
+
o as isDateInterval,
|
|
23
|
+
t as isDateRange,
|
|
24
|
+
y as isDatesArray,
|
|
25
|
+
i as isDayOfWeekType
|
|
56
26
|
};
|
package/dist/index18.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import c from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import n from "./
|
|
6
|
-
import p from "./
|
|
7
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "./index37.js";
|
|
3
|
+
import c from "./index65.js";
|
|
4
|
+
import m from "./index66.js";
|
|
5
|
+
import n from "./index67.js";
|
|
6
|
+
import p from "./index68.js";
|
|
7
|
+
const v = ({
|
|
8
8
|
variant: r = "icon",
|
|
9
9
|
width: a,
|
|
10
|
-
height:
|
|
10
|
+
height: l,
|
|
11
11
|
iconSize: t = 40,
|
|
12
12
|
className: o,
|
|
13
13
|
...i
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
15
|
+
const d = () => {
|
|
16
16
|
switch (r) {
|
|
17
17
|
case "image":
|
|
18
|
-
return /* @__PURE__ */ e
|
|
18
|
+
return /* @__PURE__ */ e(p, { size: t, "data-testid": "placeholder-image" });
|
|
19
19
|
case "video":
|
|
20
|
-
return /* @__PURE__ */ e
|
|
20
|
+
return /* @__PURE__ */ e(n, { size: t, "data-testid": "placeholder-video" });
|
|
21
21
|
case "pieChart":
|
|
22
|
-
return /* @__PURE__ */ e
|
|
22
|
+
return /* @__PURE__ */ e(m, { size: t, "data-testid": "placeholder-pieChart" });
|
|
23
23
|
case "icon":
|
|
24
24
|
default:
|
|
25
|
-
return /* @__PURE__ */ e
|
|
25
|
+
return /* @__PURE__ */ e(c, { size: t, "data-testid": "placeholder-smile" });
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ e
|
|
28
|
+
return /* @__PURE__ */ e(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
"data-testid": "placeholder-wrapper",
|
|
32
|
-
className:
|
|
32
|
+
className: s(
|
|
33
33
|
"flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",
|
|
34
34
|
o
|
|
35
35
|
),
|
|
36
|
-
style: { width: a, height:
|
|
36
|
+
style: { width: a, height: l },
|
|
37
37
|
...i,
|
|
38
|
-
children:
|
|
38
|
+
children: d()
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
v as Placeholder
|
|
44
44
|
};
|
package/dist/index180.js
CHANGED
|
@@ -1,44 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
I(() => {
|
|
19
|
-
const e = g(t, i, o, n);
|
|
20
|
-
h(e);
|
|
21
|
-
}, [t.timeZone]);
|
|
22
|
-
const M = C(m, o, t, n), y = N(M, t.endMonth ? d(t.endMonth) : void 0, t, n), f = O(M, y, t, n), l = S(f), v = k(f), D = P(m, i, t, n), T = F(m, o, t, n), { disableNavigation: w, onMonthChange: a } = t, x = (e) => l.some((s) => s.days.some((E) => E.isEqualTo(e))), u = (e) => {
|
|
23
|
-
if (w)
|
|
24
|
-
return;
|
|
25
|
-
let s = r(e);
|
|
26
|
-
i && s < r(i) && (s = r(i)), o && s > r(o) && (s = r(o)), h(s), a == null || a(s);
|
|
27
|
-
};
|
|
28
|
-
return {
|
|
29
|
-
months: f,
|
|
30
|
-
weeks: l,
|
|
31
|
-
days: v,
|
|
32
|
-
navStart: i,
|
|
33
|
-
navEnd: o,
|
|
34
|
-
previousMonth: D,
|
|
35
|
-
nextMonth: T,
|
|
36
|
-
goToMonth: u,
|
|
37
|
-
goToDay: (e) => {
|
|
38
|
-
x(e) || u(e.date);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
1
|
+
import { formatDistance as o } from "./index273.js";
|
|
2
|
+
import { formatLong as t } from "./index274.js";
|
|
3
|
+
import { formatRelative as a } from "./index275.js";
|
|
4
|
+
import { localize as r } from "./index276.js";
|
|
5
|
+
import { match as e } from "./index277.js";
|
|
6
|
+
const s = {
|
|
7
|
+
code: "en-US",
|
|
8
|
+
formatDistance: o,
|
|
9
|
+
formatLong: t,
|
|
10
|
+
formatRelative: a,
|
|
11
|
+
localize: r,
|
|
12
|
+
match: e,
|
|
13
|
+
options: {
|
|
14
|
+
weekStartsOn: 0,
|
|
15
|
+
firstWeekContainsDate: 1
|
|
16
|
+
}
|
|
17
|
+
};
|
|
42
18
|
export {
|
|
43
|
-
|
|
19
|
+
s as default,
|
|
20
|
+
s as enUS
|
|
44
21
|
};
|
package/dist/index181.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { formatCaption as t, formatMonthCaption as e } from "./index182.js";
|
|
2
|
+
import { formatDay as a } from "./index183.js";
|
|
3
|
+
import { formatMonthDropdown as p } from "./index184.js";
|
|
4
|
+
import { formatWeekdayName as x } from "./index185.js";
|
|
5
|
+
import { formatWeekNumber as i } from "./index186.js";
|
|
6
|
+
import { formatWeekNumberHeader as C } from "./index187.js";
|
|
7
|
+
import { formatYearCaption as N, formatYearDropdown as W } from "./index188.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
t as formatCaption,
|
|
10
|
+
a as formatDay,
|
|
11
|
+
e as formatMonthCaption,
|
|
12
|
+
p as formatMonthDropdown,
|
|
13
|
+
i as formatWeekNumber,
|
|
14
|
+
C as formatWeekNumberHeader,
|
|
15
|
+
x as formatWeekdayName,
|
|
16
|
+
N as formatYearCaption,
|
|
17
|
+
W as formatYearDropdown
|
|
12
18
|
};
|
package/dist/index182.js
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function S(n, o, F, a, i) {
|
|
5
|
-
const { autoFocus: f } = n, [d, m] = r(), s = g(o.days, F, a || (() => !1), d), [t, u] = r(f ? s : void 0);
|
|
6
|
-
return {
|
|
7
|
-
isFocusTarget: (e) => !!(s != null && s.isEqualTo(e)),
|
|
8
|
-
setFocused: u,
|
|
9
|
-
focused: t,
|
|
10
|
-
blur: () => {
|
|
11
|
-
m(t), u(void 0);
|
|
12
|
-
},
|
|
13
|
-
moveFocus: (e, l) => {
|
|
14
|
-
if (!t)
|
|
15
|
-
return;
|
|
16
|
-
const c = v(e, l, t, o.navStart, o.navEnd, n, i);
|
|
17
|
-
c && (o.goToDay(c), u(c));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
1
|
+
import { DateLib as r } from "./index161.js";
|
|
2
|
+
function a(t, o, n) {
|
|
3
|
+
return (n ?? new r(o)).formatMonthYear(t);
|
|
20
4
|
}
|
|
5
|
+
const f = a;
|
|
21
6
|
export {
|
|
22
|
-
|
|
7
|
+
a as formatCaption,
|
|
8
|
+
f as formatMonthCaption
|
|
23
9
|
};
|
package/dist/index183.js
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function f(e, n) {
|
|
5
|
-
const t = s(e, n), r = i(e, n), u = o(e, n);
|
|
6
|
-
switch (e.mode) {
|
|
7
|
-
case "single":
|
|
8
|
-
return t;
|
|
9
|
-
case "multiple":
|
|
10
|
-
return r;
|
|
11
|
-
case "range":
|
|
12
|
-
return u;
|
|
13
|
-
default:
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
1
|
+
import { DateLib as a } from "./index161.js";
|
|
2
|
+
function f(r, t, o) {
|
|
3
|
+
return (o ?? new a(t)).format(r, "d");
|
|
16
4
|
}
|
|
17
5
|
export {
|
|
18
|
-
f as
|
|
6
|
+
f as formatDay
|
|
19
7
|
};
|
package/dist/index184.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { defaultDateLib as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
const { differenceInCalendarDays: i, isSameDay: a } = o;
|
|
5
|
-
return n && e ? (i(e, n) < 0 && ([n, e] = [e, n]), i(r, n) >= (t ? 1 : 0) && i(e, r) >= (t ? 1 : 0)) : !t && e ? a(e, r) : !t && n ? a(n, r) : !1;
|
|
1
|
+
import { defaultDateLib as r } from "./index161.js";
|
|
2
|
+
function n(o, t = r) {
|
|
3
|
+
return t.format(o, "LLLL");
|
|
6
4
|
}
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
n as formatMonthDropdown
|
|
9
7
|
};
|
package/dist/index185.js
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function t(e) {
|
|
5
|
-
return !!(e && typeof e == "object" && "from" in e);
|
|
6
|
-
}
|
|
7
|
-
function r(e) {
|
|
8
|
-
return !!(e && typeof e == "object" && "after" in e);
|
|
9
|
-
}
|
|
10
|
-
function f(e) {
|
|
11
|
-
return !!(e && typeof e == "object" && "before" in e);
|
|
12
|
-
}
|
|
13
|
-
function i(e) {
|
|
14
|
-
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
15
|
-
}
|
|
16
|
-
function y(e, n) {
|
|
17
|
-
return Array.isArray(e) && e.every(n.isDate);
|
|
1
|
+
import { DateLib as t } from "./index161.js";
|
|
2
|
+
function a(c, e, r) {
|
|
3
|
+
return (r ?? new t(e)).format(c, "cccccc");
|
|
18
4
|
}
|
|
19
5
|
export {
|
|
20
|
-
|
|
21
|
-
f as isDateBeforeType,
|
|
22
|
-
o as isDateInterval,
|
|
23
|
-
t as isDateRange,
|
|
24
|
-
y as isDatesArray,
|
|
25
|
-
i as isDayOfWeekType
|
|
6
|
+
a as formatWeekdayName
|
|
26
7
|
};
|