@okam/stack-ui 1.32.4 → 1.32.5
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/components/fields/Checkbox/index.d.ts +6 -0
- package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +6 -0
- package/components/fields/Select/Select.d.ts +4 -1
- package/components/fields/Select/Select.interface.d.ts +1 -0
- package/components/fields/TextArea/index.d.ts +4 -1
- package/index.d.ts +4 -2
- package/index.js +1 -1
- package/index.mjs +153 -151
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index118.js +1 -1
- package/index118.mjs +3 -3
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +8 -8
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +2 -2
- package/index140.js +1 -1
- package/index140.mjs +23 -23
- package/index141.js +1 -1
- package/index141.mjs +3 -3
- package/index144.js +1 -1
- package/index144.mjs +21 -23
- package/index145.js +1 -1
- package/index145.mjs +38 -113
- package/index146.js +1 -1
- package/index146.mjs +25 -22
- package/index147.js +1 -1
- package/index147.mjs +251 -35
- package/index148.js +1 -1
- package/index148.mjs +106 -25
- package/index149.js +1 -1
- package/index149.mjs +320 -242
- package/index150.js +1 -1
- package/index150.mjs +23 -105
- package/index151.js +1 -1
- package/index151.mjs +104 -323
- package/index152.js +1 -1
- package/index152.mjs +106 -20
- package/index153.js +1 -1
- package/index153.mjs +83 -107
- package/index154.js +1 -1
- package/index154.mjs +26 -83
- package/index155.js +1 -1
- package/index155.mjs +20 -25
- package/index156.js +1 -1
- package/index156.mjs +17 -123
- package/index157.js +1 -1
- package/index157.mjs +122 -24
- package/index158.js +1 -1
- package/index158.mjs +71 -17
- package/index159.js +1 -1
- package/index159.mjs +338 -62
- package/index16.js +1 -1
- package/index16.mjs +144 -67
- package/index160.js +1 -1
- package/index160.mjs +42 -346
- package/index161.js +1 -1
- package/index161.mjs +29 -43
- package/index162.js +1 -1
- package/index162.mjs +24 -28
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +2 -2
- package/index169.js +1 -1
- package/index169.mjs +4 -4
- package/index17.js +1 -1
- package/index17.mjs +95 -26
- package/index170.js +1 -1
- package/index170.mjs +2 -2
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +4 -4
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +205 -197
- package/index186.js +1 -1
- package/index186.mjs +24 -64
- package/index187.js +1 -1
- package/index187.mjs +4 -143
- package/index188.js +1 -1
- package/index188.mjs +3 -124
- package/index189.js +1 -1
- package/index189.mjs +116 -215
- package/index190.js +1 -1
- package/index190.mjs +23 -184
- package/index191.js +1 -1
- package/index191.mjs +51 -69
- package/index192.js +1 -1
- package/index192.mjs +43 -278
- package/index193.js +1 -1
- package/index193.mjs +31 -92
- package/index194.js +1 -1
- package/index194.mjs +109 -184
- package/index195.js +1 -1
- package/index195.mjs +77 -84
- package/index196.js +1 -1
- package/index196.mjs +101 -58
- package/index197.js +1 -1
- package/index197.mjs +98 -127
- package/index198.js +1 -1
- package/index198.mjs +188 -101
- package/index199.js +1 -1
- package/index199.mjs +52 -110
- package/index20.js +1 -1
- package/index20.mjs +105 -31
- package/index200.js +1 -1
- package/index200.mjs +138 -67
- package/index201.js +1 -1
- package/index201.mjs +119 -105
- package/index202.js +1 -1
- package/index202.mjs +219 -47
- package/index203.js +1 -1
- package/index203.mjs +185 -88
- package/index204.js +1 -1
- package/index204.mjs +62 -63
- package/index205.js +1 -1
- package/index205.mjs +275 -52
- package/index206.js +1 -1
- package/index206.mjs +93 -94
- package/index207.js +1 -5
- package/index207.mjs +183 -75
- package/index208.js +1 -1
- package/index208.mjs +73 -2014
- package/index209.js +1 -1
- package/index209.mjs +56 -57
- package/index21.js +1 -1
- package/index21.mjs +132 -59
- package/index210.js +1 -1
- package/index210.mjs +123 -185
- package/index211.js +1 -1
- package/index211.mjs +110 -205
- package/index212.js +1 -1
- package/index212.mjs +122 -24
- package/index213.js +1 -1
- package/index213.mjs +72 -4
- package/index214.js +1 -1
- package/index214.mjs +110 -3
- package/index215.js +1 -1
- package/index215.mjs +51 -124
- package/index216.js +1 -1
- package/index216.mjs +93 -29
- package/index217.js +1 -1
- package/index217.mjs +70 -51
- package/index218.js +1 -1
- package/index218.mjs +56 -44
- package/index219.js +1 -1
- package/index219.mjs +98 -36
- package/index220.js +5 -1
- package/index220.mjs +78 -111
- package/index221.js +1 -1
- package/index221.mjs +2021 -73
- package/index222.js +1 -1
- package/index222.mjs +57 -99
- package/index223.js +1 -1
- package/index223.mjs +189 -98
- package/index224.js +1 -1
- package/index224.mjs +3 -3
- package/index225.js +1 -1
- package/index225.mjs +1 -1
- package/index226.js +1 -1
- package/index226.mjs +3 -3
- package/index227.js +1 -1
- package/index227.mjs +34 -34
- package/index230.js +1 -1
- package/index230.mjs +2 -2
- package/index231.js +1 -1
- package/index231.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +34 -34
- package/index269.js +1 -1
- package/index269.mjs +4 -130
- package/index270.js +1 -1
- package/index270.mjs +22 -188
- package/index271.js +1 -1
- package/index271.mjs +46 -8
- package/index272.js +1 -1
- package/index272.mjs +5 -3
- package/index273.js +1 -1
- package/index273.mjs +6 -37
- package/index274.js +1 -1
- package/index274.mjs +14 -5
- package/index275.js +1 -1
- package/index275.mjs +24 -29
- package/index276.js +1 -1
- package/index276.mjs +28 -6
- package/index277.js +1 -1
- package/index277.mjs +26 -135
- package/index278.js +1 -1
- package/index278.mjs +9 -197
- package/index279.js +1 -1
- package/index279.mjs +25 -19
- package/index280.js +1 -1
- package/index280.mjs +9 -28
- package/index281.js +1 -1
- package/index281.mjs +5 -46
- package/index282.js +1 -1
- package/index282.mjs +7 -48
- package/index283.js +1 -1
- package/index283.mjs +12 -99
- package/index284.js +1 -1
- package/index284.mjs +8 -5
- package/index285.js +1 -1
- package/index285.mjs +130 -71
- package/index286.js +1 -1
- package/index286.mjs +185 -53
- package/index287.js +1 -1
- package/index287.mjs +9 -7
- package/index288.js +1 -1
- package/index288.mjs +3 -11
- package/index289.js +1 -1
- package/index289.mjs +35 -46
- package/index290.js +1 -1
- package/index290.mjs +5 -24
- package/index291.js +1 -1
- package/index291.mjs +30 -6
- package/index292.js +1 -1
- package/index292.mjs +6 -14
- package/index293.js +1 -1
- package/index293.mjs +48 -24
- package/index294.js +1 -1
- package/index294.mjs +16 -29
- package/index295.js +1 -1
- package/index295.mjs +16 -32
- package/index296.js +1 -1
- package/index296.mjs +16 -10
- package/index297.js +1 -1
- package/index297.mjs +16 -10
- package/index298.js +1 -1
- package/index298.mjs +16 -6
- package/index299.js +1 -1
- package/index299.mjs +16 -8
- package/index300.js +1 -1
- package/index300.mjs +16 -14
- package/index301.js +1 -1
- package/index301.mjs +16 -9
- package/index302.js +1 -1
- package/index302.mjs +16 -5
- package/index303.js +1 -1
- package/index303.mjs +16 -49
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +15 -15
- package/index307.js +1 -1
- package/index307.mjs +12 -12
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +12 -12
- package/index315.js +1 -1
- package/index315.mjs +15 -15
- package/index316.js +1 -1
- package/index316.mjs +15 -15
- package/index317.js +1 -1
- package/index317.mjs +15 -15
- package/index318.js +1 -1
- package/index318.mjs +15 -15
- package/index319.js +1 -1
- package/index319.mjs +12 -12
- package/index320.js +1 -1
- package/index320.mjs +15 -15
- package/index321.js +1 -1
- package/index321.mjs +15 -15
- package/index322.js +1 -1
- package/index322.mjs +15 -15
- package/index323.js +1 -1
- package/index323.mjs +15 -15
- package/index324.js +1 -1
- package/index324.mjs +15 -15
- package/index325.js +1 -1
- package/index325.mjs +12 -12
- package/index326.js +1 -1
- package/index326.mjs +15 -15
- package/index327.js +1 -1
- package/index327.mjs +15 -15
- package/index328.js +1 -1
- package/index328.mjs +141 -16
- package/index329.js +1 -1
- package/index329.mjs +198 -16
- package/index330.js +1 -1
- package/index330.mjs +23 -16
- package/index331.js +1 -1
- package/index331.mjs +47 -16
- package/index332.js +1 -1
- package/index332.mjs +49 -16
- package/index333.js +1 -1
- package/index333.mjs +101 -16
- package/index334.js +1 -1
- package/index334.mjs +71 -15
- package/index335.js +1 -1
- package/index335.mjs +59 -16
- package/index336.js +1 -1
- package/index336.mjs +8 -16
- package/index337.js +1 -1
- package/index337.mjs +12 -16
- package/index338.js +1 -1
- package/index338.mjs +7 -4
- package/index339.js +1 -1
- package/index339.mjs +68 -6
- package/index340.js +1 -1
- package/index340.mjs +27 -65
- package/index341.js +1 -1
- package/index341.mjs +6 -30
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +20 -6
- package/index344.js +1 -1
- package/index344.mjs +3 -20
- package/index345.js +1 -1
- package/index345.mjs +6 -72
- package/index347.js +1 -1
- package/index347.mjs +71 -7
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +7 -7
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +4 -4
- package/index357.js +1 -1
- package/index357.mjs +4 -4
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +4 -4
- package/index362.js +1 -1
- package/index362.mjs +7 -7
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +7 -7
- package/index370.js +1 -1
- package/index370.mjs +3 -3
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +4 -4
- package/index376.js +1 -1
- package/index376.mjs +7 -7
- package/index377.js +1 -1
- package/index377.mjs +4 -4
- package/index378.js +1 -1
- package/index378.mjs +4 -4
- package/index379.js +1 -1
- package/index379.mjs +7 -7
- package/index380.js +1 -1
- package/index380.mjs +4 -4
- package/index381.js +1 -1
- package/index381.mjs +8 -6
- package/package.json +1 -1
package/index152.mjs
CHANGED
|
@@ -1,24 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { toCalendar as i, toCalendarDate as u, fromAbsolute as d } from "./index170.mjs";
|
|
2
|
+
import { weekStartData as s } from "./index197.mjs";
|
|
3
|
+
function m(e, a) {
|
|
4
|
+
return a = i(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
5
|
+
}
|
|
6
|
+
function D(e, a) {
|
|
7
|
+
return e.calendar.identifier === a.calendar.identifier && e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
8
|
+
}
|
|
9
|
+
function b(e, a) {
|
|
10
|
+
return m(e, p(a));
|
|
11
|
+
}
|
|
12
|
+
function o(e, a) {
|
|
13
|
+
let n = e.calendar.toJulianDay(e), t = Math.ceil(n + 1 - h(a)) % 7;
|
|
14
|
+
return t < 0 && (t += 7), t;
|
|
15
|
+
}
|
|
16
|
+
function l(e) {
|
|
17
|
+
return d(Date.now(), e);
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
return u(l(e));
|
|
21
|
+
}
|
|
22
|
+
function I(e, a) {
|
|
23
|
+
return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
|
|
24
|
+
}
|
|
25
|
+
function O(e, a) {
|
|
26
|
+
return f(e) - f(a);
|
|
27
|
+
}
|
|
28
|
+
function f(e) {
|
|
29
|
+
return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
|
|
30
|
+
}
|
|
31
|
+
let r = null;
|
|
32
|
+
function k() {
|
|
33
|
+
return r == null && (r = new Intl.DateTimeFormat().resolvedOptions().timeZone), r;
|
|
34
|
+
}
|
|
35
|
+
function $(e) {
|
|
36
|
+
return e.subtract({
|
|
37
|
+
days: e.day - 1
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function W(e) {
|
|
41
|
+
return e.add({
|
|
42
|
+
days: e.calendar.getDaysInMonth(e) - e.day
|
|
12
43
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
44
|
+
}
|
|
45
|
+
function v(e) {
|
|
46
|
+
return $(e.subtract({
|
|
47
|
+
months: e.month - 1
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
function w(e) {
|
|
51
|
+
return e.calendar.getMinimumMonthInYear ? e.calendar.getMinimumMonthInYear(e) : 1;
|
|
52
|
+
}
|
|
53
|
+
function T(e) {
|
|
54
|
+
return e.calendar.getMinimumDayInMonth ? e.calendar.getMinimumDayInMonth(e) : 1;
|
|
55
|
+
}
|
|
56
|
+
function y(e, a) {
|
|
57
|
+
let n = o(e, a);
|
|
58
|
+
return e.subtract({
|
|
59
|
+
days: n
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function Y(e, a) {
|
|
63
|
+
return y(e, a).add({
|
|
64
|
+
days: 6
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const c = /* @__PURE__ */ new Map();
|
|
68
|
+
function x(e) {
|
|
69
|
+
if (Intl.Locale) {
|
|
70
|
+
let n = c.get(e);
|
|
71
|
+
return n || (n = new Intl.Locale(e).maximize().region, n && c.set(e, n)), n;
|
|
72
|
+
}
|
|
73
|
+
let a = e.split("-")[1];
|
|
74
|
+
return a === "u" ? void 0 : a;
|
|
75
|
+
}
|
|
76
|
+
function h(e) {
|
|
77
|
+
let a = x(e);
|
|
78
|
+
return a && s[a] || 0;
|
|
79
|
+
}
|
|
80
|
+
function J(e, a) {
|
|
81
|
+
let n = e.calendar.getDaysInMonth(e);
|
|
82
|
+
return Math.ceil((o($(e), a) + n) / 7);
|
|
83
|
+
}
|
|
84
|
+
function L(e, a) {
|
|
85
|
+
return e && a ? e.compare(a) <= 0 ? e : a : e || a;
|
|
86
|
+
}
|
|
87
|
+
function S(e, a) {
|
|
88
|
+
return e && a ? e.compare(a) >= 0 ? e : a : e || a;
|
|
21
89
|
}
|
|
22
90
|
export {
|
|
23
|
-
|
|
91
|
+
I as compareDate,
|
|
92
|
+
O as compareTime,
|
|
93
|
+
W as endOfMonth,
|
|
94
|
+
Y as endOfWeek,
|
|
95
|
+
o as getDayOfWeek,
|
|
96
|
+
k as getLocalTimeZone,
|
|
97
|
+
T as getMinimumDayInMonth,
|
|
98
|
+
w as getMinimumMonthInYear,
|
|
99
|
+
J as getWeeksInMonth,
|
|
100
|
+
D as isEqualDay,
|
|
101
|
+
m as isSameDay,
|
|
102
|
+
b as isToday,
|
|
103
|
+
S as maxDate,
|
|
104
|
+
L as minDate,
|
|
105
|
+
l as now,
|
|
106
|
+
$ as startOfMonth,
|
|
107
|
+
y as startOfWeek,
|
|
108
|
+
v as startOfYear,
|
|
109
|
+
p as today
|
|
24
110
|
};
|
package/index153.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index225.js"),s=require("./index152.js"),k=require("react"),v=require("./index156.js"),w=require("./index171.js"),r=require("@react-aria/i18n");function m(o,e){let{startDate:u=e.visibleRange.start,endDate:c=e.visibleRange.end}=o,{direction:t}=r.useLocale(),d=a=>{switch(a.key){case"Enter":case" ":a.preventDefault(),e.selectFocusedDate();break;case"PageUp":a.preventDefault(),a.stopPropagation(),e.focusPreviousSection(a.shiftKey);break;case"PageDown":a.preventDefault(),a.stopPropagation(),e.focusNextSection(a.shiftKey);break;case"End":a.preventDefault(),a.stopPropagation(),e.focusSectionEnd();break;case"Home":a.preventDefault(),a.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":a.preventDefault(),a.stopPropagation(),t==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":a.preventDefault(),a.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":a.preventDefault(),a.stopPropagation(),t==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":a.preventDefault(),a.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(a.preventDefault(),e.setAnchorDate(null));break}},f=l.useVisibleRangeDescription(u,c,e.timeZone,!0),{ariaLabel:p,ariaLabelledBy:D}=l.hookData.get(e),b=w.useLabels({"aria-label":[p,f].filter(Boolean).join(", "),"aria-labelledby":D}),i=r.useDateFormatter({weekday:o.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:n}=r.useLocale(),y=k.useMemo(()=>{let a=s.startOfWeek(s.today(e.timeZone),n);return[...new Array(7).keys()].map(g=>{let P=a.add({days:g}).toDate(e.timeZone);return i.format(P)})},[n,e.timeZone,i]);return{gridProps:v.mergeProps(b,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:d,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:y}}exports.useCalendarGrid=m;
|
package/index153.mjs
CHANGED
|
@@ -1,110 +1,86 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
function L(e, a) {
|
|
85
|
-
return e && a ? e.compare(a) <= 0 ? e : a : e || a;
|
|
86
|
-
}
|
|
87
|
-
function S(e, a) {
|
|
88
|
-
return e && a ? e.compare(a) >= 0 ? e : a : e || a;
|
|
1
|
+
import { useVisibleRangeDescription as y, hookData as g } from "./index225.mjs";
|
|
2
|
+
import { startOfWeek as $, today as k } from "./index152.mjs";
|
|
3
|
+
import { useMemo as w } from "react";
|
|
4
|
+
import { mergeProps as P } from "./index156.mjs";
|
|
5
|
+
import { useLabels as v } from "./index171.mjs";
|
|
6
|
+
import { useLocale as n, useDateFormatter as h } from "@react-aria/i18n";
|
|
7
|
+
function B(r, e) {
|
|
8
|
+
let { startDate: l = e.visibleRange.start, endDate: s = e.visibleRange.end } = r, { direction: o } = n(), f = (a) => {
|
|
9
|
+
switch (a.key) {
|
|
10
|
+
case "Enter":
|
|
11
|
+
case " ":
|
|
12
|
+
a.preventDefault(), e.selectFocusedDate();
|
|
13
|
+
break;
|
|
14
|
+
case "PageUp":
|
|
15
|
+
a.preventDefault(), a.stopPropagation(), e.focusPreviousSection(a.shiftKey);
|
|
16
|
+
break;
|
|
17
|
+
case "PageDown":
|
|
18
|
+
a.preventDefault(), a.stopPropagation(), e.focusNextSection(a.shiftKey);
|
|
19
|
+
break;
|
|
20
|
+
case "End":
|
|
21
|
+
a.preventDefault(), a.stopPropagation(), e.focusSectionEnd();
|
|
22
|
+
break;
|
|
23
|
+
case "Home":
|
|
24
|
+
a.preventDefault(), a.stopPropagation(), e.focusSectionStart();
|
|
25
|
+
break;
|
|
26
|
+
case "ArrowLeft":
|
|
27
|
+
a.preventDefault(), a.stopPropagation(), o === "rtl" ? e.focusNextDay() : e.focusPreviousDay();
|
|
28
|
+
break;
|
|
29
|
+
case "ArrowUp":
|
|
30
|
+
a.preventDefault(), a.stopPropagation(), e.focusPreviousRow();
|
|
31
|
+
break;
|
|
32
|
+
case "ArrowRight":
|
|
33
|
+
a.preventDefault(), a.stopPropagation(), o === "rtl" ? e.focusPreviousDay() : e.focusNextDay();
|
|
34
|
+
break;
|
|
35
|
+
case "ArrowDown":
|
|
36
|
+
a.preventDefault(), a.stopPropagation(), e.focusNextRow();
|
|
37
|
+
break;
|
|
38
|
+
case "Escape":
|
|
39
|
+
"setAnchorDate" in e && (a.preventDefault(), e.setAnchorDate(null));
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}, d = y(l, s, e.timeZone, !0), { ariaLabel: c, ariaLabelledBy: p } = g.get(e), u = v({
|
|
43
|
+
"aria-label": [
|
|
44
|
+
c,
|
|
45
|
+
d
|
|
46
|
+
].filter(Boolean).join(", "),
|
|
47
|
+
"aria-labelledby": p
|
|
48
|
+
}), t = h({
|
|
49
|
+
weekday: r.weekdayStyle || "narrow",
|
|
50
|
+
timeZone: e.timeZone
|
|
51
|
+
}), { locale: i } = n(), b = w(() => {
|
|
52
|
+
let a = $(k(e.timeZone), i);
|
|
53
|
+
return [
|
|
54
|
+
...new Array(7).keys()
|
|
55
|
+
].map((D) => {
|
|
56
|
+
let m = a.add({
|
|
57
|
+
days: D
|
|
58
|
+
}).toDate(e.timeZone);
|
|
59
|
+
return t.format(m);
|
|
60
|
+
});
|
|
61
|
+
}, [
|
|
62
|
+
i,
|
|
63
|
+
e.timeZone,
|
|
64
|
+
t
|
|
65
|
+
]);
|
|
66
|
+
return {
|
|
67
|
+
gridProps: P(u, {
|
|
68
|
+
role: "grid",
|
|
69
|
+
"aria-readonly": e.isReadOnly || void 0,
|
|
70
|
+
"aria-disabled": e.isDisabled || void 0,
|
|
71
|
+
"aria-multiselectable": "highlightedRange" in e || void 0,
|
|
72
|
+
onKeyDown: f,
|
|
73
|
+
onFocus: () => e.setFocused(!0),
|
|
74
|
+
onBlur: () => e.setFocused(!1)
|
|
75
|
+
}),
|
|
76
|
+
headerProps: {
|
|
77
|
+
// Column headers are hidden to screen readers to make navigating with a touch screen reader easier.
|
|
78
|
+
// The day names are already included in the label of each cell, so there's no need to announce them twice.
|
|
79
|
+
"aria-hidden": !0
|
|
80
|
+
},
|
|
81
|
+
weekDays: b
|
|
82
|
+
};
|
|
89
83
|
}
|
|
90
84
|
export {
|
|
91
|
-
|
|
92
|
-
O as compareTime,
|
|
93
|
-
W as endOfMonth,
|
|
94
|
-
Y as endOfWeek,
|
|
95
|
-
o as getDayOfWeek,
|
|
96
|
-
k as getLocalTimeZone,
|
|
97
|
-
T as getMinimumDayInMonth,
|
|
98
|
-
w as getMinimumMonthInYear,
|
|
99
|
-
J as getWeeksInMonth,
|
|
100
|
-
D as isEqualDay,
|
|
101
|
-
m as isSameDay,
|
|
102
|
-
b as isToday,
|
|
103
|
-
S as maxDate,
|
|
104
|
-
L as minDate,
|
|
105
|
-
l as now,
|
|
106
|
-
$ as startOfMonth,
|
|
107
|
-
y as startOfWeek,
|
|
108
|
-
v as startOfYear,
|
|
109
|
-
p as today
|
|
85
|
+
B as useCalendarGrid
|
|
110
86
|
};
|
package/index154.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("./index152.js"),$=require("./index226.js"),F=require("@react-aria/focus"),I=require("./index156.js"),L=require("react"),T=require("react-aria"),t=require("./index64.js");function V({themeName:i="calendar",tokens:l,state:n,date:e}){const a=L.useRef(null),{cellProps:C,buttonProps:g,isSelected:c,isOutsideVisibleRange:m,isDisabled:u,formattedDate:y,isInvalid:d}=$.useCalendarCell({date:e},n,a),s=n==null?void 0:n.highlightedRange,f=s==null?void 0:s.start,h=s==null?void 0:s.end,D=s&&f?r.isSameDay(e,f):c,q=s&&h?r.isSameDay(e,h):c,{locale:p}=T.useLocale(),R=r.getDayOfWeek(e,p),S=c&&(D||R===0||e.day===1),b=c&&(q||R===6||e.day===e.calendar.getDaysInMonth(e)),{focusProps:x,isFocusVisible:P}=F.useFocusRing(),j=t(`${i}.cellContainer`,{...l,isFocusVisible:P}),v=t(`${i}.cell`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isRoundedLeft:S,isRoundedRight:b}),O=t(`${i}.cellDate`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isSelectionStart:D,isSelectionEnd:q});return o.jsx("td",{...C,"aria-disabled":!1,className:j,children:o.jsx("div",{...I.mergeProps(g,x),ref:a,hidden:m,className:v,children:o.jsx("div",{className:O,children:y})})})}module.exports=V;
|
package/index154.mjs
CHANGED
|
@@ -1,86 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
case "ArrowLeft":
|
|
27
|
-
a.preventDefault(), a.stopPropagation(), o === "rtl" ? e.focusNextDay() : e.focusPreviousDay();
|
|
28
|
-
break;
|
|
29
|
-
case "ArrowUp":
|
|
30
|
-
a.preventDefault(), a.stopPropagation(), e.focusPreviousRow();
|
|
31
|
-
break;
|
|
32
|
-
case "ArrowRight":
|
|
33
|
-
a.preventDefault(), a.stopPropagation(), o === "rtl" ? e.focusPreviousDay() : e.focusNextDay();
|
|
34
|
-
break;
|
|
35
|
-
case "ArrowDown":
|
|
36
|
-
a.preventDefault(), a.stopPropagation(), e.focusNextRow();
|
|
37
|
-
break;
|
|
38
|
-
case "Escape":
|
|
39
|
-
"setAnchorDate" in e && (a.preventDefault(), e.setAnchorDate(null));
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
}, d = y(l, s, e.timeZone, !0), { ariaLabel: c, ariaLabelledBy: p } = g.get(e), u = v({
|
|
43
|
-
"aria-label": [
|
|
44
|
-
c,
|
|
45
|
-
d
|
|
46
|
-
].filter(Boolean).join(", "),
|
|
47
|
-
"aria-labelledby": p
|
|
48
|
-
}), t = h({
|
|
49
|
-
weekday: r.weekdayStyle || "narrow",
|
|
50
|
-
timeZone: e.timeZone
|
|
51
|
-
}), { locale: i } = n(), b = w(() => {
|
|
52
|
-
let a = $(k(e.timeZone), i);
|
|
53
|
-
return [
|
|
54
|
-
...new Array(7).keys()
|
|
55
|
-
].map((D) => {
|
|
56
|
-
let m = a.add({
|
|
57
|
-
days: D
|
|
58
|
-
}).toDate(e.timeZone);
|
|
59
|
-
return t.format(m);
|
|
60
|
-
});
|
|
61
|
-
}, [
|
|
62
|
-
i,
|
|
63
|
-
e.timeZone,
|
|
64
|
-
t
|
|
65
|
-
]);
|
|
66
|
-
return {
|
|
67
|
-
gridProps: P(u, {
|
|
68
|
-
role: "grid",
|
|
69
|
-
"aria-readonly": e.isReadOnly || void 0,
|
|
70
|
-
"aria-disabled": e.isDisabled || void 0,
|
|
71
|
-
"aria-multiselectable": "highlightedRange" in e || void 0,
|
|
72
|
-
onKeyDown: f,
|
|
73
|
-
onFocus: () => e.setFocused(!0),
|
|
74
|
-
onBlur: () => e.setFocused(!1)
|
|
75
|
-
}),
|
|
76
|
-
headerProps: {
|
|
77
|
-
// Column headers are hidden to screen readers to make navigating with a touch screen reader easier.
|
|
78
|
-
// The day names are already included in the label of each cell, so there's no need to announce them twice.
|
|
79
|
-
"aria-hidden": !0
|
|
80
|
-
},
|
|
81
|
-
weekDays: b
|
|
82
|
-
};
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { isSameDay as h, getDayOfWeek as F } from "./index152.mjs";
|
|
3
|
+
import { useCalendarCell as I } from "./index226.mjs";
|
|
4
|
+
import { useFocusRing as L } from "@react-aria/focus";
|
|
5
|
+
import { mergeProps as V } from "./index156.mjs";
|
|
6
|
+
import { useRef as W } from "react";
|
|
7
|
+
import { useLocale as j } from "react-aria";
|
|
8
|
+
import r from "./index64.mjs";
|
|
9
|
+
function B({ themeName: l = "calendar", tokens: i, state: c, date: e }) {
|
|
10
|
+
const t = W(null), { cellProps: D, buttonProps: b, isSelected: s, isOutsideVisibleRange: x, isDisabled: a, formattedDate: C, isInvalid: d } = I({ date: e }, c, t), o = c == null ? void 0 : c.highlightedRange, f = o == null ? void 0 : o.start, m = o == null ? void 0 : o.end, p = o && f ? h(e, f) : s, u = o && m ? h(e, m) : s, { locale: R } = j(), $ = F(e, R), g = s && (p || $ === 0 || e.day === 1), y = s && (u || $ === 6 || e.day === e.calendar.getDaysInMonth(e)), { focusProps: S, isFocusVisible: P } = L(), v = r(`${l}.cellContainer`, { ...i, isFocusVisible: P }), O = r(`${l}.cell`, {
|
|
11
|
+
...i,
|
|
12
|
+
isSelected: s,
|
|
13
|
+
isInvalid: d,
|
|
14
|
+
isDisabled: a,
|
|
15
|
+
isRoundedLeft: g,
|
|
16
|
+
isRoundedRight: y
|
|
17
|
+
}), T = r(`${l}.cellDate`, {
|
|
18
|
+
...i,
|
|
19
|
+
isSelected: s,
|
|
20
|
+
isInvalid: d,
|
|
21
|
+
isDisabled: a,
|
|
22
|
+
isSelectionStart: p,
|
|
23
|
+
isSelectionEnd: u
|
|
24
|
+
});
|
|
25
|
+
return /* @__PURE__ */ n("td", { ...D, "aria-disabled": !1, className: v, children: /* @__PURE__ */ n("div", { ...V(b, S), ref: t, hidden: x, className: O, children: /* @__PURE__ */ n("div", { className: T, children: C }) }) });
|
|
83
26
|
}
|
|
84
27
|
export {
|
|
85
|
-
B as
|
|
28
|
+
B as default
|
|
86
29
|
};
|
package/index155.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index345.js"),o=require("./index156.js"),u=require("./index171.js"),s=require("@react-aria/focus");function c(a,e,d){let l=s.useHasTabbableChild(d)?void 0:0;var r;const n=i.generateId(e,(r=a.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),b=u.useLabels({...a,id:n,"aria-labelledby":i.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:o.mergeProps(b,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=c;
|
package/index155.mjs
CHANGED
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
isSelected: s,
|
|
13
|
-
isInvalid: d,
|
|
14
|
-
isDisabled: a,
|
|
15
|
-
isRoundedLeft: g,
|
|
16
|
-
isRoundedRight: y
|
|
17
|
-
}), T = r(`${l}.cellDate`, {
|
|
18
|
-
...i,
|
|
19
|
-
isSelected: s,
|
|
20
|
-
isInvalid: d,
|
|
21
|
-
isDisabled: a,
|
|
22
|
-
isSelectionStart: p,
|
|
23
|
-
isSelectionEnd: u
|
|
1
|
+
import { generateId as r } from "./index345.mjs";
|
|
2
|
+
import { mergeProps as n } from "./index156.mjs";
|
|
3
|
+
import { useLabels as c } from "./index171.mjs";
|
|
4
|
+
import { useHasTabbableChild as f } from "@react-aria/focus";
|
|
5
|
+
function m(a, e, b) {
|
|
6
|
+
let i = f(b) ? void 0 : 0;
|
|
7
|
+
var d;
|
|
8
|
+
const l = r(e, (d = a.id) !== null && d !== void 0 ? d : e == null ? void 0 : e.selectedKey, "tabpanel"), o = c({
|
|
9
|
+
...a,
|
|
10
|
+
id: l,
|
|
11
|
+
"aria-labelledby": r(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
24
12
|
});
|
|
25
|
-
return
|
|
13
|
+
return {
|
|
14
|
+
tabPanelProps: n(o, {
|
|
15
|
+
tabIndex: i,
|
|
16
|
+
role: "tabpanel",
|
|
17
|
+
"aria-describedby": a["aria-describedby"],
|
|
18
|
+
"aria-details": a["aria-details"]
|
|
19
|
+
})
|
|
20
|
+
};
|
|
26
21
|
}
|
|
27
22
|
export {
|
|
28
|
-
|
|
23
|
+
m as useTabPanel
|
|
29
24
|
};
|
package/index156.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index272.js"),l=require("./index139.js"),f=require("./index274.js");function u(...i){let r={...i[0]};for(let n=1;n<i.length;n++){let s=i[n];for(let e in s){let o=r[e],t=s[e];typeof o=="function"&&typeof t=="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?r[e]=c.chain(o,t):(e==="className"||e==="UNSAFE_className")&&typeof o=="string"&&typeof t=="string"?r[e]=f.clsx(o,t):e==="id"&&o&&t?r.id=l.mergeIds(o,t):r[e]=t!==void 0?t:o}}return r}exports.mergeProps=u;
|