@okam/stack-ui 1.32.8 → 1.33.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/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/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.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 +5 -5
- 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 +46 -12
- package/index140.js +1 -1
- package/index140.mjs +238 -49
- package/index141.js +2 -1
- package/index141.mjs +13 -46
- package/index142.js +1 -1
- package/index142.mjs +28 -239
- package/index143.js +1 -2
- package/index143.mjs +52 -13
- package/index144.js +1 -1
- package/index144.mjs +11 -29
- package/index145.js +1 -1
- package/index145.mjs +9 -22
- package/index146.js +1 -1
- package/index146.mjs +21 -38
- package/index147.js +1 -1
- package/index147.mjs +39 -25
- package/index148.js +1 -1
- package/index148.mjs +24 -254
- package/index149.js +1 -1
- package/index149.mjs +246 -97
- package/index150.js +1 -1
- package/index150.mjs +100 -327
- package/index151.js +1 -1
- package/index151.mjs +332 -23
- package/index152.js +1 -1
- package/index152.mjs +24 -114
- package/index153.js +1 -1
- package/index153.mjs +112 -19
- package/index154.js +1 -1
- package/index154.mjs +2 -2
- package/index155.js +1 -1
- package/index155.mjs +2 -2
- package/index156.js +1 -1
- package/index156.mjs +1 -1
- package/index157.js +1 -1
- package/index157.mjs +22 -4
- package/index158.js +1 -1
- package/index158.mjs +124 -23
- package/index159.js +1 -1
- package/index159.mjs +27 -47
- package/index160.js +1 -1
- package/index160.mjs +72 -4
- package/index161.js +1 -1
- package/index161.mjs +350 -6
- package/index162.js +1 -1
- package/index162.mjs +45 -14
- package/index163.js +1 -1
- package/index163.mjs +4 -22
- package/index164.js +1 -1
- package/index164.mjs +23 -41
- package/index165.js +1 -1
- package/index165.mjs +47 -24
- package/index166.js +1 -1
- package/index166.mjs +5 -37
- package/index167.js +1 -1
- package/index167.mjs +6 -29
- package/index168.js +1 -1
- package/index168.mjs +14 -31
- package/index169.js +1 -1
- package/index169.mjs +21 -14
- package/index170.js +1 -1
- package/index170.mjs +42 -9
- package/index171.js +1 -1
- package/index171.mjs +24 -28
- package/index172.js +1 -1
- package/index172.mjs +37 -9
- package/index173.js +1 -1
- package/index173.mjs +28 -6
- package/index174.js +1 -1
- package/index174.mjs +31 -5
- package/index175.js +1 -1
- package/index175.mjs +14 -7
- package/index176.js +1 -1
- package/index176.mjs +9 -29
- package/index177.js +1 -1
- package/index177.mjs +25 -15
- package/index178.js +1 -1
- package/index178.mjs +9 -13
- package/index179.js +1 -1
- package/index179.mjs +6 -43
- package/index180.js +1 -1
- package/index180.mjs +5 -8
- package/index181.js +1 -1
- package/index181.mjs +7 -5
- package/index182.js +1 -1
- package/index182.mjs +27 -15
- package/index183.js +1 -1
- package/index183.mjs +15 -122
- package/index184.js +1 -1
- package/index184.mjs +12 -72
- package/index185.js +1 -1
- package/index185.mjs +38 -344
- package/index186.js +1 -1
- package/index186.mjs +8 -45
- package/index187.js +1 -1
- package/index187.mjs +5 -31
- package/index188.js +1 -1
- package/index188.mjs +14 -24
- package/index189.js +1 -1
- package/index189.mjs +29 -134
- 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 +16 -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 +203 -24
- package/index204.js +1 -1
- package/index204.mjs +64 -4
- package/index205.js +1 -1
- package/index205.mjs +143 -3
- package/index206.js +1 -1
- package/index206.mjs +116 -117
- package/index207.js +1 -1
- package/index207.mjs +218 -23
- package/index208.js +1 -1
- package/index208.mjs +182 -43
- package/index209.js +1 -1
- package/index209.mjs +69 -44
- package/index210.js +1 -1
- package/index210.mjs +278 -36
- package/index211.js +1 -1
- package/index211.mjs +96 -111
- package/index212.js +1 -1
- package/index212.mjs +186 -75
- package/index213.js +1 -1
- package/index213.mjs +84 -101
- package/index214.js +1 -1
- package/index214.mjs +59 -98
- package/index215.js +1 -1
- package/index215.mjs +124 -70
- package/index216.js +1 -1
- package/index216.mjs +112 -91
- package/index217.js +1 -1
- package/index217.mjs +117 -150
- package/index218.js +1 -1
- package/index218.mjs +73 -72
- package/index219.js +1 -1
- package/index219.mjs +104 -55
- package/index220.js +1 -1
- package/index220.mjs +51 -58
- package/index221.js +1 -1
- package/index221.mjs +84 -194
- package/index222.js +1 -1
- package/index222.mjs +65 -59
- package/index223.js +1 -1
- package/index223.mjs +51 -138
- package/index224.js +1 -1
- package/index224.mjs +95 -120
- package/index225.js +5 -1
- package/index225.mjs +74 -218
- package/index226.js +1 -1
- package/index226.mjs +2014 -179
- package/index227.js +1 -1
- package/index227.mjs +57 -67
- package/index228.js +1 -1
- package/index228.mjs +184 -275
- package/index229.js +1 -1
- package/index229.mjs +205 -92
- package/index230.js +1 -1
- package/index230.mjs +24 -188
- package/index231.js +1 -1
- package/index231.mjs +4 -84
- package/index232.js +1 -1
- package/index232.mjs +3 -58
- package/index233.js +1 -1
- package/index233.mjs +122 -123
- package/index234.js +1 -1
- package/index234.mjs +26 -113
- package/index235.js +1 -1
- package/index235.mjs +48 -119
- package/index236.js +1 -1
- package/index236.mjs +44 -72
- package/index237.js +1 -1
- package/index237.mjs +34 -107
- package/index238.js +1 -1
- package/index238.mjs +111 -50
- package/index239.js +1 -1
- package/index239.mjs +77 -93
- package/index240.js +1 -1
- package/index240.mjs +101 -70
- package/index241.js +1 -1
- package/index241.mjs +98 -57
- package/index242.js +1 -1
- package/index242.mjs +69 -96
- package/index243.js +1 -5
- package/index243.mjs +93 -78
- package/index244.js +1 -1
- package/index244.mjs +147 -2017
- package/index245.js +1 -1
- package/index245.mjs +71 -59
- package/index246.js +1 -1
- package/index246.mjs +54 -181
- package/index247.js +1 -1
- package/index247.mjs +59 -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/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 +126 -44
- package/index287.js +1 -1
- package/index287.mjs +191 -16
- package/index288.js +1 -1
- package/index288.mjs +10 -16
- package/index289.js +1 -1
- package/index289.mjs +4 -16
- package/index290.js +1 -1
- package/index290.mjs +37 -16
- package/index291.js +1 -1
- package/index291.mjs +6 -16
- package/index292.js +1 -1
- package/index292.mjs +30 -16
- package/index293.js +1 -1
- package/index293.mjs +7 -16
- package/index294.js +1 -1
- package/index294.mjs +5 -16
- package/index295.js +1 -1
- package/index295.mjs +49 -16
- package/index296.js +1 -1
- package/index296.mjs +15 -15
- 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 +12 -12
- 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 +15 -15
- package/index306.js +1 -1
- package/index306.mjs +12 -12
- package/index307.js +1 -1
- package/index307.mjs +15 -15
- package/index308.js +1 -1
- package/index308.mjs +11 -11
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +12 -12
- 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 +12 -12
- 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 +15 -15
- package/index318.js +1 -1
- package/index318.mjs +15 -15
- package/index319.js +1 -1
- package/index319.mjs +15 -15
- package/index320.js +1 -1
- package/index320.mjs +15 -15
- package/index321.js +1 -1
- package/index321.mjs +15 -130
- package/index322.js +1 -1
- package/index322.mjs +16 -191
- package/index323.js +1 -1
- package/index323.mjs +16 -10
- package/index324.js +1 -1
- package/index324.mjs +16 -4
- package/index325.js +1 -1
- package/index325.mjs +16 -37
- package/index326.js +1 -1
- package/index326.mjs +16 -6
- package/index327.js +1 -1
- package/index327.mjs +16 -30
- package/index328.js +1 -1
- package/index328.mjs +16 -7
- package/index329.js +1 -1
- package/index329.mjs +16 -141
- package/index330.js +1 -1
- package/index330.mjs +136 -193
- package/index331.js +1 -1
- package/index331.mjs +196 -21
- package/index332.js +1 -1
- package/index332.mjs +21 -45
- package/index333.js +1 -1
- package/index333.mjs +44 -46
- package/index334.js +1 -1
- package/index334.mjs +43 -95
- package/index335.js +1 -1
- package/index335.mjs +101 -72
- package/index336.js +1 -1
- package/index336.mjs +72 -59
- package/index337.js +1 -1
- package/index337.mjs +58 -7
- package/index338.js +1 -1
- package/index338.mjs +7 -11
- package/index339.js +1 -1
- package/index339.mjs +11 -5
- package/index341.js +1 -1
- package/index341.mjs +2 -2
- package/index342.js +1 -1
- package/index342.mjs +3 -3
- package/index343.js +1 -1
- package/index343.mjs +2 -2
- package/index344.js +1 -1
- package/index344.mjs +2 -2
- package/index345.js +1 -1
- package/index345.mjs +2 -2
- package/index346.js +1 -1
- package/index346.mjs +6 -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 +1 -1
- package/index384.js +1 -1
- package/index384.mjs +4 -4
- package/index385.js +1 -1
- package/index385.mjs +1 -1
- package/index386.js +1 -1
- package/index386.mjs +1 -1
- package/index387.js +1 -1
- package/index387.mjs +4 -4
- package/index388.js +1 -1
- package/index388.mjs +4 -4
- package/index389.js +1 -1
- package/index389.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/index396.js +1 -1
- package/index396.mjs +1 -1
- package/index397.js +1 -1
- package/index397.mjs +4 -4
- package/index398.js +1 -1
- package/index398.mjs +4 -4
- 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 +1 -1
- package/index404.js +1 -1
- package/index404.mjs +4 -4
- package/index405.js +1 -1
- package/index405.mjs +4 -4
- package/index406.js +1 -1
- package/index406.mjs +4 -4
- 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 +1 -1
- package/index411.js +1 -1
- package/index411.mjs +1 -1
- 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 +4 -4
- package/index416.js +1 -1
- package/index416.mjs +5 -4
- package/index417.js +1 -1
- package/index417.mjs +3 -4
- package/index418.js +1 -1
- package/index418.mjs +4 -8
- package/index419.js +1 -1
- package/index419.mjs +9 -5
- 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/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index154.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toCalendar as i, toCalendarDate as u, fromAbsolute as d } from "./
|
|
2
|
-
import { weekStartData as s } from "./
|
|
1
|
+
import { toCalendar as i, toCalendarDate as u, fromAbsolute as d } from "./index195.mjs";
|
|
2
|
+
import { weekStartData as s } from "./index241.mjs";
|
|
3
3
|
function m(e, a) {
|
|
4
4
|
return a = i(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
5
5
|
}
|
package/index155.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index243.js"),s=require("./index154.js"),k=require("react"),v=require("./index111.js"),w=require("./index175.js"),r=require("@react-aria/i18n");function m(o,e){let{startDate:u=e.visibleRange.start,endDate:c=e.visibleRange.end}=o,{direction:t}=r.useLocale(),d=a=>{switch(a.key){case"Enter":case" ":a.preventDefault(),e.selectFocusedDate();break;case"PageUp":a.preventDefault(),a.stopPropagation(),e.focusPreviousSection(a.shiftKey);break;case"PageDown":a.preventDefault(),a.stopPropagation(),e.focusNextSection(a.shiftKey);break;case"End":a.preventDefault(),a.stopPropagation(),e.focusSectionEnd();break;case"Home":a.preventDefault(),a.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":a.preventDefault(),a.stopPropagation(),t==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":a.preventDefault(),a.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":a.preventDefault(),a.stopPropagation(),t==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":a.preventDefault(),a.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(a.preventDefault(),e.setAnchorDate(null));break}},f=l.useVisibleRangeDescription(u,c,e.timeZone,!0),{ariaLabel:p,ariaLabelledBy:D}=l.hookData.get(e),b=w.useLabels({"aria-label":[p,f].filter(Boolean).join(", "),"aria-labelledby":D}),i=r.useDateFormatter({weekday:o.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:n}=r.useLocale(),y=k.useMemo(()=>{let a=s.startOfWeek(s.today(e.timeZone),n);return[...new Array(7).keys()].map(g=>{let P=a.add({days:g}).toDate(e.timeZone);return i.format(P)})},[n,e.timeZone,i]);return{gridProps:v.mergeProps(b,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:d,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:y}}exports.useCalendarGrid=m;
|
package/index155.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useVisibleRangeDescription as y, hookData as g } from "./
|
|
1
|
+
import { useVisibleRangeDescription as y, hookData as g } from "./index243.mjs";
|
|
2
2
|
import { startOfWeek as $, today as k } from "./index154.mjs";
|
|
3
3
|
import { useMemo as w } from "react";
|
|
4
4
|
import { mergeProps as P } from "./index111.mjs";
|
|
5
|
-
import { useLabels as v } from "./
|
|
5
|
+
import { useLabels as v } from "./index175.mjs";
|
|
6
6
|
import { useLocale as n, useDateFormatter as h } from "@react-aria/i18n";
|
|
7
7
|
function B(r, e) {
|
|
8
8
|
let { startDate: l = e.visibleRange.start, endDate: s = e.visibleRange.end } = r, { direction: o } = n(), f = (a) => {
|
package/index156.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("./index154.js"),$=require("./
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("./index154.js"),$=require("./index244.js"),F=require("@react-aria/focus"),I=require("./index111.js"),L=require("react"),T=require("react-aria"),t=require("./index64.js");function V({themeName:i="calendar",tokens:l,state:n,date:e}){const a=L.useRef(null),{cellProps:C,buttonProps:g,isSelected:c,isOutsideVisibleRange:m,isDisabled:u,formattedDate:y,isInvalid:d}=$.useCalendarCell({date:e},n,a),s=n==null?void 0:n.highlightedRange,f=s==null?void 0:s.start,h=s==null?void 0:s.end,D=s&&f?r.isSameDay(e,f):c,q=s&&h?r.isSameDay(e,h):c,{locale:p}=T.useLocale(),R=r.getDayOfWeek(e,p),S=c&&(D||R===0||e.day===1),b=c&&(q||R===6||e.day===e.calendar.getDaysInMonth(e)),{focusProps:x,isFocusVisible:P}=F.useFocusRing(),j=t(`${i}.cellContainer`,{...l,isFocusVisible:P}),v=t(`${i}.cell`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isRoundedLeft:S,isRoundedRight:b}),O=t(`${i}.cellDate`,{...l,isSelected:c,isInvalid:d,isDisabled:u,isSelectionStart:D,isSelectionEnd:q});return o.jsx("td",{...C,"aria-disabled":!1,className:j,children:o.jsx("div",{...I.mergeProps(g,x),ref:a,hidden:m,className:v,children:o.jsx("div",{className:O,children:y})})})}module.exports=V;
|
package/index156.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { isSameDay as h, getDayOfWeek as F } from "./index154.mjs";
|
|
3
|
-
import { useCalendarCell as I } from "./
|
|
3
|
+
import { useCalendarCell as I } from "./index244.mjs";
|
|
4
4
|
import { useFocusRing as L } from "@react-aria/focus";
|
|
5
5
|
import { mergeProps as V } from "./index111.mjs";
|
|
6
6
|
import { useRef as W } from "react";
|
package/index157.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("./index346.js"),o=require("./index111.js"),u=require("./index175.js"),s=require("@react-aria/focus");function c(a,e,d){let l=s.useHasTabbableChild(d)?void 0:0;var r;const n=i.generateId(e,(r=a.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),b=u.useLabels({...a,id:n,"aria-labelledby":i.generateId(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:o.mergeProps(b,{tabIndex:l,role:"tabpanel","aria-describedby":a["aria-describedby"],"aria-details":a["aria-details"]})}}exports.useTabPanel=c;
|
package/index157.mjs
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import { generateId as r } from "./index346.mjs";
|
|
2
|
+
import { mergeProps as n } from "./index111.mjs";
|
|
3
|
+
import { useLabels as c } from "./index175.mjs";
|
|
4
|
+
import { useHasTabbableChild as f } from "@react-aria/focus";
|
|
5
|
+
function m(a, e, b) {
|
|
6
|
+
let i = f(b) ? void 0 : 0;
|
|
7
|
+
var d;
|
|
8
|
+
const l = r(e, (d = a.id) !== null && d !== void 0 ? d : e == null ? void 0 : e.selectedKey, "tabpanel"), o = c({
|
|
9
|
+
...a,
|
|
10
|
+
id: l,
|
|
11
|
+
"aria-labelledby": r(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
tabPanelProps: n(o, {
|
|
15
|
+
tabIndex: i,
|
|
16
|
+
role: "tabpanel",
|
|
17
|
+
"aria-describedby": a["aria-describedby"],
|
|
18
|
+
"aria-details": a["aria-details"]
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
}
|
|
4
22
|
export {
|
|
5
|
-
|
|
23
|
+
m as useTabPanel
|
|
6
24
|
};
|
package/index158.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 n=require("react"),v={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},x={...v,customError:!0,valid:!1},c={isInvalid:!1,validationDetails:v,validationErrors:[]},h=n.createContext({}),I="__formValidationState"+Date.now();function R(e){if(e[I]){let{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}=e[I];return{realtimeValidation:a,displayValidation:t,updateValidation:i,resetValidation:d,commitValidation:l}}return w(e)}function w(e){let{isInvalid:a,validationState:t,name:i,value:d,builtinValidation:l,validate:s,validationBehavior:o="aria"}=e;t&&(a||(a=t==="invalid"));let V=a!==void 0?{isInvalid:a,validationErrors:[],validationDetails:x}:null,m=n.useMemo(()=>{if(!s||d==null)return null;let r=F(s,d);return T(r)},[s,d]);l!=null&&l.validationDetails.valid&&(l=void 0);let u=n.useContext(h),A=n.useMemo(()=>i?Array.isArray(i)?i.flatMap(r=>D(u[r])):D(u[i]):[],[u,i]),[C,L]=n.useState(u),[g,$]=n.useState(!1);u!==C&&(L(u),$(!1));let b=n.useMemo(()=>T(g?[]:A),[g,A]),M=n.useRef(c),[E,p]=n.useState(c),f=n.useRef(c),_=()=>{if(!O)return;S(!1);let r=m||l||M.current;y(r,f.current)||(f.current=r,p(r))},[O,S]=n.useState(!1);return n.useEffect(_),{realtimeValidation:V||b||m||l||c,displayValidation:o==="native"?V||b||E:V||b||m||l||E,updateValidation(r){o==="aria"&&!y(E,r)?p(r):M.current=r},resetValidation(){let r=c;y(r,f.current)||(f.current=r,p(r)),o==="native"&&S(!1),$(!0)},commitValidation(){o==="native"&&S(!0),$(!0)}}}function D(e){return e?Array.isArray(e)?e:[e]:[]}function F(e,a){if(typeof e=="function"){let t=e(a);if(t&&typeof t!="boolean")return D(t)}return[]}function T(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:x}:null}function y(e,a){return e===a?!0:!!e&&!!a&&e.isInvalid===a.isInvalid&&e.validationErrors.length===a.validationErrors.length&&e.validationErrors.every((t,i)=>t===a.validationErrors[i])&&Object.entries(e.validationDetails).every(([t,i])=>a.validationDetails[t]===i)}function U(...e){let a=new Set,t=!1,i={...v};for(let s of e){var d,l;for(let o of s.validationErrors)a.add(o);t||(t=s.isInvalid);for(let o in i)(d=i)[l=o]||(d[l]=s.validationDetails[o])}return i.valid=!t,{isInvalid:t,validationErrors:[...a],validationDetails:i}}exports.DEFAULT_VALIDATION_RESULT=c;exports.FormValidationContext=h;exports.VALID_VALIDITY_STATE=v;exports.mergeValidation=U;exports.privateValidationStateProp=I;exports.useFormValidationState=R;
|
package/index158.mjs
CHANGED
|
@@ -1,27 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { createContext as O, useMemo as I, useContext as U, useState as f, useRef as T, useEffect as R } from "react";
|
|
2
|
+
const D = {
|
|
3
|
+
badInput: !1,
|
|
4
|
+
customError: !1,
|
|
5
|
+
patternMismatch: !1,
|
|
6
|
+
rangeOverflow: !1,
|
|
7
|
+
rangeUnderflow: !1,
|
|
8
|
+
stepMismatch: !1,
|
|
9
|
+
tooLong: !1,
|
|
10
|
+
tooShort: !1,
|
|
11
|
+
typeMismatch: !1,
|
|
12
|
+
valueMissing: !1,
|
|
13
|
+
valid: !0
|
|
14
|
+
}, L = {
|
|
15
|
+
...D,
|
|
16
|
+
customError: !0,
|
|
17
|
+
valid: !1
|
|
18
|
+
}, u = {
|
|
19
|
+
isInvalid: !1,
|
|
20
|
+
validationDetails: D,
|
|
21
|
+
validationErrors: []
|
|
22
|
+
}, B = O({}), h = "__formValidationState" + Date.now();
|
|
23
|
+
function P(a) {
|
|
24
|
+
if (a[h]) {
|
|
25
|
+
let { realtimeValidation: e, displayValidation: t, updateValidation: i, resetValidation: o, commitValidation: l } = a[h];
|
|
26
|
+
return {
|
|
27
|
+
realtimeValidation: e,
|
|
28
|
+
displayValidation: t,
|
|
29
|
+
updateValidation: i,
|
|
30
|
+
resetValidation: o,
|
|
31
|
+
commitValidation: l
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return Q(a);
|
|
35
|
+
}
|
|
36
|
+
function Q(a) {
|
|
37
|
+
let { isInvalid: e, validationState: t, name: i, value: o, builtinValidation: l, validate: d, validationBehavior: n = "aria" } = a;
|
|
38
|
+
t && (e || (e = t === "invalid"));
|
|
39
|
+
let v = e !== void 0 ? {
|
|
40
|
+
isInvalid: e,
|
|
41
|
+
validationErrors: [],
|
|
42
|
+
validationDetails: L
|
|
43
|
+
} : null, V = I(() => {
|
|
44
|
+
if (!d || o == null) return null;
|
|
45
|
+
let r = Y(d, o);
|
|
46
|
+
return C(r);
|
|
47
|
+
}, [
|
|
48
|
+
d,
|
|
49
|
+
o
|
|
50
|
+
]);
|
|
51
|
+
l != null && l.validationDetails.valid && (l = void 0);
|
|
52
|
+
let s = U(B), A = I(() => i ? Array.isArray(i) ? i.flatMap((r) => S(s[r])) : S(s[i]) : [], [
|
|
53
|
+
s,
|
|
54
|
+
i
|
|
55
|
+
]), [M, _] = f(s), [x, m] = f(!1);
|
|
56
|
+
s !== M && (_(s), m(!1));
|
|
57
|
+
let $ = I(() => C(x ? [] : A), [
|
|
58
|
+
x,
|
|
59
|
+
A
|
|
60
|
+
]), g = T(u), [b, E] = f(u), c = T(u), w = () => {
|
|
61
|
+
if (!F) return;
|
|
62
|
+
p(!1);
|
|
63
|
+
let r = V || l || g.current;
|
|
64
|
+
y(r, c.current) || (c.current = r, E(r));
|
|
65
|
+
}, [F, p] = f(!1);
|
|
66
|
+
return R(w), {
|
|
67
|
+
realtimeValidation: v || $ || V || l || u,
|
|
68
|
+
displayValidation: n === "native" ? v || $ || b : v || $ || V || l || b,
|
|
69
|
+
updateValidation(r) {
|
|
70
|
+
n === "aria" && !y(b, r) ? E(r) : g.current = r;
|
|
71
|
+
},
|
|
72
|
+
resetValidation() {
|
|
73
|
+
let r = u;
|
|
74
|
+
y(r, c.current) || (c.current = r, E(r)), n === "native" && p(!1), m(!0);
|
|
75
|
+
},
|
|
76
|
+
commitValidation() {
|
|
77
|
+
n === "native" && p(!0), m(!0);
|
|
11
78
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function S(a) {
|
|
82
|
+
return a ? Array.isArray(a) ? a : [
|
|
83
|
+
a
|
|
84
|
+
] : [];
|
|
85
|
+
}
|
|
86
|
+
function Y(a, e) {
|
|
87
|
+
if (typeof a == "function") {
|
|
88
|
+
let t = a(e);
|
|
89
|
+
if (t && typeof t != "boolean") return S(t);
|
|
90
|
+
}
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
function C(a) {
|
|
94
|
+
return a.length ? {
|
|
95
|
+
isInvalid: !0,
|
|
96
|
+
validationErrors: a,
|
|
97
|
+
validationDetails: L
|
|
98
|
+
} : null;
|
|
99
|
+
}
|
|
100
|
+
function y(a, e) {
|
|
101
|
+
return a === e ? !0 : !!a && !!e && a.isInvalid === e.isInvalid && a.validationErrors.length === e.validationErrors.length && a.validationErrors.every((t, i) => t === e.validationErrors[i]) && Object.entries(a.validationDetails).every(([t, i]) => e.validationDetails[t] === i);
|
|
102
|
+
}
|
|
103
|
+
function k(...a) {
|
|
104
|
+
let e = /* @__PURE__ */ new Set(), t = !1, i = {
|
|
105
|
+
...D
|
|
106
|
+
};
|
|
107
|
+
for (let d of a) {
|
|
108
|
+
var o, l;
|
|
109
|
+
for (let n of d.validationErrors) e.add(n);
|
|
110
|
+
t || (t = d.isInvalid);
|
|
111
|
+
for (let n in i) (o = i)[l = n] || (o[l] = d.validationDetails[n]);
|
|
112
|
+
}
|
|
113
|
+
return i.valid = !t, {
|
|
114
|
+
isInvalid: t,
|
|
115
|
+
validationErrors: [
|
|
116
|
+
...e
|
|
117
|
+
],
|
|
118
|
+
validationDetails: i
|
|
119
|
+
};
|
|
24
120
|
}
|
|
25
121
|
export {
|
|
26
|
-
|
|
122
|
+
u as DEFAULT_VALIDATION_RESULT,
|
|
123
|
+
B as FormValidationContext,
|
|
124
|
+
D as VALID_VALIDITY_STATE,
|
|
125
|
+
k as mergeValidation,
|
|
126
|
+
h as privateValidationStateProp,
|
|
127
|
+
P as useFormValidationState
|
|
27
128
|
};
|
package/index159.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 l=require("react");function C(o,b,u){let[p,s]=l.useState(o||b),i=l.useRef(o!==void 0),e=o!==void 0;l.useEffect(()=>{let t=i.current;t!==e&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${e?"controlled":"uncontrolled"}.`),i.current=e},[e]);let n=e?o:p,S=l.useCallback((t,...f)=>{let a=(r,...c)=>{u&&(Object.is(n,r)||u(r,...c)),e||(n=r)};typeof t=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((c,...m)=>{let d=t(e?n:c,...m);return a(d,...f),e?c:d})):(e||s(t),a(t,...f))},[e,n,u]);return[n,S]}exports.useControlledState=C;
|
package/index159.mjs
CHANGED
|
@@ -1,50 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return t || `${n}-${r}`;
|
|
28
|
-
}
|
|
29
|
-
function x(t) {
|
|
30
|
-
let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
|
|
31
|
-
return t || `${n}-${e}`;
|
|
32
|
-
}
|
|
33
|
-
const C = typeof a.useId == "function" ? x : b;
|
|
34
|
-
function m() {
|
|
35
|
-
return !1;
|
|
36
|
-
}
|
|
37
|
-
function w() {
|
|
38
|
-
return !0;
|
|
39
|
-
}
|
|
40
|
-
function g(t) {
|
|
41
|
-
return () => {
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function y() {
|
|
45
|
-
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : s(p);
|
|
1
|
+
import { useState as C, useRef as $, useEffect as S, useCallback as V } from "react";
|
|
2
|
+
function w(o, d, c) {
|
|
3
|
+
let [p, s] = C(o || d), u = $(o !== void 0), e = o !== void 0;
|
|
4
|
+
S(() => {
|
|
5
|
+
let t = u.current;
|
|
6
|
+
t !== e && console.warn(`WARN: A component changed from ${t ? "controlled" : "uncontrolled"} to ${e ? "controlled" : "uncontrolled"}.`), u.current = e;
|
|
7
|
+
}, [
|
|
8
|
+
e
|
|
9
|
+
]);
|
|
10
|
+
let n = e ? o : p, b = V((t, ...i) => {
|
|
11
|
+
let f = (r, ...l) => {
|
|
12
|
+
c && (Object.is(n, r) || c(r, ...l)), e || (n = r);
|
|
13
|
+
};
|
|
14
|
+
typeof t == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), s((l, ...m) => {
|
|
15
|
+
let a = t(e ? n : l, ...m);
|
|
16
|
+
return f(a, ...i), e ? l : a;
|
|
17
|
+
})) : (e || s(t), f(t, ...i));
|
|
18
|
+
}, [
|
|
19
|
+
e,
|
|
20
|
+
n,
|
|
21
|
+
c
|
|
22
|
+
]);
|
|
23
|
+
return [
|
|
24
|
+
n,
|
|
25
|
+
b
|
|
26
|
+
];
|
|
46
27
|
}
|
|
47
28
|
export {
|
|
48
|
-
|
|
49
|
-
C as useSSRSafeId
|
|
29
|
+
w as useControlledState
|
|
50
30
|
};
|
package/index160.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index246.js"),f=require("react"),E=require("./index163.js"),v=require("./index184.js");function g(i,e,t){let{validationBehavior:s,focus:u}=i;E.useLayoutEffect(()=>{if(s==="native"&&(t!=null&&t.current)){let n=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";t.current.setCustomValidity(n),t.current.hasAttribute("title")||(t.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(h(t.current))}});let o=v.useEffectEvent(()=>{e.resetValidation()}),l=v.useEffectEvent(n=>{var a;e.displayValidation.isInvalid||e.commitValidation();let c=t==null||(a=t.current)===null||a===void 0?void 0:a.form;if(!n.defaultPrevented&&t&&c&&M(c)===t.current){var d;u?u():(d=t.current)===null||d===void 0||d.focus(),m.setInteractionModality("keyboard")}n.preventDefault()}),r=v.useEffectEvent(()=>{e.commitValidation()});f.useEffect(()=>{let n=t==null?void 0:t.current;if(!n)return;let a=n.form;return n.addEventListener("invalid",l),n.addEventListener("change",r),a==null||a.addEventListener("reset",o),()=>{n.removeEventListener("invalid",l),n.removeEventListener("change",r),a==null||a.removeEventListener("reset",o)}},[t,l,r,o,s])}function y(i){let e=i.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function h(i){return{isInvalid:!i.validity.valid,validationDetails:y(i),validationErrors:i.validationMessage?[i.validationMessage]:[]}}function M(i){for(let e=0;e<i.elements.length;e++){let t=i.elements[e];if(!t.validity.valid)return t}return null}exports.useFormValidation=g;
|
package/index160.mjs
CHANGED
|
@@ -1,8 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { setInteractionModality as m } from "./index246.mjs";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { useLayoutEffect as $ } from "./index163.mjs";
|
|
4
|
+
import { useEffectEvent as v } from "./index184.mjs";
|
|
5
|
+
function V(t, i, e) {
|
|
6
|
+
let { validationBehavior: s, focus: u } = t;
|
|
7
|
+
$(() => {
|
|
8
|
+
if (s === "native" && (e != null && e.current)) {
|
|
9
|
+
let a = i.realtimeValidation.isInvalid ? i.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
10
|
+
e.current.setCustomValidity(a), e.current.hasAttribute("title") || (e.current.title = ""), i.realtimeValidation.isInvalid || i.updateValidation(g(e.current));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
let o = v(() => {
|
|
14
|
+
i.resetValidation();
|
|
15
|
+
}), l = v((a) => {
|
|
16
|
+
var n;
|
|
17
|
+
i.displayValidation.isInvalid || i.commitValidation();
|
|
18
|
+
let c = e == null || (n = e.current) === null || n === void 0 ? void 0 : n.form;
|
|
19
|
+
if (!a.defaultPrevented && e && c && h(c) === e.current) {
|
|
20
|
+
var d;
|
|
21
|
+
u ? u() : (d = e.current) === null || d === void 0 || d.focus(), m("keyboard");
|
|
22
|
+
}
|
|
23
|
+
a.preventDefault();
|
|
24
|
+
}), r = v(() => {
|
|
25
|
+
i.commitValidation();
|
|
26
|
+
});
|
|
27
|
+
f(() => {
|
|
28
|
+
let a = e == null ? void 0 : e.current;
|
|
29
|
+
if (!a) return;
|
|
30
|
+
let n = a.form;
|
|
31
|
+
return a.addEventListener("invalid", l), a.addEventListener("change", r), n == null || n.addEventListener("reset", o), () => {
|
|
32
|
+
a.removeEventListener("invalid", l), a.removeEventListener("change", r), n == null || n.removeEventListener("reset", o);
|
|
33
|
+
};
|
|
34
|
+
}, [
|
|
35
|
+
e,
|
|
36
|
+
l,
|
|
37
|
+
r,
|
|
38
|
+
o,
|
|
39
|
+
s
|
|
40
|
+
]);
|
|
41
|
+
}
|
|
42
|
+
function p(t) {
|
|
43
|
+
let i = t.validity;
|
|
44
|
+
return {
|
|
45
|
+
badInput: i.badInput,
|
|
46
|
+
customError: i.customError,
|
|
47
|
+
patternMismatch: i.patternMismatch,
|
|
48
|
+
rangeOverflow: i.rangeOverflow,
|
|
49
|
+
rangeUnderflow: i.rangeUnderflow,
|
|
50
|
+
stepMismatch: i.stepMismatch,
|
|
51
|
+
tooLong: i.tooLong,
|
|
52
|
+
tooShort: i.tooShort,
|
|
53
|
+
typeMismatch: i.typeMismatch,
|
|
54
|
+
valueMissing: i.valueMissing,
|
|
55
|
+
valid: i.valid
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function g(t) {
|
|
59
|
+
return {
|
|
60
|
+
isInvalid: !t.validity.valid,
|
|
61
|
+
validationDetails: p(t),
|
|
62
|
+
validationErrors: t.validationMessage ? [
|
|
63
|
+
t.validationMessage
|
|
64
|
+
] : []
|
|
4
65
|
};
|
|
5
66
|
}
|
|
67
|
+
function h(t) {
|
|
68
|
+
for (let i = 0; i < t.elements.length; i++) {
|
|
69
|
+
let e = t.elements[i];
|
|
70
|
+
if (!e.validity.valid) return e;
|
|
71
|
+
}
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
6
74
|
export {
|
|
7
|
-
|
|
75
|
+
V as useFormValidation
|
|
8
76
|
};
|
package/index161.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=o=>{var n;return(n=o==null?void 0:o.ownerDocument)!==null&&n!==void 0?n:document},e=o=>o&&"window"in o&&o.window===o?o:t(o).defaultView||window;exports.getOwnerDocument=t;exports.getOwnerWindow=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index342.js"),te=require("./index340.js"),re=require("./index343.js"),ne=require("./index231.js"),H=require("./index344.js"),ie=require("./index166.js"),S=require("./index167.js"),j=require("./index111.js"),X=require("./index170.js"),G=require("./index171.js"),se=require("./index174.js"),oe=require("./index178.js"),ae=require("./index172.js"),A=require("./index186.js"),C=require("./index184.js"),I=require("react");function ue(i){let s=I.useContext(te.PressResponderContext);if(s){let{register:a,...u}=s;i=j.mergeProps(u,i),a()}return oe.useSyncRef(s,i.ref),i}var Y=new WeakMap;class _{continuePropagation(){H._(this,Y,!1)}get shouldStopPropagation(){return re._(this,Y)}constructor(s,a,u,f){ne._(this,Y,{writable:!0,value:void 0}),H._(this,Y,!0);var T;let g=(T=f==null?void 0:f.target)!==null&&T!==void 0?T:u.currentTarget;const O=g==null?void 0:g.getBoundingClientRect();let P,D=0,d,L=null;u.clientX!=null&&u.clientY!=null&&(d=u.clientX,L=u.clientY),O&&(d!=null&&L!=null?(P=d-O.left,D=L-O.top):(P=O.width/2,D=O.height/2)),this.type=s,this.pointerType=a,this.target=u.currentTarget,this.shiftKey=u.shiftKey,this.metaKey=u.metaKey,this.ctrlKey=u.ctrlKey,this.altKey=u.altKey,this.x=P,this.y=D}}const V=Symbol("linkClicked");function le(i){let{onPress:s,onPressChange:a,onPressStart:u,onPressEnd:f,onPressUp:T,isDisabled:g,isPressed:O,preventFocusOnPress:P,shouldCancelOnPointerExit:D,allowTextSelectionOnPress:d,ref:L,...Q}=ue(i),[Z,F]=I.useState(!1),b=I.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:M}=se.useGlobalListeners(),y=C.useEffectEvent((e,o)=>{let v=b.current;if(g||v.didFirePressStart)return!1;let n=!0;if(v.isTriggeringEvent=!0,u){let c=new _("pressstart",o,e);u(c),n=c.shouldStopPropagation}return a&&a(!0),v.isTriggeringEvent=!1,v.didFirePressStart=!0,F(!0),n}),p=C.useEffectEvent((e,o,v=!0)=>{let n=b.current;if(!n.didFirePressStart)return!1;n.ignoreClickAfterPress=!0,n.didFirePressStart=!1,n.isTriggeringEvent=!0;let c=!0;if(f){let t=new _("pressend",o,e);f(t),c=t.shouldStopPropagation}if(a&&a(!1),F(!1),s&&v&&!g){let t=new _("press",o,e);s(t),c&&(c=t.shouldStopPropagation)}return n.isTriggeringEvent=!1,c}),k=C.useEffectEvent((e,o)=>{let v=b.current;if(g)return!1;if(T){v.isTriggeringEvent=!0;let n=new _("pressup",o,e);return T(n),v.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),K=C.useEffectEvent(e=>{let o=b.current;o.isPressed&&o.target&&(o.isOverTarget&&o.pointerType!=null&&p(E(o.target,e),o.pointerType,!1),o.isPressed=!1,o.isOverTarget=!1,o.activePointerId=null,o.pointerType=null,M(),d||w.restoreTextSelection(o.target))}),q=C.useEffectEvent(e=>{D&&K(e)}),ee=I.useMemo(()=>{let e=b.current,o={onKeyDown(n){if(R(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){var c;N(n.target,n.key)&&n.preventDefault();let t=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,t=y(n,"keyboard");let l=n.currentTarget,r=h=>{R(h,l)&&!h.repeat&&l.contains(h.target)&&e.target&&k(E(e.target,h),"keyboard")};m(S.getOwnerDocument(n.currentTarget),"keyup",ie.chain(r,v),!0)}t&&n.stopPropagation(),n.metaKey&&ae.isMac()&&((c=e.metaKeyEvents)===null||c===void 0||c.set(n.key,n.nativeEvent))}else n.key==="Meta"&&(e.metaKeyEvents=new Map)},onClick(n){if(!(n&&!n.currentTarget.contains(n.target))&&n&&n.button===0&&!e.isTriggeringEvent&&!G.openLink.isOpening){let c=!0;if(g&&n.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType==="virtual"||A.isVirtualClick(n.nativeEvent))){!g&&!P&&X.focusWithoutScrolling(n.currentTarget);let t=y(n,"virtual"),l=k(n,"virtual"),r=p(n,"virtual");c=t&&l&&r}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,c&&n.stopPropagation()}}},v=n=>{var c;if(e.isPressed&&e.target&&R(n,e.target)){var t;N(n.target,n.key)&&n.preventDefault();let r=n.target;p(E(e.target,n),"keyboard",e.target.contains(r)),M(),n.key!=="Enter"&&W(e.target)&&e.target.contains(r)&&!n[V]&&(n[V]=!0,G.openLink(e.target,n,!1)),e.isPressed=!1,(t=e.metaKeyEvents)===null||t===void 0||t.delete(n.key)}else if(n.key==="Meta"&&(!((c=e.metaKeyEvents)===null||c===void 0)&&c.size)){var l;let r=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let h of r.values())(l=e.target)===null||l===void 0||l.dispatchEvent(new KeyboardEvent("keyup",h))}};if(typeof PointerEvent<"u"){o.onPointerDown=r=>{if(r.button!==0||!r.currentTarget.contains(r.target))return;if(A.isVirtualPointerEvent(r.nativeEvent)){e.pointerType="virtual";return}U(r.currentTarget)&&r.preventDefault(),e.pointerType=r.pointerType;let h=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=r.pointerId,e.target=r.currentTarget,!g&&!P&&X.focusWithoutScrolling(r.currentTarget),d||w.disableTextSelection(e.target),h=y(r,e.pointerType),m(S.getOwnerDocument(r.currentTarget),"pointermove",n,!1),m(S.getOwnerDocument(r.currentTarget),"pointerup",c,!1),m(S.getOwnerDocument(r.currentTarget),"pointercancel",l,!1)),h&&r.stopPropagation()},o.onMouseDown=r=>{r.currentTarget.contains(r.target)&&r.button===0&&(U(r.currentTarget)&&r.preventDefault(),r.stopPropagation())},o.onPointerUp=r=>{!r.currentTarget.contains(r.target)||e.pointerType==="virtual"||r.button===0&&x(r,r.currentTarget)&&k(r,e.pointerType||r.pointerType)};let n=r=>{r.pointerId===e.activePointerId&&(e.target&&x(r,e.target)?!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(E(e.target,r),e.pointerType)):e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,p(E(e.target,r),e.pointerType,!1),q(r)))},c=r=>{r.pointerId===e.activePointerId&&e.isPressed&&r.button===0&&e.target&&(x(r,e.target)&&e.pointerType!=null?p(E(e.target,r),e.pointerType):e.isOverTarget&&e.pointerType!=null&&p(E(e.target,r),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,M(),d||w.restoreTextSelection(e.target),"ontouchend"in e.target&&r.pointerType!=="mouse"&&m(e.target,"touchend",t,{once:!0}))},t=r=>{z(r.currentTarget)&&r.preventDefault()},l=r=>{K(r)};o.onDragStart=r=>{r.currentTarget.contains(r.target)&&K(r)}}else{o.onMouseDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if(U(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=A.isVirtualClick(t.nativeEvent)?"virtual":"mouse",!g&&!P&&X.focusWithoutScrolling(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),m(S.getOwnerDocument(t.currentTarget),"mouseup",n,!1)},o.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let l=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!0,l=y(t,e.pointerType)),l&&t.stopPropagation()},o.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let l=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&e.pointerType!=null&&(e.isOverTarget=!1,l=p(t,e.pointerType,!1),q(t)),l&&t.stopPropagation()},o.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&t.button===0&&k(t,e.pointerType||"mouse")};let n=t=>{if(t.button===0){if(e.isPressed=!1,M(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&x(t,e.target)&&e.pointerType!=null?p(E(e.target,t),e.pointerType):e.target&&e.isOverTarget&&e.pointerType!=null&&p(E(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};o.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let l=ce(t.nativeEvent);if(!l)return;e.activePointerId=l.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",!g&&!P&&X.focusWithoutScrolling(t.currentTarget),d||w.disableTextSelection(e.target),y($(e.target,t),e.pointerType)&&t.stopPropagation(),m(S.getOwnerWindow(t.currentTarget),"scroll",c,!0)},o.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let l=B(t.nativeEvent,e.activePointerId),r=!0;l&&x(l,t.currentTarget)?!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,r=y($(e.target,t),e.pointerType)):e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,r=p($(e.target,t),e.pointerType,!1),q($(e.target,t))),r&&t.stopPropagation()},o.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let l=B(t.nativeEvent,e.activePointerId),r=!0;l&&x(l,t.currentTarget)&&e.pointerType!=null?(k($(e.target,t),e.pointerType),r=p($(e.target,t),e.pointerType)):e.isOverTarget&&e.pointerType!=null&&(r=p($(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&w.restoreTextSelection(e.target),M()},o.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&K($(e.target,t)))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&K({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};o.onDragStart=t=>{t.currentTarget.contains(t.target)&&K(t)}}return o},[m,g,P,M,d,K,q,p,y,k]);return I.useEffect(()=>()=>{var e;d||w.restoreTextSelection((e=b.current.target)!==null&&e!==void 0?e:void 0)},[d]),{isPressed:O||Z,pressProps:j.mergeProps(Q,ee)}}function W(i){return i.tagName==="A"&&i.hasAttribute("href")}function R(i,s){const{key:a,code:u}=i,f=s,T=f.getAttribute("role");return(a==="Enter"||a===" "||a==="Spacebar"||u==="Space")&&!(f instanceof S.getOwnerWindow(f).HTMLInputElement&&!J(f,a)||f instanceof S.getOwnerWindow(f).HTMLTextAreaElement||f.isContentEditable)&&!((T==="link"||!T&&W(f))&&a!=="Enter")}function ce(i){const{targetTouches:s}=i;return s.length>0?s[0]:null}function B(i,s){const a=i.changedTouches;for(let u=0;u<a.length;u++){const f=a[u];if(f.identifier===s)return f}return null}function $(i,s){let a=0,u=0;return s.targetTouches&&s.targetTouches.length===1&&(a=s.targetTouches[0].clientX,u=s.targetTouches[0].clientY),{currentTarget:i,shiftKey:s.shiftKey,ctrlKey:s.ctrlKey,metaKey:s.metaKey,altKey:s.altKey,clientX:a,clientY:u}}function E(i,s){let a=s.clientX,u=s.clientY;return{currentTarget:i,shiftKey:s.shiftKey,ctrlKey:s.ctrlKey,metaKey:s.metaKey,altKey:s.altKey,clientX:a,clientY:u}}function fe(i){let s=0,a=0;return i.width!==void 0?s=i.width/2:i.radiusX!==void 0&&(s=i.radiusX),i.height!==void 0?a=i.height/2:i.radiusY!==void 0&&(a=i.radiusY),{top:i.clientY-a,right:i.clientX+s,bottom:i.clientY+a,left:i.clientX-s}}function ge(i,s){return!(i.left>s.right||s.left>i.right||i.top>s.bottom||s.top>i.bottom)}function x(i,s){let a=s.getBoundingClientRect(),u=fe(i);return ge(a,u)}function U(i){return!(i instanceof HTMLElement)||!i.hasAttribute("draggable")}function z(i){return i instanceof HTMLInputElement?!1:i instanceof HTMLButtonElement?i.type!=="submit"&&i.type!=="reset":!W(i)}function N(i,s){return i instanceof HTMLInputElement?!J(i,s):z(i)}const pe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function J(i,s){return i.type==="checkbox"||i.type==="radio"?s===" ":pe.has(i.type)}exports.usePress=le;
|