se-design 1.0.82 → 1.0.83-dev.0
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/assets/style.css +1 -1
- package/dist/components/NLSearch/ClearAiFiltersBar.d.ts +21 -0
- package/dist/components/NLSearch/NLDynamicChip.d.ts +18 -0
- package/dist/components/NLSearch/NLSearchInput.d.ts +21 -0
- package/dist/components/NLSearch/index.d.ts +6 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +131 -124
- package/dist/index.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +2 -2
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.js +2 -2
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -2
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +3 -3
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +2 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +2 -2
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +2 -2
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +2 -2
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +3 -3
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.js +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +2 -2
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +1 -1
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +2 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +2 -2
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +5 -5
- package/dist/index190.js +1 -1
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +1 -1
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +1 -1
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -1
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -149
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -9
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +149 -42
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -20
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +9 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +8 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +45 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +24 -0
- package/dist/index208.js.map +1 -0
- package/dist/{index211.js → index215.js} +1 -1
- package/dist/{index211.js.map → index215.js.map} +1 -1
- package/dist/{index212.js → index216.js} +3 -3
- package/dist/{index212.js.map → index216.js.map} +1 -1
- package/dist/{index220.js → index224.js} +1 -1
- package/dist/{index220.js.map → index224.js.map} +1 -1
- package/dist/index23.js +4 -4
- package/dist/{index228.js → index232.js} +1 -1
- package/dist/{index228.js.map → index232.js.map} +1 -1
- package/dist/{index231.js → index235.js} +1 -1
- package/dist/{index231.js.map → index235.js.map} +1 -1
- package/dist/index244.js +168 -8
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +3 -9
- package/dist/index245.js.map +1 -1
- package/dist/index247.js +18 -169
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +10 -11
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +8 -4
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +3 -3
- package/dist/index250.js +4 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +168 -36
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -2
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +5 -7
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +5 -326
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +36 -48
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +2 -2
- package/dist/index257.js +7 -75
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +308 -74
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +45 -47
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +2 -8
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +75 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +89 -48
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +52 -2
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +8 -2
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +8 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +55 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +5 -0
- package/dist/index267.js.map +1 -0
- package/dist/index268.js +5 -0
- package/dist/index268.js.map +1 -0
- package/dist/index27.js +1 -1
- package/dist/index28.js +4 -4
- package/dist/index29.js +3 -3
- package/dist/index3.js +3 -3
- package/dist/index30.js +4 -4
- package/dist/index32.js +10 -11
- package/dist/index33.js +1 -1
- package/dist/index35.js +4 -4
- package/dist/index36.js +5 -5
- package/dist/index38.js +3 -3
- package/dist/index39.js +4 -4
- package/dist/index4.js +3 -3
- package/dist/index40.js +1 -1
- package/dist/index42.js +7 -8
- package/dist/index43.js +9 -10
- package/dist/index45.js +4 -4
- package/dist/index46.js +142 -193
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +21 -38
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +36 -33
- package/dist/index48.js.map +1 -1
- package/dist/index50.js +189 -78
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +36 -459
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +33 -98
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +151 -36
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +84 -36
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +456 -88
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +96 -161
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +35 -146
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +38 -33
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +89 -83
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +123 -123
- package/dist/index60.js +157 -113
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +143 -61
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +33 -152
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +80 -312
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +118 -45
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +62 -140
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +152 -12
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +316 -44
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -82
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +143 -18
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +9 -10
- package/dist/index70.js +9 -63
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +45 -26
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +78 -102
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +18 -61
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +63 -18
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +27 -5
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +102 -48
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +58 -20
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +19 -7
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +8 -0
- package/dist/index79.js.map +1 -0
- package/dist/index80.js +54 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +24 -2
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +9 -2
- package/dist/index82.js.map +1 -1
- package/dist/index84.js +2 -2
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +2 -2
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +5 -5
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index240.js +0 -173
- package/dist/index240.js.map +0 -1
- package/dist/index241.js +0 -7
- package/dist/index241.js.map +0 -1
- package/dist/index243.js +0 -22
- package/dist/index243.js.map +0 -1
- package/dist/index246.js +0 -8
- package/dist/index246.js.map +0 -1
- package/dist/index49.js +0 -152
- package/dist/index49.js.map +0 -1
- package/dist/index83.js +0 -5
- package/dist/index83.js.map +0 -1
package/dist/index51.js
CHANGED
|
@@ -1,464 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return T = Object.assign ? Object.assign.bind() : function(p) {
|
|
9
|
-
for (var m = 1; m < arguments.length; m++) {
|
|
10
|
-
var v = arguments[m];
|
|
11
|
-
for (var w in v) ({}).hasOwnProperty.call(v, w) && (p[w] = v[w]);
|
|
12
|
-
}
|
|
13
|
-
return p;
|
|
14
|
-
}, T.apply(null, arguments);
|
|
15
|
-
}
|
|
16
|
-
const Oe = ["S", "M", "T", "W", "T", "F", "S"], Se = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Te = ["Today", "Yesterday", "This Week", "Last Week", "This Month", "Last Month"], q = [{
|
|
17
|
-
value: "january",
|
|
18
|
-
label: "January"
|
|
19
|
-
}, {
|
|
20
|
-
value: "february",
|
|
21
|
-
label: "February"
|
|
22
|
-
}, {
|
|
23
|
-
value: "march",
|
|
24
|
-
label: "March"
|
|
25
|
-
}, {
|
|
26
|
-
value: "april",
|
|
27
|
-
label: "April"
|
|
28
|
-
}, {
|
|
29
|
-
value: "may",
|
|
30
|
-
label: "May"
|
|
31
|
-
}, {
|
|
32
|
-
value: "june",
|
|
33
|
-
label: "June"
|
|
34
|
-
}, {
|
|
35
|
-
value: "july",
|
|
36
|
-
label: "July"
|
|
37
|
-
}, {
|
|
38
|
-
value: "august",
|
|
39
|
-
label: "August"
|
|
40
|
-
}, {
|
|
41
|
-
value: "september",
|
|
42
|
-
label: "September"
|
|
43
|
-
}, {
|
|
44
|
-
value: "october",
|
|
45
|
-
label: "October"
|
|
46
|
-
}, {
|
|
47
|
-
value: "november",
|
|
48
|
-
label: "November"
|
|
49
|
-
}, {
|
|
50
|
-
value: "december",
|
|
51
|
-
label: "December"
|
|
52
|
-
}], Re = (p, m) => new Date(p, m + 1, 0).getDate(), je = (p, m) => new Date(p, m, 1).getDay(), ze = ({
|
|
53
|
-
title: p = "Select modified date",
|
|
54
|
-
// isOpen = true,
|
|
55
|
-
showHeader: m = !0,
|
|
56
|
-
initialStartDate: v,
|
|
57
|
-
initialEndDate: w,
|
|
58
|
-
onApply: R = () => {
|
|
59
|
-
},
|
|
60
|
-
onClose: j,
|
|
61
|
-
shouldAllowFutureDateSelection: F = !1,
|
|
62
|
-
maxDays: g,
|
|
63
|
-
disablePastDates: A = !1,
|
|
64
|
-
singleDateSelection: P = !1,
|
|
65
|
-
minYearOption: ae,
|
|
66
|
-
showQuickActions: ne = !1,
|
|
67
|
-
showSingleMonth: h = !1,
|
|
68
|
-
className: re = "",
|
|
69
|
-
automationId: y = "datepicker",
|
|
70
|
-
labels: J = {
|
|
71
|
-
clear: "Clear",
|
|
72
|
-
apply: "Apply"
|
|
73
|
-
}
|
|
1
|
+
import o from "react";
|
|
2
|
+
const m = ({
|
|
3
|
+
progress: a,
|
|
4
|
+
backgroundColor: n = "#E8E8E8",
|
|
5
|
+
progressColor: s = "#0066FF",
|
|
6
|
+
size: e = 40,
|
|
7
|
+
strokeWidth: r = 4
|
|
74
8
|
}) => {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}, {
|
|
104
|
-
getGridCellProps: le,
|
|
105
|
-
getLeftContainerProps: ce,
|
|
106
|
-
getRightContainerProps: ie
|
|
107
|
-
} = Fe({
|
|
108
|
-
leftMonth: x,
|
|
109
|
-
rightMonth: C,
|
|
110
|
-
showSingleMonth: h,
|
|
111
|
-
selectedRange: l,
|
|
112
|
-
onMonthChange: N
|
|
113
|
-
}), ue = (t, e) => {
|
|
114
|
-
const a = Re(t, e), n = je(t, e), d = [];
|
|
115
|
-
for (let c = 0; c < n; c++)
|
|
116
|
-
d.push(null);
|
|
117
|
-
for (let c = 1; c <= a; c++) {
|
|
118
|
-
const u = new Date(t, e, c);
|
|
119
|
-
u.setHours(0, 0, 0, 0), d.push(u);
|
|
120
|
-
}
|
|
121
|
-
return d;
|
|
122
|
-
}, O = (t, e) => t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear(), de = (t) => {
|
|
123
|
-
if (!l.startDate || !l.endDate) return !1;
|
|
124
|
-
const e = new Date(t);
|
|
125
|
-
e.setHours(12, 0, 0, 0);
|
|
126
|
-
const a = new Date(l.startDate);
|
|
127
|
-
a.setHours(0, 0, 0, 0);
|
|
128
|
-
const n = new Date(l.endDate);
|
|
129
|
-
return n.setHours(23, 59, 59, 999), e >= a && e <= n;
|
|
130
|
-
}, ge = (t) => {
|
|
131
|
-
const e = /* @__PURE__ */ new Date();
|
|
132
|
-
return t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear();
|
|
133
|
-
}, I = (t) => {
|
|
134
|
-
if (!t) return !0;
|
|
135
|
-
const e = /* @__PURE__ */ new Date();
|
|
136
|
-
e.setHours(0, 0, 0, 0);
|
|
137
|
-
const a = new Date(t);
|
|
138
|
-
if (a.setHours(0, 0, 0, 0), A && a < e)
|
|
139
|
-
return !0;
|
|
140
|
-
if (g != null) {
|
|
141
|
-
const n = new Date(e);
|
|
142
|
-
return n.setDate(n.getDate() + g), n.setHours(0, 0, 0, 0), a > n;
|
|
143
|
-
}
|
|
144
|
-
return F ? !1 : a > e;
|
|
145
|
-
}, De = (t) => {
|
|
146
|
-
if (I(t)) return;
|
|
147
|
-
const e = new Date(t);
|
|
148
|
-
if (e.setHours(12, 0, 0, 0), P) {
|
|
149
|
-
M({
|
|
150
|
-
startDate: e,
|
|
151
|
-
endDate: e
|
|
152
|
-
}), R({
|
|
153
|
-
startDate: e,
|
|
154
|
-
endDate: e
|
|
155
|
-
}), j?.();
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
if (!l.startDate || l.endDate)
|
|
159
|
-
M({
|
|
160
|
-
startDate: e,
|
|
161
|
-
endDate: null
|
|
162
|
-
});
|
|
163
|
-
else {
|
|
164
|
-
const a = new Date(l.startDate);
|
|
165
|
-
a.setHours(12, 0, 0, 0);
|
|
166
|
-
const n = e > a ? e : a, d = e > a ? a : e;
|
|
167
|
-
M({
|
|
168
|
-
startDate: d,
|
|
169
|
-
endDate: n
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}, K = (t, e) => {
|
|
173
|
-
const a = new Date(t);
|
|
174
|
-
return a.setMonth(a.getMonth() + (e ? 1 : -1)), a;
|
|
175
|
-
}, me = (t) => l?.startDate ? O(t, l.startDate) : !1, fe = (t) => l?.endDate ? O(t, l?.endDate) : !1, pe = (t) => !l.startDate || !l.endDate ? !1 : O(l.startDate, l.endDate) && O(t, l.startDate), he = (t, e) => {
|
|
176
|
-
const a = ae || t - 10;
|
|
177
|
-
let n = F ? t + 10 : t;
|
|
178
|
-
if (g) {
|
|
179
|
-
const c = /* @__PURE__ */ new Date(), u = new Date(c);
|
|
180
|
-
u.setDate(u.getDate() + g);
|
|
181
|
-
const b = u.getFullYear();
|
|
182
|
-
n = Math.min(n, b);
|
|
183
|
-
}
|
|
184
|
-
n = Math.max(n, e);
|
|
185
|
-
const d = n - a + 1;
|
|
186
|
-
return Array.from({
|
|
187
|
-
length: d
|
|
188
|
-
}, (c, u) => ({
|
|
189
|
-
value: a + u,
|
|
190
|
-
label: (a + u).toString()
|
|
191
|
-
})).filter((c) => {
|
|
192
|
-
if (c.value === e)
|
|
193
|
-
return !0;
|
|
194
|
-
if (!F && c.value > t)
|
|
195
|
-
return !1;
|
|
196
|
-
if (g) {
|
|
197
|
-
const u = /* @__PURE__ */ new Date(), b = new Date(u);
|
|
198
|
-
return b.setDate(b.getDate() + g), c.value <= b.getFullYear();
|
|
199
|
-
}
|
|
200
|
-
return !0;
|
|
201
|
-
});
|
|
202
|
-
}, be = () => {
|
|
203
|
-
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
204
|
-
e.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), M({
|
|
205
|
-
startDate: e,
|
|
206
|
-
endDate: t
|
|
207
|
-
});
|
|
208
|
-
}, k = (t) => {
|
|
209
|
-
const e = new Date(t);
|
|
210
|
-
return e.setHours(0, 0, 0, 0), e;
|
|
211
|
-
}, E = (t) => {
|
|
212
|
-
const e = new Date(t);
|
|
213
|
-
return e.setHours(23, 59, 59, 999), e;
|
|
214
|
-
}, ve = (t) => {
|
|
215
|
-
const e = /* @__PURE__ */ new Date();
|
|
216
|
-
let a = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
|
|
217
|
-
switch (t) {
|
|
218
|
-
case "Today":
|
|
219
|
-
a = k(e), n = E(e);
|
|
220
|
-
break;
|
|
221
|
-
case "Yesterday":
|
|
222
|
-
a = k(new Date(e.setDate(e.getDate() - 1))), n = E(new Date(e));
|
|
223
|
-
break;
|
|
224
|
-
case "This Week":
|
|
225
|
-
const d = new Date(e.setDate(e.getDate() - e.getDay()));
|
|
226
|
-
a = k(d), n = E(/* @__PURE__ */ new Date());
|
|
227
|
-
break;
|
|
228
|
-
case "Last Week":
|
|
229
|
-
const c = new Date(e.setDate(e.getDate() - e.getDay() - 7)), u = new Date(e.setDate(c.getDate() + 6));
|
|
230
|
-
a = k(c), n = E(u);
|
|
231
|
-
break;
|
|
232
|
-
case "This Month":
|
|
233
|
-
a = k(new Date(e.getFullYear(), e.getMonth(), 1)), n = E(/* @__PURE__ */ new Date());
|
|
234
|
-
break;
|
|
235
|
-
case "Last Month":
|
|
236
|
-
a = k(new Date(e.getFullYear(), e.getMonth() - 1, 1)), n = E(new Date(e.getFullYear(), e.getMonth(), 0));
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
M({
|
|
240
|
-
startDate: a,
|
|
241
|
-
endDate: n
|
|
242
|
-
});
|
|
243
|
-
}, we = () => /* @__PURE__ */ r.createElement("div", {
|
|
244
|
-
className: "w-[147px] p-4 border-r border-[var(--color-gray-200)]"
|
|
245
|
-
}, /* @__PURE__ */ r.createElement("div", {
|
|
246
|
-
role: "group",
|
|
247
|
-
"aria-label": "Quick date selections",
|
|
248
|
-
className: "flex flex-col gap-3"
|
|
249
|
-
}, Te.map((t) => /* @__PURE__ */ r.createElement(z, {
|
|
250
|
-
key: t,
|
|
251
|
-
label: t,
|
|
252
|
-
type: "link",
|
|
253
|
-
onClick: () => ve(t)
|
|
254
|
-
})))), ye = () => {
|
|
255
|
-
const {
|
|
256
|
-
startDate: t = null,
|
|
257
|
-
endDate: e = null
|
|
258
|
-
} = l;
|
|
259
|
-
if (t && e) {
|
|
260
|
-
R({
|
|
261
|
-
startDate: t,
|
|
262
|
-
endDate: e
|
|
263
|
-
});
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (t || e) {
|
|
267
|
-
const a = t || e;
|
|
268
|
-
R({
|
|
269
|
-
startDate: a,
|
|
270
|
-
endDate: a
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}, U = (t, e) => {
|
|
274
|
-
const a = t.getFullYear(), n = t.getMonth(), d = ue(a, n), c = (/* @__PURE__ */ new Date()).getFullYear(), u = he(c, a), b = new Date(a, n, 1).toLocaleString("en-US", {
|
|
275
|
-
month: "long",
|
|
276
|
-
year: "numeric"
|
|
277
|
-
}), ke = e ? ce : ie, X = `calendar-instructions-${e ? "left" : "right"}`, Ee = P ? "Press Enter or Space to select a date. Use arrow keys to navigate days, Page Up and Page Down to change months." : "Press Enter or Space to select a start date, then again to select an end date. Use arrow keys to navigate days, Page Up and Page Down to change months.", Me = le({
|
|
278
|
-
isLeftCalendar: e,
|
|
279
|
-
isDateDisabled: I,
|
|
280
|
-
handleDateClick: De
|
|
281
|
-
}), Z = [];
|
|
282
|
-
for (let o = 0; o < d.length; o += 7) {
|
|
283
|
-
const s = d.slice(o, o + 7);
|
|
284
|
-
for (; s.length < 7; ) s.push(null);
|
|
285
|
-
Z.push(s);
|
|
286
|
-
}
|
|
287
|
-
const $ = /* @__PURE__ */ new Date(), xe = A && t.getMonth() === $.getMonth() && t.getFullYear() === $.getFullYear(), Ne = !F && n === $.getMonth() && a === $.getFullYear() || g !== void 0 && (() => {
|
|
288
|
-
const o = new Date($);
|
|
289
|
-
return o.setDate(o.getDate() + g), t.getMonth() === o.getMonth() && t.getFullYear() === o.getFullYear();
|
|
290
|
-
})();
|
|
291
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
292
|
-
className: "se-design-calendar-container w-fit p-4"
|
|
293
|
-
}, /* @__PURE__ */ r.createElement("div", {
|
|
294
|
-
className: "flex justify-between items-center"
|
|
295
|
-
}, /* @__PURE__ */ r.createElement(_, {
|
|
296
|
-
name: "chevron",
|
|
297
|
-
rotation: "90",
|
|
298
|
-
size: 16,
|
|
299
|
-
disabled: xe,
|
|
300
|
-
onClick: () => {
|
|
301
|
-
const o = K(t, !1);
|
|
302
|
-
if (A) {
|
|
303
|
-
const s = /* @__PURE__ */ new Date();
|
|
304
|
-
if (s.setHours(0, 0, 0, 0), o < s && o.getMonth() !== s.getMonth())
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
N(o, e);
|
|
308
|
-
},
|
|
309
|
-
automationId: `${y}-previous-month`,
|
|
310
|
-
ariaLabel: h ? "Previous month" : e ? "Previous month of starting date" : "Previous month of end date"
|
|
311
|
-
}), /* @__PURE__ */ r.createElement("div", {
|
|
312
|
-
className: "flex gap-2",
|
|
313
|
-
onClick: (o) => o.stopPropagation()
|
|
314
|
-
}, /* @__PURE__ */ r.createElement(te, {
|
|
315
|
-
type: "select",
|
|
316
|
-
dropDownOptions: q,
|
|
317
|
-
defaultSelectedValue: q[n],
|
|
318
|
-
selectBy: "label",
|
|
319
|
-
optionsUniqueBy: "value",
|
|
320
|
-
displaySelected: !0,
|
|
321
|
-
label: h ? "Month" : e ? "Start month" : "End month",
|
|
322
|
-
firstOptionAsHeading: !0,
|
|
323
|
-
onOptionClick: (o) => {
|
|
324
|
-
const s = new Date(t);
|
|
325
|
-
s.setMonth(q.findIndex((i) => i.value === o.value)), N(s, e);
|
|
326
|
-
},
|
|
327
|
-
className: "w-[124px] dropdown-option-container"
|
|
328
|
-
}), /* @__PURE__ */ r.createElement(te, {
|
|
329
|
-
type: "select",
|
|
330
|
-
dropDownOptions: u,
|
|
331
|
-
defaultSelectedValue: u.find((o) => o.value === a),
|
|
332
|
-
selectBy: "label",
|
|
333
|
-
optionsUniqueBy: "value",
|
|
334
|
-
displaySelected: !0,
|
|
335
|
-
label: h ? "Year" : e ? "Start year" : "End year",
|
|
336
|
-
firstOptionAsHeading: !0,
|
|
337
|
-
onOptionClick: (o) => {
|
|
338
|
-
const s = new Date(t);
|
|
339
|
-
s.setFullYear(o.value), N(s, e);
|
|
340
|
-
},
|
|
341
|
-
className: "w-[104px] dropdown-option-container"
|
|
342
|
-
})), /* @__PURE__ */ r.createElement(_, {
|
|
343
|
-
name: "chevron",
|
|
344
|
-
rotation: "270",
|
|
345
|
-
size: 16,
|
|
346
|
-
disabled: Ne,
|
|
347
|
-
onClick: () => {
|
|
348
|
-
const o = K(t, !0);
|
|
349
|
-
if (g !== void 0) {
|
|
350
|
-
const s = /* @__PURE__ */ new Date(), i = new Date(s);
|
|
351
|
-
if (i.setDate(i.getDate() + g), o > i)
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
N(o, e);
|
|
355
|
-
},
|
|
356
|
-
automationId: `${y}-next-month`,
|
|
357
|
-
ariaLabel: h ? "Next month" : e ? "Next month of starting date" : "Next month of end date"
|
|
358
|
-
})), /* @__PURE__ */ r.createElement("span", {
|
|
359
|
-
id: X,
|
|
360
|
-
className: "sr-only"
|
|
361
|
-
}, Ee), /* @__PURE__ */ r.createElement("div", T({}, ke({
|
|
362
|
-
ariaLabel: b,
|
|
363
|
-
ariaDescribedBy: X
|
|
364
|
-
}), {
|
|
365
|
-
className: "mt-3"
|
|
366
|
-
}), /* @__PURE__ */ r.createElement("div", {
|
|
367
|
-
role: "row",
|
|
368
|
-
className: "grid grid-cols-7 gap-2"
|
|
369
|
-
}, Oe.map((o, s) => /* @__PURE__ */ r.createElement("abbr", {
|
|
370
|
-
key: `${o}-${s}`,
|
|
371
|
-
role: "columnheader",
|
|
372
|
-
title: Se[s],
|
|
373
|
-
className: "datepicker-weekdays"
|
|
374
|
-
}, o))), Z.map((o, s) => /* @__PURE__ */ r.createElement("div", {
|
|
375
|
-
key: s,
|
|
376
|
-
role: "row",
|
|
377
|
-
className: "grid grid-cols-7 gap-2"
|
|
378
|
-
}, o.map((i, $e) => {
|
|
379
|
-
if (!i)
|
|
380
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
381
|
-
key: `empty-${s}-${$e}`,
|
|
382
|
-
role: "gridcell",
|
|
383
|
-
"aria-hidden": "true",
|
|
384
|
-
className: "h-10 w-10"
|
|
385
|
-
});
|
|
386
|
-
const ee = Pe(i), D = me(i), f = fe(i), H = pe(i), B = !D && !f && de(i), L = ge(i), Y = I(i), {
|
|
387
|
-
ref: He,
|
|
388
|
-
...Ye
|
|
389
|
-
} = Me({
|
|
390
|
-
cellId: ee,
|
|
391
|
-
cellDate: i,
|
|
392
|
-
disabled: Y,
|
|
393
|
-
ariaLabel: Ce(i, D, f, H, P, B),
|
|
394
|
-
ariaCurrent: L ? "date" : void 0,
|
|
395
|
-
ariaDisabled: Y || void 0
|
|
396
|
-
});
|
|
397
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
398
|
-
key: ee,
|
|
399
|
-
role: "gridcell",
|
|
400
|
-
"aria-selected": D || f || void 0,
|
|
401
|
-
className: "relative h-10 w-10"
|
|
402
|
-
}, /* @__PURE__ */ r.createElement("button", T({
|
|
403
|
-
type: "button"
|
|
404
|
-
}, Ye, {
|
|
405
|
-
ref: He,
|
|
406
|
-
className: `
|
|
407
|
-
datepicker-cell-button
|
|
408
|
-
h-full w-full flex items-center justify-center
|
|
409
|
-
rounded-md focus-outline transition-colors
|
|
410
|
-
${Y ? "cursor-not-allowed text-[var(--color-gray-600)] hover:bg-transparent" : "cursor-pointer"}
|
|
411
|
-
${H ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
412
|
-
${!H && D ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
413
|
-
${!H && f ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
414
|
-
${!D && !f && B ? "bg-[var(--color-blue-100)] text-[var(--color-blue-600)] outline outline-1 outline-[var(--color-blue-500)]" : ""}
|
|
415
|
-
${!D && !f && !B && !Y ? "hover:bg-[var(--color-blue-100)] hover:outline hover:outline-1 hover:outline-[var(--color-blue-500)]" : ""}
|
|
416
|
-
${L && !D && !f ? "text-[var(--color-blue-500)] bg-[var(--color-blue-100)] outline outline-1 outline-[var(--color-blue-500)]" : ""}
|
|
417
|
-
${!Y && !D && !f && !L ? "text-[var(--color-blue-500)]" : ""}
|
|
418
|
-
`,
|
|
419
|
-
"data-automation-id": `${y}-date-${i.getDate()}`
|
|
420
|
-
}), i.getDate()), !H && (D || f) && /* @__PURE__ */ r.createElement("div", {
|
|
421
|
-
"aria-hidden": "true",
|
|
422
|
-
className: `absolute top-0 bottom-0 ${D ? "right-[-8px]" : "left-[-8px]"} w-[8px]
|
|
423
|
-
bg-[var(--color-blue-100)] -z-10`
|
|
424
|
-
}));
|
|
425
|
-
})))));
|
|
426
|
-
};
|
|
427
|
-
return /* @__PURE__ */ r.createElement("div", {
|
|
428
|
-
className: `se-design-datepicker-container flex flex-col bg-[var(--color-white)] rounded-md shadow-md w-max max-w-full ${re}`
|
|
429
|
-
}, m && /* @__PURE__ */ r.createElement("div", {
|
|
430
|
-
className: "se-design-datepicker-header flex justify-between items-center border-b border-[var(--color-gray-200)] p-4"
|
|
431
|
-
}, /* @__PURE__ */ r.createElement("h2", {
|
|
432
|
-
className: "datepicker-title"
|
|
433
|
-
}, p), j && /* @__PURE__ */ r.createElement(_, {
|
|
434
|
-
name: "close",
|
|
435
|
-
size: 16,
|
|
436
|
-
onClick: j,
|
|
437
|
-
className: "cursor-pointer",
|
|
438
|
-
automationId: `${y}-close`,
|
|
439
|
-
ariaLabel: "Close date picker"
|
|
440
|
-
})), /* @__PURE__ */ r.createElement("div", {
|
|
441
|
-
className: "se-design-datepicker-content flex"
|
|
442
|
-
}, ne && we(), /* @__PURE__ */ r.createElement("div", {
|
|
443
|
-
className: "flex"
|
|
444
|
-
}, h ? U(x, !0) : /* @__PURE__ */ r.createElement(r.Fragment, null, U(x, !0), /* @__PURE__ */ r.createElement("div", {
|
|
445
|
-
className: "h-full w-[1px] border-r border-[var(--color-gray-200)]",
|
|
446
|
-
"aria-hidden": "true"
|
|
447
|
-
}), U(C, !1)))), !P && /* @__PURE__ */ r.createElement("div", {
|
|
448
|
-
className: "se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]"
|
|
449
|
-
}, /* @__PURE__ */ r.createElement(z, {
|
|
450
|
-
label: J?.clear || "Clear",
|
|
451
|
-
type: "ghost",
|
|
452
|
-
onClick: be,
|
|
453
|
-
"data-automation-id": `${y}-clear-button`
|
|
454
|
-
}), /* @__PURE__ */ r.createElement(z, {
|
|
455
|
-
label: J?.apply || "Apply",
|
|
456
|
-
type: "primary",
|
|
457
|
-
onClick: ye,
|
|
458
|
-
"data-automation-id": `${y}-apply-button`
|
|
459
|
-
})));
|
|
9
|
+
const t = (e - r) / 2, c = t * 2 * Math.PI, l = c - a / 100 * c;
|
|
10
|
+
return /* @__PURE__ */ o.createElement("svg", {
|
|
11
|
+
width: e,
|
|
12
|
+
height: e,
|
|
13
|
+
style: {
|
|
14
|
+
transform: "rotate(-90deg)"
|
|
15
|
+
}
|
|
16
|
+
}, /* @__PURE__ */ o.createElement("circle", {
|
|
17
|
+
cx: e / 2,
|
|
18
|
+
cy: e / 2,
|
|
19
|
+
r: t,
|
|
20
|
+
stroke: n,
|
|
21
|
+
strokeWidth: r,
|
|
22
|
+
fill: "none"
|
|
23
|
+
}), /* @__PURE__ */ o.createElement("circle", {
|
|
24
|
+
cx: e / 2,
|
|
25
|
+
cy: e / 2,
|
|
26
|
+
r: t,
|
|
27
|
+
stroke: s,
|
|
28
|
+
strokeWidth: r,
|
|
29
|
+
strokeDasharray: c,
|
|
30
|
+
strokeDashoffset: l,
|
|
31
|
+
fill: "none",
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
style: {
|
|
34
|
+
transition: "stroke-dashoffset 0.3s ease"
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
460
37
|
};
|
|
461
38
|
export {
|
|
462
|
-
|
|
39
|
+
m as CircularProgressBar
|
|
463
40
|
};
|
|
464
41
|
//# sourceMappingURL=index51.js.map
|
package/dist/index51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index51.js","sources":["../src/components/DatePicker/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport { Button } from '../Button';\nimport { Icon } from '../Icon';\nimport { Dropdown } from '../Dropdown';\nimport { useDatePickerA11y, formatDateId, getCellAriaLabel } from './useDatePickerA11y';\n\nimport './style.scss';\n\nexport interface DateRange {\n startDate: Date | null;\n endDate: Date | null;\n}\n\nexport interface DatePickerProps {\n title?: string;\n isOpen?: boolean;\n initialStartDate?: Date;\n initialEndDate?: Date;\n onApply?: (dateRange: DateRange) => void;\n onClose?: () => void;\n shouldAllowFutureDateSelection?: boolean;\n maxDays?: number;\n disablePastDates?: boolean;\n singleDateSelection?: boolean;\n minYearOption?: number;\n showQuickActions?: boolean;\n className?: string;\n automationId?: string;\n showHeader?: boolean;\n showSingleMonth?: boolean;\n labels?: {\n title?: string;\n clear?: string;\n apply?: string;\n };\n}\n\nconst weekDays = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];\nconst weekDaysFull = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\nconst quickActions = ['Today', 'Yesterday', 'This Week', 'Last Week', 'This Month', 'Last Month'];\n\nconst months = [\n { value: 'january', label: 'January' },\n { value: 'february', label: 'February' },\n { value: 'march', label: 'March' },\n { value: 'april', label: 'April' },\n { value: 'may', label: 'May' },\n { value: 'june', label: 'June' },\n { value: 'july', label: 'July' },\n { value: 'august', label: 'August' },\n { value: 'september', label: 'September' },\n { value: 'october', label: 'October' },\n { value: 'november', label: 'November' },\n { value: 'december', label: 'December' }\n];\n\n// Pure helpers — no component state dependency\nconst getDaysInMonth = (year: number, month: number) => new Date(year, month + 1, 0).getDate();\nconst getFirstDayOfMonth = (year: number, month: number) => new Date(year, month, 1).getDay();\n\n\nexport const DatePicker: React.FC<DatePickerProps> = ({\n title = 'Select modified date',\n // isOpen = true,\n showHeader = true,\n initialStartDate,\n initialEndDate,\n onApply = () => {},\n onClose,\n shouldAllowFutureDateSelection = false,\n maxDays,\n disablePastDates = false,\n singleDateSelection = false,\n minYearOption,\n showQuickActions = false,\n showSingleMonth = false,\n className = '',\n automationId = 'datepicker',\n labels = {\n clear: 'Clear',\n apply: 'Apply'\n }\n}) => {\n const getDefaultDateRange = (): DateRange => {\n // If initial start and end dates are provided, use them\n if (initialStartDate && initialEndDate) {\n return {\n startDate: initialStartDate,\n endDate: initialEndDate\n };\n }\n\n // If no initial dates are provided, use today's date\n const endDate = new Date();\n endDate.setHours(23, 59, 59, 999); // End of today\n\n const startDate = new Date();\n startDate.setHours(0, 0, 0, 0); // Start of today\n\n return { startDate, endDate };\n };\n\n const getDefaultMonths = (): [Date, Date] => {\n const today = new Date();\n const lastMonth = new Date();\n\n // Set both to first day of their respective months\n today.setDate(1);\n lastMonth.setDate(1);\n\n if (!showSingleMonth) {\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n }\n\n today.setHours(0, 0, 0, 0);\n lastMonth.setHours(0, 0, 0, 0);\n\n return [lastMonth, today];\n };\n\n const [selectedRange, setSelectedRange] = useState<DateRange>(getDefaultDateRange);\n const [defaultMonths, _] = useState(getDefaultMonths);\n const [leftMonth, setLeftMonth] = useState(() => defaultMonths[0]);\n const [rightMonth, setRightMonth] = useState(() => defaultMonths[1]);\n\n const ensureDateInCorrectOrder = (leftDate: Date, rightDate: Date): [Date, Date] => {\n if (leftDate.getTime() > rightDate.getTime()) {\n return [rightDate, leftDate];\n }\n return [leftDate, rightDate];\n };\n\n const handleMonthChange = (newDate: Date, isLeftCalendar: boolean) => {\n if (showSingleMonth) {\n setLeftMonth(newDate);\n return;\n }\n if (isLeftCalendar) {\n const [newLeft, newRight] = ensureDateInCorrectOrder(newDate, rightMonth);\n setLeftMonth(newLeft);\n if (newRight !== rightMonth) setRightMonth(newRight);\n } else {\n const [newLeft, newRight] = ensureDateInCorrectOrder(leftMonth, newDate);\n if (newLeft !== leftMonth) setLeftMonth(newLeft);\n setRightMonth(newRight);\n }\n };\n\n const {\n getGridCellProps,\n getLeftContainerProps,\n getRightContainerProps\n } = useDatePickerA11y({\n leftMonth,\n rightMonth,\n showSingleMonth,\n selectedRange,\n onMonthChange: handleMonthChange\n });\n\n const generateCalendarDays = (year: number, month: number) => {\n const daysInMonth = getDaysInMonth(year, month);\n const firstDay = getFirstDayOfMonth(year, month);\n const days = [];\n\n // Add empty cells for days before the first day of the month\n for (let i = 0; i < firstDay; i++) {\n days.push(null);\n }\n\n // Add the days of the month\n for (let day = 1; day <= daysInMonth; day++) {\n const date = new Date(year, month, day);\n date.setHours(0, 0, 0, 0); // Normalize to start of day for consistent comparisons\n days.push(date);\n }\n\n return days;\n };\n\n const isSameDay = (date1: Date, date2: Date): boolean => {\n return (\n date1.getDate() === date2.getDate() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getFullYear() === date2.getFullYear()\n );\n };\n\n const isDateInRange = (date: Date) => {\n if (!selectedRange.startDate || !selectedRange.endDate) return false;\n\n const compareDate = new Date(date);\n compareDate.setHours(12, 0, 0, 0); // Noon to avoid any timezone issues\n\n const startDate = new Date(selectedRange.startDate);\n startDate.setHours(0, 0, 0, 0);\n\n const endDate = new Date(selectedRange.endDate);\n endDate.setHours(23, 59, 59, 999);\n\n return compareDate >= startDate && compareDate <= endDate;\n };\n\n const isToday = (date: Date) => {\n const today = new Date();\n return (\n date.getDate() === today.getDate() &&\n date.getMonth() === today.getMonth() &&\n date.getFullYear() === today.getFullYear()\n );\n };\n\n const isDateDisabled = (date: Date | null) => {\n if (!date) return true;\n\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n const dateToCheck = new Date(date);\n dateToCheck.setHours(0, 0, 0, 0);\n\n // If disablePastDates is true, disable dates before today\n if (disablePastDates && dateToCheck < today) {\n return true;\n }\n\n // If maxDays is specified, disable dates after maxDays from today\n if (maxDays !== undefined && maxDays !== null) {\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n maxDate.setHours(0, 0, 0, 0); // Normalize to start of day\n // Disable all dates after maxDays (dates strictly after maxDate should be disabled)\n // Dates up to and including maxDate (today + maxDays) are allowed\n if (dateToCheck > maxDate) {\n return true;\n }\n // If maxDays is set, we're done checking - don't check shouldAllowFutureDateSelection\n return false;\n }\n\n // If shouldAllowFutureDateSelection is false and maxDays is not specified, disable dates after today\n if (!shouldAllowFutureDateSelection) {\n return dateToCheck > today;\n }\n\n return false;\n };\n\n const handleDateClick = (date: Date) => {\n if (isDateDisabled(date)) return;\n\n const clickedDate = new Date(date);\n clickedDate.setHours(12, 0, 0, 0); // Set to noon to avoid timezone issues\n\n // Single date selection mode - immediately apply on click\n if (singleDateSelection) {\n setSelectedRange({ startDate: clickedDate, endDate: clickedDate });\n onApply({ startDate: clickedDate, endDate: clickedDate });\n onClose?.();\n return;\n }\n\n // Range selection mode (original behavior)\n if (!selectedRange.startDate || selectedRange.endDate) {\n // No dates selected yet, or both dates are selected - start new selection\n setSelectedRange({ startDate: clickedDate, endDate: null });\n } else {\n // Only start date is selected, set end date\n const currentStart = new Date(selectedRange.startDate);\n currentStart.setHours(12, 0, 0, 0);\n\n const endDate = clickedDate > currentStart ? clickedDate : currentStart;\n const startDate = clickedDate > currentStart ? currentStart : clickedDate;\n\n setSelectedRange({ startDate, endDate });\n }\n };\n\n const handleMonthNavigation = (date: Date, increment: boolean) => {\n const newDate = new Date(date);\n newDate.setMonth(newDate.getMonth() + (increment ? 1 : -1));\n return newDate;\n };\n\n const isStartDate = (date: Date): boolean => {\n if (!selectedRange?.startDate) return false;\n return isSameDay(date, selectedRange.startDate);\n };\n\n const isEndDate = (date: Date): boolean => {\n if (!selectedRange?.endDate) return false;\n return isSameDay(date, selectedRange?.endDate);\n };\n\n const isSameStartAndEndDate = (date: Date): boolean => {\n if (!selectedRange.startDate || !selectedRange.endDate) return false;\n return isSameDay(selectedRange.startDate, selectedRange.endDate) && isSameDay(date, selectedRange.startDate);\n };\n\n const getYearOptions = (currentYear: number, calendarYear: number) => {\n const startYear = minYearOption || currentYear - 10;\n let endYear = shouldAllowFutureDateSelection ? currentYear + 10 : currentYear;\n\n // If maxDays is specified, calculate the maximum year\n if (maxDays) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n const maxYear = maxDate.getFullYear();\n // Use the smaller of the two limits\n endYear = Math.min(endYear, maxYear);\n }\n\n endYear = Math.max(endYear, calendarYear);\n\n const yearCount = endYear - startYear + 1;\n\n return Array.from({ length: yearCount }, (_, i) => ({\n value: startYear + i,\n label: (startYear + i).toString()\n })).filter((year) => {\n if (year.value === calendarYear) {\n return true;\n }\n if (!shouldAllowFutureDateSelection && year.value > currentYear) {\n return false;\n }\n // If maxDays is specified, filter out years beyond maxDate\n if (maxDays) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n return year.value <= maxDate.getFullYear();\n }\n return true;\n });\n };\n\n const handleClear = () => {\n const today = new Date();\n const startDate = new Date();\n\n // Set start date to beginning of today\n startDate.setHours(0, 0, 0, 0);\n\n // Set end date to end of today\n today.setHours(23, 59, 59, 999);\n\n const defaultRange = { startDate, endDate: today };\n setSelectedRange(defaultRange);\n };\n\n const getStartOfDay = (date: Date) => {\n const newDate = new Date(date);\n newDate.setHours(0, 0, 0, 0);\n return newDate;\n };\n\n const getEndOfDay = (date: Date) => {\n const newDate = new Date(date);\n newDate.setHours(23, 59, 59, 999);\n return newDate;\n };\n\n const handleQuickAction = (action: string) => {\n const today = new Date();\n let startDate = new Date();\n let endDate = new Date();\n\n switch (action) {\n case 'Today':\n startDate = getStartOfDay(today);\n endDate = getEndOfDay(today);\n break;\n case 'Yesterday':\n startDate = getStartOfDay(new Date(today.setDate(today.getDate() - 1)));\n endDate = getEndOfDay(new Date(today));\n break;\n case 'This Week':\n const firstDayOfWeek = new Date(today.setDate(today.getDate() - today.getDay()));\n startDate = getStartOfDay(firstDayOfWeek);\n endDate = getEndOfDay(new Date());\n break;\n case 'Last Week':\n const lastWeekStart = new Date(today.setDate(today.getDate() - today.getDay() - 7));\n const lastWeekEnd = new Date(today.setDate(lastWeekStart.getDate() + 6));\n startDate = getStartOfDay(lastWeekStart);\n endDate = getEndOfDay(lastWeekEnd);\n break;\n case 'This Month':\n startDate = getStartOfDay(new Date(today.getFullYear(), today.getMonth(), 1));\n endDate = getEndOfDay(new Date());\n break;\n case 'Last Month':\n startDate = getStartOfDay(new Date(today.getFullYear(), today.getMonth() - 1, 1));\n endDate = getEndOfDay(new Date(today.getFullYear(), today.getMonth(), 0));\n break;\n }\n\n setSelectedRange({ startDate, endDate });\n };\n\n const renderQuickActions = () => {\n return (\n <div className=\"w-[147px] p-4 border-r border-[var(--color-gray-200)]\">\n <div role=\"group\" aria-label=\"Quick date selections\" className=\"flex flex-col gap-3\">\n {quickActions.map((action) => (\n <Button key={action} label={action} type=\"link\" onClick={() => handleQuickAction(action)} />\n ))}\n </div>\n </div>\n );\n };\n\n const handleApply = () => {\n const { startDate = null, endDate = null } = selectedRange;\n\n if (startDate && endDate) {\n onApply({ startDate, endDate });\n return;\n }\n\n if (startDate || endDate) {\n const selectedDate = startDate || endDate;\n onApply({ startDate: selectedDate, endDate: selectedDate });\n }\n };\n\n const renderCalendar = (date: Date, isLeftCalendar: boolean) => {\n const year = date.getFullYear();\n const month = date.getMonth();\n const days = generateCalendarDays(year, month);\n const currentYear = new Date().getFullYear();\n const yearOptions = getYearOptions(currentYear, year);\n const monthHeading = new Date(year, month, 1).toLocaleString('en-US', { month: 'long', year: 'numeric' });\n const getGridContainerProps = isLeftCalendar ? getLeftContainerProps : getRightContainerProps;\n const gridInstructionsId = `calendar-instructions-${isLeftCalendar ? 'left' : 'right'}`;\n const gridInstructions = singleDateSelection\n ? 'Press Enter or Space to select a date. Use arrow keys to navigate days, Page Up and Page Down to change months.'\n : 'Press Enter or Space to select a start date, then again to select an end date. Use arrow keys to navigate days, Page Up and Page Down to change months.';\n\n const getCellProps = getGridCellProps({ isLeftCalendar, isDateDisabled, handleDateClick });\n\n // Group flat days array into rows of 7 for ARIA grid row/gridcell structure\n const rows: (Date | null)[][] = [];\n for (let i = 0; i < days.length; i += 7) {\n const row = days.slice(i, i + 7);\n while (row.length < 7) row.push(null);\n rows.push(row);\n }\n\n const today = new Date();\n const isPrevMonthDisabled =\n disablePastDates &&\n date.getMonth() === today.getMonth() &&\n date.getFullYear() === today.getFullYear();\n const isNextMonthDisabled =\n (!shouldAllowFutureDateSelection &&\n month === today.getMonth() &&\n year === today.getFullYear()) ||\n (maxDays !== undefined &&\n (() => {\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n return date.getMonth() === maxDate.getMonth() && date.getFullYear() === maxDate.getFullYear();\n })());\n\n return (\n <div className=\"se-design-calendar-container w-fit p-4\">\n <div className=\"flex justify-between items-center\">\n <Icon\n name=\"chevron\"\n rotation=\"90\"\n size={16}\n disabled={isPrevMonthDisabled}\n onClick={() => {\n const newDate = handleMonthNavigation(date, false);\n // Check if navigating back would go before today when disablePastDates is true\n if (disablePastDates) {\n const todayCheck = new Date();\n todayCheck.setHours(0, 0, 0, 0);\n if (newDate < todayCheck && newDate.getMonth() !== todayCheck.getMonth()) {\n return; // Don't navigate to past months\n }\n }\n handleMonthChange(newDate, isLeftCalendar);\n }}\n automationId={`${automationId}-previous-month`}\n ariaLabel={showSingleMonth ? 'Previous month' : isLeftCalendar ? 'Previous month of starting date' : 'Previous month of end date'}\n />\n\n <div className=\"flex gap-2\" onClick={(e) => e.stopPropagation()}>\n <Dropdown\n type=\"select\"\n dropDownOptions={months}\n defaultSelectedValue={months[month]}\n selectBy=\"label\"\n optionsUniqueBy=\"value\"\n displaySelected={true}\n label={showSingleMonth ? 'Month' : isLeftCalendar ? 'Start month' : 'End month'}\n firstOptionAsHeading={true}\n onOptionClick={(selectedOption) => {\n const newDate = new Date(date);\n newDate.setMonth(months.findIndex((m) => m.value === selectedOption.value));\n handleMonthChange(newDate, isLeftCalendar);\n }}\n className=\"w-[124px] dropdown-option-container\"\n />\n <Dropdown\n type=\"select\"\n dropDownOptions={yearOptions}\n defaultSelectedValue={yearOptions.find((y) => y.value === year)}\n selectBy=\"label\"\n optionsUniqueBy=\"value\"\n displaySelected={true}\n label={showSingleMonth ? 'Year' : isLeftCalendar ? 'Start year' : 'End year'}\n firstOptionAsHeading={true}\n onOptionClick={(selectedOption) => {\n const newDate = new Date(date);\n newDate.setFullYear(selectedOption.value);\n handleMonthChange(newDate, isLeftCalendar);\n }}\n className=\"w-[104px] dropdown-option-container\"\n />\n </div>\n\n <Icon\n name=\"chevron\"\n rotation=\"270\"\n size={16}\n disabled={isNextMonthDisabled}\n onClick={() => {\n const newDate = handleMonthNavigation(date, true);\n // Check if the new date would exceed maxDays\n if (maxDays !== undefined) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n if (newDate > maxDate) {\n return;\n }\n }\n handleMonthChange(newDate, isLeftCalendar);\n }}\n automationId={`${automationId}-next-month`}\n ariaLabel={showSingleMonth ? 'Next month' : isLeftCalendar ? 'Next month of starting date' : 'Next month of end date'}\n />\n </div>\n\n {/* Calendar grid with ARIA grid/row/gridcell/columnheader roles */}\n <span id={gridInstructionsId} className=\"sr-only\">\n {gridInstructions}\n </span>\n <div {...getGridContainerProps({ ariaLabel: monthHeading, ariaDescribedBy: gridInstructionsId })} className=\"mt-3\">\n {/* Column headers (week days) */}\n <div role=\"row\" className=\"grid grid-cols-7 gap-2\">\n {weekDays.map((day, index) => (\n <abbr\n key={`${day}-${index}`}\n role=\"columnheader\"\n title={weekDaysFull[index]}\n className=\"datepicker-weekdays\"\n >\n {day}\n </abbr>\n ))}\n </div>\n\n {/* Day rows */}\n {rows.map((row, rowIdx) => (\n <div key={rowIdx} role=\"row\" className=\"grid grid-cols-7 gap-2\">\n {row.map((cellDate, colIdx) => {\n if (!cellDate) {\n return (\n <div\n key={`empty-${rowIdx}-${colIdx}`}\n role=\"gridcell\"\n aria-hidden=\"true\"\n className=\"h-10 w-10\"\n />\n );\n }\n\n const cellId = formatDateId(cellDate);\n const isStart = isStartDate(cellDate);\n const isEnd = isEndDate(cellDate);\n const isSameStartEnd = isSameStartAndEndDate(cellDate);\n const inRange = !isStart && !isEnd && isDateInRange(cellDate);\n const todayDate = isToday(cellDate);\n const disabled = isDateDisabled(cellDate);\n\n const { ref: cellRef, ...cellProps } = getCellProps({\n cellId,\n cellDate,\n disabled,\n ariaLabel: getCellAriaLabel(cellDate, isStart, isEnd, isSameStartEnd, singleDateSelection, inRange),\n ariaCurrent: todayDate ? 'date' : undefined,\n ariaDisabled: disabled || undefined\n });\n\n return (\n <div\n key={cellId}\n role=\"gridcell\"\n aria-selected={isStart || isEnd || undefined}\n className=\"relative h-10 w-10\"\n >\n <button\n type=\"button\"\n {...cellProps}\n ref={cellRef as React.Ref<HTMLButtonElement>}\n className={`\n datepicker-cell-button\n h-full w-full flex items-center justify-center\n rounded-md focus-outline transition-colors\n ${\n disabled ? 'cursor-not-allowed text-[var(--color-gray-600)] hover:bg-transparent' : 'cursor-pointer'\n }\n ${\n isSameStartEnd\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${\n !isSameStartEnd && isStart\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${\n !isSameStartEnd && isEnd\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${!isStart && !isEnd && inRange ? 'bg-[var(--color-blue-100)] text-[var(--color-blue-600)] outline outline-1 outline-[var(--color-blue-500)]' : ''}\n ${!isStart && !isEnd && !inRange && !disabled ? 'hover:bg-[var(--color-blue-100)] hover:outline hover:outline-1 hover:outline-[var(--color-blue-500)]' : ''}\n ${todayDate && !isStart && !isEnd ? 'text-[var(--color-blue-500)] bg-[var(--color-blue-100)] outline outline-1 outline-[var(--color-blue-500)]' : ''}\n ${!disabled && !isStart && !isEnd && !todayDate ? 'text-[var(--color-blue-500)]' : ''}\n `}\n data-automation-id={`${automationId}-date-${cellDate.getDate()}`}\n >\n {cellDate.getDate()}\n </button>\n {!isSameStartEnd && (isStart || isEnd) && (\n <div\n aria-hidden=\"true\"\n className={`absolute top-0 bottom-0 ${isStart ? 'right-[-8px]' : 'left-[-8px]'} w-[8px]\n bg-[var(--color-blue-100)] -z-10`}\n />\n )}\n </div>\n );\n })}\n </div>\n ))}\n </div>\n </div>\n );\n };\n\n return (\n <div\n className={`se-design-datepicker-container flex flex-col bg-[var(--color-white)] rounded-md shadow-md w-max max-w-full ${className}`}\n >\n {showHeader && (\n <div className=\"se-design-datepicker-header flex justify-between items-center border-b border-[var(--color-gray-200)] p-4\">\n <h2 className=\"datepicker-title\">{title}</h2>\n {onClose && (\n <Icon\n name=\"close\"\n size={16}\n onClick={onClose}\n className=\"cursor-pointer\"\n automationId={`${automationId}-close`}\n ariaLabel=\"Close date picker\"\n />\n )}\n </div>\n )}\n <div className=\"se-design-datepicker-content flex\">\n {showQuickActions && renderQuickActions()}\n <div className=\"flex\">\n {showSingleMonth ? (\n renderCalendar(leftMonth, true)\n ) : (\n <>\n {renderCalendar(leftMonth, true)}\n <div className=\"h-full w-[1px] border-r border-[var(--color-gray-200)]\" aria-hidden=\"true\"></div>\n {renderCalendar(rightMonth, false)}\n </>\n )}\n </div>\n </div>\n {!singleDateSelection && (\n <div className=\"se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]\">\n <Button\n label={labels?.clear || 'Clear'}\n type=\"ghost\"\n onClick={handleClear}\n data-automation-id={`${automationId}-clear-button`}\n />\n <Button\n label={labels?.apply || 'Apply'}\n type=\"primary\"\n onClick={handleApply}\n data-automation-id={`${automationId}-apply-button`}\n />\n </div>\n )}\n\n </div>\n );\n};\n"],"names":["weekDays","weekDaysFull","quickActions","months","value","label","getDaysInMonth","year","month","Date","getDate","getFirstDayOfMonth","getDay","DatePicker","title","showHeader","initialStartDate","initialEndDate","onApply","onClose","shouldAllowFutureDateSelection","maxDays","disablePastDates","singleDateSelection","minYearOption","showQuickActions","showSingleMonth","className","automationId","labels","clear","apply","getDefaultDateRange","startDate","endDate","setHours","getDefaultMonths","today","lastMonth","setDate","setMonth","getMonth","selectedRange","setSelectedRange","useState","defaultMonths","leftMonth","setLeftMonth","rightMonth","setRightMonth","ensureDateInCorrectOrder","leftDate","rightDate","getTime","handleMonthChange","newDate","isLeftCalendar","newLeft","newRight","getGridCellProps","getLeftContainerProps","getRightContainerProps","useDatePickerA11y","onMonthChange","generateCalendarDays","daysInMonth","firstDay","days","i","push","day","date","isSameDay","date1","date2","getFullYear","isDateInRange","compareDate","isToday","isDateDisabled","dateToCheck","maxDate","handleDateClick","clickedDate","currentStart","handleMonthNavigation","increment","isStartDate","isEndDate","isSameStartAndEndDate","getYearOptions","currentYear","calendarYear","startYear","endYear","maxYear","Math","min","max","yearCount","Array","from","length","_","toString","filter","handleClear","getStartOfDay","getEndOfDay","handleQuickAction","action","firstDayOfWeek","lastWeekStart","lastWeekEnd","renderQuickActions","React","createElement","role","map","Button","key","type","onClick","handleApply","selectedDate","renderCalendar","yearOptions","monthHeading","toLocaleString","getGridContainerProps","gridInstructionsId","gridInstructions","getCellProps","rows","row","slice","isPrevMonthDisabled","isNextMonthDisabled","undefined","Icon","name","rotation","size","disabled","todayCheck","ariaLabel","e","stopPropagation","Dropdown","dropDownOptions","defaultSelectedValue","selectBy","optionsUniqueBy","displaySelected","firstOptionAsHeading","onOptionClick","selectedOption","findIndex","m","find","y","setFullYear","id","_extends","ariaDescribedBy","index","rowIdx","cellDate","colIdx","cellId","formatDateId","isStart","isEnd","isSameStartEnd","inRange","todayDate","ref","cellRef","cellProps","getCellAriaLabel","ariaCurrent","ariaDisabled","Fragment"],"mappings":";;;;;;;;;;;;;;;AAsCA,MAAMA,KAAW,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG,GAC7CC,KAAe,CAAC,UAAU,UAAU,WAAW,aAAa,YAAY,UAAU,UAAU,GAC5FC,KAAe,CAAC,SAAS,aAAa,aAAa,aAAa,cAAc,YAAY,GAE1FC,IAAS,CACb;AAAA,EAAEC,OAAO;AAAA,EA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ACE,CAGJ;AAET;"}
|
|
1
|
+
{"version":3,"file":"index51.js","sources":["../src/components/CircularProgressBar/index.tsx"],"sourcesContent":["import React from 'react';\n\ninterface CircularProgressBarProps {\n progress: number;\n backgroundColor?: string;\n progressColor?: string;\n size?: number;\n strokeWidth?: number;\n}\n\nexport const CircularProgressBar = ({\n progress,\n backgroundColor = '#E8E8E8',\n progressColor = '#0066FF',\n size = 40,\n strokeWidth = 4\n}: CircularProgressBarProps) => {\n const radius = (size - strokeWidth) / 2;\n const circumference = radius * 2 * Math.PI;\n const strokeDashoffset = circumference - (progress / 100) * circumference;\n\n return (\n <svg width={size} height={size} style={{ transform: 'rotate(-90deg)' }}>\n {/* Background circle */}\n <circle cx={size / 2} cy={size / 2} r={radius} stroke={backgroundColor} strokeWidth={strokeWidth} fill=\"none\" />\n {/* Progress circle */}\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke={progressColor}\n strokeWidth={strokeWidth}\n strokeDasharray={circumference}\n strokeDashoffset={strokeDashoffset}\n fill=\"none\"\n strokeLinecap=\"round\"\n style={{ transition: 'stroke-dashoffset 0.3s ease' }}\n />\n </svg>\n );\n};\n"],"names":["CircularProgressBar","progress","backgroundColor","progressColor","size","strokeWidth","radius","circumference","Math","PI","strokeDashoffset","React","createElement","width","height","style","transform","cx","cy","r","stroke","fill","strokeDasharray","strokeLinecap","transition"],"mappings":";AAUO,MAAMA,IAAsBA,CAAC;AAAA,EAClCC,UAAAA;AAAAA,EACAC,iBAAAA,IAAkB;AAAA,EAClBC,eAAAA,IAAgB;AAAA,EAChBC,MAAAA,IAAO;AAAA,EACPC,aAAAA,IAAc;AACU,MAAM;AAC9B,QAAMC,KAAUF,IAAOC,KAAe,GAChCE,IAAgBD,IAAS,IAAIE,KAAKC,IAClCC,IAAmBH,IAAiBN,IAAW,MAAOM;AAE5D,SACEI,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,OAAOT;AAAAA,IAAMU,QAAQV;AAAAA,IAAMW,OAAO;AAAA,MAAEC,WAAW;AAAA,IAAA;AAAA,EAAiB,GAEnEL,gBAAAA,EAAAC,cAAA,UAAA;AAAA,IAAQK,IAAIb,IAAO;AAAA,IAAGc,IAAId,IAAO;AAAA,IAAGe,GAAGb;AAAAA,IAAQc,QAAQlB;AAAAA,IAAiBG,aAAAA;AAAAA,IAA0BgB,MAAK;AAAA,EAAA,CAAQ,GAE/GV,gBAAAA,EAAAC,cAAA,UAAA;AAAA,IACEK,IAAIb,IAAO;AAAA,IACXc,IAAId,IAAO;AAAA,IACXe,GAAGb;AAAAA,IACHc,QAAQjB;AAAAA,IACRE,aAAAA;AAAAA,IACAiB,iBAAiBf;AAAAA,IACjBG,kBAAAA;AAAAA,IACAW,MAAK;AAAA,IACLE,eAAc;AAAA,IACdR,OAAO;AAAA,MAAES,YAAY;AAAA,IAAA;AAAA,EAA8B,CACpD,CACE;AAET;"}
|