@rpcbase/ui 0.225.0 → 0.227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PhoneNumberInput/index.d.ts +1 -1
- package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
- package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/types.d.ts +4 -4
- package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
- package/dist/index106.js +36 -36
- package/dist/index118.js +6 -6
- package/dist/index121.js +10 -10
- package/dist/index123.js +2 -2
- package/dist/index124.js +3 -3
- package/dist/index125.js +1 -1
- package/dist/index127.js +2 -2
- package/dist/index129.js +2 -2
- package/dist/index150.js +11 -5
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +63 -63
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +38 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +13 -363
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +23 -261
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +108 -58
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +13 -47
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -169
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -110
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -25
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +12 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +19 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +13 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +261 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -466
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +27 -185
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +5 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +78 -9
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +63 -39
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +8 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +16 -12
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +89 -65
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +66 -38
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +45 -13
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +5 -23
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +66 -108
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +363 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +262 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +383 -401
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +61 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +46 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +168 -18
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +110 -13
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +24 -261
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +8 -5
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +5 -28
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +5 -126
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +465 -77
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +181 -62
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +107 -8
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +262 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -91
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +42 -65
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -45
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +20 -59
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +66 -8
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +6 -66
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +11 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +48 -14
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +29 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +16 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +21 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +51 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +25 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +41 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +39 -12
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +45 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -13
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +70 -13
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +11 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +27 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +13 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -53
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +36 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +262 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +278 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +68 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +99 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +83 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +29 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +35 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +16 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +28 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +78 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +269 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -29
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +16 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +124 -24
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +40 -16
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +65 -7
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +13 -10
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +7 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +5 -21
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +3 -10
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +10 -9
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +133 -4
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +399 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -16
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -9
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +11 -18
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +58 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -12
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +65 -12
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +17 -152
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +15 -29
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +5 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +4 -47
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -11
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +4 -44
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +6 -95
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +16 -86
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +4 -105
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -52
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +12 -11
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -37
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +13 -8
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +13 -116
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +4 -17
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -15
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +6 -3
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -36
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +53 -19
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +4 -8
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -19
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +8 -28
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +4 -16
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +4 -66
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +10 -11
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +9 -8
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +9 -5
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +10 -13
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +10 -3
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +9 -3
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +6 -99
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +5 -17
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +4 -5
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -29
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -51
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +5 -133
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +15 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +8 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +11 -4
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -11
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +21 -21
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +10 -122
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +9 -27
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -32
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +4 -73
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -262
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +14 -26
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +9 -6
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +18 -142
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +15 -61
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +10 -47
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +28 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +13 -20
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +25 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +5 -50
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +8 -16
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +11 -21
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -50
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +13 -25
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +3 -41
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +3 -39
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +18 -45
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +5 -20
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +49 -68
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +119 -14
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +32 -11
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +73 -13
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +142 -18
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +61 -36
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +49 -278
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +15 -69
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -82
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -4
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +11 -29
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +21 -16
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +14 -35
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +154 -16
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +30 -3
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +9 -26
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +49 -4
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +10 -77
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +43 -268
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +95 -11
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +87 -11
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +104 -24
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +52 -16
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +10 -124
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +37 -5
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +7 -39
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +108 -57
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +18 -14
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +15 -7
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +3 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +36 -3
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +20 -10
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +9 -7
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +7 -398
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +18 -51
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +28 -11
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +16 -11
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +4 -5
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +11 -17
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +16 -12
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +5 -20
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +20 -8
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +44 -25
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +18 -27
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +5 -138
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +199 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +75 -224
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +4 -3
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +18 -20
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +12 -77
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +9 -12
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +26 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +26 -77
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +134 -197
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +11 -70
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +227 -9
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +3 -15
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +18 -15
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +78 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +12 -12
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +3 -5
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +70 -19
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +9 -45
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +16 -18
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +21 -5
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +3 -5
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +3 -5
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -4
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +4 -15
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +4 -9
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +15 -5
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +8 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +5 -545
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +5 -47
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +543 -15
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +47 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +17 -7
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +5 -6
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +7 -7
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +6 -11
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +7 -8
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +11 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +8 -14
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +12 -491
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +15 -3
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +492 -3
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +7 -4
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +2 -56
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +43 -67
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +56 -31
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +8 -9
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +2 -153
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +54 -107
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +55 -7
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +5 -2
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +54 -42
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +68 -56
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +31 -8
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +9 -2
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +152 -54
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +108 -56
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -16
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +2 -29
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +2 -13
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -7
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +16 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +29 -2
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +13 -2
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +7 -2
- package/dist/index430.js.map +1 -1
- package/dist/index44.js +22 -21
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +22 -196
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +48 -40
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +2 -2
- package/dist/index49.js +34 -34
- package/dist/index50.js +29 -29
- package/dist/index51.js +2 -2
- package/dist/index52.js +12 -12
- package/dist/index53.js +4 -4
- package/dist/index54.js +1 -1
- package/dist/index55.js +22 -22
- package/dist/index56.js +5 -5
- package/dist/index57.js +5 -5
- package/dist/index58.js +8 -8
- package/dist/index59.js +5 -5
- package/dist/index60.js +17 -17
- package/dist/index61.js +5 -5
- package/dist/index62.js +3 -3
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/package.json +1 -1
package/dist/index306.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { dateMatchModifiers as u } from "./index32.js";
|
|
2
|
+
import { getFocusableDate as g } from "./index371.js";
|
|
3
|
+
import { CalendarDay as m } from "./index258.js";
|
|
4
|
+
function h(t, i, a, d, f, e, n, s = 0) {
|
|
5
|
+
if (s > 365)
|
|
6
|
+
return;
|
|
7
|
+
const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
|
|
8
|
+
return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
|
|
6
9
|
}
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
h as getNextFocus
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=index306.js.map
|
package/dist/index306.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index306.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index306.js","sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;AAoBO,SAASA,EAAaC,GAAQC,GAASC,GAAQC,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,GAAG;AACrH,MAAIA,IAAU;AAEV;AAEJ,QAAMC,IAAgBC,EAAiBT,GAAQC,GAASC,EAAO,MAAMC,GAAoBC,GAAkBC,GAAOC,CAAO,GACnHI,IAAa,GAAQL,EAAM,YAC7BM,EAAmBH,GAAeH,EAAM,UAAUC,CAAO,IACvDM,IAAW,GAAQP,EAAM,UAAUM,EAAmBH,GAAeH,EAAM,QAAQC,CAAO,IAC1FO,IAAcL,GACdM,IAAW,IAAIC,EAAYP,GAAeK,GAAaP,CAAO;AACpE,SAAI,CAACI,KAAc,CAACE,IACTE,IAGJf,EAAaC,GAAQC,GAASa,GAAUX,GAAoBC,GAAkBC,GAAOC,GAASC,IAAU,CAAC;AACpH;","x_google_ignoreList":[0]}
|
package/dist/index307.js
CHANGED
|
@@ -1,146 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Non-reactive values such as refs, callbacks, etc.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Synchronizes a single external value into the store.
|
|
23
|
-
*
|
|
24
|
-
* Note that the while the value in `state` is updated immediately, the value returned
|
|
25
|
-
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
26
|
-
*/
|
|
27
|
-
useSyncedValue(e, t) {
|
|
28
|
-
u.useDebugValue(e), c(() => {
|
|
29
|
-
this.state[e] !== t && this.set(e, t);
|
|
30
|
-
}, [e, t]);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Synchronizes a single external value into the store and
|
|
34
|
-
* cleans it up (sets to `undefined`) on unmount.
|
|
35
|
-
*
|
|
36
|
-
* Note that the while the value in `state` is updated immediately, the value returned
|
|
37
|
-
* by `useState` is updated before the next render (similarly to React's `useState`).
|
|
38
|
-
*/
|
|
39
|
-
useSyncedValueWithCleanup(e, t) {
|
|
40
|
-
const s = this;
|
|
41
|
-
c(() => (s.state[e] !== t && s.set(e, t), () => {
|
|
42
|
-
s.set(e, void 0);
|
|
43
|
-
}), [s, e, t]);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Synchronizes multiple external values into the store.
|
|
47
|
-
*
|
|
48
|
-
* Note that the while the values in `state` are updated immediately, the values returned
|
|
49
|
-
* by `useState` are updated before the next render (similarly to React's `useState`).
|
|
50
|
-
*/
|
|
51
|
-
useSyncedValues(e) {
|
|
52
|
-
const t = this;
|
|
53
|
-
if (process.env.NODE_ENV !== "production") {
|
|
54
|
-
u.useDebugValue(e, (r) => Object.keys(r));
|
|
55
|
-
const o = u.useRef(Object.keys(e)).current, n = Object.keys(e);
|
|
56
|
-
(o.length !== n.length || o.some((r, i) => r !== n[i])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
57
|
-
}
|
|
58
|
-
const s = Object.values(e);
|
|
59
|
-
c(() => {
|
|
60
|
-
t.update(e);
|
|
61
|
-
}, [t, ...s]);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
|
|
65
|
-
* is non-undefined, the store's state at `key` is updated to match `controlled`.
|
|
66
|
-
*/
|
|
67
|
-
useControlledProp(e, t) {
|
|
68
|
-
u.useDebugValue(e);
|
|
69
|
-
const s = t !== void 0;
|
|
70
|
-
if (c(() => {
|
|
71
|
-
s && !Object.is(this.state[e], t) && super.setState({
|
|
72
|
-
...this.state,
|
|
73
|
-
[e]: t
|
|
74
|
-
});
|
|
75
|
-
}, [e, t, s]), process.env.NODE_ENV !== "production") {
|
|
76
|
-
const o = this.controlledValues ??= /* @__PURE__ */ new Map();
|
|
77
|
-
o.has(e) || o.set(e, s);
|
|
78
|
-
const n = o.get(e);
|
|
79
|
-
n !== void 0 && n !== s && console.error(`A component is changing the ${s ? "" : "un"}controlled state of ${e.toString()} to be ${s ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/** Gets the current value from the store using a selector with the provided key.
|
|
83
|
-
*
|
|
84
|
-
* @param key Key of the selector to use.
|
|
85
|
-
*/
|
|
86
|
-
select(e, t, s, o) {
|
|
87
|
-
const n = this.selectors[e];
|
|
88
|
-
return n(this.state, t, s, o);
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Returns a value from the store's state using a selector function.
|
|
92
|
-
* Used to subscribe to specific parts of the state.
|
|
93
|
-
* This methods causes a rerender whenever the selected state changes.
|
|
94
|
-
*
|
|
95
|
-
* @param key Key of the selector to use.
|
|
96
|
-
*/
|
|
97
|
-
useState(e, t, s, o) {
|
|
98
|
-
return u.useDebugValue(e), a(this, this.selectors[e], t, s, o);
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Wraps a function with `useStableCallback` to ensure it has a stable reference
|
|
102
|
-
* and assigns it to the context.
|
|
103
|
-
*
|
|
104
|
-
* @param key Key of the event callback. Must be a function in the context.
|
|
105
|
-
* @param fn Function to assign.
|
|
106
|
-
*/
|
|
107
|
-
useContextCallback(e, t) {
|
|
108
|
-
u.useDebugValue(e);
|
|
109
|
-
const s = f(t ?? h);
|
|
110
|
-
this.context[e] = s;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Returns a stable setter function for a specific key in the store's state.
|
|
114
|
-
* It's commonly used to pass as a ref callback to React elements.
|
|
115
|
-
*
|
|
116
|
-
* @param key Key of the state to set.
|
|
117
|
-
*/
|
|
118
|
-
useStateSetter(e) {
|
|
119
|
-
const t = u.useRef(void 0);
|
|
120
|
-
return t.current === void 0 && (t.current = (s) => {
|
|
121
|
-
this.set(e, s);
|
|
122
|
-
}), t.current;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Observes changes derived from the store's selectors and calls the listener when the selected value changes.
|
|
126
|
-
*
|
|
127
|
-
* @param key Key of the selector to observe.
|
|
128
|
-
* @param listener Listener function called when the selector result changes.
|
|
129
|
-
*/
|
|
130
|
-
observe(e, t) {
|
|
131
|
-
let s;
|
|
132
|
-
typeof e == "function" ? s = e : s = this.selectors[e];
|
|
133
|
-
let o = s(this.state);
|
|
134
|
-
return t(o, o, this), this.subscribe((n) => {
|
|
135
|
-
const r = s(n);
|
|
136
|
-
if (!Object.is(o, r)) {
|
|
137
|
-
const i = o;
|
|
138
|
-
o = r, t(r, i, this);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
1
|
+
import { useControlledValue as x } from "./index304.js";
|
|
2
|
+
function C(i, d) {
|
|
3
|
+
const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
|
|
4
|
+
return {
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (t, c, h) => {
|
|
7
|
+
let n = [...e ?? []];
|
|
8
|
+
if (u(t)) {
|
|
9
|
+
if (e?.length === S || f && e?.length === 1)
|
|
10
|
+
return;
|
|
11
|
+
n = e?.filter((y) => !o(y, t));
|
|
12
|
+
} else
|
|
13
|
+
e?.length === a ? n = [t] : n = [...n, t];
|
|
14
|
+
return l || m(n), l?.(n, t, c, h), n;
|
|
15
|
+
},
|
|
16
|
+
isSelected: u
|
|
17
|
+
};
|
|
142
18
|
}
|
|
143
19
|
export {
|
|
144
|
-
|
|
20
|
+
C as useMulti
|
|
145
21
|
};
|
|
146
22
|
//# sourceMappingURL=index307.js.map
|
package/dist/index307.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index307.js","sources":["../../../node_modules/@base-ui/utils/esm/store/ReactStore.js"],"sourcesContent":["/* False positives - ESLint thinks we're calling a hook from a class component. */\n/* eslint-disable react-hooks/rules-of-hooks */\n'use client';\n\nimport * as React from 'react';\nimport { Store } from \"./Store.js\";\nimport { useStore } from \"./useStore.js\";\nimport { useStableCallback } from \"../useStableCallback.js\";\nimport { useIsoLayoutEffect } from \"../useIsoLayoutEffect.js\";\nimport { NOOP } from \"../empty.js\";\n\n/**\n * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.\n */\nexport class ReactStore extends Store {\n /**\n * Creates a new ReactStore instance.\n *\n * @param state Initial state of the store.\n * @param context Non-reactive context values.\n * @param selectors Optional selectors for use with `useState`.\n */\n constructor(state, context = {}, selectors) {\n super(state);\n this.context = context;\n this.selectors = selectors;\n }\n\n /**\n * Non-reactive values such as refs, callbacks, etc.\n */\n\n /**\n * Synchronizes a single external value into the store.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValue(key, value) {\n React.useDebugValue(key);\n useIsoLayoutEffect(() => {\n if (this.state[key] !== value) {\n this.set(key, value);\n }\n }, [key, value]);\n }\n\n /**\n * Synchronizes a single external value into the store and\n * cleans it up (sets to `undefined`) on unmount.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValueWithCleanup(key, value) {\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n return () => {\n store.set(key, undefined);\n };\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes multiple external values into the store.\n *\n * Note that the while the values in `state` are updated immediately, the values returned\n * by `useState` are updated before the next render (similarly to React's `useState`).\n */\n useSyncedValues(statePart) {\n // eslint-disable-next-line consistent-this\n const store = this;\n if (process.env.NODE_ENV !== 'production') {\n // Check that an object with the same shape is passed on every render\n React.useDebugValue(statePart, p => Object.keys(p));\n const keys = React.useRef(Object.keys(statePart)).current;\n const nextKeys = Object.keys(statePart);\n if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) {\n console.error('ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.');\n }\n }\n const dependencies = Object.values(statePart);\n useIsoLayoutEffect(() => {\n store.update(statePart);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [store, ...dependencies]);\n }\n\n /**\n * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`\n * is non-undefined, the store's state at `key` is updated to match `controlled`.\n */\n useControlledProp(key, controlled) {\n React.useDebugValue(key);\n const isControlled = controlled !== undefined;\n useIsoLayoutEffect(() => {\n if (isControlled && !Object.is(this.state[key], controlled)) {\n // Set the internal state to match the controlled value.\n super.setState({\n ...this.state,\n [key]: controlled\n });\n }\n }, [key, controlled, isControlled]);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n const cache = this.controlledValues ??= new Map();\n if (!cache.has(key)) {\n cache.set(key, isControlled);\n }\n const previouslyControlled = cache.get(key);\n if (previouslyControlled !== undefined && previouslyControlled !== isControlled) {\n console.error(`A component is changing the ${isControlled ? '' : 'un'}controlled state of ${key.toString()} to be ${isControlled ? 'un' : ''}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);\n }\n }\n }\n\n /** Gets the current value from the store using a selector with the provided key.\n *\n * @param key Key of the selector to use.\n */\n\n select(key, a1, a2, a3) {\n const selector = this.selectors[key];\n return selector(this.state, a1, a2, a3);\n }\n\n /**\n * Returns a value from the store's state using a selector function.\n * Used to subscribe to specific parts of the state.\n * This methods causes a rerender whenever the selected state changes.\n *\n * @param key Key of the selector to use.\n */\n\n useState(key, a1, a2, a3) {\n React.useDebugValue(key);\n return useStore(this, this.selectors[key], a1, a2, a3);\n }\n\n /**\n * Wraps a function with `useStableCallback` to ensure it has a stable reference\n * and assigns it to the context.\n *\n * @param key Key of the event callback. Must be a function in the context.\n * @param fn Function to assign.\n */\n useContextCallback(key, fn) {\n React.useDebugValue(key);\n const stableFunction = useStableCallback(fn ?? NOOP);\n this.context[key] = stableFunction;\n }\n\n /**\n * Returns a stable setter function for a specific key in the store's state.\n * It's commonly used to pass as a ref callback to React elements.\n *\n * @param key Key of the state to set.\n */\n useStateSetter(key) {\n const ref = React.useRef(undefined);\n if (ref.current === undefined) {\n ref.current = value => {\n this.set(key, value);\n };\n }\n return ref.current;\n }\n\n /**\n * Observes changes derived from the store's selectors and calls the listener when the selected value changes.\n *\n * @param key Key of the selector to observe.\n * @param listener Listener function called when the selector result changes.\n */\n\n observe(selector, listener) {\n let selectFn;\n if (typeof selector === 'function') {\n selectFn = selector;\n } else {\n selectFn = this.selectors[selector];\n }\n let prevValue = selectFn(this.state);\n listener(prevValue, prevValue, this);\n return this.subscribe(nextState => {\n const nextValue = selectFn(nextState);\n if (!Object.is(prevValue, nextValue)) {\n const oldValue = prevValue;\n prevValue = nextValue;\n listener(nextValue, oldValue, this);\n }\n });\n }\n}"],"names":["ReactStore","Store","state","context","selectors","key","value","React","useIsoLayoutEffect","store","statePart","p","keys","nextKeys","index","dependencies","controlled","isControlled","cache","previouslyControlled","a1","a2","a3","selector","useStore","fn","stableFunction","useStableCallback","NOOP","ref","listener","selectFn","prevValue","nextState","nextValue","oldValue"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index307.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index308.js
CHANGED
|
@@ -1,65 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Removes the trigger element with the given ID.
|
|
17
|
-
*/
|
|
18
|
-
delete(e) {
|
|
19
|
-
const t = this.idMap.get(e);
|
|
20
|
-
t && (this.elementsSet.delete(t), this.idMap.delete(e));
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Whether the given element is registered as a trigger.
|
|
24
|
-
*/
|
|
25
|
-
hasElement(e) {
|
|
26
|
-
return this.elementsSet.has(e);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Whether there is a registered trigger element matching the given predicate.
|
|
30
|
-
*/
|
|
31
|
-
hasMatchingElement(e) {
|
|
32
|
-
for (const t of this.elementsSet)
|
|
33
|
-
if (e(t))
|
|
34
|
-
return !0;
|
|
35
|
-
return !1;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Returns the trigger element associated with the given ID, or undefined if no such element exists.
|
|
39
|
-
*/
|
|
40
|
-
getById(e) {
|
|
41
|
-
return this.idMap.get(e);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
|
|
45
|
-
*/
|
|
46
|
-
entries() {
|
|
47
|
-
return this.idMap.entries();
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns an iterable of all registered trigger elements.
|
|
51
|
-
*/
|
|
52
|
-
elements() {
|
|
53
|
-
return this.elementsSet.values();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the number of registered trigger elements.
|
|
57
|
-
*/
|
|
58
|
-
get size() {
|
|
59
|
-
return this.idMap.size;
|
|
60
|
-
}
|
|
1
|
+
import { useControlledValue as x } from "./index304.js";
|
|
2
|
+
import { rangeIncludesDate as R } from "./index126.js";
|
|
3
|
+
import { addToRange as y } from "./index310.js";
|
|
4
|
+
import { rangeContainsModifiers as C } from "./index312.js";
|
|
5
|
+
function b(s, l) {
|
|
6
|
+
const { disabled: c, excludeDisabled: i, selected: d, required: f, onSelect: o } = s, [r, m] = x(d, o ? d : void 0), t = o ? d : r;
|
|
7
|
+
return {
|
|
8
|
+
selected: t,
|
|
9
|
+
select: (n, u, a) => {
|
|
10
|
+
const { min: S, max: p } = s, e = n ? y(n, t, S, p, f, l) : void 0;
|
|
11
|
+
return i && c && e?.from && e.to && C({ from: e.from, to: e.to }, c, l) && (e.from = n, e.to = void 0), o || m(e), o?.(e, n, u, a), e;
|
|
12
|
+
},
|
|
13
|
+
isSelected: (n) => t && R(t, n, !1, l)
|
|
14
|
+
};
|
|
61
15
|
}
|
|
62
16
|
export {
|
|
63
|
-
|
|
17
|
+
b as useRange
|
|
64
18
|
};
|
|
65
19
|
//# sourceMappingURL=index308.js.map
|
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMN,GAClF,CAACO,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAoB7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QApBW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKf,GACfgB,IAAWL,IACXM,EAAWN,GAAaD,GAAUI,GAAKC,GAAKV,GAAUJ,CAAO,IAC7D;AACN,aAAIE,KAAmBD,KAAYc,GAAU,QAAQA,EAAS,MACtDE,EAAuB,EAAE,MAAMF,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAId,GAAUD,CAAO,MAElFe,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAtBe,CAACG,MAAST,KAAYU,EAAkBV,GAAUS,GAAM,IAAOlB,CAAO;AAAA,EAuB7F;AACA;","x_google_ignoreList":[0]}
|
package/dist/index309.js
CHANGED
|
@@ -1,53 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function u() {
|
|
1
|
+
import { useControlledValue as a } from "./index304.js";
|
|
2
|
+
function q(u, S) {
|
|
3
|
+
const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
|
|
5
4
|
return {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
payload: void 0,
|
|
13
|
-
activeTriggerId: null,
|
|
14
|
-
activeTriggerElement: null,
|
|
15
|
-
triggerIdProp: void 0,
|
|
16
|
-
popupElement: null,
|
|
17
|
-
positionerElement: null,
|
|
18
|
-
activeTriggerProps: r,
|
|
19
|
-
inactiveTriggerProps: r,
|
|
20
|
-
popupProps: r
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (n, o, i) => {
|
|
7
|
+
let l = n;
|
|
8
|
+
return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
|
|
9
|
+
},
|
|
10
|
+
isSelected: (n) => e ? d(e, n) : !1
|
|
21
11
|
};
|
|
22
12
|
}
|
|
23
|
-
const t = n((e) => e.triggerIdProp ?? e.activeTriggerId), a = {
|
|
24
|
-
open: n((e) => e.openProp ?? e.open),
|
|
25
|
-
mounted: n((e) => e.mounted),
|
|
26
|
-
transitionStatus: n((e) => e.transitionStatus),
|
|
27
|
-
floatingRootContext: n((e) => e.floatingRootContext),
|
|
28
|
-
preventUnmountingOnClose: n((e) => e.preventUnmountingOnClose),
|
|
29
|
-
payload: n((e) => e.payload),
|
|
30
|
-
activeTriggerId: t,
|
|
31
|
-
activeTriggerElement: n((e) => e.mounted ? e.activeTriggerElement : null),
|
|
32
|
-
/**
|
|
33
|
-
* Whether the trigger with the given ID was used to open the popup.
|
|
34
|
-
*/
|
|
35
|
-
isTriggerActive: n((e, o) => o !== void 0 && t(e) === o),
|
|
36
|
-
/**
|
|
37
|
-
* Whether the popup is open and was activated by a trigger with the given ID.
|
|
38
|
-
*/
|
|
39
|
-
isOpenedByTrigger: n((e, o) => o !== void 0 && t(e) === o && e.open),
|
|
40
|
-
/**
|
|
41
|
-
* Whether the popup is mounted and was activated by a trigger with the given ID.
|
|
42
|
-
*/
|
|
43
|
-
isMountedByTrigger: n((e, o) => o !== void 0 && t(e) === o && e.mounted),
|
|
44
|
-
triggerProps: n((e, o) => o ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
45
|
-
popupProps: n((e) => e.popupProps),
|
|
46
|
-
popupElement: n((e) => e.popupElement),
|
|
47
|
-
positionerElement: n((e) => e.positionerElement)
|
|
48
|
-
};
|
|
49
13
|
export {
|
|
50
|
-
|
|
51
|
-
a as popupStoreSelectors
|
|
14
|
+
q as useSingle
|
|
52
15
|
};
|
|
53
16
|
//# sourceMappingURL=index309.js.map
|
package/dist/index309.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index309.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index309.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
|
package/dist/index310.js
CHANGED
|
@@ -1,18 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Unsupported number of selectors" : t(1));
|
|
1
|
+
import { defaultDateLib as D } from "./index106.js";
|
|
2
|
+
function w(f, g, n = 0, s = 0, l = !1, u = D) {
|
|
3
|
+
const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
|
|
5
4
|
let e;
|
|
6
|
-
if (
|
|
7
|
-
e =
|
|
8
|
-
else
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
if (!o && !i)
|
|
6
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
7
|
+
else if (o && !i)
|
|
8
|
+
r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
|
|
9
|
+
else if (o && i)
|
|
10
|
+
if (r(o, f) && r(i, f))
|
|
11
|
+
l ? e = { from: o, to: i } : e = void 0;
|
|
12
|
+
else if (r(o, f))
|
|
13
|
+
e = { from: o, to: n > 0 ? void 0 : f };
|
|
14
|
+
else if (r(i, f))
|
|
15
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
16
|
+
else if (c(f, o))
|
|
17
|
+
e = { from: f, to: i };
|
|
18
|
+
else if (m(f, o))
|
|
19
|
+
e = { from: o, to: f };
|
|
20
|
+
else if (m(f, i))
|
|
21
|
+
e = { from: o, to: f };
|
|
22
|
+
else
|
|
23
|
+
throw new Error("Invalid range");
|
|
24
|
+
if (e?.from && e?.to) {
|
|
25
|
+
const t = u.differenceInCalendarDays(e.to, e.from);
|
|
26
|
+
s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
|
|
27
|
+
}
|
|
13
28
|
return e;
|
|
14
|
-
}
|
|
29
|
+
}
|
|
15
30
|
export {
|
|
16
|
-
|
|
31
|
+
w as addToRange
|
|
17
32
|
};
|
|
18
33
|
//# sourceMappingURL=index310.js.map
|
package/dist/index310.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index310.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index310.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAcC,IAAM,GAAGC,IAAM,GAAGC,IAAW,IAAOC,IAAUC,GAAgB;AACzG,QAAM,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKP,KAAgB,CAAA,GAC/B,EAAE,WAAAQ,GAAW,SAAAC,GAAS,UAAAC,EAAQ,IAAKN;AACzC,MAAIO;AACJ,MAAI,CAACL,KAAQ,CAACC;AAEV,IAAAI,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,WAE/CO,KAAQ,CAACC;AAEd,IAAIC,EAAUF,GAAMP,CAAI,IAEhBE,MAAQ,IACRU,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI,IAEnBI,IACLQ,IAAQ,EAAE,MAAAL,GAAM,IAAI,OAAS,IAG7BK,IAAQ,SAGPD,EAASX,GAAMO,CAAI,IAExBK,IAAQ,EAAE,MAAMZ,GAAM,IAAIO,EAAI,IAI9BK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,WAGvBO,KAAQC;AAEb,QAAIC,EAAUF,GAAMP,CAAI,KAAKS,EAAUD,GAAIR,CAAI;AAE3C,MAAII,IACAQ,IAAQ,EAAE,MAAAL,GAAM,IAAAC,EAAE,IAGlBI,IAAQ;AAAA,aAGPH,EAAUF,GAAMP,CAAI;AAEzB,MAAAY,IAAQ,EAAE,MAAAL,GAAM,IAAIL,IAAM,IAAI,SAAYF,EAAI;AAAA,aAEzCS,EAAUD,GAAIR,CAAI;AAEvB,MAAAY,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,aAE/CW,EAASX,GAAMO,CAAI;AAExB,MAAAK,IAAQ,EAAE,MAAMZ,GAAM,IAAIQ,EAAE;AAAA,aAEvBE,EAAQV,GAAMO,CAAI;AAEvB,MAAAK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,aAEnBU,EAAQV,GAAMQ,CAAE;AAErB,MAAAI,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA;AAGxB,YAAM,IAAI,MAAM,eAAe;AAIvC,MAAIY,GAAO,QAAQA,GAAO,IAAI;AAC1B,UAAMC,IAAOR,EAAQ,yBAAyBO,EAAM,IAAIA,EAAM,IAAI;AAClE,IAAIT,IAAM,KAAKU,IAAOV,IAClBS,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS,IAE9BE,IAAM,KAAKW,IAAOX,MACvBU,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS;AAAA,EAE3C;AACA,SAAOY;AACX;","x_google_ignoreList":[0]}
|
package/dist/index311.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
top: 0,
|
|
14
|
-
left: 0
|
|
15
|
-
}, t = {
|
|
16
|
-
...i,
|
|
17
|
-
position: "absolute"
|
|
18
|
-
};
|
|
1
|
+
import { defaultDateLib as f } from "./index106.js";
|
|
2
|
+
function y(t, r, e = f) {
|
|
3
|
+
const n = Array.isArray(r) ? r : [r];
|
|
4
|
+
let a = t.from;
|
|
5
|
+
const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
|
|
6
|
+
for (let o = 0; o <= s; o++) {
|
|
7
|
+
if (n.includes(a.getDay()))
|
|
8
|
+
return !0;
|
|
9
|
+
a = e.addDays(a, 1);
|
|
10
|
+
}
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
19
13
|
export {
|
|
20
|
-
|
|
21
|
-
t as visuallyHiddenInput
|
|
14
|
+
y as rangeContainsDayOfWeek
|
|
22
15
|
};
|
|
23
16
|
//# sourceMappingURL=index311.js.map
|
package/dist/index311.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index311.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index311.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","date","totalDays","totalDaysLimit","i"],"mappings":";AAaO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAgB,MAAM,QAAQH,CAAS,IAAkBA,IAAd,CAACA,CAAS;AAC3D,MAAII,IAAOL,EAAM;AACjB,QAAMM,IAAYJ,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI,GAEjEO,IAAiB,KAAK,IAAID,GAAW,CAAC;AAC5C,WAASE,IAAI,GAAGA,KAAKD,GAAgBC,KAAK;AACtC,QAAIJ,EAAa,SAASC,EAAK,OAAM,CAAE;AACnC,aAAO;AAEX,IAAAA,IAAOH,EAAQ,QAAQG,GAAM,CAAC;AAAA,EAClC;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
|