@rpcbase/ui 0.170.0 → 0.171.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/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.js +4 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +6 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +145 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +39 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -8
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +7 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +13 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +13 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -6
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +31 -145
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +3 -3
- package/dist/index110.js +10 -39
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +10 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -7
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +13 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +101 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +20 -8
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +53 -31
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +72 -10
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +9 -10
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +20 -8
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.js +16 -13
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +23 -101
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +7 -20
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -53
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +23 -72
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +35 -10
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +16 -21
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +6 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +4 -23
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +4 -6
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +4 -5
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -23
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -35
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -16
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +24 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +7 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +6 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +5 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +3 -4
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +4 -4
- package/dist/index140.js +4 -6
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -24
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +4 -7
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -6
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -5
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +3 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +46 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +46 -4
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +205 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +22 -5
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +1 -1
- package/dist/index150.js +24 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +399 -3
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +605 -3
- package/dist/index152.js.map +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.js +1 -1
- package/dist/index174.js +16 -24
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +6 -29
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +6 -5
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +58 -67
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +62 -176
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +6 -46
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +188 -181
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +4 -58
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +7 -8
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +17 -66
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -19
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -16
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +13 -5
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +10 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +14 -6
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +14 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -7
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +7 -7
- package/dist/index190.js +6 -17
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +7 -5
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +6 -5
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -12
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -10
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +5 -14
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +9 -14
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +5 -6
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +4 -7
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.js +10 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +10 -9
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +10 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +11 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +11 -9
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +10 -5
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +7 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +5 -11
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -10
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +7 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +6 -11
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +55 -11
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +8 -10
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +19 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +23 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +16 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +7 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -7
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -6
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +1 -1
- package/dist/index220.js +20 -54
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +10 -23
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +9 -16
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +9 -7
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +4 -10
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -21
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +9 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +18 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +15 -9
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +12 -4
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +29 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +11 -15
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +25 -9
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -18
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +24 -15
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +29 -13
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -30
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +67 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +178 -23
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +46 -5
- package/dist/index240.js.map +1 -1
- package/dist/index244.js +1 -1
- package/dist/index245.js +1 -1
- package/dist/index248.js +2 -2
- package/dist/index251.js +1 -1
- package/dist/index255.js +3 -116
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +9 -17
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +114 -13
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +17 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +12 -33
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +35 -19
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +20 -9
- package/dist/index261.js.map +1 -1
- package/dist/index263.js +2 -2
- package/dist/index266.js +5 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +19 -3
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -23
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +5 -113
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +37 -3
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +3 -16
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +21 -522
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +112 -127
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +15 -133
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +524 -4
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +127 -18
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +133 -12
- package/dist/index276.js.map +1 -1
- package/dist/index278.js +5 -64
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +6 -69
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +3 -125
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +4 -9
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +16 -14
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +8 -65
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +5 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +4 -5
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +546 -4
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +47 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +17 -8
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +6 -5
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +8 -4
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +120 -227
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +7 -545
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +9 -47
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +12 -17
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +9 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +13 -8
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +69 -8
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +9 -9
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +14 -13
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +66 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +64 -13
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +230 -49
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +4 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +56 -23
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +68 -5
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +30 -55
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -68
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +148 -26
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +108 -9
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +4 -153
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +23 -108
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +15 -22
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +50 -2640
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +28 -12
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +12 -27
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +7 -5
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +22 -15
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +12 -28
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +27 -12
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +5 -7
- package/dist/index316.js.map +1 -1
- package/dist/index32.js +2598 -351
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +375 -214
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +230 -19
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +18 -138
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +125 -170
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +174 -64
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +74 -88
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +90 -5
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +5 -843
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +832 -54
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +66 -37
- package/dist/index42.js.map +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.js +8 -8
- package/dist/index48.js +6 -3
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +33 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +25 -46
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +7 -26
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +10 -49
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +3 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +47 -14
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +47 -130
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +7 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +13 -215
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +133 -12
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -33
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +214 -44
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +13 -8
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +44 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +50 -4
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +4 -6
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +6 -28
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +28 -50
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +50 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +8 -11
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +5 -53
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +8 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +6 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +53 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +52 -47
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +4 -205
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +5 -22
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +15 -24
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +5 -399
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +1 -1
- package/dist/index80.js +7 -46
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +15 -604
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -52
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +5 -4
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +5 -15
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +3 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +3 -6
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -15
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +24 -4
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +6 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +6 -5
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -3
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +4 -4
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +5 -6
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -24
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +8 -6
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -6
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index298.js
CHANGED
|
@@ -1,13 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
8
|
-
|
|
1
|
+
var N = function(r) {
|
|
2
|
+
return r.tagName === "TEXTAREA";
|
|
3
|
+
}, b = function(r, e) {
|
|
4
|
+
if (!(r instanceof Element))
|
|
5
|
+
return !1;
|
|
6
|
+
var t = window.getComputedStyle(r);
|
|
7
|
+
return (
|
|
8
|
+
// not-not-scrollable
|
|
9
|
+
t[e] !== "hidden" && // contains scroll inside self
|
|
10
|
+
!(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
|
|
11
|
+
);
|
|
12
|
+
}, D = function(r) {
|
|
13
|
+
return b(r, "overflowY");
|
|
14
|
+
}, E = function(r) {
|
|
15
|
+
return b(r, "overflowX");
|
|
16
|
+
}, T = function(r, e) {
|
|
17
|
+
var t = e.ownerDocument, l = e;
|
|
18
|
+
do {
|
|
19
|
+
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
|
20
|
+
var f = g(r, l);
|
|
21
|
+
if (f) {
|
|
22
|
+
var n = m(r, l), i = n[1], o = n[2];
|
|
23
|
+
if (i > o)
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
l = l.parentNode;
|
|
27
|
+
} while (l && l !== t.body);
|
|
28
|
+
return !1;
|
|
29
|
+
}, H = function(r) {
|
|
30
|
+
var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
|
|
31
|
+
return [
|
|
32
|
+
e,
|
|
33
|
+
t,
|
|
34
|
+
l
|
|
35
|
+
];
|
|
36
|
+
}, p = function(r) {
|
|
37
|
+
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
|
38
|
+
return [
|
|
39
|
+
e,
|
|
40
|
+
t,
|
|
41
|
+
l
|
|
42
|
+
];
|
|
43
|
+
}, g = function(r, e) {
|
|
44
|
+
return r === "v" ? D(e) : E(e);
|
|
45
|
+
}, m = function(r, e) {
|
|
46
|
+
return r === "v" ? H(e) : p(e);
|
|
47
|
+
}, B = function(r, e) {
|
|
48
|
+
return r === "h" && e === "rtl" ? -1 : 1;
|
|
49
|
+
}, V = function(r, e, t, l, f) {
|
|
50
|
+
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
|
51
|
+
do {
|
|
52
|
+
if (!o)
|
|
53
|
+
break;
|
|
54
|
+
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
|
55
|
+
(v || w) && g(r, o) && (h += w, S += v);
|
|
56
|
+
var a = o.parentNode;
|
|
57
|
+
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
|
58
|
+
} while (
|
|
59
|
+
// portaled content
|
|
60
|
+
!d && o !== document.body || // self content
|
|
61
|
+
d && (e.contains(o) || e === o)
|
|
62
|
+
);
|
|
63
|
+
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
|
64
|
+
};
|
|
9
65
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
66
|
+
V as handleScroll,
|
|
67
|
+
T as locationCouldBeScrolled
|
|
12
68
|
};
|
|
13
69
|
//# sourceMappingURL=index298.js.map
|
package/dist/index298.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index298.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index298.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll","parent_1"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index299.js
CHANGED
|
@@ -1,17 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { __assign as d } from "./index235.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
function h(r, t) {
|
|
6
|
+
t === void 0 && (t = l);
|
|
7
|
+
var e = [], o = !1, c = {
|
|
8
|
+
read: function() {
|
|
9
|
+
if (o)
|
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
|
12
|
+
},
|
|
13
|
+
useMedium: function(u) {
|
|
14
|
+
var n = t(u, o);
|
|
15
|
+
return e.push(n), function() {
|
|
16
|
+
e = e.filter(function(i) {
|
|
17
|
+
return i !== n;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
assignSyncMedium: function(u) {
|
|
22
|
+
for (o = !0; e.length; ) {
|
|
23
|
+
var n = e;
|
|
24
|
+
e = [], n.forEach(u);
|
|
25
|
+
}
|
|
26
|
+
e = {
|
|
27
|
+
push: function(i) {
|
|
28
|
+
return u(i);
|
|
29
|
+
},
|
|
30
|
+
filter: function() {
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
assignMedium: function(u) {
|
|
36
|
+
o = !0;
|
|
37
|
+
var n = [];
|
|
38
|
+
if (e.length) {
|
|
39
|
+
var i = e;
|
|
40
|
+
e = [], i.forEach(u), n = e;
|
|
41
|
+
}
|
|
42
|
+
var s = function() {
|
|
43
|
+
var f = n;
|
|
44
|
+
n = [], f.forEach(u);
|
|
45
|
+
}, a = function() {
|
|
46
|
+
return Promise.resolve().then(s);
|
|
47
|
+
};
|
|
48
|
+
a(), e = {
|
|
49
|
+
push: function(f) {
|
|
50
|
+
n.push(f), a();
|
|
51
|
+
},
|
|
52
|
+
filter: function(f) {
|
|
53
|
+
return n = n.filter(f), e;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
function v(r) {
|
|
61
|
+
r === void 0 && (r = {});
|
|
62
|
+
var t = h(null);
|
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
12
64
|
}
|
|
13
65
|
export {
|
|
14
|
-
|
|
15
|
-
C as getWeekYear
|
|
66
|
+
v as createSidecarMedium
|
|
16
67
|
};
|
|
17
68
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index299.js","sources":["../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAA,GACTC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACX;AAAA,IACA,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,QAAM,CAAC;AAAA,MAC9D;AAAA,IACJ;AAAA,IACA,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE;AAAA,MAClB;AACA,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAG;AAAA,QACnC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAQ;AAAA,MACrD;AAAA,IACQ;AAAA,IACA,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAA;AACnB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MACnB;AACA,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAA,GACfD,EAAI,QAAQD,CAAE;AAAA,MAClB,GACII,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAG;AACvE,MAAAC,EAAK,GACLV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAK;AAAA,QACT;AAAA,QACA,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACX;AAAA,MAChB;AAAA,IACQ;AAAA,EACR;AACI,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
|
package/dist/index30.js
CHANGED
|
@@ -1,54 +1,235 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
|
|
2
|
+
import { DateLib as Ze } from "./index102.js";
|
|
3
|
+
import { createGetModifiers as Ie } from "./index103.js";
|
|
4
|
+
import { getClassNamesForModifiers as Ge } from "./index104.js";
|
|
5
|
+
import { getComponents as He } from "./index105.js";
|
|
6
|
+
import { getDataAttributes as _e } from "./index106.js";
|
|
7
|
+
import { getDefaultClassNames as Ue } from "./index107.js";
|
|
8
|
+
import { getFormatters as je } from "./index108.js";
|
|
9
|
+
import { getLabels as Ve } from "./index109.js";
|
|
10
|
+
import { getMonthOptions as $e } from "./index110.js";
|
|
11
|
+
import { getStyleForModifiers as qe } from "./index111.js";
|
|
12
|
+
import { getWeekdays as ze } from "./index112.js";
|
|
13
|
+
import { getYearOptions as Je } from "./index113.js";
|
|
14
|
+
import { createNoonOverrides as Qe } from "./index114.js";
|
|
15
|
+
import { UI as n, DayFlag as Xe, SelectionState as w } from "./index115.js";
|
|
16
|
+
import { useAnimation as et } from "./index116.js";
|
|
17
|
+
import { useCalendar as tt } from "./index117.js";
|
|
18
|
+
import { dayPickerContext as at } from "./index118.js";
|
|
19
|
+
import { useFocus as ot } from "./index119.js";
|
|
20
|
+
import { useSelection as nt } from "./index120.js";
|
|
21
|
+
import { convertMatchersToTimeZone as K } from "./index121.js";
|
|
22
|
+
import { rangeIncludesDate as st } from "./index122.js";
|
|
23
|
+
import { toTimeZone as k } from "./index123.js";
|
|
24
|
+
import { isDateRange as rt } from "./index124.js";
|
|
25
|
+
import { enUS as it } from "./index125.js";
|
|
26
|
+
function Yt(R) {
|
|
27
|
+
let e = R;
|
|
28
|
+
const u = e.timeZone;
|
|
29
|
+
if (u && (e = {
|
|
30
|
+
...R,
|
|
31
|
+
timeZone: u
|
|
32
|
+
}, e.today && (e.today = k(e.today, u)), e.month && (e.month = k(e.month, u)), e.defaultMonth && (e.defaultMonth = k(e.defaultMonth, u)), e.startMonth && (e.startMonth = k(e.startMonth, u)), e.endMonth && (e.endMonth = k(e.endMonth, u)), e.mode === "single" && e.selected ? e.selected = k(e.selected, u) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((o) => k(o, u)) : e.mode === "range" && e.selected && (e.selected = {
|
|
33
|
+
from: e.selected.from ? k(e.selected.from, u) : e.selected.from,
|
|
34
|
+
to: e.selected.to ? k(e.selected.to, u) : e.selected.to
|
|
35
|
+
}), e.disabled !== void 0 && (e.disabled = K(e.disabled, u)), e.hidden !== void 0 && (e.hidden = K(e.hidden, u)), e.modifiers)) {
|
|
36
|
+
const o = {};
|
|
37
|
+
Object.keys(e.modifiers).forEach((i) => {
|
|
38
|
+
o[i] = K(e.modifiers?.[i], u);
|
|
39
|
+
}), e.modifiers = o;
|
|
6
40
|
}
|
|
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
|
-
|
|
41
|
+
const { components: m, formatters: v, labels: Z, dateLib: a, locale: se, classNames: d } = T(() => {
|
|
42
|
+
const o = { ...it, ...e.locale }, i = e.broadcastCalendar ? 1 : e.weekStartsOn, t = e.noonSafe && e.timeZone ? Qe(e.timeZone, {
|
|
43
|
+
weekStartsOn: i,
|
|
44
|
+
locale: o
|
|
45
|
+
}) : void 0, r = e.dateLib && t ? { ...t, ...e.dateLib } : e.dateLib ?? t, f = new Ze({
|
|
46
|
+
locale: o,
|
|
47
|
+
weekStartsOn: i,
|
|
48
|
+
firstWeekContainsDate: e.firstWeekContainsDate,
|
|
49
|
+
useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
|
|
50
|
+
useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens,
|
|
51
|
+
timeZone: e.timeZone,
|
|
52
|
+
numerals: e.numerals
|
|
53
|
+
}, r);
|
|
54
|
+
return {
|
|
55
|
+
dateLib: f,
|
|
56
|
+
components: He(e.components),
|
|
57
|
+
formatters: je(e.formatters),
|
|
58
|
+
labels: Ve(e.labels, f.options),
|
|
59
|
+
locale: o,
|
|
60
|
+
classNames: { ...Ue(), ...e.classNames }
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
e.locale,
|
|
64
|
+
e.broadcastCalendar,
|
|
65
|
+
e.weekStartsOn,
|
|
66
|
+
e.firstWeekContainsDate,
|
|
67
|
+
e.useAdditionalWeekYearTokens,
|
|
68
|
+
e.useAdditionalDayOfYearTokens,
|
|
69
|
+
e.timeZone,
|
|
70
|
+
e.numerals,
|
|
71
|
+
e.dateLib,
|
|
72
|
+
e.noonSafe,
|
|
73
|
+
e.components,
|
|
74
|
+
e.formatters,
|
|
75
|
+
e.labels,
|
|
76
|
+
e.classNames
|
|
77
|
+
]);
|
|
78
|
+
e.today || (e = { ...e, today: a.today() });
|
|
79
|
+
const { captionLayout: N, mode: C, navLayout: D, numberOfMonths: I = 1, onDayBlur: G, onDayClick: W, onDayFocus: H, onDayKeyDown: _, onDayMouseEnter: U, onDayMouseLeave: j, onNextClick: V, onPrevClick: $, showWeekNumber: q, styles: c } = e, { formatCaption: z, formatDay: J, formatMonthDropdown: re, formatWeekNumber: ie, formatWeekNumberHeader: de, formatWeekdayName: le, formatYearDropdown: me } = v, Q = tt(e, a), { days: ce, months: E, navStart: B, navEnd: O, previousMonth: p, nextMonth: b, goToMonth: y } = Q, S = Ie(ce, e, B, O, a), { isSelected: x, select: L, selected: g } = nt(e, a) ?? {}, { blur: X, focused: ee, isFocusTarget: ue, moveFocus: te, setFocused: M } = ot(e, Q, S, x ?? (() => !1), a), { labelDayButton: fe, labelGridcell: pe, labelGrid: be, labelMonthDropdown: he, labelNav: ae, labelPrevious: ye, labelNext: ke, labelWeekday: Ne, labelWeekNumber: ve, labelWeekNumberHeader: De, labelYearDropdown: ge } = Z, Me = T(() => ze(a, e.ISOWeek, e.broadcastCalendar, e.today), [a, e.ISOWeek, e.broadcastCalendar, e.today]), oe = C !== void 0 || W !== void 0, Y = h(() => {
|
|
80
|
+
p && (y(p), $?.(p));
|
|
81
|
+
}, [p, y, $]), P = h(() => {
|
|
82
|
+
b && (y(b), V?.(b));
|
|
83
|
+
}, [y, b, V]), we = h((o, i) => (t) => {
|
|
84
|
+
t.preventDefault(), t.stopPropagation(), M(o), !i.disabled && (L?.(o.date, i, t), W?.(o.date, i, t));
|
|
85
|
+
}, [L, W, M]), Ce = h((o, i) => (t) => {
|
|
86
|
+
M(o), H?.(o.date, i, t);
|
|
87
|
+
}, [H, M]), We = h((o, i) => (t) => {
|
|
88
|
+
X(), G?.(o.date, i, t);
|
|
89
|
+
}, [X, G]), Ee = h((o, i) => (t) => {
|
|
90
|
+
const r = {
|
|
91
|
+
ArrowLeft: [
|
|
92
|
+
t.shiftKey ? "month" : "day",
|
|
93
|
+
e.dir === "rtl" ? "after" : "before"
|
|
94
|
+
],
|
|
95
|
+
ArrowRight: [
|
|
96
|
+
t.shiftKey ? "month" : "day",
|
|
97
|
+
e.dir === "rtl" ? "before" : "after"
|
|
98
|
+
],
|
|
99
|
+
ArrowDown: [t.shiftKey ? "year" : "week", "after"],
|
|
100
|
+
ArrowUp: [t.shiftKey ? "year" : "week", "before"],
|
|
101
|
+
PageUp: [t.shiftKey ? "year" : "month", "before"],
|
|
102
|
+
PageDown: [t.shiftKey ? "year" : "month", "after"],
|
|
103
|
+
Home: ["startOfWeek", "before"],
|
|
104
|
+
End: ["endOfWeek", "after"]
|
|
105
|
+
};
|
|
106
|
+
if (r[t.key]) {
|
|
107
|
+
t.preventDefault(), t.stopPropagation();
|
|
108
|
+
const [f, s] = r[t.key];
|
|
109
|
+
te(f, s);
|
|
44
110
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
111
|
+
_?.(o.date, i, t);
|
|
112
|
+
}, [te, _, e.dir]), Be = h((o, i) => (t) => {
|
|
113
|
+
U?.(o.date, i, t);
|
|
114
|
+
}, [U]), Oe = h((o, i) => (t) => {
|
|
115
|
+
j?.(o.date, i, t);
|
|
116
|
+
}, [j]), Se = h((o) => (i) => {
|
|
117
|
+
const t = Number(i.target.value), r = a.setMonth(a.startOfMonth(o), t);
|
|
118
|
+
y(r);
|
|
119
|
+
}, [a, y]), xe = h((o) => (i) => {
|
|
120
|
+
const t = Number(i.target.value), r = a.setYear(a.startOfMonth(o), t);
|
|
121
|
+
y(r);
|
|
122
|
+
}, [a, y]), { className: Le, style: Ye } = T(() => ({
|
|
123
|
+
className: [d[n.Root], e.className].filter(Boolean).join(" "),
|
|
124
|
+
style: { ...c?.[n.Root], ...e.style }
|
|
125
|
+
}), [d, e.className, e.style, c]), Pe = _e(e), ne = Re(null);
|
|
126
|
+
et(ne, !!e.animate, {
|
|
127
|
+
classNames: d,
|
|
128
|
+
months: E,
|
|
129
|
+
focused: ee,
|
|
130
|
+
dateLib: a
|
|
131
|
+
});
|
|
132
|
+
const Fe = {
|
|
133
|
+
dayPickerProps: e,
|
|
134
|
+
selected: g,
|
|
135
|
+
select: L,
|
|
136
|
+
isSelected: x,
|
|
137
|
+
months: E,
|
|
138
|
+
nextMonth: b,
|
|
139
|
+
previousMonth: p,
|
|
140
|
+
goToMonth: y,
|
|
141
|
+
getModifiers: S,
|
|
142
|
+
components: m,
|
|
143
|
+
classNames: d,
|
|
144
|
+
styles: c,
|
|
145
|
+
labels: Z,
|
|
146
|
+
formatters: v
|
|
147
|
+
};
|
|
148
|
+
return l.createElement(
|
|
149
|
+
at.Provider,
|
|
150
|
+
{ value: Fe },
|
|
151
|
+
l.createElement(
|
|
152
|
+
m.Root,
|
|
153
|
+
{ rootRef: e.animate ? ne : void 0, className: Le, style: Ye, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...Pe },
|
|
154
|
+
l.createElement(
|
|
155
|
+
m.Months,
|
|
156
|
+
{ className: d[n.Months], style: c?.[n.Months] },
|
|
157
|
+
!e.hideNavigation && !D && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
158
|
+
E.map((o, i) => l.createElement(
|
|
159
|
+
m.Month,
|
|
160
|
+
{
|
|
161
|
+
"data-animated-month": e.animate ? "true" : void 0,
|
|
162
|
+
className: d[n.Month],
|
|
163
|
+
style: c?.[n.Month],
|
|
164
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
165
|
+
key: i,
|
|
166
|
+
displayIndex: i,
|
|
167
|
+
calendarMonth: o
|
|
168
|
+
},
|
|
169
|
+
D === "around" && !e.hideNavigation && i === 0 && l.createElement(
|
|
170
|
+
m.PreviousMonthButton,
|
|
171
|
+
{ type: "button", className: d[n.PreviousMonthButton], tabIndex: p ? void 0 : -1, "aria-disabled": p ? void 0 : !0, "aria-label": ye(p), onClick: Y, "data-animated-button": e.animate ? "true" : void 0 },
|
|
172
|
+
l.createElement(m.Chevron, { disabled: p ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
|
|
173
|
+
),
|
|
174
|
+
l.createElement(m.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: d[n.MonthCaption], style: c?.[n.MonthCaption], calendarMonth: o, displayIndex: i }, N?.startsWith("dropdown") ? l.createElement(
|
|
175
|
+
m.DropdownNav,
|
|
176
|
+
{ className: d[n.Dropdowns], style: c?.[n.Dropdowns] },
|
|
177
|
+
(() => {
|
|
178
|
+
const t = N === "dropdown" || N === "dropdown-months" ? l.createElement(m.MonthsDropdown, { key: "month", className: d[n.MonthsDropdown], "aria-label": he(), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: Se(o.date), options: $e(o.date, B, O, v, a), style: c?.[n.Dropdown], value: a.getMonth(o.date) }) : l.createElement("span", { key: "month" }, re(o.date, a)), r = N === "dropdown" || N === "dropdown-years" ? l.createElement(m.YearsDropdown, { key: "year", className: d[n.YearsDropdown], "aria-label": ge(a.options), classNames: d, components: m, disabled: !!e.disableNavigation, onChange: xe(o.date), options: Je(B, O, v, a, !!e.reverseYears), style: c?.[n.Dropdown], value: a.getYear(o.date) }) : l.createElement("span", { key: "year" }, me(o.date, a));
|
|
179
|
+
return a.getMonthYearOrder() === "year-first" ? [r, t] : [t, r];
|
|
180
|
+
})(),
|
|
181
|
+
l.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
182
|
+
border: 0,
|
|
183
|
+
clip: "rect(0 0 0 0)",
|
|
184
|
+
height: "1px",
|
|
185
|
+
margin: "-1px",
|
|
186
|
+
overflow: "hidden",
|
|
187
|
+
padding: 0,
|
|
188
|
+
position: "absolute",
|
|
189
|
+
width: "1px",
|
|
190
|
+
whiteSpace: "nowrap",
|
|
191
|
+
wordWrap: "normal"
|
|
192
|
+
} }, z(o.date, a.options, a))
|
|
193
|
+
) : l.createElement(m.CaptionLabel, { className: d[n.CaptionLabel], role: "status", "aria-live": "polite" }, z(o.date, a.options, a))),
|
|
194
|
+
D === "around" && !e.hideNavigation && i === I - 1 && l.createElement(
|
|
195
|
+
m.NextMonthButton,
|
|
196
|
+
{ type: "button", className: d[n.NextMonthButton], tabIndex: b ? void 0 : -1, "aria-disabled": b ? void 0 : !0, "aria-label": ke(b), onClick: P, "data-animated-button": e.animate ? "true" : void 0 },
|
|
197
|
+
l.createElement(m.Chevron, { disabled: b ? void 0 : !0, className: d[n.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
|
|
198
|
+
),
|
|
199
|
+
i === I - 1 && D === "after" && !e.hideNavigation && l.createElement(m.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: d[n.Nav], style: c?.[n.Nav], "aria-label": ae(), onPreviousClick: Y, onNextClick: P, previousMonth: p, nextMonth: b }),
|
|
200
|
+
l.createElement(
|
|
201
|
+
m.MonthGrid,
|
|
202
|
+
{ role: "grid", "aria-multiselectable": C === "multiple" || C === "range", "aria-label": be(o.date, a.options, a) || void 0, className: d[n.MonthGrid], style: c?.[n.MonthGrid] },
|
|
203
|
+
!e.hideWeekdays && l.createElement(
|
|
204
|
+
m.Weekdays,
|
|
205
|
+
{ "data-animated-weekdays": e.animate ? "true" : void 0, className: d[n.Weekdays], style: c?.[n.Weekdays] },
|
|
206
|
+
q && l.createElement(m.WeekNumberHeader, { "aria-label": De(a.options), className: d[n.WeekNumberHeader], style: c?.[n.WeekNumberHeader], scope: "col" }, de()),
|
|
207
|
+
Me.map((t) => l.createElement(m.Weekday, { "aria-label": Ne(t, a.options, a), className: d[n.Weekday], key: String(t), style: c?.[n.Weekday], scope: "col" }, le(t, a.options, a)))
|
|
208
|
+
),
|
|
209
|
+
l.createElement(m.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: d[n.Weeks], style: c?.[n.Weeks] }, o.weeks.map((t) => l.createElement(
|
|
210
|
+
m.Week,
|
|
211
|
+
{ className: d[n.Week], key: t.weekNumber, style: c?.[n.Week], week: t },
|
|
212
|
+
q && l.createElement(m.WeekNumber, { week: t, style: c?.[n.WeekNumber], "aria-label": ve(t.weekNumber, {
|
|
213
|
+
locale: se
|
|
214
|
+
}), className: d[n.WeekNumber], scope: "row", role: "rowheader" }, ie(t.weekNumber, a)),
|
|
215
|
+
t.days.map((r) => {
|
|
216
|
+
const { date: f } = r, s = S(r);
|
|
217
|
+
if (s[Xe.focused] = !s.hidden && !!ee?.isEqualTo(r), s[w.selected] = x?.(f) || s.selected, rt(g)) {
|
|
218
|
+
const { from: F, to: A } = g;
|
|
219
|
+
s[w.range_start] = !!(F && A && a.isSameDay(f, F)), s[w.range_end] = !!(F && A && a.isSameDay(f, A)), s[w.range_middle] = st(g, f, !0, a);
|
|
220
|
+
}
|
|
221
|
+
const Ae = qe(s, c, e.modifiersStyles), Te = Ge(s, d, e.modifiersClassNames), Ke = !oe && !s.hidden ? pe(f, s, a.options, a) : void 0;
|
|
222
|
+
return l.createElement(m.Day, { key: `${r.isoDate}_${r.displayMonthId}`, day: r, modifiers: s, className: Te.join(" "), style: Ae, role: "gridcell", "aria-selected": s.selected || void 0, "aria-label": Ke, "data-day": r.isoDate, "data-month": r.outside ? r.dateMonthId : void 0, "data-selected": s.selected || void 0, "data-disabled": s.disabled || void 0, "data-hidden": s.hidden || void 0, "data-outside": r.outside || void 0, "data-focused": s.focused || void 0, "data-today": s.today || void 0 }, !s.hidden && oe ? l.createElement(m.DayButton, { className: d[n.DayButton], style: c?.[n.DayButton], type: "button", day: r, modifiers: s, disabled: !s.focused && s.disabled || void 0, "aria-disabled": s.focused && s.disabled || void 0, tabIndex: ue(r) ? 0 : -1, "aria-label": fe(f, s, a.options, a), onClick: we(r, s), onBlur: We(r, s), onFocus: Ce(r, s), onKeyDown: Ee(r, s), onMouseEnter: Be(r, s), onMouseLeave: Oe(r, s) }, J(f, a.options, a)) : !s.hidden && J(r.date, a.options, a));
|
|
223
|
+
})
|
|
224
|
+
)))
|
|
225
|
+
)
|
|
226
|
+
))
|
|
227
|
+
),
|
|
228
|
+
e.footer && l.createElement(m.Footer, { className: d[n.Footer], style: c?.[n.Footer], role: "status", "aria-live": "polite" }, e.footer)
|
|
229
|
+
)
|
|
230
|
+
);
|
|
231
|
+
}
|
|
50
232
|
export {
|
|
51
|
-
|
|
52
|
-
z as decode
|
|
233
|
+
Yt as DayPicker
|
|
53
234
|
};
|
|
54
235
|
//# sourceMappingURL=index30.js.map
|