@okam/stack-ui 1.32.8 → 1.34.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/components/Button/interface.d.ts +3 -0
- package/components/WysiwygBlock/index.d.ts +1 -1
- package/components/WysiwygBlock/interface.d.ts +7 -1
- package/components/fields/Select/Select.interface.d.ts +2 -0
- package/components/fields/Select/components/Listbox.interface.d.ts +8 -0
- package/components/fields/Select/components/useListboxSections.d.ts +7 -0
- package/index.d.ts +1 -0
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index108.js +1 -1
- package/index108.mjs +33 -18
- package/index110.js +1 -1
- package/index110.mjs +4 -4
- package/index111.js +1 -1
- package/index111.mjs +3 -3
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index116.js +1 -1
- package/index116.mjs +9 -9
- package/index117.js +1 -1
- package/index117.mjs +6 -6
- package/index119.js +1 -1
- package/index119.mjs +3 -3
- package/index120.js +1 -1
- package/index120.mjs +3 -3
- package/index121.js +1 -1
- package/index121.mjs +9 -9
- package/index122.js +1 -1
- package/index122.mjs +6 -6
- package/index123.js +1 -1
- package/index123.mjs +2 -2
- package/index124.js +1 -1
- package/index124.mjs +9 -9
- package/index125.js +1 -1
- package/index125.mjs +1 -1
- package/index126.js +1 -1
- package/index126.mjs +6 -6
- package/index127.js +1 -1
- package/index127.mjs +3 -3
- package/index13.js +1 -1
- package/index13.mjs +38 -28
- package/index131.js +1 -1
- package/index131.mjs +2 -2
- package/index134.js +1 -1
- package/index134.mjs +1 -1
- package/index139.js +1 -1
- package/index139.mjs +10 -12
- package/index140.js +1 -1
- package/index140.mjs +12 -52
- package/index141.js +1 -1
- package/index141.mjs +23 -23
- package/index142.js +1 -1
- package/index142.mjs +3 -3
- package/index145.js +1 -1
- package/index145.mjs +50 -21
- package/index146.js +1 -1
- package/index146.mjs +19 -37
- package/index147.js +1 -1
- package/index147.mjs +22 -25
- package/index148.js +1 -1
- package/index148.mjs +35 -251
- package/index149.js +1 -1
- package/index149.mjs +25 -106
- package/index150.js +1 -1
- package/index150.mjs +242 -320
- package/index151.js +1 -1
- package/index151.mjs +105 -23
- package/index152.js +1 -1
- package/index152.mjs +323 -104
- package/index153.js +1 -1
- package/index153.mjs +106 -20
- package/index154.js +1 -1
- package/index154.mjs +83 -107
- package/index155.js +1 -1
- package/index155.mjs +26 -83
- package/index156.js +1 -1
- package/index156.mjs +24 -26
- package/index157.js +1 -1
- package/index157.mjs +115 -4
- package/index158.js +1 -1
- package/index158.mjs +124 -23
- package/index159.js +1 -1
- package/index159.mjs +67 -41
- package/index160.js +1 -1
- package/index160.mjs +348 -4
- package/index161.js +1 -1
- package/index161.mjs +46 -6
- package/index162.js +1 -1
- package/index162.mjs +4 -15
- package/index163.js +1 -1
- package/index163.mjs +24 -21
- package/index164.js +1 -1
- package/index164.mjs +43 -38
- package/index165.js +1 -1
- package/index165.mjs +5 -24
- package/index166.js +1 -1
- package/index166.mjs +6 -38
- package/index167.js +1 -1
- package/index167.mjs +13 -27
- package/index168.js +1 -1
- package/index168.mjs +21 -31
- package/index169.js +1 -1
- package/index169.mjs +42 -14
- package/index170.js +1 -1
- package/index170.mjs +24 -9
- package/index171.js +1 -1
- package/index171.mjs +36 -27
- package/index172.js +1 -1
- package/index172.mjs +27 -8
- package/index173.js +1 -1
- package/index173.mjs +31 -6
- package/index174.js +1 -1
- package/index174.mjs +14 -5
- package/index175.js +1 -1
- package/index175.mjs +9 -7
- package/index176.js +1 -1
- package/index176.mjs +27 -28
- package/index177.js +1 -1
- package/index177.mjs +9 -18
- package/index178.js +1 -1
- package/index178.mjs +6 -13
- package/index179.js +1 -1
- package/index179.mjs +5 -43
- package/index180.js +1 -1
- package/index180.mjs +7 -8
- package/index181.js +1 -1
- package/index181.mjs +29 -5
- package/index182.js +1 -1
- package/index182.mjs +14 -13
- package/index183.js +1 -1
- package/index183.mjs +12 -124
- package/index184.js +1 -1
- package/index184.mjs +39 -69
- package/index185.js +1 -1
- package/index185.mjs +7 -348
- package/index186.js +1 -1
- package/index186.mjs +5 -45
- package/index187.js +1 -1
- package/index187.mjs +14 -28
- package/index188.js +1 -1
- package/index188.mjs +28 -24
- package/index189.js +1 -1
- package/index189.mjs +24 -133
- package/index190.js +1 -1
- package/index190.mjs +72 -133
- package/index191.js +1 -1
- package/index191.mjs +50 -96
- package/index192.js +1 -1
- package/index192.mjs +31 -24
- package/index193.js +1 -1
- package/index193.mjs +28 -380
- package/index194.js +1 -1
- package/index194.mjs +202 -81
- package/index195.js +1 -1
- package/index195.mjs +133 -72
- package/index196.js +1 -1
- package/index196.mjs +150 -47
- package/index197.js +1 -1
- package/index197.mjs +96 -29
- package/index198.js +1 -1
- package/index198.mjs +131 -24
- package/index199.js +1 -1
- package/index199.mjs +91 -211
- package/index2.js +1 -1
- package/index2.mjs +17 -13
- package/index200.js +1 -1
- package/index200.mjs +24 -151
- package/index201.js +1 -1
- package/index201.mjs +381 -100
- package/index202.js +1 -1
- package/index202.mjs +91 -207
- package/index203.js +1 -1
- package/index203.mjs +207 -20
- package/index204.js +1 -1
- package/index204.mjs +24 -4
- package/index205.js +1 -1
- package/index205.mjs +4 -3
- package/index206.js +1 -1
- package/index206.mjs +3 -125
- package/index207.js +1 -1
- package/index207.mjs +117 -21
- package/index208.js +1 -1
- package/index208.mjs +15 -37
- package/index209.js +1 -1
- package/index209.mjs +41 -34
- package/index210.js +1 -1
- package/index210.mjs +32 -25
- package/index211.js +1 -1
- package/index211.mjs +22 -98
- package/index212.js +1 -1
- package/index212.mjs +99 -63
- package/index213.js +1 -1
- package/index213.mjs +55 -79
- package/index214.js +1 -1
- package/index214.mjs +102 -98
- package/index215.js +1 -1
- package/index215.mjs +98 -73
- package/index216.js +1 -1
- package/index216.mjs +65 -88
- package/index217.js +1 -1
- package/index217.mjs +85 -145
- package/index218.js +1 -1
- package/index218.mjs +156 -72
- package/index219.js +1 -1
- package/index219.mjs +71 -61
- package/index220.js +1 -1
- package/index220.mjs +59 -57
- package/index221.js +1 -1
- package/index221.mjs +53 -197
- package/index222.js +1 -1
- package/index222.mjs +190 -51
- package/index223.js +1 -1
- package/index223.mjs +51 -130
- package/index224.js +1 -1
- package/index224.mjs +130 -111
- package/index225.js +1 -1
- package/index225.mjs +105 -205
- package/index226.js +1 -1
- package/index226.mjs +203 -169
- package/index227.js +1 -1
- package/index227.mjs +182 -61
- package/index228.js +1 -1
- package/index228.mjs +60 -270
- package/index229.js +1 -1
- package/index229.mjs +270 -89
- package/index230.js +1 -1
- package/index230.mjs +92 -182
- package/index231.js +1 -1
- package/index231.mjs +182 -78
- package/index232.js +1 -1
- package/index232.mjs +75 -49
- package/index233.js +1 -1
- package/index233.mjs +49 -117
- package/index234.js +1 -1
- package/index234.mjs +118 -108
- package/index235.js +1 -1
- package/index235.mjs +106 -112
- package/index236.js +1 -1
- package/index236.mjs +113 -63
- package/index237.js +1 -1
- package/index237.mjs +70 -108
- package/index238.js +1 -1
- package/index238.mjs +108 -50
- package/index239.js +1 -1
- package/index239.mjs +34 -75
- package/index240.js +1 -1
- package/index240.mjs +71 -48
- package/index241.js +1 -1
- package/index241.mjs +57 -43
- package/index242.js +1 -1
- package/index242.mjs +43 -86
- package/index243.js +1 -5
- package/index243.mjs +81 -62
- package/index244.js +5 -1
- package/index244.mjs +72 -2017
- package/index245.js +1 -1
- package/index245.mjs +2020 -54
- package/index246.js +1 -1
- package/index246.mjs +57 -186
- package/index247.js +1 -1
- package/index247.mjs +188 -3
- package/index248.js +1 -1
- package/index248.mjs +4 -72
- package/index249.js +1 -1
- package/index249.mjs +20 -45
- package/index250.js +1 -1
- package/index250.mjs +20 -30
- package/index251.js +1 -1
- package/index251.mjs +19 -19
- package/index252.js +1 -1
- package/index252.mjs +19 -19
- package/index253.js +1 -1
- package/index253.mjs +19 -19
- package/index254.js +1 -1
- package/index254.mjs +19 -19
- package/index255.js +1 -1
- package/index255.mjs +16 -16
- package/index256.js +1 -1
- package/index256.mjs +19 -19
- package/index257.js +1 -1
- package/index257.mjs +19 -19
- package/index258.js +1 -1
- package/index258.mjs +16 -16
- package/index259.js +1 -1
- package/index259.mjs +16 -16
- package/index260.js +1 -1
- package/index260.mjs +19 -19
- package/index261.js +1 -1
- package/index261.mjs +16 -16
- package/index262.js +1 -1
- package/index262.mjs +19 -19
- package/index263.js +1 -1
- package/index263.mjs +14 -14
- package/index264.js +1 -1
- package/index264.mjs +19 -19
- package/index265.js +1 -1
- package/index265.mjs +19 -19
- package/index266.js +1 -1
- package/index266.mjs +16 -16
- package/index267.js +1 -1
- package/index267.mjs +19 -19
- package/index268.js +1 -1
- package/index268.mjs +19 -19
- package/index269.js +1 -1
- package/index269.mjs +19 -19
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index270.js +1 -1
- package/index270.mjs +19 -19
- package/index271.js +1 -1
- package/index271.mjs +19 -19
- package/index272.js +1 -1
- package/index272.mjs +15 -15
- package/index273.js +1 -1
- package/index273.mjs +16 -16
- package/index274.js +1 -1
- package/index274.mjs +19 -19
- package/index275.js +1 -1
- package/index275.mjs +16 -16
- package/index276.js +1 -1
- package/index276.mjs +19 -19
- package/index277.js +1 -1
- package/index277.mjs +19 -19
- package/index278.js +1 -1
- package/index278.mjs +19 -19
- package/index279.js +1 -1
- package/index279.mjs +19 -19
- package/index280.js +1 -1
- package/index280.mjs +19 -19
- package/index281.js +1 -1
- package/index281.mjs +19 -19
- package/index282.js +1 -1
- package/index282.mjs +16 -16
- package/index283.js +1 -1
- package/index283.mjs +71 -19
- package/index284.js +1 -1
- package/index284.mjs +45 -20
- package/index285.js +1 -1
- package/index285.mjs +29 -4
- package/index286.js +1 -1
- package/index286.mjs +4 -48
- package/index287.js +1 -1
- package/index287.mjs +49 -16
- package/index288.js +1 -1
- package/index288.mjs +12 -12
- package/index289.js +1 -1
- package/index289.mjs +15 -15
- package/index290.js +1 -1
- package/index290.mjs +12 -12
- package/index291.js +1 -1
- package/index291.mjs +12 -12
- package/index292.js +1 -1
- package/index292.mjs +15 -15
- package/index293.js +1 -1
- package/index293.mjs +15 -15
- package/index294.js +1 -1
- package/index294.mjs +15 -15
- package/index295.js +1 -1
- package/index295.mjs +12 -12
- package/index296.js +1 -1
- package/index296.mjs +12 -12
- package/index297.js +1 -1
- package/index297.mjs +15 -15
- package/index298.js +1 -1
- package/index298.mjs +15 -15
- package/index299.js +1 -1
- package/index299.mjs +15 -15
- package/index300.js +1 -1
- package/index300.mjs +15 -15
- package/index301.js +1 -1
- package/index301.mjs +15 -15
- package/index302.js +1 -1
- package/index302.mjs +15 -15
- package/index303.js +1 -1
- package/index303.mjs +15 -15
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +12 -12
- package/index306.js +1 -1
- package/index306.mjs +12 -12
- package/index307.js +1 -1
- package/index307.mjs +12 -12
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +2 -2
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +15 -15
- package/index315.js +1 -1
- package/index315.mjs +15 -15
- package/index316.js +1 -1
- package/index316.mjs +15 -15
- package/index317.js +1 -1
- package/index317.mjs +12 -12
- package/index318.js +1 -1
- package/index318.mjs +15 -15
- package/index319.js +1 -1
- package/index319.mjs +12 -12
- package/index320.js +1 -1
- package/index320.mjs +11 -11
- package/index321.js +1 -1
- package/index321.mjs +15 -130
- package/index322.js +1 -1
- package/index322.mjs +123 -183
- package/index323.js +1 -1
- package/index323.mjs +189 -8
- package/index324.js +1 -1
- package/index324.mjs +9 -3
- package/index325.js +1 -1
- package/index325.mjs +3 -36
- package/index326.js +1 -1
- package/index326.mjs +36 -5
- package/index327.js +1 -1
- package/index327.mjs +5 -29
- package/index328.js +1 -1
- package/index328.mjs +29 -6
- package/index329.js +1 -1
- package/index329.mjs +6 -140
- package/index330.js +1 -1
- package/index330.mjs +11 -197
- package/index331.js +1 -1
- package/index331.mjs +7 -23
- package/index332.js +1 -1
- package/index332.mjs +66 -44
- package/index333.js +1 -1
- package/index333.mjs +2 -2
- package/index334.js +1 -1
- package/index334.mjs +27 -97
- package/index335.js +1 -1
- package/index335.mjs +7 -72
- package/index336.js +1 -1
- package/index336.mjs +6 -58
- package/index337.js +1 -1
- package/index337.mjs +5 -7
- package/index338.js +1 -1
- package/index338.mjs +139 -10
- package/index339.js +1 -1
- package/index339.mjs +197 -5
- package/index340.js +1 -1
- package/index340.mjs +23 -7
- package/index341.js +1 -1
- package/index341.mjs +44 -66
- package/index342.js +1 -1
- package/index342.mjs +97 -27
- package/index343.js +1 -1
- package/index343.mjs +72 -7
- package/index344.js +1 -1
- package/index344.mjs +58 -6
- package/index345.js +1 -1
- package/index345.mjs +7 -20
- package/index346.js +1 -1
- package/index346.mjs +21 -8
- package/index347.js +1 -1
- package/index347.mjs +117 -7
- package/index348.js +1 -1
- package/index348.mjs +71 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +7 -7
- package/index352.js +1 -1
- package/index352.mjs +4 -4
- package/index353.js +1 -1
- package/index353.mjs +4 -4
- package/index354.js +1 -1
- package/index354.mjs +7 -7
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +4 -4
- package/index357.js +1 -1
- package/index357.mjs +7 -7
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +4 -4
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +4 -4
- package/index362.js +1 -1
- package/index362.mjs +7 -7
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +4 -4
- package/index369.js +1 -1
- package/index369.mjs +4 -4
- package/index370.js +1 -1
- package/index370.mjs +7 -7
- package/index371.js +1 -1
- package/index371.mjs +7 -7
- package/index372.js +1 -1
- package/index372.mjs +4 -4
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +4 -4
- package/index376.js +1 -1
- package/index376.mjs +7 -7
- package/index377.js +1 -1
- package/index377.mjs +7 -7
- package/index378.js +1 -1
- package/index378.mjs +7 -7
- package/index379.js +1 -1
- package/index379.mjs +7 -7
- package/index380.js +1 -1
- package/index380.mjs +7 -117
- package/index381.js +1 -1
- package/index381.mjs +7 -71
- package/index382.js +1 -1
- package/index382.mjs +7 -4
- package/index383.js +1 -1
- package/index383.mjs +4 -5
- package/index384.js +1 -1
- package/index384.mjs +5 -5
- package/index385.js +1 -1
- package/index385.mjs +9 -5
- package/index386.js +1 -1
- package/index386.mjs +4 -4
- package/index387.js +1 -1
- package/index387.mjs +1 -1
- package/index388.js +1 -1
- package/index388.mjs +4 -4
- package/index389.js +1 -1
- package/index389.mjs +4 -4
- package/index390.js +1 -1
- package/index390.mjs +4 -4
- package/index391.js +1 -1
- package/index391.mjs +4 -4
- package/index392.js +1 -1
- package/index392.mjs +4 -4
- package/index393.js +1 -1
- package/index393.mjs +4 -4
- package/index394.js +1 -1
- package/index394.mjs +4 -4
- package/index395.js +1 -1
- package/index395.mjs +4 -4
- package/index396.js +1 -1
- package/index396.mjs +4 -4
- package/index397.js +1 -1
- package/index397.mjs +4 -4
- package/index398.js +1 -1
- package/index398.mjs +1 -1
- package/index399.js +1 -1
- package/index399.mjs +1 -1
- package/index400.js +1 -1
- package/index400.mjs +4 -4
- package/index401.js +1 -1
- package/index401.mjs +4 -4
- package/index402.js +1 -1
- package/index402.mjs +4 -4
- package/index403.js +1 -1
- package/index403.mjs +4 -4
- package/index404.js +1 -1
- package/index404.mjs +4 -4
- package/index405.js +1 -1
- package/index405.mjs +1 -1
- package/index406.js +1 -1
- package/index406.mjs +1 -1
- package/index407.js +1 -1
- package/index407.mjs +4 -4
- package/index408.js +1 -1
- package/index408.mjs +4 -4
- package/index409.js +1 -1
- package/index409.mjs +1 -1
- package/index410.js +1 -1
- package/index410.mjs +4 -4
- package/index411.js +1 -1
- package/index411.mjs +4 -4
- package/index412.js +1 -1
- package/index412.mjs +4 -4
- package/index413.js +1 -1
- package/index413.mjs +4 -4
- package/index414.js +1 -1
- package/index414.mjs +4 -4
- package/index415.js +1 -1
- package/index415.mjs +1 -1
- package/index416.js +1 -1
- package/index416.mjs +5 -4
- package/index417.js +1 -1
- package/index417.mjs +5 -5
- package/index418.js +1 -1
- package/index418.mjs +5 -9
- package/index419.js +1 -1
- package/index419.mjs +4 -4
- package/index420.js +1 -1
- package/index420.mjs +4 -4
- package/index421.js +1 -1
- package/index421.mjs +4 -4
- package/index422.js +1 -1
- package/index422.mjs +4 -4
- package/index423.js +1 -1
- package/index423.mjs +4 -4
- package/index424.js +1 -1
- package/index424.mjs +4 -4
- package/index425.js +1 -1
- package/index425.mjs +4 -4
- package/index426.js +1 -1
- package/index426.mjs +4 -4
- package/index427.js +1 -1
- package/index427.mjs +1 -1
- package/index428.js +1 -1
- package/index428.mjs +4 -4
- package/index429.js +1 -1
- package/index429.mjs +4 -4
- package/index430.js +1 -1
- package/index430.mjs +1 -1
- package/index431.js +1 -1
- package/index431.mjs +1 -1
- package/index432.js +1 -1
- package/index432.mjs +4 -4
- package/index433.js +1 -1
- package/index433.mjs +1 -1
- package/index434.js +1 -1
- package/index434.mjs +1 -1
- package/index435.js +1 -1
- package/index435.mjs +4 -4
- package/index436.js +1 -1
- package/index436.mjs +4 -4
- package/index437.js +1 -1
- package/index437.mjs +4 -4
- package/index438.js +1 -1
- package/index438.mjs +1 -1
- package/index439.js +1 -1
- package/index439.mjs +4 -4
- package/index440.js +1 -1
- package/index440.mjs +1 -1
- package/index441.js +1 -1
- package/index441.mjs +4 -4
- package/index443.js +1 -1
- package/index443.mjs +4 -4
- package/index444.js +1 -1
- package/index444.mjs +4 -4
- package/index445.js +1 -1
- package/index445.mjs +4 -4
- package/index446.js +1 -1
- package/index446.mjs +1 -1
- package/index447.js +1 -1
- package/index447.mjs +4 -4
- package/index448.js +1 -1
- package/index448.mjs +4 -4
- package/index449.js +1 -1
- package/index449.mjs +1 -1
- package/index450.js +1 -1
- package/index450.mjs +4 -4
- package/index451.js +1 -1
- package/index451.mjs +4 -4
- package/index452.js +1 -1
- package/index452.mjs +4 -4
- package/index453.js +1 -0
- package/index453.mjs +7 -0
- package/index8.js +1 -1
- package/index8.mjs +8 -8
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
- package/providers/SidePanel/interface.d.ts +17 -5
- package/types/next-link.d.ts +2 -1
package/index332.mjs
CHANGED
|
@@ -1,49 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
onInteractOutsideStart: f
|
|
1
|
+
import { useRef as o, useCallback as i } from "react";
|
|
2
|
+
import { useLayoutEffect as l } from "./index162.mjs";
|
|
3
|
+
import { useEffectEvent as d } from "./index183.mjs";
|
|
4
|
+
class f {
|
|
5
|
+
isDefaultPrevented() {
|
|
6
|
+
return this.nativeEvent.defaultPrevented;
|
|
7
|
+
}
|
|
8
|
+
preventDefault() {
|
|
9
|
+
this.defaultPrevented = !0, this.nativeEvent.preventDefault();
|
|
10
|
+
}
|
|
11
|
+
stopPropagation() {
|
|
12
|
+
this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
|
|
13
|
+
}
|
|
14
|
+
isPropagationStopped() {
|
|
15
|
+
return !1;
|
|
16
|
+
}
|
|
17
|
+
persist() {
|
|
18
|
+
}
|
|
19
|
+
constructor(t, e) {
|
|
20
|
+
this.nativeEvent = e, this.target = e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget, this.bubbles = e.bubbles, this.cancelable = e.cancelable, this.defaultPrevented = e.defaultPrevented, this.eventPhase = e.eventPhase, this.isTrusted = e.isTrusted, this.timeStamp = e.timeStamp, this.type = t;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function h(n) {
|
|
24
|
+
let t = o({
|
|
25
|
+
isFocused: !1,
|
|
26
|
+
observer: null
|
|
28
27
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
l(() => {
|
|
29
|
+
const r = t.current;
|
|
30
|
+
return () => {
|
|
31
|
+
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
let e = d((r) => {
|
|
35
|
+
n == null || n(r);
|
|
36
|
+
});
|
|
37
|
+
return i((r) => {
|
|
38
|
+
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
39
|
+
t.current.isFocused = !0;
|
|
40
|
+
let s = r.target, u = (a) => {
|
|
41
|
+
t.current.isFocused = !1, s.disabled && e(new f("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
42
|
+
};
|
|
43
|
+
s.addEventListener("focusout", u, {
|
|
44
|
+
once: !0
|
|
45
|
+
}), t.current.observer = new MutationObserver(() => {
|
|
46
|
+
if (t.current.isFocused && s.disabled) {
|
|
47
|
+
var a;
|
|
48
|
+
(a = t.current.observer) === null || a === void 0 || a.disconnect();
|
|
49
|
+
let c = s === document.activeElement ? null : document.activeElement;
|
|
50
|
+
s.dispatchEvent(new FocusEvent("blur", {
|
|
51
|
+
relatedTarget: c
|
|
52
|
+
})), s.dispatchEvent(new FocusEvent("focusout", {
|
|
53
|
+
bubbles: !0,
|
|
54
|
+
relatedTarget: c
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
}), t.current.observer.observe(s, {
|
|
58
|
+
attributes: !0,
|
|
59
|
+
attributeFilter: [
|
|
60
|
+
"disabled"
|
|
61
|
+
]
|
|
62
|
+
});
|
|
44
63
|
}
|
|
45
|
-
}
|
|
64
|
+
}, [
|
|
65
|
+
e
|
|
66
|
+
]);
|
|
46
67
|
}
|
|
47
68
|
export {
|
|
48
|
-
|
|
69
|
+
f as SyntheticFocusEvent,
|
|
70
|
+
h as useSyntheticBlurEvent
|
|
49
71
|
};
|
package/index333.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index166.js"),v=require("./index183.js"),m=require("react");function g(r){let{ref:n,onInteractOutside:s,isDisabled:d,onInteractOutsideStart:l}=r,E=m.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=v.useEffectEvent(e=>{s&&f(e,n)&&(l&&l(e),E.current.isPointerDown=!0)}),c=v.useEffectEvent(e=>{s&&s(e)});m.useEffect(()=>{let e=E.current;if(d)return;const w=n.current,t=p.getOwnerDocument(w);if(typeof PointerEvent<"u"){let i=u=>{e.isPointerDown&&f(u,n)&&c(u),e.isPointerDown=!1};return t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerup",i,!0),()=>{t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerup",i,!0)}}else{let i=a=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1},u=a=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&f(a,n)&&c(a),e.isPointerDown=!1};return t.addEventListener("mousedown",o,!0),t.addEventListener("mouseup",i,!0),t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",u,!0),()=>{t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseup",i,!0),t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",u,!0)}}},[n,d,o,c])}function f(r,n){if(r.button>0)return!1;if(r.target){const s=r.target.ownerDocument;if(!s||!s.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return n.current&&!n.current.contains(r.target)}exports.useInteractOutside=g;
|
package/index333.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getOwnerDocument as p } from "./
|
|
2
|
-
import { useEffectEvent as E } from "./
|
|
1
|
+
import { getOwnerDocument as p } from "./index166.mjs";
|
|
2
|
+
import { useEffectEvent as E } from "./index183.mjs";
|
|
3
3
|
import { useRef as w, useEffect as D } from "react";
|
|
4
4
|
function $(r) {
|
|
5
5
|
let { ref: n, onInteractOutside: i, isDisabled: d, onInteractOutsideStart: l } = r, m = w({
|
package/index334.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index166.js"),c=require("./index172.js"),o=require("./index171.js");let n="default",s="",l=new WeakMap;function r(e){if(o.isIOS()){if(n==="default"){const t=i.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function u(e){if(o.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{c.runAfterTransition(()=>{if(n==="restoring"){const t=i.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=r;exports.restoreTextSelection=u;
|
package/index334.mjs
CHANGED
|
@@ -1,103 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"file",
|
|
11
|
-
"image",
|
|
12
|
-
"button",
|
|
13
|
-
"submit",
|
|
14
|
-
"reset"
|
|
15
|
-
]);
|
|
16
|
-
let s = 0, f;
|
|
17
|
-
function C(e = {}) {
|
|
18
|
-
let { isDisabled: t } = e;
|
|
19
|
-
b(() => {
|
|
20
|
-
if (!t)
|
|
21
|
-
return s++, s === 1 && (y() ? f = x() : f = S()), () => {
|
|
22
|
-
s--, s === 0 && f();
|
|
23
|
-
};
|
|
24
|
-
}, [
|
|
25
|
-
t
|
|
26
|
-
]);
|
|
27
|
-
}
|
|
28
|
-
function S() {
|
|
29
|
-
return $(l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"));
|
|
30
|
-
}
|
|
31
|
-
function x() {
|
|
32
|
-
let e, t, n = (r) => {
|
|
33
|
-
e = E(r.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = l(e, "overscrollBehavior", "contain"));
|
|
34
|
-
}, o = (r) => {
|
|
35
|
-
if (!e || e === document.documentElement || e === document.body) {
|
|
36
|
-
r.preventDefault();
|
|
37
|
-
return;
|
|
1
|
+
import { getOwnerDocument as c } from "./index166.mjs";
|
|
2
|
+
import { runAfterTransition as i } from "./index172.mjs";
|
|
3
|
+
import { isIOS as o } from "./index171.mjs";
|
|
4
|
+
let n = "default", l = "", s = /* @__PURE__ */ new WeakMap();
|
|
5
|
+
function r(e) {
|
|
6
|
+
if (o()) {
|
|
7
|
+
if (n === "default") {
|
|
8
|
+
const t = c(e);
|
|
9
|
+
l = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
38
10
|
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
let c = r.target;
|
|
42
|
-
h(c) && c !== document.activeElement && (r.preventDefault(), p(), c.style.transform = "translateY(-2000px)", c.focus(), requestAnimationFrame(() => {
|
|
43
|
-
c.style.transform = "";
|
|
44
|
-
})), t && t();
|
|
45
|
-
}, a = (r) => {
|
|
46
|
-
let c = r.target;
|
|
47
|
-
h(c) && (p(), c.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
48
|
-
c.style.transform = "", m && (m.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
49
|
-
w(c);
|
|
50
|
-
}) : m.addEventListener("resize", () => w(c), {
|
|
51
|
-
once: !0
|
|
52
|
-
}));
|
|
53
|
-
}));
|
|
54
|
-
}, i = null, p = () => {
|
|
55
|
-
if (i) return;
|
|
56
|
-
let r = () => {
|
|
57
|
-
window.scrollTo(0, 0);
|
|
58
|
-
}, c = window.pageXOffset, v = window.pageYOffset;
|
|
59
|
-
i = $(d(window, "scroll", r), l(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), l(document.documentElement, "overflow", "hidden"), l(document.body, "marginTop", `-${v}px`), () => {
|
|
60
|
-
window.scrollTo(c, v);
|
|
61
|
-
}), window.scrollTo(0, 0);
|
|
62
|
-
}, g = $(d(document, "touchstart", n, {
|
|
63
|
-
passive: !1,
|
|
64
|
-
capture: !0
|
|
65
|
-
}), d(document, "touchmove", o, {
|
|
66
|
-
passive: !1,
|
|
67
|
-
capture: !0
|
|
68
|
-
}), d(document, "touchend", u, {
|
|
69
|
-
passive: !1,
|
|
70
|
-
capture: !0
|
|
71
|
-
}), d(document, "focus", a, !0));
|
|
72
|
-
return () => {
|
|
73
|
-
t == null || t(), i == null || i(), g();
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function l(e, t, n) {
|
|
77
|
-
let o = e.style[t];
|
|
78
|
-
return e.style[t] = n, () => {
|
|
79
|
-
e.style[t] = o;
|
|
80
|
-
};
|
|
11
|
+
n = "disabled";
|
|
12
|
+
} else (e instanceof HTMLElement || e instanceof SVGElement) && (s.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
81
13
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
14
|
+
function m(e) {
|
|
15
|
+
if (o()) {
|
|
16
|
+
if (n !== "disabled") return;
|
|
17
|
+
n = "restoring", setTimeout(() => {
|
|
18
|
+
i(() => {
|
|
19
|
+
if (n === "restoring") {
|
|
20
|
+
const t = c(e);
|
|
21
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = l || ""), l = "", n = "default";
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}, 300);
|
|
25
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && s.has(e)) {
|
|
26
|
+
let t = s.get(e);
|
|
27
|
+
e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), s.delete(e);
|
|
96
28
|
}
|
|
97
29
|
}
|
|
98
|
-
function h(e) {
|
|
99
|
-
return e instanceof HTMLInputElement && !T.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
|
|
100
|
-
}
|
|
101
30
|
export {
|
|
102
|
-
|
|
31
|
+
r as disableTextSelection,
|
|
32
|
+
m as restoreTextSelection
|
|
103
33
|
};
|
package/index335.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index383.js"),s=require("./index384.js");function c(e,t){var r=s._(e,t,"get");return _._(e,r)}exports._=c;
|
package/index335.mjs
CHANGED
|
@@ -1,74 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import e from "./index388.mjs";
|
|
8
|
-
import m from "./index389.mjs";
|
|
9
|
-
import s from "./index390.mjs";
|
|
10
|
-
import d from "./index391.mjs";
|
|
11
|
-
import c from "./index392.mjs";
|
|
12
|
-
import i from "./index393.mjs";
|
|
13
|
-
import x from "./index394.mjs";
|
|
14
|
-
import a from "./index395.mjs";
|
|
15
|
-
import b from "./index396.mjs";
|
|
16
|
-
import R from "./index397.mjs";
|
|
17
|
-
import l from "./index398.mjs";
|
|
18
|
-
import E from "./index399.mjs";
|
|
19
|
-
import S from "./index400.mjs";
|
|
20
|
-
import h from "./index401.mjs";
|
|
21
|
-
import L from "./index402.mjs";
|
|
22
|
-
import T from "./index403.mjs";
|
|
23
|
-
import u from "./index404.mjs";
|
|
24
|
-
import I from "./index405.mjs";
|
|
25
|
-
import P from "./index406.mjs";
|
|
26
|
-
import U from "./index407.mjs";
|
|
27
|
-
import k from "./index408.mjs";
|
|
28
|
-
import n from "./index409.mjs";
|
|
29
|
-
import v from "./index410.mjs";
|
|
30
|
-
import K from "./index411.mjs";
|
|
31
|
-
import N from "./index412.mjs";
|
|
32
|
-
import z from "./index413.mjs";
|
|
33
|
-
import A from "./index414.mjs";
|
|
34
|
-
import B from "./index415.mjs";
|
|
35
|
-
var C = {};
|
|
36
|
-
C = {
|
|
37
|
-
"ar-AE": r,
|
|
38
|
-
"bg-BG": o,
|
|
39
|
-
"cs-CZ": f,
|
|
40
|
-
"da-DK": t,
|
|
41
|
-
"de-DE": p,
|
|
42
|
-
"el-GR": $,
|
|
43
|
-
"en-US": e,
|
|
44
|
-
"es-ES": m,
|
|
45
|
-
"et-EE": s,
|
|
46
|
-
"fi-FI": d,
|
|
47
|
-
"fr-FR": c,
|
|
48
|
-
"he-IL": i,
|
|
49
|
-
"hr-HR": x,
|
|
50
|
-
"hu-HU": a,
|
|
51
|
-
"it-IT": b,
|
|
52
|
-
"ja-JP": R,
|
|
53
|
-
"ko-KR": l,
|
|
54
|
-
"lt-LT": E,
|
|
55
|
-
"lv-LV": S,
|
|
56
|
-
"nb-NO": h,
|
|
57
|
-
"nl-NL": L,
|
|
58
|
-
"pl-PL": T,
|
|
59
|
-
"pt-BR": u,
|
|
60
|
-
"pt-PT": I,
|
|
61
|
-
"ro-RO": P,
|
|
62
|
-
"ru-RU": U,
|
|
63
|
-
"sk-SK": k,
|
|
64
|
-
"sl-SI": n,
|
|
65
|
-
"sr-SP": v,
|
|
66
|
-
"sv-SE": K,
|
|
67
|
-
"tr-TR": N,
|
|
68
|
-
"uk-UA": z,
|
|
69
|
-
"zh-CN": A,
|
|
70
|
-
"zh-TW": B
|
|
71
|
-
};
|
|
1
|
+
import { _ as s } from "./index383.mjs";
|
|
2
|
+
import { _ as a } from "./index384.mjs";
|
|
3
|
+
function p(_, r) {
|
|
4
|
+
var t = a(_, r, "get");
|
|
5
|
+
return s(_, t);
|
|
6
|
+
}
|
|
72
7
|
export {
|
|
73
|
-
|
|
8
|
+
p as _
|
|
74
9
|
};
|
package/index336.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./index385.js"),c=require("./index384.js");function i(t,r,e){var s=c._(t,r,"set");return _._(t,s,e),e}exports._=i;
|
package/index336.mjs
CHANGED
|
@@ -1,61 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (i.has(l) || l.parentElement && a.has(l.parentElement) && l.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
7
|
-
for (let h of i)
|
|
8
|
-
if (l.contains(h)) return NodeFilter.FILTER_SKIP;
|
|
9
|
-
return NodeFilter.FILTER_ACCEPT;
|
|
10
|
-
}, e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
|
|
11
|
-
acceptNode: r
|
|
12
|
-
}), E = r(t);
|
|
13
|
-
if (E === NodeFilter.FILTER_ACCEPT && u(t), E !== NodeFilter.FILTER_REJECT) {
|
|
14
|
-
let l = e.nextNode();
|
|
15
|
-
for (; l != null; )
|
|
16
|
-
u(l), l = e.nextNode();
|
|
17
|
-
}
|
|
18
|
-
}, u = (t) => {
|
|
19
|
-
var r;
|
|
20
|
-
let e = (r = o.get(t)) !== null && r !== void 0 ? r : 0;
|
|
21
|
-
t.getAttribute("aria-hidden") === "true" && e === 0 || (e === 0 && t.setAttribute("aria-hidden", "true"), a.add(t), o.set(t, e + 1));
|
|
22
|
-
};
|
|
23
|
-
n.length && n[n.length - 1].disconnect(), f(c);
|
|
24
|
-
let d = new MutationObserver((t) => {
|
|
25
|
-
for (let r of t)
|
|
26
|
-
if (!(r.type !== "childList" || r.addedNodes.length === 0) && ![
|
|
27
|
-
...i,
|
|
28
|
-
...a
|
|
29
|
-
].some((e) => e.contains(r.target))) {
|
|
30
|
-
for (let e of r.removedNodes) e instanceof Element && (i.delete(e), a.delete(e));
|
|
31
|
-
for (let e of r.addedNodes)
|
|
32
|
-
(e instanceof HTMLElement || e instanceof SVGElement) && (e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer === "true") ? i.add(e) : e instanceof Element && f(e);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
d.observe(c, {
|
|
36
|
-
childList: !0,
|
|
37
|
-
subtree: !0
|
|
38
|
-
});
|
|
39
|
-
let s = {
|
|
40
|
-
observe() {
|
|
41
|
-
d.observe(c, {
|
|
42
|
-
childList: !0,
|
|
43
|
-
subtree: !0
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
disconnect() {
|
|
47
|
-
d.disconnect();
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
return n.push(s), () => {
|
|
51
|
-
d.disconnect();
|
|
52
|
-
for (let t of a) {
|
|
53
|
-
let r = o.get(t);
|
|
54
|
-
r != null && (r === 1 ? (t.removeAttribute("aria-hidden"), o.delete(t)) : o.set(t, r - 1));
|
|
55
|
-
}
|
|
56
|
-
s === n[n.length - 1] ? (n.pop(), n.length && n[n.length - 1].observe()) : n.splice(n.indexOf(s), 1);
|
|
57
|
-
};
|
|
1
|
+
import { _ as a } from "./index385.mjs";
|
|
2
|
+
import { _ as o } from "./index384.mjs";
|
|
3
|
+
function i(s, r, _) {
|
|
4
|
+
var t = o(s, r, "set");
|
|
5
|
+
return a(s, t, _), _;
|
|
58
6
|
}
|
|
59
7
|
export {
|
|
60
|
-
|
|
8
|
+
i as _
|
|
61
9
|
};
|
package/index337.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=new WeakMap;function a(t,e,f){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${r.get(t)}-${f}-${e}`):""}exports.generateId=a;exports.tabsIds=r;
|
package/index337.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var t;
|
|
5
|
-
return (t = e(r)) !== null && t !== void 0 ? t : {};
|
|
1
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
function $(t, e, a) {
|
|
3
|
+
return t ? (typeof e == "string" && (e = e.replace(/\s+/g, "")), `${f.get(t)}-${a}-${e}`) : "";
|
|
6
4
|
}
|
|
7
5
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
$ as generateId,
|
|
7
|
+
f as tabsIds
|
|
10
8
|
};
|
package/index338.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index339.js"),A=require("./index340.js"),f=require("react"),P=require("./index162.js"),j=require("./index176.js"),D=require("@react-aria/i18n");let e=typeof document<"u"?window.visualViewport:null;function G(n){let{direction:h}=D.useLocale(),{arrowSize:$=0,targetRef:v,overlayRef:i,scrollRef:s=i,placement:w="bottom",containerPadding:C=12,shouldFlip:H=!0,boundaryElement:R=typeof document<"u"?document.body:null,offset:S=0,crossOffset:B=0,shouldUpdatePosition:q=!0,isOpen:p=!0,onClose:m,maxHeight:O,arrowBoundaryOffset:T=0}=n,[t,k]=f.useState(null),F=[q,w,i.current,v.current,s.current,C,H,R,S,B,p,h,O,T,$],N=f.useRef(e==null?void 0:e.scale);f.useEffect(()=>{p&&(N.current=e==null?void 0:e.scale)},[p]);let u=f.useCallback(()=>{if(q===!1||!p||!i.current||!v.current||!R||(e==null?void 0:e.scale)!==N.current)return;let o=null;if(s.current&&s.current.contains(document.activeElement)){var a;let r=(a=document.activeElement)===null||a===void 0?void 0:a.getBoundingClientRect(),g=s.current.getBoundingClientRect();var d;if(o={type:"top",offset:((d=r==null?void 0:r.top)!==null&&d!==void 0?d:0)-g.top},o.offset>g.height/2){o.type="bottom";var x;o.offset=((x=r==null?void 0:r.bottom)!==null&&x!==void 0?x:0)-g.bottom}}let l=i.current;if(!O&&i.current){var z;l.style.top="0px",l.style.bottom="";var L;l.style.maxHeight=((L=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let c=M.calculatePosition({placement:K(w,h),overlayNode:i.current,targetNode:v.current,scrollNode:s.current||i.current,padding:C,shouldFlip:H,boundaryElement:R,offset:S,crossOffset:B,maxHeight:O,arrowSize:$,arrowBoundaryOffset:T});if(c.position){if(l.style.top="",l.style.bottom="",l.style.left="",l.style.right="",Object.keys(c.position).forEach(r=>l.style[r]=c.position[r]+"px"),l.style.maxHeight=c.maxHeight!=null?c.maxHeight+"px":"",o&&document.activeElement&&s.current){let r=document.activeElement.getBoundingClientRect(),g=s.current.getBoundingClientRect(),I=r[o.type]-g[o.type];s.current.scrollTop+=I-o.offset}k(c)}},F);P.useLayoutEffect(u,F),J(u),j.useResizeObserver({ref:i,onResize:u}),j.useResizeObserver({ref:v,onResize:u});let y=f.useRef(!1);P.useLayoutEffect(()=>{let o,a=()=>{y.current=!0,clearTimeout(o),o=setTimeout(()=>{y.current=!1},500),u()},d=()=>{y.current&&a()};return e==null||e.addEventListener("resize",a),e==null||e.addEventListener("scroll",d),()=>{e==null||e.removeEventListener("resize",a),e==null||e.removeEventListener("scroll",d)}},[u]);let U=f.useCallback(()=>{y.current||m==null||m()},[m,y]);A.useCloseOnScroll({triggerRef:v,isOpen:p,onClose:m&&U});var b,E;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...t==null?void 0:t.position,maxHeight:(b=t==null?void 0:t.maxHeight)!==null&&b!==void 0?b:"100vh"}},placement:(E=t==null?void 0:t.placement)!==null&&E!==void 0?E:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:t==null?void 0:t.arrowOffsetLeft,top:t==null?void 0:t.arrowOffsetTop}},updatePosition:u}}function J(n){P.useLayoutEffect(()=>(window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}),[n])}function K(n,h){return h==="rtl"?n.replace("start","right").replace("end","left"):n.replace("start","left").replace("end","right")}exports.useOverlayPosition=G;
|
package/index338.mjs
CHANGED
|
@@ -1,14 +1,143 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { calculatePosition as D } from "./index339.mjs";
|
|
2
|
+
import { useCloseOnScroll as G } from "./index340.mjs";
|
|
3
|
+
import { useState as J, useRef as U, useEffect as K, useCallback as j } from "react";
|
|
4
|
+
import { useLayoutEffect as z } from "./index162.mjs";
|
|
5
|
+
import { useResizeObserver as k } from "./index176.mjs";
|
|
6
|
+
import { useLocale as M } from "@react-aria/i18n";
|
|
7
|
+
let e = typeof document < "u" ? window.visualViewport : null;
|
|
8
|
+
function te(n) {
|
|
9
|
+
let { direction: y } = M(), { arrowSize: w = 0, targetRef: c, overlayRef: i, scrollRef: s = i, placement: H = "bottom", containerPadding: P = 12, shouldFlip: L = !0, boundaryElement: $ = typeof document < "u" ? document.body : null, offset: C = 0, crossOffset: B = 0, shouldUpdatePosition: S = !0, isOpen: v = !0, onClose: p, maxHeight: b, arrowBoundaryOffset: T = 0 } = n, [t, I] = J(null), F = [
|
|
10
|
+
S,
|
|
11
|
+
H,
|
|
12
|
+
i.current,
|
|
13
|
+
c.current,
|
|
14
|
+
s.current,
|
|
15
|
+
P,
|
|
16
|
+
L,
|
|
17
|
+
$,
|
|
18
|
+
C,
|
|
19
|
+
B,
|
|
20
|
+
v,
|
|
21
|
+
y,
|
|
22
|
+
b,
|
|
23
|
+
T,
|
|
24
|
+
w
|
|
25
|
+
], N = U(e == null ? void 0 : e.scale);
|
|
26
|
+
K(() => {
|
|
27
|
+
v && (N.current = e == null ? void 0 : e.scale);
|
|
28
|
+
}, [
|
|
29
|
+
v
|
|
30
|
+
]);
|
|
31
|
+
let a = j(() => {
|
|
32
|
+
if (S === !1 || !v || !i.current || !c.current || !$ || (e == null ? void 0 : e.scale) !== N.current) return;
|
|
33
|
+
let o = null;
|
|
34
|
+
if (s.current && s.current.contains(document.activeElement)) {
|
|
35
|
+
var d;
|
|
36
|
+
let r = (d = document.activeElement) === null || d === void 0 ? void 0 : d.getBoundingClientRect(), g = s.current.getBoundingClientRect();
|
|
37
|
+
var u;
|
|
38
|
+
if (o = {
|
|
39
|
+
type: "top",
|
|
40
|
+
offset: ((u = r == null ? void 0 : r.top) !== null && u !== void 0 ? u : 0) - g.top
|
|
41
|
+
}, o.offset > g.height / 2) {
|
|
42
|
+
o.type = "bottom";
|
|
43
|
+
var R;
|
|
44
|
+
o.offset = ((R = r == null ? void 0 : r.bottom) !== null && R !== void 0 ? R : 0) - g.bottom;
|
|
45
|
+
}
|
|
6
46
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
47
|
+
let l = i.current;
|
|
48
|
+
if (!b && i.current) {
|
|
49
|
+
var O;
|
|
50
|
+
l.style.top = "0px", l.style.bottom = "";
|
|
51
|
+
var E;
|
|
52
|
+
l.style.maxHeight = ((E = (O = window.visualViewport) === null || O === void 0 ? void 0 : O.height) !== null && E !== void 0 ? E : window.innerHeight) + "px";
|
|
53
|
+
}
|
|
54
|
+
let f = D({
|
|
55
|
+
placement: W(H, y),
|
|
56
|
+
overlayNode: i.current,
|
|
57
|
+
targetNode: c.current,
|
|
58
|
+
scrollNode: s.current || i.current,
|
|
59
|
+
padding: P,
|
|
60
|
+
shouldFlip: L,
|
|
61
|
+
boundaryElement: $,
|
|
62
|
+
offset: C,
|
|
63
|
+
crossOffset: B,
|
|
64
|
+
maxHeight: b,
|
|
65
|
+
arrowSize: w,
|
|
66
|
+
arrowBoundaryOffset: T
|
|
67
|
+
});
|
|
68
|
+
if (f.position) {
|
|
69
|
+
if (l.style.top = "", l.style.bottom = "", l.style.left = "", l.style.right = "", Object.keys(f.position).forEach((r) => l.style[r] = f.position[r] + "px"), l.style.maxHeight = f.maxHeight != null ? f.maxHeight + "px" : "", o && document.activeElement && s.current) {
|
|
70
|
+
let r = document.activeElement.getBoundingClientRect(), g = s.current.getBoundingClientRect(), A = r[o.type] - g[o.type];
|
|
71
|
+
s.current.scrollTop += A - o.offset;
|
|
72
|
+
}
|
|
73
|
+
I(f);
|
|
74
|
+
}
|
|
75
|
+
}, F);
|
|
76
|
+
z(a, F), Q(a), k({
|
|
77
|
+
ref: i,
|
|
78
|
+
onResize: a
|
|
79
|
+
}), k({
|
|
80
|
+
ref: c,
|
|
81
|
+
onResize: a
|
|
82
|
+
});
|
|
83
|
+
let m = U(!1);
|
|
84
|
+
z(() => {
|
|
85
|
+
let o, d = () => {
|
|
86
|
+
m.current = !0, clearTimeout(o), o = setTimeout(() => {
|
|
87
|
+
m.current = !1;
|
|
88
|
+
}, 500), a();
|
|
89
|
+
}, u = () => {
|
|
90
|
+
m.current && d();
|
|
91
|
+
};
|
|
92
|
+
return e == null || e.addEventListener("resize", d), e == null || e.addEventListener("scroll", u), () => {
|
|
93
|
+
e == null || e.removeEventListener("resize", d), e == null || e.removeEventListener("scroll", u);
|
|
94
|
+
};
|
|
95
|
+
}, [
|
|
96
|
+
a
|
|
97
|
+
]);
|
|
98
|
+
let q = j(() => {
|
|
99
|
+
m.current || p == null || p();
|
|
100
|
+
}, [
|
|
101
|
+
p,
|
|
102
|
+
m
|
|
103
|
+
]);
|
|
104
|
+
G({
|
|
105
|
+
triggerRef: c,
|
|
106
|
+
isOpen: v,
|
|
107
|
+
onClose: p && q
|
|
108
|
+
});
|
|
109
|
+
var h, x;
|
|
110
|
+
return {
|
|
111
|
+
overlayProps: {
|
|
112
|
+
style: {
|
|
113
|
+
position: "absolute",
|
|
114
|
+
zIndex: 1e5,
|
|
115
|
+
...t == null ? void 0 : t.position,
|
|
116
|
+
maxHeight: (h = t == null ? void 0 : t.maxHeight) !== null && h !== void 0 ? h : "100vh"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
placement: (x = t == null ? void 0 : t.placement) !== null && x !== void 0 ? x : null,
|
|
120
|
+
arrowProps: {
|
|
121
|
+
"aria-hidden": "true",
|
|
122
|
+
role: "presentation",
|
|
123
|
+
style: {
|
|
124
|
+
left: t == null ? void 0 : t.arrowOffsetLeft,
|
|
125
|
+
top: t == null ? void 0 : t.arrowOffsetTop
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
updatePosition: a
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function Q(n) {
|
|
132
|
+
z(() => (window.addEventListener("resize", n, !1), () => {
|
|
133
|
+
window.removeEventListener("resize", n, !1);
|
|
134
|
+
}), [
|
|
135
|
+
n
|
|
136
|
+
]);
|
|
137
|
+
}
|
|
138
|
+
function W(n, y) {
|
|
139
|
+
return y === "rtl" ? n.replace("start", "right").replace("end", "left") : n.replace("start", "left").replace("end", "right");
|
|
11
140
|
}
|
|
12
141
|
export {
|
|
13
|
-
|
|
142
|
+
te as useOverlayPosition
|
|
14
143
|
};
|