@rpcbase/ui 0.224.0 → 0.226.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/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +13 -9
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +16 -10
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/index10.js +102 -103
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +11 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +69 -52
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +38 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +14 -5
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +23 -15
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +110 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +13 -8
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -5
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -5
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +11 -5
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +19 -5
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +261 -4
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -6
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +28 -25
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +126 -6
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +5 -4
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +78 -6
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +66 -5
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.js +8 -4
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +16 -6
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +92 -4
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +65 -8
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +45 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +52 -5
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +4 -4
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -6
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +15 -145
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -39
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +7 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +16 -7
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -13
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -13
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +5 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +5 -31
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -10
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -8
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -13
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +6 -101
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +5 -20
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -53
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +5 -72
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -9
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +5 -20
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -16
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +8 -23
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -6
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +4 -5
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -22
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +7 -35
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +146 -16
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +39 -6
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -4
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +13 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +13 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +7 -3
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +31 -6
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +77 -72
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +11 -24
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +10 -7
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +8 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +13 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +101 -3
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +20 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +53 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +72 -3
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +9 -4
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +20 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +16 -3
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +23 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +6 -46
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +5 -229
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +24 -22
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +35 -25
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +16 -401
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +6 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -154
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -30
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +205 -186
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +4 -9
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +4 -48
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -11
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +6 -44
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +24 -96
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +7 -86
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +6 -105
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +5 -52
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +3 -11
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +3 -37
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +280 -208
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +4 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +3 -116
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -17
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +3 -15
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +3 -3
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +3 -36
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +13 -20
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +154 -9
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +30 -8
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +9 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +45 -25
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -16
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +44 -58
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +95 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +81 -61
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +103 -17
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +50 -14
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +10 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +36 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +8 -6
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +116 -4
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +17 -6
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -16
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +3 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +36 -4
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +20 -12
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +9 -9
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -13
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +19 -13
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +28 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +16 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +66 -6
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +8 -5
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +11 -54
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -8
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -4
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +13 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +3 -8
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +3 -4
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +99 -4
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +29 -3
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +51 -10
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +17 -9
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +5 -9
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +122 -10
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +27 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +32 -9
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +73 -6
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +262 -5
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +28 -4
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +6 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +142 -6
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +61 -5
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +49 -16
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +15 -8
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +132 -9
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +5 -22
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -11
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +11 -9
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +21 -9
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +20 -5
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -5
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +48 -14
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +16 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +21 -18
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +50 -14
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +25 -12
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +41 -29
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +39 -12
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +45 -26
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +20 -5
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +68 -22
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +18 -29
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +12 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +12 -19
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +18 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +36 -17
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +278 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +69 -5
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +84 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +3 -23
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +28 -111
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +32 -527
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +14 -123
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +3 -133
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +26 -4
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -5
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +79 -4
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +269 -15
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +11 -8
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +10 -5
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +25 -4
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +16 -545
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +123 -44
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +5 -17
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +40 -5
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +65 -7
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +14 -7
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +7 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -11
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +3 -8
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +10 -12
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -69
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +398 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +53 -14
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +12 -66
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +11 -64
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +58 -4
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +1 -1
- package/dist/index300.js +9 -56
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +66 -67
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +20 -31
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +17 -9
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -152
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -107
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +6 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +4 -22
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -15
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +16 -28
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +227 -120
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +4 -12
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -6
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +13 -23
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +10 -13
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +13 -27
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +14 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +8 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +9 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +10 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +9 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +21 -229
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +58 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +12 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +8 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +8 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +12 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +8 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +8 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +7 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +14 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +13 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +4 -23
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +13 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +14 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +14 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +13 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +10 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +9 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +8 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +9 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +10 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +9 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +62 -51
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +20 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +11 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +14 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +14 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +25 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +14 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +13 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +13 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +8 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +9 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +38 -21
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +20 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +13 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +22 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +19 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +16 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +33 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +16 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +29 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +9 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +24 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +75 -127
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +12 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +29 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +30 -0
- package/dist/index362.js.map +1 -0
- package/dist/index363.js +141 -0
- package/dist/index363.js.map +1 -0
- package/dist/index364.js +16 -0
- package/dist/index364.js.map +1 -0
- package/dist/index365.js +230 -0
- package/dist/index365.js.map +1 -0
- package/dist/index366.js +7 -0
- package/dist/index366.js.map +1 -0
- package/dist/index367.js +23 -0
- package/dist/index367.js.map +1 -0
- package/dist/index368.js +81 -0
- package/dist/index368.js.map +1 -0
- package/dist/index369.js +15 -0
- package/dist/index369.js.map +1 -0
- package/dist/index37.js +22 -221
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +7 -0
- package/dist/index370.js.map +1 -0
- package/dist/index371.js +81 -0
- package/dist/index371.js.map +1 -0
- package/dist/index372.js +204 -0
- package/dist/index372.js.map +1 -0
- package/dist/index373.js +75 -0
- package/dist/index373.js.map +1 -0
- package/dist/index374.js +12 -0
- package/dist/index374.js.map +1 -0
- package/dist/index375.js +20 -0
- package/dist/index375.js.map +1 -0
- package/dist/index376.js +19 -0
- package/dist/index376.js.map +1 -0
- package/dist/index377.js +7 -0
- package/dist/index377.js.map +1 -0
- package/dist/index378.js +15 -0
- package/dist/index378.js.map +1 -0
- package/dist/index379.js +9 -0
- package/dist/index379.js.map +1 -0
- package/dist/index38.js +37 -90
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +24 -0
- package/dist/index380.js.map +1 -0
- package/dist/index381.js +48 -0
- package/dist/index381.js.map +1 -0
- package/dist/index382.js +21 -0
- package/dist/index382.js.map +1 -0
- package/dist/index383.js +8 -0
- package/dist/index383.js.map +1 -0
- package/dist/index384.js +8 -0
- package/dist/index384.js.map +1 -0
- package/dist/index385.js +21 -0
- package/dist/index385.js.map +1 -0
- package/dist/index386.js +16 -0
- package/dist/index386.js.map +1 -0
- package/dist/index387.js +18 -0
- package/dist/index387.js.map +1 -0
- package/dist/index388.js +495 -0
- package/dist/index388.js.map +1 -0
- package/dist/index389.js +6 -0
- package/dist/index389.js.map +1 -0
- package/dist/index39.js +28 -119
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +6 -0
- package/dist/index390.js.map +1 -0
- package/dist/index391.js +8 -0
- package/dist/index391.js.map +1 -0
- package/dist/index392.js +8 -0
- package/dist/index392.js.map +1 -0
- package/dist/index393.js +7 -0
- package/dist/index393.js.map +1 -0
- package/dist/index394.js +19 -0
- package/dist/index394.js.map +1 -0
- package/dist/index395.js +12 -0
- package/dist/index395.js.map +1 -0
- package/dist/index396.js +9 -0
- package/dist/index396.js.map +1 -0
- package/dist/index397.js +8 -0
- package/dist/index397.js.map +1 -0
- package/dist/index398.js +549 -0
- package/dist/index398.js.map +1 -0
- package/dist/index399.js +50 -0
- package/dist/index399.js.map +1 -0
- package/dist/index40.js +23 -6
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +21 -0
- package/dist/index400.js.map +1 -0
- package/dist/index401.js +9 -0
- package/dist/index401.js.map +1 -0
- package/dist/index402.js +11 -0
- package/dist/index402.js.map +1 -0
- package/dist/index403.js +10 -0
- package/dist/index403.js.map +1 -0
- package/dist/index404.js +11 -0
- package/dist/index404.js.map +1 -0
- package/dist/index405.js +15 -0
- package/dist/index405.js.map +1 -0
- package/dist/index406.js +12 -0
- package/dist/index406.js.map +1 -0
- package/dist/index407.js +16 -0
- package/dist/index407.js.map +1 -0
- package/dist/index408.js +11 -0
- package/dist/index408.js.map +1 -0
- package/dist/index409.js +5 -0
- package/dist/index409.js.map +1 -0
- package/dist/index41.js +51 -817
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +47 -0
- package/dist/index410.js.map +1 -0
- package/dist/index411.js +59 -0
- package/dist/index411.js.map +1 -0
- package/dist/index412.js +11 -0
- package/dist/index412.js.map +1 -0
- package/dist/index413.js +5 -0
- package/dist/index413.js.map +1 -0
- package/dist/index414.js +58 -0
- package/dist/index414.js.map +1 -0
- package/dist/index415.js +59 -0
- package/dist/index415.js.map +1 -0
- package/dist/index416.js +8 -0
- package/dist/index416.js.map +1 -0
- package/dist/index417.js +59 -0
- package/dist/index417.js.map +1 -0
- package/dist/index418.js +71 -0
- package/dist/index418.js.map +1 -0
- package/dist/index419.js +34 -0
- package/dist/index419.js.map +1 -0
- package/dist/index42.js +51 -57
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +12 -0
- package/dist/index420.js.map +1 -0
- package/dist/index421.js +156 -0
- package/dist/index421.js.map +1 -0
- package/dist/index422.js +111 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +5 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +5 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +5 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +5 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +19 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +32 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +16 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +21 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +10 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +130 -2
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +221 -11
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +90 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +126 -7
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +6 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +326 -23
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +247 -221
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +27 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +129 -2
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +26 -2
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +23 -2
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +145 -6
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +34 -33
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +28 -48
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +41 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +21 -12
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +84 -85
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +132 -6
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +51 -8
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +30 -6
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -4
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -47
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +2 -51
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +11 -7
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +17 -13
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +7 -133
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -11
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +123 -98
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +22 -215
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +234 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +5 -46
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +7 -49
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -4
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -28
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -50
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -9
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +5 -46
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +53 -54
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +68 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -69
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +364 -2
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +201 -303
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +46 -247
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +42 -56
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +169 -46
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +96 -156
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +24 -109
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +8 -25
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.js +5 -8
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +5 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -5
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +466 -4
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +139 -420
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +71 -149
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +229 -74
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +9 -262
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +42 -9
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -42
- package/dist/index99.js.map +1 -1
- package/dist/lib/render-as-child.d.ts +5 -0
- package/dist/lib/render-as-child.d.ts.map +1 -0
- package/package.json +3 -6
- package/dist/lib/react-compose-refs.d.ts +0 -5
- package/dist/lib/react-compose-refs.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index351.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;AAoBO,SAASA,EAAaC,GAAQC,GAASC,GAAQC,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,GAAG;AACrH,MAAIA,IAAU;AAEV;AAEJ,QAAMC,IAAgBC,EAAiBT,GAAQC,GAASC,EAAO,MAAMC,GAAoBC,GAAkBC,GAAOC,CAAO,GACnHI,IAAa,GAAQL,EAAM,YAC7BM,EAAmBH,GAAeH,EAAM,UAAUC,CAAO,IACvDM,IAAW,GAAQP,EAAM,UAAUM,EAAmBH,GAAeH,EAAM,QAAQC,CAAO,IAC1FO,IAAcL,GACdM,IAAW,IAAIC,EAAYP,GAAeK,GAAaP,CAAO;AACpE,SAAI,CAACI,KAAc,CAACE,IACTE,IAGJf,EAAaC,GAAQC,GAASa,GAAUX,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,CAAC;AACpH;","x_google_ignoreList":[0]}
|
package/dist/index352.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useControlledValue as x } from "./index349.js";
|
|
2
|
+
function C(i, d) {
|
|
3
|
+
const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
|
|
4
|
+
return {
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (t, c, h) => {
|
|
7
|
+
let n = [...e ?? []];
|
|
8
|
+
if (u(t)) {
|
|
9
|
+
if (e?.length === S || f && e?.length === 1)
|
|
10
|
+
return;
|
|
11
|
+
n = e?.filter((y) => !o(y, t));
|
|
12
|
+
} else
|
|
13
|
+
e?.length === a ? n = [t] : n = [...n, t];
|
|
14
|
+
return l || m(n), l?.(n, t, c, h), n;
|
|
15
|
+
},
|
|
16
|
+
isSelected: u
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
C as useMulti
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index352.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index352.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index353.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useControlledValue as x } from "./index349.js";
|
|
2
|
+
import { rangeIncludesDate as R } from "./index172.js";
|
|
3
|
+
import { addToRange as y } from "./index355.js";
|
|
4
|
+
import { rangeContainsModifiers as C } from "./index357.js";
|
|
5
|
+
function b(s, l) {
|
|
6
|
+
const { disabled: c, excludeDisabled: i, selected: d, required: f, onSelect: o } = s, [r, m] = x(d, o ? d : void 0), t = o ? d : r;
|
|
7
|
+
return {
|
|
8
|
+
selected: t,
|
|
9
|
+
select: (n, u, a) => {
|
|
10
|
+
const { min: S, max: p } = s, e = n ? y(n, t, S, p, f, l) : void 0;
|
|
11
|
+
return i && c && e?.from && e.to && C({ from: e.from, to: e.to }, c, l) && (e.from = n, e.to = void 0), o || m(e), o?.(e, n, u, a), e;
|
|
12
|
+
},
|
|
13
|
+
isSelected: (n) => t && R(t, n, !1, l)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
b as useRange
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index353.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index353.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMN,GAClF,CAACO,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAoB7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QApBW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKf,GACfgB,IAAWL,IACXM,EAAWN,GAAaD,GAAUI,GAAKC,GAAKV,GAAUJ,CAAO,IAC7D;AACN,aAAIE,KAAmBD,KAAYc,GAAU,QAAQA,EAAS,MACtDE,EAAuB,EAAE,MAAMF,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAId,GAAUD,CAAO,MAElFe,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAtBe,CAACG,MAAST,KAAYU,EAAkBV,GAAUS,GAAM,IAAOlB,CAAO;AAAA,EAuB7F;AACA;","x_google_ignoreList":[0]}
|
package/dist/index354.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useControlledValue as a } from "./index349.js";
|
|
2
|
+
function q(u, S) {
|
|
3
|
+
const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
|
|
4
|
+
return {
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (n, o, i) => {
|
|
7
|
+
let l = n;
|
|
8
|
+
return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
|
|
9
|
+
},
|
|
10
|
+
isSelected: (n) => e ? d(e, n) : !1
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
q as useSingle
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index354.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index354.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
|
package/dist/index355.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defaultDateLib as D } from "./index152.js";
|
|
2
|
+
function w(f, g, n = 0, s = 0, l = !1, u = D) {
|
|
3
|
+
const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
|
|
4
|
+
let e;
|
|
5
|
+
if (!o && !i)
|
|
6
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
7
|
+
else if (o && !i)
|
|
8
|
+
r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
|
|
9
|
+
else if (o && i)
|
|
10
|
+
if (r(o, f) && r(i, f))
|
|
11
|
+
l ? e = { from: o, to: i } : e = void 0;
|
|
12
|
+
else if (r(o, f))
|
|
13
|
+
e = { from: o, to: n > 0 ? void 0 : f };
|
|
14
|
+
else if (r(i, f))
|
|
15
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
16
|
+
else if (c(f, o))
|
|
17
|
+
e = { from: f, to: i };
|
|
18
|
+
else if (m(f, o))
|
|
19
|
+
e = { from: o, to: f };
|
|
20
|
+
else if (m(f, i))
|
|
21
|
+
e = { from: o, to: f };
|
|
22
|
+
else
|
|
23
|
+
throw new Error("Invalid range");
|
|
24
|
+
if (e?.from && e?.to) {
|
|
25
|
+
const t = u.differenceInCalendarDays(e.to, e.from);
|
|
26
|
+
s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
w as addToRange
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index355.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index355.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAcC,IAAM,GAAGC,IAAM,GAAGC,IAAW,IAAOC,IAAUC,GAAgB;AACzG,QAAM,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKP,KAAgB,CAAA,GAC/B,EAAE,WAAAQ,GAAW,SAAAC,GAAS,UAAAC,EAAQ,IAAKN;AACzC,MAAIO;AACJ,MAAI,CAACL,KAAQ,CAACC;AAEV,IAAAI,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,WAE/CO,KAAQ,CAACC;AAEd,IAAIC,EAAUF,GAAMP,CAAI,IAEhBE,MAAQ,IACRU,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI,IAEnBI,IACLQ,IAAQ,EAAE,MAAAL,GAAM,IAAI,OAAS,IAG7BK,IAAQ,SAGPD,EAASX,GAAMO,CAAI,IAExBK,IAAQ,EAAE,MAAMZ,GAAM,IAAIO,EAAI,IAI9BK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,WAGvBO,KAAQC;AAEb,QAAIC,EAAUF,GAAMP,CAAI,KAAKS,EAAUD,GAAIR,CAAI;AAE3C,MAAII,IACAQ,IAAQ,EAAE,MAAAL,GAAM,IAAAC,EAAE,IAGlBI,IAAQ;AAAA,aAGPH,EAAUF,GAAMP,CAAI;AAEzB,MAAAY,IAAQ,EAAE,MAAAL,GAAM,IAAIL,IAAM,IAAI,SAAYF,EAAI;AAAA,aAEzCS,EAAUD,GAAIR,CAAI;AAEvB,MAAAY,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,aAE/CW,EAASX,GAAMO,CAAI;AAExB,MAAAK,IAAQ,EAAE,MAAMZ,GAAM,IAAIQ,EAAE;AAAA,aAEvBE,EAAQV,GAAMO,CAAI;AAEvB,MAAAK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,aAEnBU,EAAQV,GAAMQ,CAAE;AAErB,MAAAI,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA;AAGxB,YAAM,IAAI,MAAM,eAAe;AAIvC,MAAIY,GAAO,QAAQA,GAAO,IAAI;AAC1B,UAAMC,IAAOR,EAAQ,yBAAyBO,EAAM,IAAIA,EAAM,IAAI;AAClE,IAAIT,IAAM,KAAKU,IAAOV,IAClBS,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS,IAE9BE,IAAM,KAAKW,IAAOX,MACvBU,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS;AAAA,EAE3C;AACA,SAAOY;AACX;","x_google_ignoreList":[0]}
|
package/dist/index356.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defaultDateLib as f } from "./index152.js";
|
|
2
|
+
function y(t, r, e = f) {
|
|
3
|
+
const n = Array.isArray(r) ? r : [r];
|
|
4
|
+
let a = t.from;
|
|
5
|
+
const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
|
|
6
|
+
for (let o = 0; o <= s; o++) {
|
|
7
|
+
if (n.includes(a.getDay()))
|
|
8
|
+
return !0;
|
|
9
|
+
a = e.addDays(a, 1);
|
|
10
|
+
}
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
y as rangeContainsDayOfWeek
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index356.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index356.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","date","totalDays","totalDaysLimit","i"],"mappings":";AAaO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAgB,MAAM,QAAQH,CAAS,IAAkBA,IAAd,CAACA,CAAS;AAC3D,MAAII,IAAOL,EAAM;AACjB,QAAMM,IAAYJ,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI,GAEjEO,IAAiB,KAAK,IAAID,GAAW,CAAC;AAC5C,WAASE,IAAI,GAAGA,KAAKD,GAAgBC,KAAK;AACtC,QAAIJ,EAAa,SAASC,EAAK,OAAM,CAAE;AACnC,aAAO;AAEX,IAAAA,IAAOH,EAAQ,QAAQG,GAAM,CAAC;AAAA,EAClC;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index357.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defaultDateLib as p } from "./index152.js";
|
|
2
|
+
import { dateMatchModifiers as s } from "./index32.js";
|
|
3
|
+
import { rangeContainsDayOfWeek as M } from "./index356.js";
|
|
4
|
+
import { rangeIncludesDate as l } from "./index172.js";
|
|
5
|
+
import { rangeOverlaps as y } from "./index358.js";
|
|
6
|
+
import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index174.js";
|
|
7
|
+
function d(n, t, f = p) {
|
|
8
|
+
const e = Array.isArray(t) ? t : [t];
|
|
9
|
+
if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
|
|
10
|
+
from: f.addDays(o.after, 1),
|
|
11
|
+
to: f.addDays(o.before, -1)
|
|
12
|
+
}, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
|
|
13
|
+
return !0;
|
|
14
|
+
const i = e.filter((o) => typeof o == "function");
|
|
15
|
+
if (i.length) {
|
|
16
|
+
let o = n.from;
|
|
17
|
+
const r = f.differenceInCalendarDays(n.to, n.from);
|
|
18
|
+
for (let u = 0; u <= r; u++) {
|
|
19
|
+
if (i.some((D) => D(o)))
|
|
20
|
+
return !0;
|
|
21
|
+
o = f.addDays(o, 1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return !1;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
d as rangeContainsModifiers
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index357.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index357.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":["rangeContainsModifiers","range","modifiers","dateLib","defaultDateLib","matchers","matcher","rangeIncludesDate","isDatesArray","date","isDateRange","rangeOverlaps","isDayOfWeekType","rangeContainsDayOfWeek","isDateInterval","dateMatchModifiers","isDateAfterType","isDateBeforeType","functionMatchers","totalDays","i"],"mappings":";;;;;;AAgBO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAW,MAAM,QAAQH,CAAS,IAAIA,IAAY,CAACA,CAAS;AAsClE,MApC4BG,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU,EAChC,KAAK,CAACA,MACpD,OAAOA,KAAY,YACZA,IACPH,EAAQ,OAAOG,CAAO,IACfC,EAAkBN,GAAOK,GAAS,IAAOH,CAAO,IAEvDK,EAAaF,GAASH,CAAO,IACtBG,EAAQ,KAAK,CAACG,MAASF,EAAkBN,GAAOQ,GAAM,IAAON,CAAO,CAAC,IAE5EO,EAAYJ,CAAO,IACfA,EAAQ,QAAQA,EAAQ,KACjBK,EAAcV,GAAO,EAAE,MAAMK,EAAQ,MAAM,IAAIA,EAAQ,GAAE,GAAIH,CAAO,IAExE,KAEPS,EAAgBN,CAAO,IAChBO,EAAuBZ,GAAOK,EAAQ,WAAWH,CAAO,IAE/DW,EAAeR,CAAO,IACGH,EAAQ,QAAQG,EAAQ,QAAQA,EAAQ,KAAK,IAE3DK,EAAcV,GAAO;AAAA,IACxB,MAAME,EAAQ,QAAQG,EAAQ,OAAO,CAAC;AAAA,IACtC,IAAIH,EAAQ,QAAQG,EAAQ,QAAQ,EAAE;AAAA,EAC1D,GAAmBH,CAAO,IAENY,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAEjDa,EAAgBV,CAAO,KAAKW,EAAiBX,CAAO,IAC5CS,EAAmBd,EAAM,MAAMK,GAASH,CAAO,KACnDY,EAAmBd,EAAM,IAAIK,GAASH,CAAO,IAE9C,EACV;AAEG,WAAO;AAEX,QAAMe,IAAmBb,EAAS,OAAO,CAACC,MAAY,OAAOA,KAAY,UAAU;AACnF,MAAIY,EAAiB,QAAQ;AACzB,QAAIT,IAAOR,EAAM;AACjB,UAAMkB,IAAYhB,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI;AACvE,aAASmB,IAAI,GAAGA,KAAKD,GAAWC,KAAK;AACjC,UAAIF,EAAiB,KAAK,CAACZ,MAAYA,EAAQG,CAAI,CAAC;AAChD,eAAO;AAEX,MAAAA,IAAON,EAAQ,QAAQM,GAAM,CAAC;AAAA,IAClC;AAAA,EACJ;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index358.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { rangeIncludesDate as m } from "./index172.js";
|
|
2
|
+
import { defaultDateLib as r } from "./index152.js";
|
|
3
|
+
function u(o, f, l = r) {
|
|
4
|
+
return m(o, f.from, !1, l) || m(o, f.to, !1, l) || m(f, o.from, !1, l) || m(f, o.to, !1, l);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
u as rangeOverlaps
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index358.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index358.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":["rangeOverlaps","rangeLeft","rangeRight","dateLib","defaultDateLib","rangeIncludesDate"],"mappings":";;AAYO,SAASA,EAAcC,GAAWC,GAAYC,IAAUC,GAAgB;AAC3E,SAAQC,EAAkBJ,GAAWC,EAAW,MAAM,IAAOC,CAAO,KAChEE,EAAkBJ,GAAWC,EAAW,IAAI,IAAOC,CAAO,KAC1DE,EAAkBH,GAAYD,EAAU,MAAM,IAAOE,CAAO,KAC5DE,EAAkBH,GAAYD,EAAU,IAAI,IAAOE,CAAO;AAClE;","x_google_ignoreList":[0]}
|
package/dist/index359.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VALID_DIGITS as n } from "./index89.js";
|
|
2
|
+
var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
|
|
3
|
+
function D(_) {
|
|
4
|
+
var t = _.indexOf(a);
|
|
5
|
+
if (t < 0)
|
|
6
|
+
return null;
|
|
7
|
+
var e = t + a.length;
|
|
8
|
+
if (e >= _.length)
|
|
9
|
+
return "";
|
|
10
|
+
var A = _.indexOf(";", e);
|
|
11
|
+
return A >= 0 ? _.substring(e, A) : _.substring(e);
|
|
12
|
+
}
|
|
13
|
+
function S(_) {
|
|
14
|
+
return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
v as PLUS_SIGN,
|
|
18
|
+
u as RFC3966_ISDN_SUBADDRESS_,
|
|
19
|
+
a as RFC3966_PHONE_CONTEXT_,
|
|
20
|
+
l as RFC3966_PREFIX_,
|
|
21
|
+
D as default,
|
|
22
|
+
S as isPhoneContextValid
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index359.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index359.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js"],"sourcesContent":["// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\n\nimport { VALID_DIGITS\n// PLUS_CHARS\n} from '../constants.js';\nexport var PLUS_SIGN = '+';\nvar RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?';\nvar RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';\nvar RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';\n\n/**\r\n * Regular expression of valid global-number-digits for the phone-context\r\n * parameter, following the syntax defined in RFC3966.\r\n */\nvar RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g');\n\n// In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\nvar ALPHANUM_ = VALID_DIGITS;\nvar RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar VALID_ALPHA_ = 'a-zA-Z';\nvar RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$';\n\n/**\r\n * Regular expression of valid domainname for the phone-context parameter,\r\n * following the syntax defined in RFC3966.\r\n */\nvar RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');\nexport var RFC3966_PREFIX_ = 'tel:';\nexport var RFC3966_PHONE_CONTEXT_ = ';phone-context=';\nexport var RFC3966_ISDN_SUBADDRESS_ = ';isub=';\n\n/**\r\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\r\n * following the syntax defined in RFC3966.\r\n *\r\n * @param {string} numberToExtractFrom\r\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\r\n */\nexport default function extractPhoneContext(numberToExtractFrom) {\n var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_);\n // If no phone-context parameter is present\n if (indexOfPhoneContext < 0) {\n return null;\n }\n var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length;\n // If phone-context parameter is empty\n if (phoneContextStart >= numberToExtractFrom.length) {\n return '';\n }\n var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart);\n // If phone-context is not the last parameter\n if (phoneContextEnd >= 0) {\n return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);\n } else {\n return numberToExtractFrom.substring(phoneContextStart);\n }\n}\n\n/**\r\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\r\n *\r\n * @param {string|null} phoneContext\r\n * @return {boolean}\r\n */\nexport function isPhoneContextValid(phoneContext) {\n if (phoneContext === null) {\n return true;\n }\n if (phoneContext.length === 0) {\n return false;\n }\n\n // Does phone-context value match pattern of global-number-digits or domainname.\n return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);\n}\n//# sourceMappingURL=extractPhoneContext.js.map"],"names":["PLUS_SIGN","RFC3966_VISUAL_SEPARATOR_","RFC3966_PHONE_DIGIT_","VALID_DIGITS","RFC3966_GLOBAL_NUMBER_DIGITS_","RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_","ALPHANUM_","RFC3966_DOMAINLABEL_","VALID_ALPHA_","RFC3966_TOPLABEL_","RFC3966_DOMAINNAME_","RFC3966_DOMAINNAME_PATTERN_","RFC3966_PREFIX_","RFC3966_PHONE_CONTEXT_","RFC3966_ISDN_SUBADDRESS_","extractPhoneContext","numberToExtractFrom","indexOfPhoneContext","phoneContextStart","phoneContextEnd","isPhoneContextValid","phoneContext"],"mappings":";AASU,IAACA,IAAY,KACnBC,IAA4B,mBAC5BC,IAAuB,OAAYC,IAAe,OAAYF,IAA4B,KAC1FG,IAAgC,QAAaJ,IAAYE,IAAuB,OAAYC,IAAe,MAAMD,IAAuB,MAMxIG,IAAwC,IAAI,OAAOD,GAA+B,GAAG,GAIrFE,IAAYH,GACZI,IAAuB,MAAMD,IAAY,eAAeA,IAAY,OACpEE,IAAe,UACfC,IAAoB,MAAMD,IAAe,eAAeF,IAAY,OACpEI,IAAsB,OAAOH,IAAuB,UAAUE,IAAoB,SAMlFE,IAA8B,IAAI,OAAOD,GAAqB,GAAG,GAC1DE,IAAkB,QAClBC,IAAyB,mBACzBC,IAA2B;AASvB,SAASC,EAAoBC,GAAqB;AAC/D,MAAIC,IAAsBD,EAAoB,QAAQH,CAAsB;AAE5E,MAAII,IAAsB;AACxB,WAAO;AAET,MAAIC,IAAoBD,IAAsBJ,EAAuB;AAErE,MAAIK,KAAqBF,EAAoB;AAC3C,WAAO;AAET,MAAIG,IAAkBH,EAAoB,QAAQ,KAAKE,CAAiB;AAExE,SAAIC,KAAmB,IACdH,EAAoB,UAAUE,GAAmBC,CAAe,IAEhEH,EAAoB,UAAUE,CAAiB;AAE1D;AAQO,SAASE,EAAoBC,GAAc;AAChD,SAAIA,MAAiB,OACZ,KAELA,EAAa,WAAW,IACnB,KAIFhB,EAAsC,KAAKgB,CAAY,KAAKV,EAA4B,KAAKU,CAAY;AAClH;","x_google_ignoreList":[0]}
|
package/dist/index36.js
CHANGED
|
@@ -1,133 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import * as R from "react";
|
|
2
|
+
import { useDialogRootContext as I } from "./index100.js";
|
|
3
|
+
import { useRenderElement as h } from "./index101.js";
|
|
4
|
+
import { popupStateMapping as y } from "./index102.js";
|
|
5
|
+
import { transitionStatusMapping as M } from "./index103.js";
|
|
6
|
+
import { DialogPopupCssVars as N } from "./index108.js";
|
|
7
|
+
import { DialogPopupDataAttributes as j } from "./index109.js";
|
|
8
|
+
import { useDialogPortalContext as v } from "./index110.js";
|
|
9
|
+
import { useOpenChangeComplete as w } from "./index111.js";
|
|
10
|
+
import { COMPOSITE_KEYS as A } from "./index112.js";
|
|
11
|
+
import { j as K } from "./index30.js";
|
|
12
|
+
import { FloatingFocusManager as T } from "./index113.js";
|
|
13
|
+
const V = {
|
|
14
|
+
...y,
|
|
15
|
+
...M,
|
|
16
|
+
nestedDialogOpen(n) {
|
|
17
|
+
return n ? {
|
|
18
|
+
[j.nestedDialogOpen]: ""
|
|
19
|
+
} : null;
|
|
17
20
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return o !== i ? o - i : n.name.localeCompare(a.name);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function d(e) {
|
|
38
|
-
return e === "US" ? 0 : e === "CA" ? 1 : s(e) === "1" ? 2 : 3;
|
|
39
|
-
}
|
|
40
|
-
function b(e) {
|
|
41
|
-
return e ? Array.isArray(e) ? e.join("\0") : e : m;
|
|
42
|
-
}
|
|
43
|
-
function L(e) {
|
|
44
|
-
if (e !== m) {
|
|
45
|
-
if (e.includes("\0")) {
|
|
46
|
-
const t = e.split("\0").filter(Boolean);
|
|
47
|
-
return t.length === 0 ? void 0 : t.length === 1 ? t[0] ?? void 0 : t;
|
|
21
|
+
}, _ = /* @__PURE__ */ R.forwardRef(function(s, r) {
|
|
22
|
+
const {
|
|
23
|
+
className: k,
|
|
24
|
+
finalFocus: u,
|
|
25
|
+
initialFocus: i,
|
|
26
|
+
render: Y,
|
|
27
|
+
style: q,
|
|
28
|
+
...l
|
|
29
|
+
} = s, {
|
|
30
|
+
store: t
|
|
31
|
+
} = I(), c = t.useState("descriptionElementId"), d = t.useState("disablePointerDismissal"), m = t.useState("floatingRootContext"), f = t.useState("popupProps"), g = t.useState("modal"), a = t.useState("mounted"), S = t.useState("nested"), p = t.useState("nestedOpenDialogCount"), o = t.useState("open"), D = t.useState("openMethod"), x = t.useState("titleElementId"), C = t.useState("transitionStatus"), P = t.useState("role");
|
|
32
|
+
v(), w({
|
|
33
|
+
open: o,
|
|
34
|
+
ref: t.context.popupRef,
|
|
35
|
+
onComplete() {
|
|
36
|
+
o && t.context.onOpenChangeComplete?.(!0);
|
|
48
37
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
function v(e, t) {
|
|
53
|
-
const r = f.get(t);
|
|
54
|
-
if (r)
|
|
55
|
-
return r;
|
|
56
|
-
const n = N(e);
|
|
57
|
-
return f.set(t, n), n;
|
|
58
|
-
}
|
|
59
|
-
function F(e) {
|
|
60
|
-
return {
|
|
61
|
-
code: e.value,
|
|
62
|
-
name: e.name,
|
|
63
|
-
dialCode: e.dialCode,
|
|
64
|
-
flag: e.flag
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function M(e) {
|
|
68
|
-
return {
|
|
69
|
-
code: e,
|
|
70
|
-
name: e,
|
|
71
|
-
dialCode: s(e),
|
|
72
|
-
flag: A(e)
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function A(e) {
|
|
76
|
-
const t = e?.toUpperCase();
|
|
77
|
-
if (!t || t.length !== 2 || /[^A-Z]/.test(t))
|
|
78
|
-
return "";
|
|
79
|
-
const r = 127397;
|
|
80
|
-
return String.fromCodePoint(t.charCodeAt(0) + r, t.charCodeAt(1) + r);
|
|
81
|
-
}
|
|
82
|
-
const S = /[\u0300-\u036f]/g;
|
|
83
|
-
function h(e) {
|
|
84
|
-
return e.normalize("NFD").replace(S, "");
|
|
85
|
-
}
|
|
86
|
-
function U(e) {
|
|
87
|
-
return h(e).toLowerCase();
|
|
88
|
-
}
|
|
89
|
-
function B(e, t) {
|
|
90
|
-
let r = Number.MAX_SAFE_INTEGER;
|
|
91
|
-
for (const n of e) {
|
|
92
|
-
const a = n.indexOf(t);
|
|
93
|
-
a >= 0 && a < r && (r = a);
|
|
94
|
-
}
|
|
95
|
-
return r === Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : r;
|
|
96
|
-
}
|
|
97
|
-
function D(e) {
|
|
98
|
-
switch (e) {
|
|
99
|
-
case "US":
|
|
100
|
-
return ["USA", "United States", "America", "United States of America"];
|
|
101
|
-
case "GB":
|
|
102
|
-
return ["UK", "United Kingdom", "Great Britain", "England"];
|
|
103
|
-
case "AE":
|
|
104
|
-
return ["UAE", "United Arab Emirates"];
|
|
105
|
-
case "KR":
|
|
106
|
-
return ["South Korea", "Korea"];
|
|
107
|
-
case "CN":
|
|
108
|
-
return ["China", "PRC"];
|
|
109
|
-
case "CD":
|
|
110
|
-
return ["DRC", "Congo-Kinshasa"];
|
|
111
|
-
case "CG":
|
|
112
|
-
return ["Congo-Brazzaville"];
|
|
113
|
-
case "BR":
|
|
114
|
-
return ["Brazil"];
|
|
115
|
-
default:
|
|
116
|
-
return [];
|
|
38
|
+
});
|
|
39
|
+
function O(e) {
|
|
40
|
+
return e === "touch" ? t.context.popupRef.current : !0;
|
|
117
41
|
}
|
|
118
|
-
|
|
42
|
+
const E = i === void 0 ? O : i, b = p > 0, F = h("div", s, {
|
|
43
|
+
state: {
|
|
44
|
+
open: o,
|
|
45
|
+
nested: S,
|
|
46
|
+
transitionStatus: C,
|
|
47
|
+
nestedDialogOpen: b
|
|
48
|
+
},
|
|
49
|
+
props: [f, {
|
|
50
|
+
"aria-labelledby": x ?? void 0,
|
|
51
|
+
"aria-describedby": c ?? void 0,
|
|
52
|
+
role: P,
|
|
53
|
+
tabIndex: -1,
|
|
54
|
+
hidden: !a,
|
|
55
|
+
onKeyDown(e) {
|
|
56
|
+
A.has(e.key) && e.stopPropagation();
|
|
57
|
+
},
|
|
58
|
+
style: {
|
|
59
|
+
[N.nestedDialogs]: p
|
|
60
|
+
}
|
|
61
|
+
}, l],
|
|
62
|
+
ref: [r, t.context.popupRef, t.useStateSetter("popupElement")],
|
|
63
|
+
stateAttributesMapping: V
|
|
64
|
+
});
|
|
65
|
+
return /* @__PURE__ */ K.jsx(T, {
|
|
66
|
+
context: m,
|
|
67
|
+
openInteractionType: D,
|
|
68
|
+
disabled: !a,
|
|
69
|
+
closeOnFocusOut: !d,
|
|
70
|
+
initialFocus: E,
|
|
71
|
+
returnFocus: u,
|
|
72
|
+
modal: g !== !1,
|
|
73
|
+
restoreFocus: "popup",
|
|
74
|
+
children: F
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
process.env.NODE_ENV !== "production" && (_.displayName = "DialogPopup");
|
|
119
78
|
export {
|
|
120
|
-
|
|
121
|
-
_ as COUNTRY_DIAL_CODES,
|
|
122
|
-
c as DEFAULT_COUNTRY,
|
|
123
|
-
O as MAX_DIAL_CODE_LENGTH,
|
|
124
|
-
M as buildFallbackSelectedCountry,
|
|
125
|
-
v as getCachedCountryOptions,
|
|
126
|
-
b as getLocaleCacheKey,
|
|
127
|
-
R as getValidCountry,
|
|
128
|
-
U as normalizeSearchValue,
|
|
129
|
-
B as optionMatchIndex,
|
|
130
|
-
L as parseLocaleCacheKey,
|
|
131
|
-
F as toSelectedCountry
|
|
79
|
+
_ as DialogPopup
|
|
132
80
|
};
|
|
133
81
|
//# sourceMappingURL=index36.js.map
|
package/dist/index36.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index36.js","sources":["../src/components/PhoneNumberInput/country-options.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { getCountryCallingCode } from \"libphonenumber-js\"\n\nimport type { CountryOption, PhoneNumberSelectedCountry } from \"./types\"\nimport { getCountryList } from \"./countries\"\n\n\nexport const DEFAULT_COUNTRY: CountryCode = \"US\"\nconst COUNTRY_OPTIONS = getCountryList()\n\nconst COUNTRY_OPTIONS_CACHE = new Map<string, CountryOption[]>()\nconst DEFAULT_LOCALE_CACHE_KEY = \"__default_locale__\"\nexport const COUNTRY_DIAL_CODES = Array.from(\n new Set(COUNTRY_OPTIONS.map((code) => getCountryCallingCode(code)))\n).sort((a, b) => b.length - a.length)\nexport const MAX_DIAL_CODE_LENGTH = COUNTRY_DIAL_CODES.reduce(\n (max, dial) => Math.max(max, dial.length),\n 0\n)\nexport const COMMON_IDD_PREFIXES = [\"0011\", \"001\", \"011\", \"00\", \"810\"]\n\nexport function getValidCountry(input: CountryCode | undefined) {\n if (!input) {\n return DEFAULT_COUNTRY\n }\n\n return COUNTRY_OPTIONS.includes(input) ? input : DEFAULT_COUNTRY\n}\n\nfunction createDisplayNames(locale?: string | string[]) {\n if (typeof Intl === \"undefined\" || typeof Intl.DisplayNames === \"undefined\") {\n return null\n }\n\n try {\n const locales = Array.isArray(locale) ? locale : locale ? [locale] : undefined\n return new Intl.DisplayNames(locales, { type: \"region\" })\n } catch {\n return null\n }\n}\n\nfunction buildCountryOptions(locale?: string | string[]) {\n const displayNames = createDisplayNames(locale)\n const englishDisplayNames = createDisplayNames(\"en\")\n\n return COUNTRY_OPTIONS\n .map((country) => {\n const dialCode = getCountryCallingCode(country)\n const localizedName = displayNames?.of(country) ?? englishDisplayNames?.of(country) ?? country\n const englishName = englishDisplayNames?.of(country) ?? localizedName\n const aliasTokens = getCountryAliases(country)\n const searchableTokens = Array.from(\n new Set(\n [localizedName, englishName, country.toUpperCase(), country.toLowerCase(), ...aliasTokens].filter(\n Boolean\n )\n )\n ) as string[]\n return {\n value: country,\n name: localizedName,\n dialCode,\n label: `${localizedName} (+${dialCode})`,\n flag: countryCodeToFlagEmoji(country),\n searchableTokens,\n normalizedSearchableTokens: searchableTokens.map((token) => normalizeSearchValue(token)),\n }\n })\n .sort((a, b) => {\n const priorityA = getCountryPriority(a.value)\n const priorityB = getCountryPriority(b.value)\n if (priorityA !== priorityB) {\n return priorityA - priorityB\n }\n return a.name.localeCompare(b.name)\n })\n}\n\nfunction getCountryPriority(code: CountryCode) {\n if (code === \"US\") return 0\n if (code === \"CA\") return 1\n if (getCountryCallingCode(code) === \"1\") return 2\n return 3\n}\n\nexport function getLocaleCacheKey(locale?: string | string[]) {\n if (!locale) {\n return DEFAULT_LOCALE_CACHE_KEY\n }\n if (Array.isArray(locale)) {\n return locale.join(\"\\u0000\")\n }\n return locale\n}\n\nexport function parseLocaleCacheKey(cacheKey: string): string | string[] | undefined {\n if (cacheKey === DEFAULT_LOCALE_CACHE_KEY) {\n return undefined\n }\n\n if (cacheKey.includes(\"\\u0000\")) {\n const parts = cacheKey.split(\"\\u0000\").filter(Boolean)\n if (parts.length === 0) {\n return undefined\n }\n if (parts.length === 1) {\n return parts[0] ?? undefined\n }\n return parts\n }\n\n return cacheKey\n}\n\nexport function getCachedCountryOptions(locale: string | string[] | undefined, cacheKey: string) {\n const cached = COUNTRY_OPTIONS_CACHE.get(cacheKey)\n if (cached) {\n return cached\n }\n const built = buildCountryOptions(locale)\n COUNTRY_OPTIONS_CACHE.set(cacheKey, built)\n return built\n}\n\nexport function toSelectedCountry(option: CountryOption): PhoneNumberSelectedCountry {\n return {\n code: option.value,\n name: option.name,\n dialCode: option.dialCode,\n flag: option.flag,\n }\n}\n\nexport function buildFallbackSelectedCountry(country: CountryCode): PhoneNumberSelectedCountry {\n return {\n code: country,\n name: country,\n dialCode: getCountryCallingCode(country),\n flag: countryCodeToFlagEmoji(country),\n }\n}\n\nfunction countryCodeToFlagEmoji(country: CountryCode) {\n const upper = country?.toUpperCase()\n\n if (!upper || upper.length !== 2 || /[^A-Z]/.test(upper)) {\n return \"\"\n }\n\n const base = 127397\n return String.fromCodePoint(\n upper.charCodeAt(0) + base,\n upper.charCodeAt(1) + base\n )\n}\n\nconst DIACRITICS_REGEX = /[\\u0300-\\u036f]/g\n\nfunction stripDiacritics(value: string) {\n return value.normalize(\"NFD\").replace(DIACRITICS_REGEX, \"\")\n}\n\nexport function normalizeSearchValue(value: string) {\n return stripDiacritics(value).toLowerCase()\n}\n\nexport function optionMatchIndex(tokens: string[], query: string) {\n let best = Number.MAX_SAFE_INTEGER\n for (const token of tokens) {\n const index = token.indexOf(query)\n if (index >= 0 && index < best) {\n best = index\n }\n }\n return best === Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : best\n}\n\nfunction getCountryAliases(code: CountryCode): string[] {\n switch (code) {\n case \"US\":\n return [\"USA\", \"United States\", \"America\", \"United States of America\"]\n case \"GB\":\n return [\"UK\", \"United Kingdom\", \"Great Britain\", \"England\"]\n case \"AE\":\n return [\"UAE\", \"United Arab Emirates\"]\n case \"KR\":\n return [\"South Korea\", \"Korea\"]\n case \"CN\":\n return [\"China\", \"PRC\"]\n case \"CD\":\n return [\"DRC\", \"Congo-Kinshasa\"]\n case \"CG\":\n return [\"Congo-Brazzaville\"]\n case \"BR\":\n return [\"Brazil\"]\n default:\n return []\n }\n}\n\n"],"names":["DEFAULT_COUNTRY","COUNTRY_OPTIONS","getCountryList","COUNTRY_OPTIONS_CACHE","Map","DEFAULT_LOCALE_CACHE_KEY","COUNTRY_DIAL_CODES","Array","from","Set","map","code","getCountryCallingCode","sort","a","b","length","MAX_DIAL_CODE_LENGTH","reduce","max","dial","Math","COMMON_IDD_PREFIXES","getValidCountry","input","includes","createDisplayNames","locale","Intl","DisplayNames","locales","isArray","undefined","type","buildCountryOptions","displayNames","englishDisplayNames","country","dialCode","localizedName","of","englishName","aliasTokens","getCountryAliases","searchableTokens","toUpperCase","toLowerCase","filter","Boolean","value","name","label","flag","countryCodeToFlagEmoji","normalizedSearchableTokens","token","normalizeSearchValue","priorityA","getCountryPriority","priorityB","localeCompare","getLocaleCacheKey","join","parseLocaleCacheKey","cacheKey","parts","split","getCachedCountryOptions","cached","get","built","set","toSelectedCountry","option","buildFallbackSelectedCountry","upper","test","base","String","fromCodePoint","charCodeAt","DIACRITICS_REGEX","stripDiacritics","normalize","replace","optionMatchIndex","tokens","query","best","Number","MAX_SAFE_INTEGER","index","indexOf"],"mappings":";;AAOO,MAAMA,IAA+B,MACtCC,IAAkBC,EAAAA,GAElBC,wBAA4BC,IAAAA,GAC5BC,IAA2B,sBACpBC,IAAqBC,MAAMC,KACtC,IAAIC,IAAIR,EAAgBS,IAAKC,OAASC,EAAsBD,CAAI,CAAC,CAAC,CACpE,EAAEE,KAAK,CAACC,GAAGC,MAAMA,EAAEC,SAASF,EAAEE,MAAM,GACvBC,IAAuBX,EAAmBY,OACrD,CAACC,GAAKC,MAASC,KAAKF,IAAIA,GAAKC,EAAKJ,MAAM,GACxC,CACF,GACaM,IAAsB,CAAC,QAAQ,OAAO,OAAO,MAAM,KAAK;AAE9D,SAASC,EAAgBC,GAAgC;AAC9D,SAAKA,KAIEvB,EAAgBwB,SAASD,CAAK,IAAIA,IAHhCxB;AAIX;AAEA,SAAS0B,EAAmBC,GAA4B;AACtD,MAAI,OAAOC,OAAS,OAAe,OAAOA,KAAKC,eAAiB;AAC9D,WAAO;AAGT,MAAI;AACF,UAAMC,IAAUvB,MAAMwB,QAAQJ,CAAM,IAAIA,IAASA,IAAS,CAACA,CAAM,IAAIK;AACrE,WAAO,IAAIJ,KAAKC,aAAaC,GAAS;AAAA,MAAEG,MAAM;AAAA,IAAA,CAAU;AAAA,EAC1D,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,SAASC,EAAoBP,GAA4B;AACvD,QAAMQ,IAAeT,EAAmBC,CAAM,GACxCS,IAAsBV,EAAmB,IAAI;AAEnD,SAAOzB,EACJS,IAAK2B,CAAAA,MAAY;AAChB,UAAMC,IAAW1B,EAAsByB,CAAO,GACxCE,IAAgBJ,GAAcK,GAAGH,CAAO,KAAKD,GAAqBI,GAAGH,CAAO,KAAKA,GACjFI,IAAcL,GAAqBI,GAAGH,CAAO,KAAKE,GAClDG,IAAcC,EAAkBN,CAAO,GACvCO,IAAmBrC,MAAMC,KAC7B,IAAIC,IACF,CAAC8B,GAAeE,GAAaJ,EAAQQ,YAAAA,GAAeR,EAAQS,eAAe,GAAGJ,CAAW,EAAEK,OACzFC,OACF,CACF,CACF;AACA,WAAO;AAAA,MACLC,OAAOZ;AAAAA,MACPa,MAAMX;AAAAA,MACND,UAAAA;AAAAA,MACAa,OAAO,GAAGZ,CAAa,MAAMD,CAAQ;AAAA,MACrCc,MAAMC,EAAuBhB,CAAO;AAAA,MACpCO,kBAAAA;AAAAA,MACAU,4BAA4BV,EAAiBlC,IAAK6C,CAAAA,MAAUC,EAAqBD,CAAK,CAAC;AAAA,IAAA;AAAA,EAE3F,CAAC,EACA1C,KAAK,CAACC,GAAGC,MAAM;AACd,UAAM0C,IAAYC,EAAmB5C,EAAEmC,KAAK,GACtCU,IAAYD,EAAmB3C,EAAEkC,KAAK;AAC5C,WAAIQ,MAAcE,IACTF,IAAYE,IAEd7C,EAAEoC,KAAKU,cAAc7C,EAAEmC,IAAI;AAAA,EACpC,CAAC;AACL;AAEA,SAASQ,EAAmB/C,GAAmB;AAC7C,SAAIA,MAAS,OAAa,IACtBA,MAAS,OAAa,IACtBC,EAAsBD,CAAI,MAAM,MAAY,IACzC;AACT;AAEO,SAASkD,EAAkBlC,GAA4B;AAC5D,SAAKA,IAGDpB,MAAMwB,QAAQJ,CAAM,IACfA,EAAOmC,KAAK,IAAQ,IAEtBnC,IALEtB;AAMX;AAEO,SAAS0D,EAAoBC,GAAiD;AACnF,MAAIA,MAAa3D,GAIjB;AAAA,QAAI2D,EAASvC,SAAS,IAAQ,GAAG;AAC/B,YAAMwC,IAAQD,EAASE,MAAM,IAAQ,EAAEnB,OAAOC,OAAO;AACrD,aAAIiB,EAAMjD,WAAW,IACnB,SAEEiD,EAAMjD,WAAW,IACZiD,EAAM,CAAC,KAAKjC,SAEdiC;AAAAA,IACT;AAEA,WAAOD;AAAAA;AACT;AAEO,SAASG,EAAwBxC,GAAuCqC,GAAkB;AAC/F,QAAMI,IAASjE,EAAsBkE,IAAIL,CAAQ;AACjD,MAAII;AACF,WAAOA;AAET,QAAME,IAAQpC,EAAoBP,CAAM;AACxCxB,SAAAA,EAAsBoE,IAAIP,GAAUM,CAAK,GAClCA;AACT;AAEO,SAASE,EAAkBC,GAAmD;AACnF,SAAO;AAAA,IACL9D,MAAM8D,EAAOxB;AAAAA,IACbC,MAAMuB,EAAOvB;AAAAA,IACbZ,UAAUmC,EAAOnC;AAAAA,IACjBc,MAAMqB,EAAOrB;AAAAA,EAAAA;AAEjB;AAEO,SAASsB,EAA6BrC,GAAkD;AAC7F,SAAO;AAAA,IACL1B,MAAM0B;AAAAA,IACNa,MAAMb;AAAAA,IACNC,UAAU1B,EAAsByB,CAAO;AAAA,IACvCe,MAAMC,EAAuBhB,CAAO;AAAA,EAAA;AAExC;AAEA,SAASgB,EAAuBhB,GAAsB;AACpD,QAAMsC,IAAQtC,GAASQ,YAAAA;AAEvB,MAAI,CAAC8B,KAASA,EAAM3D,WAAW,KAAK,SAAS4D,KAAKD,CAAK;AACrD,WAAO;AAGT,QAAME,IAAO;AACb,SAAOC,OAAOC,cACZJ,EAAMK,WAAW,CAAC,IAAIH,GACtBF,EAAMK,WAAW,CAAC,IAAIH,CACxB;AACF;AAEA,MAAMI,IAAmB;AAEzB,SAASC,EAAgBjC,GAAe;AACtC,SAAOA,EAAMkC,UAAU,KAAK,EAAEC,QAAQH,GAAkB,EAAE;AAC5D;AAEO,SAASzB,EAAqBP,GAAe;AAClD,SAAOiC,EAAgBjC,CAAK,EAAEH,YAAAA;AAChC;AAEO,SAASuC,EAAiBC,GAAkBC,GAAe;AAChE,MAAIC,IAAOC,OAAOC;AAClB,aAAWnC,KAAS+B,GAAQ;AAC1B,UAAMK,IAAQpC,EAAMqC,QAAQL,CAAK;AACjC,IAAII,KAAS,KAAKA,IAAQH,MACxBA,IAAOG;AAAAA,EAEX;AACA,SAAOH,MAASC,OAAOC,mBAAmBD,OAAOC,mBAAmBF;AACtE;AAEA,SAAS7C,EAAkBhC,GAA6B;AACtD,UAAQA,GAAAA;AAAAA,IACN,KAAK;AACH,aAAO,CAAC,OAAO,iBAAiB,WAAW,0BAA0B;AAAA,IACvE,KAAK;AACH,aAAO,CAAC,MAAM,kBAAkB,iBAAiB,SAAS;AAAA,IAC5D,KAAK;AACH,aAAO,CAAC,OAAO,sBAAsB;AAAA,IACvC,KAAK;AACH,aAAO,CAAC,eAAe,OAAO;AAAA,IAChC,KAAK;AACH,aAAO,CAAC,SAAS,KAAK;AAAA,IACxB,KAAK;AACH,aAAO,CAAC,OAAO,gBAAgB;AAAA,IACjC,KAAK;AACH,aAAO,CAAC,mBAAmB;AAAA,IAC7B,KAAK;AACH,aAAO,CAAC,QAAQ;AAAA,IAClB;AACE,aAAO,CAAA;AAAA,EAAA;AAEb;"}
|
|
1
|
+
{"version":3,"file":"index36.js","sources":["../../../node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { FloatingFocusManager } from \"../../floating-ui-react/index.js\";\nimport { useDialogRootContext } from \"../root/DialogRootContext.js\";\nimport { useRenderElement } from \"../../internals/useRenderElement.js\";\nimport { popupStateMapping as baseMapping } from \"../../utils/popupStateMapping.js\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.js\";\nimport { DialogPopupCssVars } from \"./DialogPopupCssVars.js\";\nimport { DialogPopupDataAttributes } from \"./DialogPopupDataAttributes.js\";\nimport { useDialogPortalContext } from \"../portal/DialogPortalContext.js\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.js\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst stateAttributesMapping = {\n ...baseMapping,\n ...transitionStatusMapping,\n nestedDialogOpen(value) {\n return value ? {\n [DialogPopupDataAttributes.nestedDialogOpen]: ''\n } : null;\n }\n};\n\n/**\n * A container for the dialog contents.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogPopup = /*#__PURE__*/React.forwardRef(function DialogPopup(componentProps, forwardedRef) {\n const {\n className,\n finalFocus,\n initialFocus,\n render,\n style,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const descriptionElementId = store.useState('descriptionElementId');\n const disablePointerDismissal = store.useState('disablePointerDismissal');\n const floatingRootContext = store.useState('floatingRootContext');\n const rootPopupProps = store.useState('popupProps');\n const modal = store.useState('modal');\n const mounted = store.useState('mounted');\n const nested = store.useState('nested');\n const nestedOpenDialogCount = store.useState('nestedOpenDialogCount');\n const open = store.useState('open');\n const openMethod = store.useState('openMethod');\n const titleElementId = store.useState('titleElementId');\n const transitionStatus = store.useState('transitionStatus');\n const role = store.useState('role');\n useDialogPortalContext();\n useOpenChangeComplete({\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (open) {\n store.context.onOpenChangeComplete?.(true);\n }\n }\n });\n\n // Default initial focus logic:\n // If opened by touch, focus the popup element to prevent the virtual keyboard from opening\n // (this is required for Android specifically as iOS handles this automatically).\n function defaultInitialFocus(interactionType) {\n if (interactionType === 'touch') {\n return store.context.popupRef.current;\n }\n return true;\n }\n const resolvedInitialFocus = initialFocus === undefined ? defaultInitialFocus : initialFocus;\n const nestedDialogOpen = nestedOpenDialogCount > 0;\n const state = {\n open,\n nested,\n transitionStatus,\n nestedDialogOpen\n };\n const element = useRenderElement('div', componentProps, {\n state,\n props: [rootPopupProps, {\n 'aria-labelledby': titleElementId ?? undefined,\n 'aria-describedby': descriptionElementId ?? undefined,\n role,\n tabIndex: -1,\n hidden: !mounted,\n onKeyDown(event) {\n if (COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n },\n style: {\n [DialogPopupCssVars.nestedDialogs]: nestedOpenDialogCount\n }\n }, elementProps],\n ref: [forwardedRef, store.context.popupRef, store.useStateSetter('popupElement')],\n stateAttributesMapping\n });\n return /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingRootContext,\n openInteractionType: openMethod,\n disabled: !mounted,\n closeOnFocusOut: !disablePointerDismissal,\n initialFocus: resolvedInitialFocus,\n returnFocus: finalFocus,\n modal: modal !== false,\n restoreFocus: \"popup\",\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogPopup.displayName = \"DialogPopup\";"],"names":["stateAttributesMapping","baseMapping","transitionStatusMapping","value","DialogPopupDataAttributes","DialogPopup","React","componentProps","forwardedRef","className","finalFocus","initialFocus","render","style","elementProps","store","useDialogRootContext","descriptionElementId","disablePointerDismissal","floatingRootContext","rootPopupProps","modal","mounted","nested","nestedOpenDialogCount","open","openMethod","titleElementId","transitionStatus","role","useDialogPortalContext","useOpenChangeComplete","defaultInitialFocus","interactionType","resolvedInitialFocus","nestedDialogOpen","element","useRenderElement","event","COMPOSITE_KEYS","DialogPopupCssVars","_jsx","FloatingFocusManager"],"mappings":";;;;;;;;;;;;AAcA,MAAMA,IAAyB;AAAA,EAC7B,GAAGC;AAAAA,EACH,GAAGC;AAAA,EACH,iBAAiBC,GAAO;AACtB,WAAOA,IAAQ;AAAA,MACb,CAACC,EAA0B,gBAAgB,GAAG;AAAA,IACpD,IAAQ;AAAA,EACN;AACF,GAQaC,IAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMP,GACE;AAAA,IACJ,OAAAQ;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAuBF,EAAM,SAAS,sBAAsB,GAC5DG,IAA0BH,EAAM,SAAS,yBAAyB,GAClEI,IAAsBJ,EAAM,SAAS,qBAAqB,GAC1DK,IAAiBL,EAAM,SAAS,YAAY,GAC5CM,IAAQN,EAAM,SAAS,OAAO,GAC9BO,IAAUP,EAAM,SAAS,SAAS,GAClCQ,IAASR,EAAM,SAAS,QAAQ,GAChCS,IAAwBT,EAAM,SAAS,uBAAuB,GAC9DU,IAAOV,EAAM,SAAS,MAAM,GAC5BW,IAAaX,EAAM,SAAS,YAAY,GACxCY,IAAiBZ,EAAM,SAAS,gBAAgB,GAChDa,IAAmBb,EAAM,SAAS,kBAAkB,GACpDc,IAAOd,EAAM,SAAS,MAAM;AAClC,EAAAe,EAAsB,GACtBC,EAAsB;AAAA,IACpB,MAAAN;AAAA,IACA,KAAKV,EAAM,QAAQ;AAAA,IACnB,aAAa;AACX,MAAIU,KACFV,EAAM,QAAQ,uBAAuB,EAAI;AAAA,IAE7C;AAAA,EACJ,CAAG;AAKD,WAASiB,EAAoBC,GAAiB;AAC5C,WAAIA,MAAoB,UACflB,EAAM,QAAQ,SAAS,UAEzB;AAAA,EACT;AACA,QAAMmB,IAAuBvB,MAAiB,SAAYqB,IAAsBrB,GAC1EwB,IAAmBX,IAAwB,GAO3CY,IAAUC,EAAiB,OAAO9B,GAAgB;AAAA,IACtD,OAPY;AAAA,MACZ,MAAAkB;AAAA,MACA,QAAAF;AAAA,MACA,kBAAAK;AAAA,MACA,kBAAAO;AAAA,IACJ;AAAA,IAGI,OAAO,CAACf,GAAgB;AAAA,MACtB,mBAAmBO,KAAkB;AAAA,MACrC,oBAAoBV,KAAwB;AAAA,MAC5C,MAAAY;AAAA,MACA,UAAU;AAAA,MACV,QAAQ,CAACP;AAAA,MACT,UAAUgB,GAAO;AACf,QAAIC,EAAe,IAAID,EAAM,GAAG,KAC9BA,EAAM,gBAAe;AAAA,MAEzB;AAAA,MACA,OAAO;AAAA,QACL,CAACE,EAAmB,aAAa,GAAGhB;AAAA,MAC5C;AAAA,IACA,GAAOV,CAAY;AAAA,IACf,KAAK,CAACN,GAAcO,EAAM,QAAQ,UAAUA,EAAM,eAAe,cAAc,CAAC;AAAA,IAChF,wBAAAf;AAAA,EACJ,CAAG;AACD,SAAoByC,gBAAAA,EAAAA,IAAKC,GAAsB;AAAA,IAC7C,SAASvB;AAAA,IACT,qBAAqBO;AAAA,IACrB,UAAU,CAACJ;AAAA,IACX,iBAAiB,CAACJ;AAAA,IAClB,cAAcgB;AAAA,IACd,aAAaxB;AAAA,IACb,OAAOW,MAAU;AAAA,IACjB,cAAc;AAAA,IACd,UAAUe;AAAA,EACd,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAc/B,EAAY,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index360.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index360.js","sources":["../../../node_modules/@base-ui/utils/esm/mergeCleanups.js"],"sourcesContent":["/**\n * Combines multiple cleanup functions into a single cleanup function.\n */\nexport function mergeCleanups(...cleanups) {\n return () => {\n for (let i = 0; i < cleanups.length; i += 1) {\n const cleanup = cleanups[i];\n if (cleanup) {\n cleanup();\n }\n }\n };\n}"],"names":["mergeCleanups","cleanups","i","cleanup"],"mappings":"AAGO,SAASA,KAAiBC,GAAU;AACzC,SAAO,MAAM;AACX,aAASC,IAAI,GAAGA,IAAID,EAAS,QAAQC,KAAK,GAAG;AAC3C,YAAMC,IAAUF,EAASC,CAAC;AAC1B,MAAIC,KACFA,EAAO;AAAA,IAEX;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
|
package/dist/index361.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useIsoLayoutEffect as u } from "./index248.js";
|
|
3
|
+
import { isSafari as i } from "./index287.js";
|
|
4
|
+
import { visuallyHidden as f } from "./index251.js";
|
|
5
|
+
import { j as n } from "./index30.js";
|
|
6
|
+
const d = /* @__PURE__ */ r.forwardRef(function(t, s) {
|
|
7
|
+
const [o, e] = r.useState();
|
|
8
|
+
u(() => {
|
|
9
|
+
i && e("button");
|
|
10
|
+
}, []);
|
|
11
|
+
const a = {
|
|
12
|
+
tabIndex: 0,
|
|
13
|
+
// Role is only for VoiceOver
|
|
14
|
+
role: o
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ n.jsx("span", {
|
|
17
|
+
...t,
|
|
18
|
+
ref: s,
|
|
19
|
+
style: f,
|
|
20
|
+
"aria-hidden": o ? void 0 : !0,
|
|
21
|
+
...a,
|
|
22
|
+
"data-base-ui-focus-guard": ""
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "FocusGuard");
|
|
26
|
+
export {
|
|
27
|
+
d as FocusGuard
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index361.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index361.js","sources":["../../../node_modules/@base-ui/react/esm/utils/FocusGuard.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { isSafari } from '@base-ui/utils/detectBrowser';\nimport { visuallyHidden } from '@base-ui/utils/visuallyHidden';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n const [role, setRole] = React.useState();\n useIsoLayoutEffect(() => {\n if (isSafari) {\n // Unlike other screen readers such as NVDA and JAWS, the virtual cursor\n // on VoiceOver does trigger the onFocus event, so we can use the focus\n // trap element. On Safari, only buttons trigger the onFocus event.\n setRole('button');\n }\n }, []);\n const restProps = {\n tabIndex: 0,\n // Role is only for VoiceOver\n role\n };\n return /*#__PURE__*/_jsx(\"span\", {\n ...props,\n ref: ref,\n style: visuallyHidden,\n \"aria-hidden\": role ? undefined : true,\n ...restProps,\n \"data-base-ui-focus-guard\": \"\"\n });\n});\nif (process.env.NODE_ENV !== \"production\") FocusGuard.displayName = \"FocusGuard\";"],"names":["FocusGuard","React","props","ref","role","setRole","useIsoLayoutEffect","isSafari","restProps","_jsx","visuallyHidden"],"mappings":";;;;;AAWY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAOC,GAAK;AACtF,QAAM,CAACC,GAAMC,CAAO,IAAIJ,EAAM,SAAQ;AACtC,EAAAK,EAAmB,MAAM;AACvB,IAAIC,KAIFF,EAAQ,QAAQ;AAAA,EAEpB,GAAG,CAAA,CAAE;AACL,QAAMG,IAAY;AAAA,IAChB,UAAU;AAAA;AAAA,IAEV,MAAAJ;AAAA,EACJ;AACE,SAAoBK,gBAAAA,EAAAA,IAAK,QAAQ;AAAA,IAC/B,GAAGP;AAAA,IACH,KAAKC;AAAA,IACL,OAAOO;AAAA,IACP,eAAeN,IAAO,SAAY;AAAA,IAClC,GAAGI;AAAA,IACH,4BAA4B;AAAA,EAChC,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAW,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index362.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isAndroid as r, isJSDOM as o } from "./index287.js";
|
|
2
|
+
function n(i) {
|
|
3
|
+
i.preventDefault(), i.stopPropagation();
|
|
4
|
+
}
|
|
5
|
+
function e(i) {
|
|
6
|
+
return "nativeEvent" in i;
|
|
7
|
+
}
|
|
8
|
+
function p(i) {
|
|
9
|
+
return i.pointerType === "" && i.isTrusted ? !0 : r && i.pointerType ? i.type === "click" && i.buttons === 1 : i.detail === 0 && !i.pointerType;
|
|
10
|
+
}
|
|
11
|
+
function c(i) {
|
|
12
|
+
return o ? !1 : !r && i.width === 0 && i.height === 0 || r && i.width === 1 && i.height === 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
13
|
+
i.width < 1 && i.height < 1 && i.pressure === 0 && i.detail === 0 && i.pointerType === "touch";
|
|
14
|
+
}
|
|
15
|
+
function l(i, t) {
|
|
16
|
+
return ["mouse", "pen"].includes(i);
|
|
17
|
+
}
|
|
18
|
+
function a(i) {
|
|
19
|
+
const t = i.type;
|
|
20
|
+
return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
a as isClickLikeEvent,
|
|
24
|
+
l as isMouseLikePointerType,
|
|
25
|
+
e as isReactEvent,
|
|
26
|
+
p as isVirtualClick,
|
|
27
|
+
c as isVirtualPointerEvent,
|
|
28
|
+
n as stopEvent
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index362.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index362.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js"],"sourcesContent":["import { isAndroid, isJSDOM } from '@base-ui/utils/detectBrowser';\nexport function stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nexport function isReactEvent(event) {\n return 'nativeEvent' in event;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/main/packages/@react-aria/utils/src/isVirtualEvent.ts\nexport function isVirtualClick(event) {\n if (event.pointerType === '' && event.isTrusted) {\n return true;\n }\n if (isAndroid && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nexport function isVirtualPointerEvent(event) {\n if (isJSDOM) {\n return false;\n }\n return !isAndroid && event.width === 0 && event.height === 0 || isAndroid && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nexport function isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nexport function isClickLikeEvent(event) {\n const type = event.type;\n return type === 'click' || type === 'mousedown' || type === 'keydown' || type === 'keyup';\n}"],"names":["stopEvent","event","isReactEvent","isVirtualClick","isAndroid","isVirtualPointerEvent","isJSDOM","isMouseLikePointerType","pointerType","strict","isClickLikeEvent","type"],"mappings":";AACO,SAASA,EAAUC,GAAO;AAC/B,EAAAA,EAAM,eAAc,GACpBA,EAAM,gBAAe;AACvB;AACO,SAASC,EAAaD,GAAO;AAClC,SAAO,iBAAiBA;AAC1B;AAGO,SAASE,EAAeF,GAAO;AACpC,SAAIA,EAAM,gBAAgB,MAAMA,EAAM,YAC7B,KAELG,KAAaH,EAAM,cACdA,EAAM,SAAS,WAAWA,EAAM,YAAY,IAE9CA,EAAM,WAAW,KAAK,CAACA,EAAM;AACtC;AACO,SAASI,EAAsBJ,GAAO;AAC3C,SAAIK,IACK,KAEF,CAACF,KAAaH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKG,KAAaH,EAAM,UAAU,KAAKA,EAAM,WAAW,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAAA,EAE5LA,EAAM,QAAQ,KAAKA,EAAM,SAAS,KAAKA,EAAM,aAAa,KAAKA,EAAM,WAAW,KAAKA,EAAM,gBAAgB;AAC7G;AACO,SAASM,EAAuBC,GAAaC,GAAQ;AAO1D,SAJe,CAAC,SAAS,KAAK,EAIhB,SAASD,CAAW;AACpC;AACO,SAASE,EAAiBT,GAAO;AACtC,QAAMU,IAAOV,EAAM;AACnB,SAAOU,MAAS,WAAWA,MAAS,eAAeA,MAAS,aAAaA,MAAS;AACpF;","x_google_ignoreList":[0]}
|