@rpcbase/ui 0.182.0 → 0.184.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/helpers/index.d.ts +1 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/useScrollPagination.d.ts +23 -0
- package/dist/helpers/useScrollPagination.d.ts.map +1 -0
- package/dist/helpers/useScrollPagination.test.d.ts +2 -0
- package/dist/helpers/useScrollPagination.test.d.ts.map +1 -0
- package/dist/index.js +62 -60
- package/dist/index.js.map +1 -1
- package/dist/index10.js +24 -69
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +4 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -4
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -6
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +4 -145
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +6 -39
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +24 -4
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +6 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -13
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +6 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -7
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +38 -552
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +4 -31
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +5 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +4 -10
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +8 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +5 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +4 -101
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +6 -53
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +145 -72
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +39 -9
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +571 -115
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +4 -20
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +7 -16
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +13 -23
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +13 -6
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +7 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +31 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +11 -35
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +11 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +8 -6
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +13 -4
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +137 -76
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +101 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +20 -5
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +53 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +72 -3
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +9 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +21 -24
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +16 -7
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +23 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -3
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +74 -730
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +23 -3
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +35 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +16 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +6 -4
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -3
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -3
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +4 -46
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -46
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +6 -205
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +870 -22
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +24 -22
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +7 -24
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +6 -399
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +5 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +3 -68
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -363
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +3 -261
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -60
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +3 -46
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +20 -17
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +3 -169
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +3 -109
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -24
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +69 -8
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +363 -5
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +261 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +52 -458
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +42 -181
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +156 -94
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +18 -387
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +102 -255
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +24 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -43
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +5 -605
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +4 -58
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +466 -8
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +178 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +105 -17
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +260 -14
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +431 -693
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +9 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +41 -4
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -6
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +24 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +29 -8
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -18
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +67 -5
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +180 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +46 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +58 -10
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +661 -634
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +8 -14
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +66 -14
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +19 -5
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +16 -6
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -7
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +5 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -9
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +7 -5
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +17 -9
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.js +455 -198
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +5 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +13 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +9 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +14 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +14 -10
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +5 -11
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +6 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +6 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +6 -7
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +263 -5
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +9 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +9 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +5 -55
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +4 -16
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +11 -7
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +10 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +10 -10
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -35
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +11 -21
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +11 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -9
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +7 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +6 -4
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +5 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +6 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +7 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +54 -14
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +27 -268
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +16 -12
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -29
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -11
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +9 -24
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +21 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -24
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -29
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +10 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -13
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +5 -154
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +251 -166
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +15 -29
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +18 -47
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +15 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +12 -44
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +28 -94
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +11 -85
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +23 -103
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -52
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +13 -11
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +176 -14
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +149 -32
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +30 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -116
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +46 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +44 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +91 -32
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +85 -19
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +105 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +52 -8
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +15 -2763
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +10 -18
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +36 -27
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +8 -16
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +3 -67
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +9 -180
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +110 -40
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +17 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +15 -18
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +36 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +21 -5
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +2761 -35
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +9 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +19 -23
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +26 -110
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -525
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +3 -128
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +22 -132
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +111 -19
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +15 -5
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +524 -5
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +128 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +132 -14
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +19 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +12 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +19 -544
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +65 -43
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +9 -18
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +14 -7
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +66 -9
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +33 -121
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +64 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -8
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -12
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +4 -10
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +15 -13
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -64
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +6 -69
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +5 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +545 -13
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +45 -64
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +3 -232
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +17 -4
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +7 -56
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -68
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +8 -31
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +9 -9
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +13 -153
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -108
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +13 -3
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +3 -22
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +22 -15
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +123 -22
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +4 -28
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +56 -13
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +68 -7
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +30 -22
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +9 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +151 -26
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +107 -4
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +26 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +16 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +31 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +230 -49
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +8 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +19 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +32 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +16 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +10 -0
- package/dist/index324.js.map +1 -0
- package/dist/index33.js +20 -2637
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +47 -390
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +2604 -196
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +390 -18
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +222 -131
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +18 -183
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +118 -65
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +17 -15
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +216 -93
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +90 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +115 -840
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +6 -66
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +843 -7
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +57 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +7 -23
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +2 -234
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +11 -6
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +18 -33
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +34 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +7 -26
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -8
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +22 -10
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +233 -3
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +201 -44
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +3 -50
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +6 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +47 -14
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +22 -129
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +50 -10
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +172 -25
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +7 -216
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +15 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +128 -41
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +9 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +216 -3
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -6
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +34 -28
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +46 -49
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +8 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +50 -2
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +31 -29
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +4 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +6 -205
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -54
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -8
- 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 -52
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +11 -4
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -4
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +7 -15
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +25 -222
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +5 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -8
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +2 -17
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +53 -4
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +46 -4
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +205 -5
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +22 -6
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +24 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +399 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +46 -6
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +177 -23
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +604 -23
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +52 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +3 -3
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -6
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +15 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +5 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +7 -5
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +16 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -8
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index73.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index73.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","FILTERED_COUNTRIES","getCountries","code","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAI,IAAID,CAAkB,GAEzCE,IAAqBC,EAAA,EAAe,OAAO,CAACC,MAAS,CAACH,EAAa,IAAIG,CAAI,CAAC;AAE3E,SAASC,IAAgC;AAC9C,SAAOH;AACT;"}
|
|
1
|
+
{"version":3,"file":"index73.js","sources":["../../../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAO,GACxBC,IAAoB,oBAAI,QAAO,GAC/BC,IAAY,CAAA,GACZC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN,EAAWK,CAAM;AACvC,WAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC3CA,KAEX,QAAQ,MAAM,eAAeD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GAClF;AAAA,EACX,CAAC,EACI,OAAO,SAAUI,GAAG;AAAE,WAAO,EAAQA;AAAA,EAAI,CAAC;AACnD,GASIC,IAAyB,SAAUd,GAAgBe,GAAYC,GAAYC,GAAkB;AAC7F,MAAIP,IAAUF,EAAeO,GAAY,MAAM,QAAQf,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC;AAC1G,EAAKI,EAAUY,CAAU,MACrBZ,EAAUY,CAAU,IAAI,oBAAI,QAAO;AAEvC,MAAIE,IAAgBd,EAAUY,CAAU,GACpCG,IAAc,CAAA,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AIX,GAAMqB,CAAW,GAC9BD,MACIxB,EAAkB,IAAII,CAAI,KAC3BA,EAAK,gBAAgBU,CAAgB,GAEzCd,EAAkB,OAAOI,CAAI,IAE5BqB,KACDrB,EAAK,gBAAgBS,CAAU;AAAA,IAEvC,CAAC,GACDX,KACKA,MAEDH,IAAa,oBAAI,QAAO,GACxBA,IAAa,oBAAI,QAAO,GACxBC,IAAoB,oBAAI,QAAO,GAC/BC,IAAY,CAAA;AAAA,EAEpB;AACJ,GAQW0B,IAAa,SAAU9B,GAAgBe,GAAYC,GAAY;AACtE,EAAIA,MAAe,WAAUA,IAAa;AAC1C,MAAIN,IAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC,GACtF+B,IAAiChC,EAAiBC,CAAc;AACpE,SAAK+B,KAKLrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,qBAAqB,CAAC,CAAC,GACzFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KALvE,WAAY;AAAE,WAAO;AAAA,EAAM;AAM1C;","x_google_ignoreList":[0]}
|
package/dist/index74.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { __assign as m } from "./index183.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { RemoveScroll as e } from "./index184.js";
|
|
4
|
+
import t from "./index185.js";
|
|
5
|
+
var s = r.forwardRef(function(a, o) {
|
|
6
|
+
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
|
7
|
+
});
|
|
8
|
+
s.classNames = e.classNames;
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
s as default
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=index74.js.map
|
package/dist/index74.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index74.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index74.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/Combination.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from './UI';\nimport SideCar from './sidecar';\nvar ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });\nReactRemoveScroll.classNames = RemoveScroll.classNames;\nexport default ReactRemoveScroll;\n"],"names":["ReactRemoveScroll","React","props","ref","RemoveScroll","__assign","SideCar"],"mappings":";;;;AAIG,IAACA,IAAoBC,EAAM,WAAW,SAAUC,GAAOC,GAAK;AAAE,SAAQF,EAAM,cAAcG,GAAcC,EAAS,IAAIH,GAAO,EAAE,KAAKC,GAAK,SAASG,EAAO,CAAE,CAAC;AAAI,CAAC;AACnKN,EAAkB,aAAaI,EAAa;","x_google_ignoreList":[0]}
|
package/dist/index75.js
CHANGED
package/dist/index75.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index75.js","sources":[
|
|
1
|
+
{"version":3,"file":"index75.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index76.js
CHANGED
|
@@ -1,55 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { CaptionLabel as p } from "./index78.js";
|
|
3
|
-
import { Chevron as x } from "./index79.js";
|
|
4
|
-
import { Day as n } from "./index80.js";
|
|
5
|
-
import { DayButton as d } from "./index81.js";
|
|
6
|
-
import { Dropdown as u } from "./index82.js";
|
|
7
|
-
import { DropdownNav as k } from "./index83.js";
|
|
8
|
-
import { Footer as D } from "./index84.js";
|
|
9
|
-
import { Month as i } from "./index85.js";
|
|
10
|
-
import { MonthCaption as v } from "./index86.js";
|
|
11
|
-
import { MonthGrid as y } from "./index87.js";
|
|
12
|
-
import { Months as b } from "./index88.js";
|
|
13
|
-
import { MonthsDropdown as l } from "./index89.js";
|
|
14
|
-
import { Nav as F } from "./index90.js";
|
|
15
|
-
import { NextMonthButton as H } from "./index91.js";
|
|
16
|
-
import { Option as O } from "./index92.js";
|
|
17
|
-
import { PreviousMonthButton as R } from "./index93.js";
|
|
18
|
-
import { Root as Y } from "./index94.js";
|
|
19
|
-
import { Select as j } from "./index95.js";
|
|
20
|
-
import { Week as z } from "./index96.js";
|
|
21
|
-
import { Weekday as E } from "./index97.js";
|
|
22
|
-
import { Weekdays as J } from "./index98.js";
|
|
23
|
-
import { WeekNumber as Q } from "./index99.js";
|
|
24
|
-
import { WeekNumberHeader as U } from "./index100.js";
|
|
25
|
-
import { Weeks as X } from "./index101.js";
|
|
26
|
-
import { YearsDropdown as _ } from "./index102.js";
|
|
1
|
+
var e = {};
|
|
27
2
|
export {
|
|
28
|
-
e as
|
|
29
|
-
p as CaptionLabel,
|
|
30
|
-
x as Chevron,
|
|
31
|
-
n as Day,
|
|
32
|
-
d as DayButton,
|
|
33
|
-
u as Dropdown,
|
|
34
|
-
k as DropdownNav,
|
|
35
|
-
D as Footer,
|
|
36
|
-
i as Month,
|
|
37
|
-
v as MonthCaption,
|
|
38
|
-
y as MonthGrid,
|
|
39
|
-
b as Months,
|
|
40
|
-
l as MonthsDropdown,
|
|
41
|
-
F as Nav,
|
|
42
|
-
H as NextMonthButton,
|
|
43
|
-
O as Option,
|
|
44
|
-
R as PreviousMonthButton,
|
|
45
|
-
Y as Root,
|
|
46
|
-
j as Select,
|
|
47
|
-
z as Week,
|
|
48
|
-
Q as WeekNumber,
|
|
49
|
-
U as WeekNumberHeader,
|
|
50
|
-
E as Weekday,
|
|
51
|
-
J as Weekdays,
|
|
52
|
-
X as Weeks,
|
|
53
|
-
_ as YearsDropdown
|
|
3
|
+
e as __exports
|
|
54
4
|
};
|
|
55
5
|
//# sourceMappingURL=index76.js.map
|
package/dist/index76.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index77.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { useCallbackRef as s } from "./index68.js";
|
|
3
|
+
function p(n, e = globalThis?.document) {
|
|
4
|
+
const t = s(n);
|
|
5
|
+
r.useEffect(() => {
|
|
6
|
+
const o = (a) => {
|
|
7
|
+
a.key === "Escape" && t(a);
|
|
8
|
+
};
|
|
9
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
10
|
+
}, [t, e]);
|
|
4
11
|
}
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
p as useEscapeKeydown
|
|
7
14
|
};
|
|
8
15
|
//# sourceMappingURL=index77.js.map
|
package/dist/index77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.js","sources":["../../../node_modules/react-
|
|
1
|
+
{"version":3,"file":"index77.js","sources":["../../../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,YAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAEzB;AACA,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC5F,GAAG,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
|
package/dist/index78.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { getCountries as E } from "./index174.js";
|
|
2
|
+
const n = ["IM", "GG", "JE"], o = new Set(n), e = E().filter((t) => !o.has(t));
|
|
3
|
+
function s() {
|
|
4
|
+
return e;
|
|
4
5
|
}
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
s as getCountryList
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=index78.js.map
|
package/dist/index78.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.js","sources":["
|
|
1
|
+
{"version":3,"file":"index78.js","sources":["../src/components/PhoneNumberInput/countries.ts"],"sourcesContent":["import { getCountries } from \"libphonenumber-js\"\nimport type { CountryCode } from \"libphonenumber-js\"\n\n\nconst EXCLUDED_COUNTRIES: CountryCode[] = [\"IM\", \"GG\", \"JE\"]\nconst EXCLUDED_SET = new Set(EXCLUDED_COUNTRIES)\n\nconst FILTERED_COUNTRIES = getCountries().filter((code) => !EXCLUDED_SET.has(code))\n\nexport function getCountryList(): CountryCode[] {\n return FILTERED_COUNTRIES\n}\n"],"names":["EXCLUDED_COUNTRIES","EXCLUDED_SET","Set","FILTERED_COUNTRIES","getCountries","filter","code","has","getCountryList"],"mappings":";AAIA,MAAMA,IAAoC,CAAC,MAAM,MAAM,IAAI,GACrDC,IAAe,IAAIC,IAAIF,CAAkB,GAEzCG,IAAqBC,IAAeC,OAAQC,OAAS,CAACL,EAAaM,IAAID,CAAI,CAAC;AAE3E,SAASE,IAAgC;AAC9C,SAAOL;AACT;"}
|
package/dist/index79.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return (
|
|
5
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
6
|
-
e.createElement(
|
|
7
|
-
"svg",
|
|
8
|
-
{ className: l, width: o, height: o, viewBox: "0 0 24 24" },
|
|
9
|
-
t === "up" && e.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
10
|
-
t === "down" && e.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
11
|
-
t === "left" && e.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
12
|
-
t === "right" && e.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
13
|
-
)
|
|
14
|
-
);
|
|
1
|
+
import e from "./index164.js";
|
|
2
|
+
import o from "./index165.js";
|
|
3
|
+
function t(r) {
|
|
4
|
+
return o.call(this, r, e);
|
|
15
5
|
}
|
|
6
|
+
t.prototype = Object.create(o.prototype, {});
|
|
7
|
+
t.prototype.constructor = t;
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
t as AsYouType
|
|
18
10
|
};
|
|
19
11
|
//# sourceMappingURL=index79.js.map
|
package/dist/index79.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index79.js","sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"names":["AsYouType","country","_AsYouType","metadata"],"mappings":";;AAMO,SAASA,EAAUC,GAAS;AAClC,SAAOC,EAAW,KAAK,MAAMD,GAASE,CAAQ;AAC/C;AAEAH,EAAU,YAAY,OAAO,OAAOE,EAAW,WAAW,CAAA,CAAE;AAC5DF,EAAU,UAAU,cAAcA;","x_google_ignoreList":[0]}
|
package/dist/index8.js
CHANGED
|
@@ -1,230 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"route",
|
|
10
|
-
"premise",
|
|
11
|
-
"subpremise",
|
|
12
|
-
"intersection",
|
|
13
|
-
"sublocality",
|
|
14
|
-
"sublocality_level_1",
|
|
15
|
-
"sublocality_level_2",
|
|
16
|
-
"sublocality_level_3",
|
|
17
|
-
"sublocality_level_4",
|
|
18
|
-
"sublocality_level_5",
|
|
19
|
-
"administrative_area_level_1",
|
|
20
|
-
"administrative_area_level_2",
|
|
21
|
-
"administrative_area_level_3",
|
|
22
|
-
"administrative_area_level_4",
|
|
23
|
-
"administrative_area_level_5",
|
|
24
|
-
"administrative_area_level_6",
|
|
25
|
-
"administrative_area_level_7",
|
|
26
|
-
"postal_code",
|
|
27
|
-
"locality",
|
|
28
|
-
"country",
|
|
29
|
-
"geocode",
|
|
30
|
-
"plus_code",
|
|
31
|
-
"political",
|
|
32
|
-
"neighborhood",
|
|
33
|
-
"colloquial_area",
|
|
34
|
-
"lodging",
|
|
35
|
-
"train_station",
|
|
36
|
-
"transit_station"
|
|
37
|
-
]), U = (r) => (r.text?.text ?? "").replace(/, France$/, "").trim(), ne = ({ prediction: r }) => {
|
|
38
|
-
const t = U(r), l = r.text?.text ?? "", s = r.text?.matches ?? [], a = t.length < l.length;
|
|
39
|
-
if (s.length === 0)
|
|
40
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: t });
|
|
41
|
-
const d = [];
|
|
42
|
-
let u = 0;
|
|
43
|
-
return s.forEach((b, O) => {
|
|
44
|
-
if (a && b.startOffset >= t.length)
|
|
1
|
+
import { c as l } from "./index28.js";
|
|
2
|
+
import { useRef as w, useEffect as f } from "react";
|
|
3
|
+
const a = /* @__PURE__ */ new Set([" ", "Spacebar", "PageUp", "PageDown", "Home", "End", "ArrowDown", "ArrowUp"]);
|
|
4
|
+
function p(u) {
|
|
5
|
+
const e = l.c(3), t = u === void 0 ? 1e3 : u, o = w(!1), r = w(null);
|
|
6
|
+
let i, s;
|
|
7
|
+
return e[0] !== t ? (i = () => {
|
|
8
|
+
if (typeof window > "u")
|
|
45
9
|
return;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const w = t.substring(_, p);
|
|
49
|
-
d.push(/* @__PURE__ */ o.jsx("strong", { children: w }, O));
|
|
50
|
-
}
|
|
51
|
-
u = Math.max(u, p);
|
|
52
|
-
}), u < t.length && d.push(t.substring(u)), d.length === 0 ? /* @__PURE__ */ o.jsx(o.Fragment, { children: t }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: d });
|
|
53
|
-
}, se = (r, t) => !r.types || r.types.length === 0 || !t || t.size === 0 ? !0 : r.types.some((l) => t.has(l)), oe = (r, t) => r.placeId || `${r.text?.text ?? "prediction"}-${t}`, le = (r) => {
|
|
54
|
-
const t = /* @__PURE__ */ new Map();
|
|
55
|
-
return r.forEach((l) => {
|
|
56
|
-
const s = l.placeId;
|
|
57
|
-
s && (t.has(s) || t.set(s, l));
|
|
58
|
-
}), Array.from(t.values());
|
|
59
|
-
}, ie = (r, t) => r.filter((l) => se(l, t)), ce = (r) => r.sort((t, l) => {
|
|
60
|
-
const s = t.distanceMeters ?? Number.POSITIVE_INFINITY, a = l.distanceMeters ?? Number.POSITIVE_INFINITY;
|
|
61
|
-
return s - a;
|
|
62
|
-
}), ae = (r, t) => ce(ie(le(r), t)), ue = (r, t) => U(r).toLowerCase() === t.trim().toLowerCase(), xe = ({
|
|
63
|
-
id: r,
|
|
64
|
-
label: t,
|
|
65
|
-
placeholder: l,
|
|
66
|
-
value: s,
|
|
67
|
-
onValueChange: a,
|
|
68
|
-
disabled: d,
|
|
69
|
-
name: u,
|
|
70
|
-
className: b,
|
|
71
|
-
autofillShimName: O,
|
|
72
|
-
googleMapsApiKey: _,
|
|
73
|
-
locationRestriction: p,
|
|
74
|
-
allowedTypes: w
|
|
75
|
-
}) => {
|
|
76
|
-
const [f, F] = k(s ?? ""), [c, h] = k([]), [E, i] = k(!1), [g, M] = k(-1), L = x(null), P = x(null), R = x(!1), S = x(!1), m = x(null), B = x([]), y = x("smooth"), $ = Z("places", _), q = V(() => {
|
|
77
|
-
if (!w)
|
|
78
|
-
return re;
|
|
79
|
-
const e = /* @__PURE__ */ new Set();
|
|
80
|
-
for (const n of w)
|
|
81
|
-
e.add(n);
|
|
82
|
-
return e;
|
|
83
|
-
}, [w]);
|
|
84
|
-
N(() => {
|
|
85
|
-
F(s ?? ""), S.current = !1;
|
|
86
|
-
}, [s]), N(() => {
|
|
87
|
-
if (R.current) {
|
|
88
|
-
R.current = !1;
|
|
10
|
+
if (t <= 0) {
|
|
11
|
+
o.current = !1;
|
|
89
12
|
return;
|
|
90
13
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (!$) return;
|
|
100
|
-
const { AutocompleteSuggestion: I, AutocompleteSessionToken: j } = $;
|
|
101
|
-
if (!I || !j) {
|
|
102
|
-
console.error("AddressAutocompleteInput: missing AutocompleteSuggestion or AutocompleteSessionToken exports"), h([]), i(!1);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
m.current || (m.current = new j());
|
|
106
|
-
const A = {
|
|
107
|
-
input: f,
|
|
108
|
-
sessionToken: m.current ?? void 0,
|
|
109
|
-
includedRegionCodes: ["fr"]
|
|
110
|
-
};
|
|
111
|
-
p && (A.locationRestriction = p), I.fetchAutocompleteSuggestions(A).then((T) => {
|
|
112
|
-
if (!e)
|
|
113
|
-
return;
|
|
114
|
-
const J = T.suggestions.map((C) => C.placePrediction).filter((C) => !!C), D = ae(J, q), z = D[0], Q = z && D.length === 1 && ue(z, f);
|
|
115
|
-
if (!S.current && Q) {
|
|
116
|
-
h(D), i(!1);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
D.length > 0 ? (h(D), S.current && i(!0), M(-1)) : (h([]), i(!1));
|
|
120
|
-
}).catch((T) => {
|
|
121
|
-
e && (console.error("AddressAutocompleteInput: suggestion fetch failed", T), h([]), i(!1));
|
|
122
|
-
});
|
|
123
|
-
}, 300);
|
|
124
|
-
return () => {
|
|
125
|
-
e = !1, clearTimeout(n);
|
|
126
|
-
};
|
|
127
|
-
}, [f, $, a, s, p, q]), N(() => {
|
|
128
|
-
const e = (n) => {
|
|
129
|
-
L.current && !L.current.contains(n.target) && P.current && !P.current.contains(n.target) && i(!1);
|
|
14
|
+
const n = () => {
|
|
15
|
+
o.current = !0, r.current && clearTimeout(r.current), r.current = setTimeout(() => {
|
|
16
|
+
o.current = !1;
|
|
17
|
+
}, t);
|
|
18
|
+
}, c = (d) => {
|
|
19
|
+
a.has(d.key) && n();
|
|
130
20
|
};
|
|
131
|
-
return
|
|
132
|
-
|
|
21
|
+
return window.addEventListener("touchmove", n, {
|
|
22
|
+
passive: !0
|
|
23
|
+
}), window.addEventListener("wheel", n, {
|
|
24
|
+
passive: !0
|
|
25
|
+
}), window.addEventListener("keydown", c), () => {
|
|
26
|
+
window.removeEventListener("touchmove", n), window.removeEventListener("wheel", n), window.removeEventListener("keydown", c), r.current && clearTimeout(r.current);
|
|
133
27
|
};
|
|
134
|
-
}, []);
|
|
135
|
-
|
|
136
|
-
R.current = !0;
|
|
137
|
-
const n = U(e);
|
|
138
|
-
F(n), a(n), h([]), i(!1), m.current = null;
|
|
139
|
-
}, K = (e) => {
|
|
140
|
-
S.current = !0, F(e.target.value);
|
|
141
|
-
}, W = (e) => {
|
|
142
|
-
if (!E || c.length === 0) {
|
|
143
|
-
e.key === "Enter" && (e.preventDefault(), a(f), i(!1), m.current = null);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
e.key === "ArrowDown" ? (y.current = e.repeat ? "auto" : "smooth", e.preventDefault(), M((n) => c.length === 0 ? -1 : n < 0 ? 0 : (n + 1) % c.length)) : e.key === "ArrowUp" ? (y.current = e.repeat ? "auto" : "smooth", e.preventDefault(), M((n) => c.length === 0 ? -1 : n <= 0 ? c.length - 1 : (n - 1) % c.length)) : e.key === "Enter" ? (e.preventDefault(), g > -1 && c[g] ? H(c[g]) : (a(f), i(!1), m.current = null)) : e.key === "Escape" && i(!1);
|
|
147
|
-
}, G = () => {
|
|
148
|
-
i(!1), s !== f && a(f), m.current = null;
|
|
149
|
-
}, Y = O ?? (u ? `${u}_shim` : void 0);
|
|
150
|
-
return N(() => {
|
|
151
|
-
if (!E || g < 0) {
|
|
152
|
-
y.current = "smooth";
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
const e = B.current[g], n = P.current;
|
|
156
|
-
if (!e || !n) {
|
|
157
|
-
y.current = "smooth";
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
const v = y.current;
|
|
161
|
-
y.current = "smooth";
|
|
162
|
-
const I = e.offsetTop, j = I + e.offsetHeight, A = n.scrollTop, T = A + n.clientHeight;
|
|
163
|
-
I >= A && j <= T || e.scrollIntoView({
|
|
164
|
-
block: "nearest",
|
|
165
|
-
behavior: v
|
|
166
|
-
});
|
|
167
|
-
}, [g, E]), B.current.length = c.length, /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
168
|
-
Y && /* @__PURE__ */ o.jsx(
|
|
169
|
-
"input",
|
|
170
|
-
{
|
|
171
|
-
tabIndex: -1,
|
|
172
|
-
autoComplete: "street-address",
|
|
173
|
-
name: Y,
|
|
174
|
-
"aria-hidden": "true",
|
|
175
|
-
className: "pointer-events-none absolute left-0 top-0 h-0 w-0 opacity-0"
|
|
176
|
-
}
|
|
177
|
-
),
|
|
178
|
-
/* @__PURE__ */ o.jsx("label", { htmlFor: r, className: "text-left block text-sm font-medium text-gray-700 mb-1 cursor-pointer", children: t }),
|
|
179
|
-
/* @__PURE__ */ o.jsx(
|
|
180
|
-
ee,
|
|
181
|
-
{
|
|
182
|
-
ref: L,
|
|
183
|
-
id: r,
|
|
184
|
-
type: "text",
|
|
185
|
-
placeholder: l,
|
|
186
|
-
name: u ?? `${r}_input`,
|
|
187
|
-
value: f,
|
|
188
|
-
onChange: K,
|
|
189
|
-
onKeyDown: W,
|
|
190
|
-
onFocus: () => {
|
|
191
|
-
c.length > 0 && f && i(!0);
|
|
192
|
-
},
|
|
193
|
-
onBlur: G,
|
|
194
|
-
disabled: d,
|
|
195
|
-
autoComplete: "off",
|
|
196
|
-
className: te("w-full", b)
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
E && c.length > 0 && /* @__PURE__ */ o.jsx(
|
|
200
|
-
"ul",
|
|
201
|
-
{
|
|
202
|
-
ref: P,
|
|
203
|
-
className: "absolute z-10 mt-1 w-full max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white text-left shadow-lg",
|
|
204
|
-
role: "listbox",
|
|
205
|
-
children: c.map((e, n) => /* @__PURE__ */ o.jsx(
|
|
206
|
-
"li",
|
|
207
|
-
{
|
|
208
|
-
ref: (v) => {
|
|
209
|
-
B.current[n] = v;
|
|
210
|
-
},
|
|
211
|
-
className: X(
|
|
212
|
-
"cursor-pointer px-3 py-2 text-sm text-gray-700 hover:bg-gray-100",
|
|
213
|
-
{ "bg-gray-100": g === n }
|
|
214
|
-
),
|
|
215
|
-
role: "option",
|
|
216
|
-
onMouseDown: (v) => {
|
|
217
|
-
v.preventDefault(), H(e);
|
|
218
|
-
},
|
|
219
|
-
children: /* @__PURE__ */ o.jsx(ne, { prediction: e })
|
|
220
|
-
},
|
|
221
|
-
oe(e, n)
|
|
222
|
-
))
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
] });
|
|
226
|
-
};
|
|
28
|
+
}, s = [t], e[0] = t, e[1] = i, e[2] = s) : (i = e[1], s = e[2]), f(i, s), o;
|
|
29
|
+
}
|
|
227
30
|
export {
|
|
228
|
-
|
|
31
|
+
p as useUserScrollIntent
|
|
229
32
|
};
|
|
230
33
|
//# sourceMappingURL=index8.js.map
|
package/dist/index8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.js","sources":["../src/components/AddressAutocompleteInput/index.tsx"],"sourcesContent":["import { ReactNode, ChangeEvent, KeyboardEvent, useState, useEffect, useRef, useMemo } from \"react\"\nimport clsx from \"clsx\"\n\nimport { useMapsLibrary } from \"@/helpers/useMapsLibrary\"\nimport { Input } from \"@/components/Input\"\nimport { cn } from \"@/lib/utils\"\n\n\nconst DEFAULT_ALLOWED_TYPES = new Set([\n \"street_address\",\n \"route\",\n \"premise\",\n \"subpremise\",\n \"intersection\",\n \"sublocality\",\n \"sublocality_level_1\",\n \"sublocality_level_2\",\n \"sublocality_level_3\",\n \"sublocality_level_4\",\n \"sublocality_level_5\",\n \"administrative_area_level_1\",\n \"administrative_area_level_2\",\n \"administrative_area_level_3\",\n \"administrative_area_level_4\",\n \"administrative_area_level_5\",\n \"administrative_area_level_6\",\n \"administrative_area_level_7\",\n \"postal_code\",\n \"locality\",\n \"country\",\n \"geocode\",\n \"plus_code\",\n \"political\",\n \"neighborhood\",\n \"colloquial_area\",\n \"lodging\",\n \"train_station\",\n \"transit_station\",\n])\n\nconst getDisplayText = (prediction: google.maps.places.PlacePrediction) => {\n const fullText = prediction.text?.text ?? \"\"\n return fullText.replace(/, France$/, \"\").trim()\n}\n\nconst PredictionItem = ({ prediction }: { prediction: google.maps.places.PlacePrediction }) => {\n const displayText = getDisplayText(prediction)\n const fullText = prediction.text?.text ?? \"\"\n const matches = prediction.text?.matches ?? []\n const wasCountryRemoved = displayText.length < fullText.length\n\n if (matches.length === 0) {\n return <>{displayText}</>\n }\n\n const parts: ReactNode[] = []\n let lastIndex = 0\n\n matches.forEach((substring, index) => {\n if (wasCountryRemoved && substring.startOffset >= displayText.length) {\n return\n }\n\n const startOffset = substring.startOffset\n const endOffset = Math.min(substring.endOffset, displayText.length)\n\n if (startOffset > lastIndex) {\n parts.push(displayText.substring(lastIndex, startOffset))\n }\n\n if (endOffset > startOffset) {\n const matched = displayText.substring(startOffset, endOffset)\n parts.push(<strong key={index}>{matched}</strong>)\n }\n\n lastIndex = Math.max(lastIndex, endOffset)\n })\n\n if (lastIndex < displayText.length) {\n parts.push(displayText.substring(lastIndex))\n }\n\n if (parts.length === 0) {\n return <>{displayText}</>\n }\n\n return <>{parts}</>\n}\n\nconst isAllowedPrediction = (\n prediction: google.maps.places.PlacePrediction,\n allowedTypes: ReadonlySet<string> | null,\n) => {\n if (!prediction.types || prediction.types.length === 0) {\n return true\n }\n\n if (!allowedTypes || allowedTypes.size === 0) {\n return true\n }\n\n return prediction.types.some(type => allowedTypes.has(type))\n}\n\nconst getPredictionId = (prediction: google.maps.places.PlacePrediction, index: number) =>\n prediction.placeId || `${prediction.text?.text ?? \"prediction\"}-${index}`\n\nconst getUniquePredictions = (predictions: google.maps.places.PlacePrediction[]) => {\n const map = new Map<string, google.maps.places.PlacePrediction>()\n\n predictions.forEach(prediction => {\n const key = prediction.placeId\n\n if (!key) {\n return\n }\n\n if (!map.has(key)) {\n map.set(key, prediction)\n }\n })\n\n return Array.from(map.values())\n}\n\nconst getFilteredPredictions = (\n predictions: google.maps.places.PlacePrediction[],\n allowedTypes: ReadonlySet<string> | null,\n) => predictions.filter(prediction => isAllowedPrediction(prediction, allowedTypes))\n\nconst sortPredictions = (predictions: google.maps.places.PlacePrediction[]) =>\n predictions.sort((a, b) => {\n const aDistance = a.distanceMeters ?? Number.POSITIVE_INFINITY\n const bDistance = b.distanceMeters ?? Number.POSITIVE_INFINITY\n\n return aDistance - bDistance\n })\n\nconst buildDisplayPredictions = (\n predictions: google.maps.places.PlacePrediction[],\n allowedTypes: ReadonlySet<string> | null,\n) => sortPredictions(getFilteredPredictions(getUniquePredictions(predictions), allowedTypes))\n\nconst isExactMatch = (prediction: google.maps.places.PlacePrediction, value: string) => {\n const display = getDisplayText(prediction)\n return display.toLowerCase() === value.trim().toLowerCase()\n}\n\nexport const AddressAutocompleteInput = ({\n id,\n label,\n placeholder,\n value,\n onValueChange,\n disabled,\n name,\n className,\n autofillShimName,\n googleMapsApiKey,\n locationRestriction,\n allowedTypes,\n}: {\n id: string\n label: string\n placeholder: string\n value: string | undefined\n onValueChange: (value: string) => void\n disabled?: boolean\n name?: string\n className?: string\n autofillShimName?: string\n googleMapsApiKey?: string\n locationRestriction?: google.maps.LatLngBoundsLiteral | google.maps.LatLngBounds\n allowedTypes?: Iterable<string>\n}) => {\n const [inputValue, setInputValue] = useState(value ?? \"\")\n const [predictions, setPredictions] = useState<google.maps.places.PlacePrediction[]>([])\n const [isDropdownOpen, setIsDropdownOpen] = useState(false)\n const [highlightedIndex, setHighlightedIndex] = useState(-1)\n\n const inputRef = useRef<HTMLInputElement>(null)\n const dropdownRef = useRef<HTMLUListElement>(null)\n const isSelecting = useRef(false)\n const hasUserTyped = useRef(false)\n const sessionTokenRef = useRef<google.maps.places.AutocompleteSessionToken | null>(null)\n const optionRefs = useRef<(HTMLLIElement | null)[]>([])\n const scrollBehaviorRef = useRef<ScrollBehavior>(\"smooth\")\n const placesLibrary = useMapsLibrary(\"places\", googleMapsApiKey)\n const allowedTypesSet = useMemo(() => {\n if (!allowedTypes) {\n return DEFAULT_ALLOWED_TYPES\n }\n\n const newSet = new Set<string>()\n for (const type of allowedTypes) {\n newSet.add(type)\n }\n return newSet\n }, [allowedTypes])\n\n useEffect(() => {\n setInputValue(value ?? \"\")\n hasUserTyped.current = false\n }, [value])\n\n useEffect(() => {\n if (isSelecting.current) {\n isSelecting.current = false\n return\n }\n\n let isActive = true\n\n const handler = setTimeout(() => {\n if (!isActive) {\n return\n }\n\n const trimmed = inputValue.trim()\n\n if (trimmed === \"\") {\n setPredictions([])\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n if (value !== \"\") {\n onValueChange(\"\")\n }\n return\n }\n\n if (!placesLibrary) return\n\n const { AutocompleteSuggestion, AutocompleteSessionToken } = placesLibrary\n\n if (!AutocompleteSuggestion || !AutocompleteSessionToken) {\n console.error(\"AddressAutocompleteInput: missing AutocompleteSuggestion or AutocompleteSessionToken exports\")\n setPredictions([])\n setIsDropdownOpen(false)\n return\n }\n\n if (!sessionTokenRef.current) {\n sessionTokenRef.current = new AutocompleteSessionToken()\n }\n\n const request: google.maps.places.AutocompleteRequest = {\n input: inputValue,\n sessionToken: sessionTokenRef.current ?? undefined,\n includedRegionCodes: [\"fr\"],\n }\n if (locationRestriction) {\n request.locationRestriction = locationRestriction\n }\n\n AutocompleteSuggestion.fetchAutocompleteSuggestions(request)\n .then((response: { suggestions: google.maps.places.AutocompleteSuggestion[] }) => {\n if (!isActive) {\n return\n }\n\n const placePredictions = response.suggestions\n .map((suggestion: google.maps.places.AutocompleteSuggestion) => suggestion.placePrediction)\n .filter((prediction): prediction is google.maps.places.PlacePrediction => Boolean(prediction))\n\n const combinedPredictions = buildDisplayPredictions(placePredictions, allowedTypesSet)\n\n const singlePrediction = combinedPredictions[0]\n const hasExactMatch =\n singlePrediction && combinedPredictions.length === 1 && isExactMatch(singlePrediction, inputValue)\n\n if (!hasUserTyped.current && hasExactMatch) {\n setPredictions(combinedPredictions)\n setIsDropdownOpen(false)\n return\n }\n\n if (combinedPredictions.length > 0) {\n setPredictions(combinedPredictions)\n if (hasUserTyped.current) {\n setIsDropdownOpen(true)\n }\n setHighlightedIndex(-1)\n } else {\n setPredictions([])\n setIsDropdownOpen(false)\n }\n })\n .catch((error: unknown) => {\n if (!isActive) {\n return\n }\n console.error(\"AddressAutocompleteInput: suggestion fetch failed\", error)\n setPredictions([])\n setIsDropdownOpen(false)\n })\n }, 300)\n\n return () => {\n isActive = false\n clearTimeout(handler)\n }\n }, [inputValue, placesLibrary, onValueChange, value, locationRestriction, allowedTypesSet])\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n inputRef.current &&\n !inputRef.current.contains(event.target as Node) &&\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsDropdownOpen(false)\n }\n }\n document.addEventListener(\"mousedown\", handleClickOutside)\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside)\n }\n }, [])\n\n const handleSelectPrediction = (prediction: google.maps.places.PlacePrediction) => {\n isSelecting.current = true\n const newAddress = getDisplayText(prediction)\n setInputValue(newAddress)\n onValueChange(newAddress)\n setPredictions([])\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n hasUserTyped.current = true\n setInputValue(e.target.value)\n }\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n if (!isDropdownOpen || predictions.length === 0) {\n if (e.key === \"Enter\") {\n e.preventDefault()\n onValueChange(inputValue)\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n return\n }\n\n if (e.key === \"ArrowDown\") {\n scrollBehaviorRef.current = e.repeat ? \"auto\" : \"smooth\"\n e.preventDefault()\n setHighlightedIndex(prev => {\n if (predictions.length === 0) {\n return -1\n }\n return prev < 0 ? 0 : (prev + 1) % predictions.length\n })\n } else if (e.key === \"ArrowUp\") {\n scrollBehaviorRef.current = e.repeat ? \"auto\" : \"smooth\"\n e.preventDefault()\n setHighlightedIndex(prev => {\n if (predictions.length === 0) {\n return -1\n }\n if (prev <= 0) {\n return predictions.length - 1\n }\n return (prev - 1) % predictions.length\n })\n } else if (e.key === \"Enter\") {\n e.preventDefault()\n if (highlightedIndex > -1 && predictions[highlightedIndex]) {\n handleSelectPrediction(predictions[highlightedIndex])\n } else {\n onValueChange(inputValue)\n setIsDropdownOpen(false)\n sessionTokenRef.current = null\n }\n } else if (e.key === \"Escape\") {\n setIsDropdownOpen(false)\n }\n }\n\n const handleBlur = () => {\n setIsDropdownOpen(false)\n if (value !== inputValue) {\n onValueChange(inputValue)\n }\n sessionTokenRef.current = null\n }\n\n const shimName = autofillShimName ?? (name ? `${name}_shim` : undefined)\n\n useEffect(() => {\n if (!isDropdownOpen || highlightedIndex < 0) {\n scrollBehaviorRef.current = \"smooth\"\n return\n }\n\n const item = optionRefs.current[highlightedIndex]\n const list = dropdownRef.current\n\n if (!item || !list) {\n scrollBehaviorRef.current = \"smooth\"\n return\n }\n\n const behavior = scrollBehaviorRef.current\n scrollBehaviorRef.current = \"smooth\"\n\n const top = item.offsetTop\n const bottom = top + item.offsetHeight\n const viewTop = list.scrollTop\n const viewBottom = viewTop + list.clientHeight\n\n if (top >= viewTop && bottom <= viewBottom) {\n return\n }\n\n item.scrollIntoView({\n block: \"nearest\",\n behavior,\n })\n }, [highlightedIndex, isDropdownOpen])\n\n optionRefs.current.length = predictions.length\n\n return (\n <div className=\"relative\">\n {shimName && (\n <input\n tabIndex={-1}\n autoComplete=\"street-address\"\n name={shimName}\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute left-0 top-0 h-0 w-0 opacity-0\"\n />\n )}\n <label htmlFor={id} className=\"text-left block text-sm font-medium text-gray-700 mb-1 cursor-pointer\">\n {label}\n </label>\n <Input\n ref={inputRef}\n id={id}\n type=\"text\"\n placeholder={placeholder}\n name={name ?? `${id}_input`}\n value={inputValue}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n onFocus={() => {\n if (predictions.length > 0 && inputValue) {\n setIsDropdownOpen(true)\n }\n }}\n onBlur={handleBlur}\n disabled={disabled}\n autoComplete=\"off\"\n className={cn(\"w-full\", className)}\n />\n {isDropdownOpen && predictions.length > 0 && (\n <ul\n ref={dropdownRef}\n className=\"absolute z-10 mt-1 w-full max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white text-left shadow-lg\"\n role=\"listbox\"\n >\n {predictions.map((prediction, index) => (\n <li\n key={getPredictionId(prediction, index)}\n ref={node => {\n optionRefs.current[index] = node\n }}\n className={clsx(\n \"cursor-pointer px-3 py-2 text-sm text-gray-700 hover:bg-gray-100\",\n { \"bg-gray-100\": highlightedIndex === index },\n )}\n role=\"option\"\n onMouseDown={e => {\n e.preventDefault()\n handleSelectPrediction(prediction)\n }}\n >\n <PredictionItem prediction={prediction} />\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n}\n"],"names":["DEFAULT_ALLOWED_TYPES","getDisplayText","prediction","PredictionItem","displayText","fullText","matches","wasCountryRemoved","parts","lastIndex","substring","index","startOffset","endOffset","matched","jsx","isAllowedPrediction","allowedTypes","type","getPredictionId","getUniquePredictions","predictions","map","key","getFilteredPredictions","sortPredictions","a","b","aDistance","bDistance","buildDisplayPredictions","isExactMatch","value","AddressAutocompleteInput","id","label","placeholder","onValueChange","disabled","name","className","autofillShimName","googleMapsApiKey","locationRestriction","inputValue","setInputValue","useState","setPredictions","isDropdownOpen","setIsDropdownOpen","highlightedIndex","setHighlightedIndex","inputRef","useRef","dropdownRef","isSelecting","hasUserTyped","sessionTokenRef","optionRefs","scrollBehaviorRef","placesLibrary","useMapsLibrary","allowedTypesSet","useMemo","newSet","useEffect","isActive","handler","AutocompleteSuggestion","AutocompleteSessionToken","request","response","placePredictions","suggestion","combinedPredictions","singlePrediction","hasExactMatch","error","handleClickOutside","event","handleSelectPrediction","newAddress","handleInputChange","handleKeyDown","prev","handleBlur","shimName","item","list","behavior","top","bottom","viewTop","viewBottom","jsxs","Input","cn","node","clsx","e"],"mappings":";;;;;;AAQA,MAAMA,yBAA4B,IAAI;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC,GAEKC,IAAiB,CAACC,OACLA,EAAW,MAAM,QAAQ,IAC1B,QAAQ,aAAa,EAAE,EAAE,KAAA,GAGrCC,KAAiB,CAAC,EAAE,YAAAD,QAAqE;AAC7F,QAAME,IAAcH,EAAeC,CAAU,GACvCG,IAAWH,EAAW,MAAM,QAAQ,IACpCI,IAAUJ,EAAW,MAAM,WAAW,CAAA,GACtCK,IAAoBH,EAAY,SAASC,EAAS;AAExD,MAAIC,EAAQ,WAAW;AACrB,+CAAU,UAAAF,EAAA,CAAY;AAGxB,QAAMI,IAAqB,CAAA;AAC3B,MAAIC,IAAY;AA0BhB,SAxBAH,EAAQ,QAAQ,CAACI,GAAWC,MAAU;AACpC,QAAIJ,KAAqBG,EAAU,eAAeN,EAAY;AAC5D;AAGF,UAAMQ,IAAcF,EAAU,aACxBG,IAAY,KAAK,IAAIH,EAAU,WAAWN,EAAY,MAAM;AAMlE,QAJIQ,IAAcH,KAChBD,EAAM,KAAKJ,EAAY,UAAUK,GAAWG,CAAW,CAAC,GAGtDC,IAAYD,GAAa;AAC3B,YAAME,IAAUV,EAAY,UAAUQ,GAAaC,CAAS;AAC5D,MAAAL,EAAM,KAAKO,gBAAAA,EAAAA,IAAC,UAAA,EAAoB,UAAAD,EAAA,GAARH,CAAg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AAuB9E,CAAU;AAAA,YACnC;AAAA,YAEA,UAAAa,gBAAAA,EAAAA,IAACZ,MAAe,YAAAD,EAAA,CAAwB;AAAA,UAAA;AAAA,UAdnCiB,GAAgBjB,GAAYS,CAAK;AAAA,QAAA,CAgBzC;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GAEJ;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"index8.js","sources":["../src/helpers/useUserScrollIntent.ts"],"sourcesContent":["import { useEffect, useRef } from \"react\"\n\n\nconst KEYBOARD_SCROLL_KEYS = new Set([\n \" \",\n \"Spacebar\",\n \"PageUp\",\n \"PageDown\",\n \"Home\",\n \"End\",\n \"ArrowDown\",\n \"ArrowUp\",\n])\n\nexport function useUserScrollIntent(timeoutMs = 1000) {\n const isUserScrollRef = useRef(false)\n const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null)\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n if (timeoutMs <= 0) {\n isUserScrollRef.current = false\n return\n }\n\n const markUserScroll = () => {\n isUserScrollRef.current = true\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n timeoutRef.current = setTimeout(() => {\n isUserScrollRef.current = false\n }, timeoutMs)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (KEYBOARD_SCROLL_KEYS.has(event.key)) {\n markUserScroll()\n }\n }\n\n window.addEventListener(\"touchmove\", markUserScroll, { passive: true })\n window.addEventListener(\"wheel\", markUserScroll, { passive: true })\n window.addEventListener(\"keydown\", handleKeyDown)\n\n return () => {\n window.removeEventListener(\"touchmove\", markUserScroll)\n window.removeEventListener(\"wheel\", markUserScroll)\n window.removeEventListener(\"keydown\", handleKeyDown)\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current)\n }\n }\n }, [timeoutMs])\n\n return isUserScrollRef\n}\n\n"],"names":["KEYBOARD_SCROLL_KEYS","Set","useUserScrollIntent","t0","$","_c","timeoutMs","undefined","isUserScrollRef","useRef","timeoutRef","t1","t2","window","current","markUserScroll","clearTimeout","setTimeout","handleKeyDown","event","has","key","addEventListener","passive","removeEventListener","useEffect"],"mappings":";;AAGA,MAAMA,IAAuB,oBAAIC,IAAI,CACnC,KACA,YACA,UACA,YACA,QACA,OACA,aACA,SAAS,CACV;AAEM,SAAAC,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAA6BC,IAAAH,MAAAI,SAAA,MAAAJ,GAClCK,IAAwBC,EAAO,EAAK,GACpCC,IAAmBD,EAA6C,IAAI;AAAC,MAAAE,GAAAC;AAAA,SAAAR,SAAAE,KAE3DK,IAAAA,MAAA;AACR,QAAI,OAAOE,SAAW;AAAW;AAIjC,QAAIP,KAAa,GAAC;AAChBE,MAAAA,EAAeM,UAAW;AAAH;AAAA,IAAA;AAIzB,UAAAC,IAAuBA,MAAA;AACrBP,MAAAA,EAAeM,UAAW,IACtBJ,EAAUI,WACZE,aAAaN,EAAUI,OAAQ,GAEjCJ,EAAUI,UAAWG,WAAW,MAAA;AAC9BT,QAAAA,EAAeM,UAAW;AAAA,MAAH,GACtBR,CAAS;AAAA,IAFM,GAKpBY,IAAsBC,CAAAA,MAAA;AACpB,MAAInB,EAAoBoB,IAAKD,EAAKE,GAAI,KACpCN,EAAAA;AAAAA,IACD;AAGHF,kBAAMS,iBAAkB,aAAaP,GAAgB;AAAA,MAAAQ,SAAW;AAAA,IAAA,CAAM,GACtEV,OAAMS,iBAAkB,SAASP,GAAgB;AAAA,MAAAQ,SAAW;AAAA,IAAA,CAAM,GAClEV,OAAMS,iBAAkB,WAAWJ,CAAa,GAEzC,MAAA;AACLL,aAAMW,oBAAqB,aAAaT,CAAc,GACtDF,OAAMW,oBAAqB,SAAST,CAAc,GAClDF,OAAMW,oBAAqB,WAAWN,CAAa,GAC/CR,EAAUI,WACZE,aAAaN,EAAUI,OAAQ;AAAA,IAChC;AAAA,EACF,GACAF,IAAA,CAACN,CAAS,GAACF,OAAAE,GAAAF,OAAAO,GAAAP,OAAAQ,MAAAD,IAAAP,EAAA,CAAA,GAAAQ,IAAAR,EAAA,CAAA,IAtCdqB,EAAUd,GAsCPC,CAAW,GAEPJ;AAAe;"}
|
package/dist/index80.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
1
|
+
import t from "./index162.js";
|
|
2
|
+
import e from "./index163.js";
|
|
3
|
+
function a() {
|
|
4
|
+
return t(e, arguments);
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as validatePhoneNumberLength
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=index80.js.map
|
package/dist/index80.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index80.js","sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"names":["validatePhoneNumberLength","withMetadataArgument","_validatePhoneNumberLength"],"mappings":";;AAGO,SAASA,IAA4B;AAC3C,SAAOC,EAAqBC,GAA4B,SAAS;AAClE;","x_google_ignoreList":[0]}
|
package/dist/index81.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function c(f) {
|
|
3
|
-
const { day: r, modifiers: t, ...u } = f, o = e.useRef(null);
|
|
4
|
-
return e.useEffect(() => {
|
|
5
|
-
t.focused && o.current?.focus();
|
|
6
|
-
}, [t.focused]), e.createElement("button", { ref: o, ...u });
|
|
7
|
-
}
|
|
1
|
+
var r = {};
|
|
8
2
|
export {
|
|
9
|
-
|
|
3
|
+
r as __exports
|
|
10
4
|
};
|
|
11
5
|
//# sourceMappingURL=index81.js.map
|
package/dist/index81.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.js","sources":[
|
|
1
|
+
{"version":3,"file":"index81.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|