@rpcbase/ui 0.208.0 → 0.209.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/index.js +13 -13
- package/dist/index100.js +3 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +9 -3
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -9
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +9 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +18 -12
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +25 -18
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +5 -24
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -3
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +3 -3
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +3 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +3 -3
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +34 -7
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +7 -34
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -7
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +9 -7
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +3 -7
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -3
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +3 -4
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +3 -3
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -3
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +3 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +3 -3
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +7 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +57 -8
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +7 -57
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +19 -6
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +19 -19
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +34 -19
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -34
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +8 -5
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +13 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +10 -14
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +6 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -5
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +5 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -5
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +5 -5
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +21 -7
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +9 -21
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +7 -8
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +5 -6
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +6 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +4 -6
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +4 -4
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +5 -4
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +4 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +5 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +29 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +33 -29
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +15 -32
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +10 -14
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +9 -11
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +16 -9
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +86 -16
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +47 -86
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +16 -46
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +8 -17
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +10 -8
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -9
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +22 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +7 -22
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -7
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -6
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +67 -6
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +17 -67
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +12 -17
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +9 -12
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +20 -9
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +14 -17
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +54 -16
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +9 -54
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +6 -10
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +26 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +26 -26
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -23
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +6 -13
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +23 -6
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +385 -23
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +487 -377
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +122 -487
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -131
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +76 -51
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +897 -75
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +19 -899
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +446 -17
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -448
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +57 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +56 -52
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +55 -56
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -60
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +15 -7
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +143 -15
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -145
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +11 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +104 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +347 -94
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +87 -349
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +304 -73
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +193 -309
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +19 -211
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +27 -18
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +187 -27
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +16 -186
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +62 -18
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +40 -58
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +9 -43
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +25 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +45 -25
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +17 -44
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +3 -18
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +20 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +24 -20
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +66 -23
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +14 -67
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +4 -15
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +51 -4
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -50
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +11 -24
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +3 -13
- package/dist/index234.js +29 -3
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +68 -25
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -71
- package/dist/index237.js +15 -3
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +51 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +114 -50
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +9 -0
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +6 -115
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -6
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +687 -13
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +234 -668
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +670 -222
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +7430 -700
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -7431
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -12
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +459 -5
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +20 -8
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +32 -454
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +18 -36
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -27
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +58 -4
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +7 -58
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +12 -7
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +3 -13
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +17 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +23 -14
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +56 -18
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +41 -23
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +13 -43
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +25 -13
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -24
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +33 -15
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -35
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +9 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +7 -8
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -9
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +50 -53
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +7 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +73 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +161 -63
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +100 -157
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +13 -113
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +78 -12
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +23 -57
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -45
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +16 -13
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +98 -15
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -59
- package/dist/index280.js +50 -93
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +57 -5
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +41 -78
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +100 -58
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +46 -104
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +39 -51
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +141 -42
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +119 -122
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +222 -107
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +159 -173
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +4 -0
- package/dist/index290.js +177 -119
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -298
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +6 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +5 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +4 -4
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +21 -6
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +10 -21
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +126 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +146 -108
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +8 -6
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +55 -151
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +107 -66
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +489 -107
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +63 -492
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -63
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +28 -4
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +65 -27
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +147 -60
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +56 -147
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +553 -53
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +6 -5
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +170 -521
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +327 -206
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +251 -314
- package/dist/index312.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +7 -5
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +7 -4
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +5 -10
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +7 -5
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +8 -7
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +12 -8
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +5 -11
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +6 -6
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +9 -6
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +8 -9
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +5 -8
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +2 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +11 -5
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +6 -10
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +4 -7
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +6 -4
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +5 -5
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +8 -5
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +13 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +5 -12
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +4 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +4 -4
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +13 -6
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +4 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +8 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +68 -9
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +8 -68
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +31 -8
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +10 -31
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +16 -10
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +200 -15
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -201
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +12 -16
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +123 -17
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +18 -122
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +9 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +9 -8
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +11 -7
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +7 -11
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +6 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +4 -9
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +42 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +368 -29
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +37 -379
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +22 -39
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +56 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +7 -57
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -6
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +3 -3
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +3 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +3 -3
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +5 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +3 -3
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +10 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +7 -10
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +6 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +5 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +7 -5
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +48 -8
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +104 -46
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +8 -103
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +3 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +6 -7
- package/dist/index99.js.map +1 -1
- package/package.json +2 -2
- package/dist/index233.js.map +0 -1
- package/dist/index236.js.map +0 -1
- package/dist/index28.js.map +0 -1
- package/dist/index313.js +0 -272
- package/dist/index313.js.map +0 -1
package/dist/index307.js
CHANGED
|
@@ -1,69 +1,156 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
import { composeEventHandlers as e } from "./index17.js";
|
|
3
|
+
import { useComposedRefs as t } from "./index18.js";
|
|
4
|
+
import { Primitive as n } from "./index20.js";
|
|
5
|
+
import { useCallbackRef as r } from "./index21.js";
|
|
6
|
+
import { createContextScope as i } from "./index198.js";
|
|
7
|
+
import { createCollection as a } from "./index200.js";
|
|
8
|
+
import { useDirection as o } from "./index201.js";
|
|
9
|
+
import { useId as s } from "./index205.js";
|
|
10
|
+
import { useControllableState as c } from "./index216.js";
|
|
11
|
+
import * as l from "react";
|
|
12
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
14
|
+
var d = "rovingFocusGroup.onEntryFocus", f = {
|
|
15
|
+
bubbles: !1,
|
|
16
|
+
cancelable: !0
|
|
17
|
+
}, p = "RovingFocusGroup", [m, h, g] = a(p), [_, v] = i(p, [g]), [y, b] = _(p), x = l.forwardRef((e, t) => /* @__PURE__ */ u(m.Provider, {
|
|
18
|
+
scope: e.__scopeRovingFocusGroup,
|
|
19
|
+
children: /* @__PURE__ */ u(m.Slot, {
|
|
20
|
+
scope: e.__scopeRovingFocusGroup,
|
|
21
|
+
children: /* @__PURE__ */ u(S, {
|
|
22
|
+
...e,
|
|
23
|
+
ref: t
|
|
24
|
+
})
|
|
25
|
+
})
|
|
26
|
+
}));
|
|
27
|
+
x.displayName = p;
|
|
28
|
+
var S = l.forwardRef((i, a) => {
|
|
29
|
+
let { __scopeRovingFocusGroup: s, orientation: m, loop: g = !1, dir: _, currentTabStopId: v, defaultCurrentTabStopId: b, onCurrentTabStopIdChange: x, onEntryFocus: S, preventScrollOnEntryFocus: C = !1, ...w } = i, T = l.useRef(null), E = t(a, T), D = o(_), [k, A] = c({
|
|
30
|
+
prop: v,
|
|
31
|
+
defaultProp: b ?? null,
|
|
32
|
+
onChange: x,
|
|
33
|
+
caller: p
|
|
34
|
+
}), [j, M] = l.useState(!1), N = r(S), P = h(s), F = l.useRef(!1), [I, L] = l.useState(0);
|
|
35
|
+
return l.useEffect(() => {
|
|
36
|
+
let e = T.current;
|
|
37
|
+
if (e) return e.addEventListener(d, N), () => e.removeEventListener(d, N);
|
|
38
|
+
}, [N]), /* @__PURE__ */ u(y, {
|
|
39
|
+
scope: s,
|
|
40
|
+
orientation: m,
|
|
41
|
+
dir: D,
|
|
42
|
+
loop: g,
|
|
43
|
+
currentTabStopId: k,
|
|
44
|
+
onItemFocus: l.useCallback((e) => A(e), [A]),
|
|
45
|
+
onItemShiftTab: l.useCallback(() => M(!0), []),
|
|
46
|
+
onFocusableItemAdd: l.useCallback(() => L((e) => e + 1), []),
|
|
47
|
+
onFocusableItemRemove: l.useCallback(() => L((e) => e - 1), []),
|
|
48
|
+
children: /* @__PURE__ */ u(n.div, {
|
|
49
|
+
tabIndex: j || I === 0 ? -1 : 0,
|
|
50
|
+
"data-orientation": m,
|
|
51
|
+
...w,
|
|
52
|
+
ref: E,
|
|
53
|
+
style: {
|
|
54
|
+
outline: "none",
|
|
55
|
+
...i.style
|
|
56
|
+
},
|
|
57
|
+
onMouseDown: e(i.onMouseDown, () => {
|
|
58
|
+
F.current = !0;
|
|
59
|
+
}),
|
|
60
|
+
onFocus: e(i.onFocus, (e) => {
|
|
61
|
+
let t = !F.current;
|
|
62
|
+
if (e.target === e.currentTarget && t && !j) {
|
|
63
|
+
let t = new CustomEvent(d, f);
|
|
64
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
65
|
+
let e = P().filter((e) => e.focusable);
|
|
66
|
+
O([
|
|
67
|
+
e.find((e) => e.active),
|
|
68
|
+
e.find((e) => e.id === k),
|
|
69
|
+
...e
|
|
70
|
+
].filter(Boolean).map((e) => e.ref.current), C);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
F.current = !1;
|
|
74
|
+
}),
|
|
75
|
+
onBlur: e(i.onBlur, () => M(!1))
|
|
76
|
+
})
|
|
25
77
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
78
|
+
}), C = "RovingFocusGroupItem", w = l.forwardRef((t, r) => {
|
|
79
|
+
let { __scopeRovingFocusGroup: i, focusable: a = !0, active: o = !1, tabStopId: c, children: d, ...f } = t, p = s(), g = c || p, _ = b(C, i), v = _.currentTabStopId === g, y = h(i), { onFocusableItemAdd: x, onFocusableItemRemove: S, currentTabStopId: w } = _;
|
|
80
|
+
return l.useEffect(() => {
|
|
81
|
+
if (a) return x(), () => S();
|
|
82
|
+
}, [
|
|
83
|
+
a,
|
|
84
|
+
x,
|
|
85
|
+
S
|
|
86
|
+
]), /* @__PURE__ */ u(m.ItemSlot, {
|
|
87
|
+
scope: i,
|
|
88
|
+
id: g,
|
|
89
|
+
focusable: a,
|
|
90
|
+
active: o,
|
|
91
|
+
children: /* @__PURE__ */ u(n.span, {
|
|
92
|
+
tabIndex: v ? 0 : -1,
|
|
93
|
+
"data-orientation": _.orientation,
|
|
94
|
+
...f,
|
|
95
|
+
ref: r,
|
|
96
|
+
onMouseDown: e(t.onMouseDown, (e) => {
|
|
97
|
+
a ? _.onItemFocus(g) : e.preventDefault();
|
|
98
|
+
}),
|
|
99
|
+
onFocus: e(t.onFocus, () => _.onItemFocus(g)),
|
|
100
|
+
onKeyDown: e(t.onKeyDown, (e) => {
|
|
101
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
102
|
+
_.onItemShiftTab();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (e.target !== e.currentTarget) return;
|
|
106
|
+
let t = D(e, _.orientation, _.dir);
|
|
107
|
+
if (t !== void 0) {
|
|
108
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
let n = y().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
111
|
+
if (t === "last") n.reverse();
|
|
112
|
+
else if (t === "prev" || t === "next") {
|
|
113
|
+
t === "prev" && n.reverse();
|
|
114
|
+
let r = n.indexOf(e.currentTarget);
|
|
115
|
+
n = _.loop ? k(n, r + 1) : n.slice(r + 1);
|
|
116
|
+
}
|
|
117
|
+
setTimeout(() => O(n));
|
|
44
118
|
}
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
119
|
+
}),
|
|
120
|
+
children: typeof d == "function" ? d({
|
|
121
|
+
isCurrentTabStop: v,
|
|
122
|
+
hasTabStop: w != null
|
|
123
|
+
}) : d
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
w.displayName = C;
|
|
128
|
+
var T = {
|
|
129
|
+
ArrowLeft: "prev",
|
|
130
|
+
ArrowUp: "prev",
|
|
131
|
+
ArrowRight: "next",
|
|
132
|
+
ArrowDown: "next",
|
|
133
|
+
PageUp: "first",
|
|
134
|
+
Home: "first",
|
|
135
|
+
PageDown: "last",
|
|
136
|
+
End: "last"
|
|
137
|
+
};
|
|
138
|
+
function E(e, t) {
|
|
139
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
140
|
+
}
|
|
141
|
+
function D(e, t, n) {
|
|
142
|
+
let r = E(e.key, n);
|
|
143
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return T[r];
|
|
58
144
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
145
|
+
function O(e, t = !1) {
|
|
146
|
+
let n = document.activeElement;
|
|
147
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
61
148
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
149
|
+
function k(e, t) {
|
|
150
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
65
151
|
}
|
|
152
|
+
var A = x, j = w;
|
|
66
153
|
//#endregion
|
|
67
|
-
export {
|
|
154
|
+
export { j as Item, A as Root, v as createRovingFocusGroupScope };
|
|
68
155
|
|
|
69
156
|
//# sourceMappingURL=index307.js.map
|
package/dist/index307.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index307.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AASA,SAAS,EAAgB,GAAc,GAAS;AAC9C,QAAOA,EAAM,YAAY,GAAO,MACZ,EAAQ,GAAO,MACb,GACnB,EAAa;;AAIlB,IAAI,KAAY,MAAU;CACxB,IAAM,EAAE,YAAS,gBAAa,GACxB,IAAW,EAAY,EAAQ,EAC/B,IAAQ,OAAO,KAAa,aAAa,EAAS,EAAE,SAAS,EAAS,WAAW,CAAC,GAAG,EAAO,SAAS,KAAK,EAAS,EACnH,IAAM,EAAgB,EAAS,KAAK,EAAc,EAAM,CAAC;AAE/D,QADmB,OAAO,KAAa,cAClB,EAAS,YAAY,EAAO,aAAa,GAAO,EAAE,QAAK,CAAC,GAAG;;AAElF,EAAS,cAAc;AACvB,SAAS,EAAY,GAAS;CAC5B,IAAM,CAAC,GAAM,KAAW,EAAO,UAAU,EACnC,IAAY,EAAO,OAAO,KAAK,EAC/B,IAA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AmB,EAC5D,EAAK,iBAAiB,gBAAgB,EAAmB,QAC5C;AAIX,IAHA,EAAY,aAAa,EAAU,EACnC,EAAK,oBAAoB,kBAAkB,EAAqB,EAChE,EAAK,oBAAoB,mBAAmB,EAAmB,EAC/D,EAAK,oBAAoB,gBAAgB,EAAmB;;QAG9D,GAAK,gBAAgB;IAEtB,CAAC,GAAM,EAAK,CAAC,EACT;EACL,WAAW,CAAC,WAAW,mBAAmB,CAAC,SAAS,EAAM;EAC1D,KAAK,EAAO,aAAa,MAAU;AAEjC,GADA,EAAU,UAAU,IAAQ,iBAAiB,EAAM,GAAG,MACtD,EAAQ,EAAM;KACb,EAAE,CAAC;EACP;;AAEH,SAAS,EAAiB,GAAQ;AAChC,QAAO,GAAQ,iBAAiB;;AAElC,SAAS,EAAc,GAAS;CAC9B,IAAI,IAAS,OAAO,yBAAyB,EAAQ,OAAO,MAAM,EAAE,KAChE,IAAU,KAAU,oBAAoB,KAAU,EAAO;AAS7D,QARI,IACK,EAAQ,OAEjB,IAAS,OAAO,yBAAyB,GAAS,MAAM,EAAE,KAC1D,IAAU,KAAU,oBAAoB,KAAU,EAAO,gBACrD,IACK,EAAQ,MAAM,MAEhB,EAAQ,MAAM,OAAO,EAAQ"}
|
|
1
|
+
{"version":3,"file":"index307.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAcA,IAAI,IAAc,iCACd,IAAgB;CAAE,SAAS;CAAO,YAAY;CAAM,EACpD,IAAa,oBACb,CAAC,GAAY,GAAe,KAAyB,EAAiB,EAAW,EACjF,CAAC,GAA+B,KAA+B,EACjE,GACA,CAAC,EAAsB,CACxB,EACG,CAAC,GAAqB,KAAyB,EAA8B,EAAW,EACxF,IAAmBA,EAAM,YAC1B,GAAO,MACiB,kBAAI,EAAW,UAAU;CAAE,OAAO,E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;AAG5B,SAAS,EAAe,GAAO,GAAa,GAAK;CAC/C,IAAM,IAAM,EAAqB,EAAM,KAAK,EAAI;AAC5C,aAAgB,cAAc,CAAC,aAAa,aAAa,CAAC,SAAS,EAAI,KACvE,QAAgB,gBAAgB,CAAC,WAAW,YAAY,CAAC,SAAS,EAAI,EAC1E,QAAO,EAAwB;;AAEjC,SAAS,EAAW,GAAY,IAAgB,IAAO;CACrD,IAAM,IAA6B,SAAS;AAC5C,MAAK,IAAM,KAAa,EAGtB,KAFI,MAAc,MAClB,EAAU,MAAM,EAAE,kBAAe,CAAC,EAC9B,SAAS,kBAAkB,GAA4B;;AAG/D,SAAS,EAAU,GAAO,GAAY;AACpC,QAAO,EAAM,KAAK,GAAG,MAAU,GAAO,IAAa,KAAS,EAAM,QAAQ;;AAE5E,IAAI,IAAO,GACP,IAAO"}
|
package/dist/index308.js
CHANGED
|
@@ -1,156 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...e,
|
|
23
|
-
ref: t
|
|
24
|
-
})
|
|
25
|
-
})
|
|
26
|
-
}));
|
|
27
|
-
x.displayName = p;
|
|
28
|
-
var S = l.forwardRef((i, a) => {
|
|
29
|
-
let { __scopeRovingFocusGroup: s, orientation: m, loop: g = !1, dir: _, currentTabStopId: v, defaultCurrentTabStopId: b, onCurrentTabStopIdChange: x, onEntryFocus: S, preventScrollOnEntryFocus: C = !1, ...w } = i, T = l.useRef(null), E = t(a, T), D = o(_), [k, A] = c({
|
|
30
|
-
prop: v,
|
|
31
|
-
defaultProp: b ?? null,
|
|
32
|
-
onChange: x,
|
|
33
|
-
caller: p
|
|
34
|
-
}), [j, M] = l.useState(!1), N = r(S), P = h(s), F = l.useRef(!1), [I, L] = l.useState(0);
|
|
35
|
-
return l.useEffect(() => {
|
|
36
|
-
let e = T.current;
|
|
37
|
-
if (e) return e.addEventListener(d, N), () => e.removeEventListener(d, N);
|
|
38
|
-
}, [N]), /* @__PURE__ */ u(y, {
|
|
39
|
-
scope: s,
|
|
40
|
-
orientation: m,
|
|
41
|
-
dir: D,
|
|
42
|
-
loop: g,
|
|
43
|
-
currentTabStopId: k,
|
|
44
|
-
onItemFocus: l.useCallback((e) => A(e), [A]),
|
|
45
|
-
onItemShiftTab: l.useCallback(() => M(!0), []),
|
|
46
|
-
onFocusableItemAdd: l.useCallback(() => L((e) => e + 1), []),
|
|
47
|
-
onFocusableItemRemove: l.useCallback(() => L((e) => e - 1), []),
|
|
48
|
-
children: /* @__PURE__ */ u(n.div, {
|
|
49
|
-
tabIndex: j || I === 0 ? -1 : 0,
|
|
50
|
-
"data-orientation": m,
|
|
51
|
-
...w,
|
|
52
|
-
ref: E,
|
|
53
|
-
style: {
|
|
54
|
-
outline: "none",
|
|
55
|
-
...i.style
|
|
56
|
-
},
|
|
57
|
-
onMouseDown: e(i.onMouseDown, () => {
|
|
58
|
-
F.current = !0;
|
|
59
|
-
}),
|
|
60
|
-
onFocus: e(i.onFocus, (e) => {
|
|
61
|
-
let t = !F.current;
|
|
62
|
-
if (e.target === e.currentTarget && t && !j) {
|
|
63
|
-
let t = new CustomEvent(d, f);
|
|
64
|
-
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
65
|
-
let e = P().filter((e) => e.focusable);
|
|
66
|
-
O([
|
|
67
|
-
e.find((e) => e.active),
|
|
68
|
-
e.find((e) => e.id === k),
|
|
69
|
-
...e
|
|
70
|
-
].filter(Boolean).map((e) => e.ref.current), C);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
F.current = !1;
|
|
74
|
-
}),
|
|
75
|
-
onBlur: e(i.onBlur, () => M(!1))
|
|
76
|
-
})
|
|
1
|
+
import { composeRefs as e } from "./index18.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
6
|
+
function r(e) {
|
|
7
|
+
let r = /* @__PURE__ */ i(e), a = t.forwardRef((e, i) => {
|
|
8
|
+
let { children: a, ...s } = e, c = t.Children.toArray(a), l = c.find(o);
|
|
9
|
+
if (l) {
|
|
10
|
+
let e = l.props.children, a = c.map((n) => n === l ? t.Children.count(e) > 1 ? t.Children.only(null) : t.isValidElement(e) ? e.props.children : null : n);
|
|
11
|
+
return /* @__PURE__ */ n(r, {
|
|
12
|
+
...s,
|
|
13
|
+
ref: i,
|
|
14
|
+
children: t.isValidElement(e) ? t.cloneElement(e, void 0, a) : null
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ n(r, {
|
|
18
|
+
...s,
|
|
19
|
+
ref: i,
|
|
20
|
+
children: a
|
|
21
|
+
});
|
|
77
22
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
a
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
focusable: a,
|
|
90
|
-
active: o,
|
|
91
|
-
children: /* @__PURE__ */ u(n.span, {
|
|
92
|
-
tabIndex: v ? 0 : -1,
|
|
93
|
-
"data-orientation": _.orientation,
|
|
94
|
-
...f,
|
|
95
|
-
ref: r,
|
|
96
|
-
onMouseDown: e(t.onMouseDown, (e) => {
|
|
97
|
-
a ? _.onItemFocus(g) : e.preventDefault();
|
|
98
|
-
}),
|
|
99
|
-
onFocus: e(t.onFocus, () => _.onItemFocus(g)),
|
|
100
|
-
onKeyDown: e(t.onKeyDown, (e) => {
|
|
101
|
-
if (e.key === "Tab" && e.shiftKey) {
|
|
102
|
-
_.onItemShiftTab();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (e.target !== e.currentTarget) return;
|
|
106
|
-
let t = D(e, _.orientation, _.dir);
|
|
107
|
-
if (t !== void 0) {
|
|
108
|
-
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
109
|
-
e.preventDefault();
|
|
110
|
-
let n = y().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
111
|
-
if (t === "last") n.reverse();
|
|
112
|
-
else if (t === "prev" || t === "next") {
|
|
113
|
-
t === "prev" && n.reverse();
|
|
114
|
-
let r = n.indexOf(e.currentTarget);
|
|
115
|
-
n = _.loop ? k(n, r + 1) : n.slice(r + 1);
|
|
116
|
-
}
|
|
117
|
-
setTimeout(() => O(n));
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
children: typeof d == "function" ? d({
|
|
121
|
-
isCurrentTabStop: v,
|
|
122
|
-
hasTabStop: w != null
|
|
123
|
-
}) : d
|
|
124
|
-
})
|
|
23
|
+
return a.displayName = `${e}.Slot`, a;
|
|
24
|
+
}
|
|
25
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
26
|
+
function i(n) {
|
|
27
|
+
let r = t.forwardRef((n, r) => {
|
|
28
|
+
let { children: i, ...a } = n;
|
|
29
|
+
if (t.isValidElement(i)) {
|
|
30
|
+
let n = c(i), o = s(a, i.props);
|
|
31
|
+
return i.type !== t.Fragment && (o.ref = r ? e(r, n) : n), t.cloneElement(i, o);
|
|
32
|
+
}
|
|
33
|
+
return t.Children.count(i) > 1 ? t.Children.only(null) : null;
|
|
125
34
|
});
|
|
126
|
-
}
|
|
127
|
-
w.displayName = C;
|
|
128
|
-
var T = {
|
|
129
|
-
ArrowLeft: "prev",
|
|
130
|
-
ArrowUp: "prev",
|
|
131
|
-
ArrowRight: "next",
|
|
132
|
-
ArrowDown: "next",
|
|
133
|
-
PageUp: "first",
|
|
134
|
-
Home: "first",
|
|
135
|
-
PageDown: "last",
|
|
136
|
-
End: "last"
|
|
137
|
-
};
|
|
138
|
-
function E(e, t) {
|
|
139
|
-
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
35
|
+
return r.displayName = `${n}.SlotClone`, r;
|
|
140
36
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
37
|
+
var a = Symbol("radix.slottable");
|
|
38
|
+
function o(e) {
|
|
39
|
+
return t.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === a;
|
|
144
40
|
}
|
|
145
|
-
function
|
|
146
|
-
let n =
|
|
147
|
-
for (let r
|
|
41
|
+
function s(e, t) {
|
|
42
|
+
let n = { ...t };
|
|
43
|
+
for (let r in t) {
|
|
44
|
+
let i = e[r], a = t[r];
|
|
45
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
46
|
+
let t = a(...e);
|
|
47
|
+
return i(...e), t;
|
|
48
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
49
|
+
...i,
|
|
50
|
+
...a
|
|
51
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
...e,
|
|
55
|
+
...n
|
|
56
|
+
};
|
|
148
57
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
58
|
+
function c(e) {
|
|
59
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
60
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
151
61
|
}
|
|
152
|
-
var A = x, j = w;
|
|
153
62
|
//#endregion
|
|
154
|
-
export {
|
|
63
|
+
export { r as createSlot };
|
|
155
64
|
|
|
156
65
|
//# sourceMappingURL=index308.js.map
|
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAcA,IAAI,IAAc,iCACd,IAAgB;CAAE,SAAS;CAAO,YAAY;CAAM,EACpD,IAAa,oBACb,CAAC,GAAY,GAAe,KAAyB,EAAiB,EAAW,EACjF,CAAC,GAA+B,KAA+B,EACjE,GACA,CAAC,EAAsB,CACxB,EACG,CAAC,GAAqB,KAAyB,EAA8B,EAAW,EACxF,IAAmBA,EAAM,YAC1B,GAAO,MACiB,kBAAI,EAAW,UAAU;CAAE,OAAO,EAAM;CAAyB,UAA0B,kBAAI,EAAW,MAAM;EAAE,OAAO,EAAM;EAAyB,UAA0B,kBAAI,GAAsB;GAAE,GAAG;GAAO,KAAK;GAAc,CAAC;EAAE,CAAC;CAAE,CAAC,CAE5Q;AACD,EAAiB,cAAc;AAC/B,IAAI,IAAuBA,EAAM,YAAY,GAAO,MAAiB;CACnE,IAAM,EACJ,4BACA,gBACA,UAAO,IACP,QACA,kBAAkB,GAClB,4BACA,6BACA,iBACA,+BAA4B,IAC5B,GAAG,MACD,GACE,IAAMA,EAAM,OAAO,KAAK,EACxB,IAAe,EAAgB,GAAc,EAAI,EACjD,IAAY,EAAa,EAAI,EAC7B,CAAC,GAAkB,KAAuB,EAAqB;EACnE,MAAM;EACN,aAAa,KAA2B;EACxC,UAAU;EACV,QAAQ;EACT,CAAC,EACI,CAAC,GAAkB,KAAuBA,EAAM,SAAS,GAAM,EAC/D,IAAmB,EAAe,EAAa,EAC/C,IAAW,EAAc,EAAwB,EACjD,IAAkBA,EAAM,OAAO,GAAM,EACrC,CAAC,GAAqB,KAA0BA,EAAM,SAAS,EAAE;AAQvE,QA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AI,MAAgB,UAAQ,EAAe,SAAS;MACpD,IAAM,IAAe,EAAe,QAAQ,EAAM,cAAc;AAChE,UAAiB,EAAQ,OAAO,EAAU,GAAgB,IAAe,EAAE,GAAG,EAAe,MAAM,IAAe,EAAE;;AAEtH,sBAAiB,EAAW,EAAe,CAAC;;KAE9C;GACF,UAAU,OAAO,KAAa,aAAa,EAAS;IAAE;IAAkB,YAAY,KAAoB;IAAM,CAAC,GAAG;GACnH,CACF;EACF,CACF;EAEJ;AACD,EAAqB,cAAc;AACnC,IAAI,IAA0B;CAC5B,WAAW;CACX,SAAS;CACT,YAAY;CACZ,WAAW;CACX,QAAQ;CACR,MAAM;CACN,UAAU;CACV,KAAK;CACN;AACD,SAAS,EAAqB,GAAK,GAAK;AAEtC,QADI,MAAQ,QACL,MAAQ,cAAc,eAAe,MAAQ,eAAe,cAAc,IADvD;;AAG5B,SAAS,EAAe,GAAO,GAAa,GAAK;CAC/C,IAAM,IAAM,EAAqB,EAAM,KAAK,EAAI;AAC5C,aAAgB,cAAc,CAAC,aAAa,aAAa,CAAC,SAAS,EAAI,KACvE,QAAgB,gBAAgB,CAAC,WAAW,YAAY,CAAC,SAAS,EAAI,EAC1E,QAAO,EAAwB;;AAEjC,SAAS,EAAW,GAAY,IAAgB,IAAO;CACrD,IAAM,IAA6B,SAAS;AAC5C,MAAK,IAAM,KAAa,EAGtB,KAFI,MAAc,MAClB,EAAU,MAAM,EAAE,kBAAe,CAAC,EAC9B,SAAS,kBAAkB,GAA4B;;AAG/D,SAAS,EAAU,GAAO,GAAY;AACpC,QAAO,EAAM,KAAK,GAAG,MAAU,GAAO,IAAa,KAAS,EAAM,QAAQ;;AAE5E,IAAI,IAAO,GACP,IAAO"}
|
|
1
|
+
{"version":3,"file":"index308.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAKA,SAAS,EAAW,GAAW;CAC7B,IAAM,IAA4B,kBAAgB,EAAU,EACtD,IAAQA,EAAM,YAAY,GAAO,MAAiB;EACtD,IAAM,EAAE,aAAU,GAAG,MAAc,GAC7B,IAAgBA,EAAM,SAAS,QAAQ,EAAS,EAChD,IAAY,EAAc,KAAK,EAAY;AACjD,MAAI,GAAW;GACb,IAAM,IAAa,EAAU,MAAM,UAC7B,IAAc,EAAc,KAAK,MACjC,MAAU,IACRA,EAAM,SAAS,MAAM,EAAW,GAA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