@rpcbase/ui 0.243.0 → 0.245.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/index10.js +2 -2
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index12.js +3 -3
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +14 -5
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +38 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +13 -385
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +23 -261
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +109 -58
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +13 -47
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -169
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -110
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -25
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +12 -8
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +19 -4
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +11 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +176 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +268 -476
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -189
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +28 -14
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +63 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -6
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +15 -40
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +30 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +69 -14
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +5 -68
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +66 -35
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -14
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +384 -22
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +258 -108
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +61 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +46 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +170 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +110 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +24 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +8 -20
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -11
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -176
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -279
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +487 -4
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +189 -27
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -126
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +107 -63
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +262 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +7 -16
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +39 -29
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +4 -69
- package/dist/index193.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.js +1 -1
- package/dist/index24.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index25.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index254.js +58 -146
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -32
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +7 -48
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +5 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +13 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +3 -43
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +3 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +87 -74
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -104
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +27 -50
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +51 -11
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +5 -37
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +61 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +61 -130
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +133 -17
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +7 -14
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -4
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +4 -37
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +21 -8
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -24
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +8 -29
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +142 -14
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +79 -19
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +60 -65
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +15 -7
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +20 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +6 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +11 -3
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +3 -50
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +51 -4
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +12 -25
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +19 -14
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +3 -56
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +53 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +20 -21
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +41 -53
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +38 -19
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +46 -42
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +19 -38
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +71 -46
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +17 -20
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +3 -70
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +12 -16
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +242 -3
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +18 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +36 -11
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +238 -12
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +249 -15
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +67 -35
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +77 -233
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -252
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -68
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +16 -99
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +33 -82
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +21 -239
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +17 -3
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +3 -29
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -16
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +28 -34
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -18
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +78 -3
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +269 -23
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +10 -27
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -4
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +24 -77
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +4 -23
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +15 -271
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +125 -11
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +64 -24
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +14 -17
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +7 -125
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +3 -65
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +10 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -7
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +6 -3
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +399 -5
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -4
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +52 -10
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +10 -6
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +22 -128
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -399
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +155 -5
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +31 -51
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +45 -23
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +38 -8
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +9 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +11 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +43 -11
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +96 -7
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +84 -11
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +105 -3
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +52 -3
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +10 -16
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +4 -61
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +34 -63
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +74 -35
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +8 -51
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +135 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +17 -8
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +16 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +3 -11
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +34 -19
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +20 -16
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +10 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +8 -144
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +22 -77
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +20 -74
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +28 -61
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +17 -15
- package/dist/index361.js.map +1 -1
- package/dist/index363.js +5 -5
- package/dist/index365.js +8 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +27 -21
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +138 -4
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +11 -10
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +46 -5
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +33 -18
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +20 -19
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +75 -44
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +11 -17
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +4 -5
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +70 -197
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +197 -70
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +66 -118
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +35 -8
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -27
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +26 -36
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +14 -136
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +121 -10
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +4 -47
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +11 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +5 -21
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +3 -76
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +21 -12
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +45 -4
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +16 -70
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -36
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +21 -26
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +5 -7
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +20 -15
- package/dist/index391.js.map +1 -1
- package/dist/index399.js +2 -2
- package/dist/index4.js +2 -2
- package/dist/index40.js +56 -20
- package/dist/index40.js.map +1 -1
- package/dist/index409.js +3 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +51 -59
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +15 -3
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +488 -11
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +3 -492
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +5 -68
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +55 -30
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +68 -9
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +26 -148
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +9 -108
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -5
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +21 -50
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +106 -54
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +32 -7
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +8 -2
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -44
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +40 -52
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +55 -7
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +8 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +2 -55
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +52 -53
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +55 -32
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +127 -18
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +39 -122
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +85 -42
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +123 -87
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +5 -126
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +332 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +246 -321
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +23 -254
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +129 -25
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +24 -129
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +19 -22
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +134 -19
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +30 -133
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +24 -30
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +38 -26
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +19 -39
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +133 -18
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +49 -134
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +25 -48
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +57 -28
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +56 -57
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +22 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +232 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +10 -22
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +17 -232
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -2
- package/dist/index78.js.map +1 -1
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index308.js
CHANGED
|
@@ -1,103 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
for (let e = 1; e < t.length; e += 1)
|
|
16
|
-
n = i(n, t[e]);
|
|
17
|
-
return n;
|
|
18
|
-
}
|
|
19
|
-
function u(t) {
|
|
20
|
-
return l(t) ? {
|
|
21
|
-
...s(t, o)
|
|
22
|
-
} : m(t);
|
|
23
|
-
}
|
|
24
|
-
function i(t, n) {
|
|
25
|
-
return l(n) ? s(n, t) : U(t, n);
|
|
26
|
-
}
|
|
27
|
-
function m(t) {
|
|
28
|
-
const n = {
|
|
29
|
-
...t
|
|
30
|
-
};
|
|
31
|
-
for (const e in n) {
|
|
32
|
-
const r = n[e];
|
|
33
|
-
a(e, r) && (n[e] = v(r));
|
|
34
|
-
}
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function U(t, n) {
|
|
38
|
-
if (!n)
|
|
39
|
-
return t;
|
|
40
|
-
for (const e in n) {
|
|
41
|
-
const r = n[e];
|
|
42
|
-
switch (e) {
|
|
43
|
-
case "style": {
|
|
44
|
-
t[e] = y(t.style, r);
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
case "className": {
|
|
48
|
-
t[e] = M(t.className, r);
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
default:
|
|
52
|
-
a(e, r) ? t[e] = A(t[e], r) : t[e] = r;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
}
|
|
57
|
-
function a(t, n) {
|
|
58
|
-
const e = t.charCodeAt(0), r = t.charCodeAt(1), c = t.charCodeAt(2);
|
|
59
|
-
return e === 111 && r === 110 && c >= 65 && c <= 90 && (typeof n == "function" || typeof n > "u");
|
|
60
|
-
}
|
|
61
|
-
function l(t) {
|
|
62
|
-
return typeof t == "function";
|
|
63
|
-
}
|
|
64
|
-
function s(t, n) {
|
|
65
|
-
return l(t) ? t(n) : t ?? o;
|
|
66
|
-
}
|
|
67
|
-
function A(t, n) {
|
|
68
|
-
return n ? t ? (...e) => {
|
|
69
|
-
const r = e[0];
|
|
70
|
-
if (I(r)) {
|
|
71
|
-
const f = r;
|
|
72
|
-
E(f);
|
|
73
|
-
const b = n(...e);
|
|
74
|
-
return f.baseUIHandlerPrevented || t?.(...e), b;
|
|
75
|
-
}
|
|
76
|
-
const c = n(...e);
|
|
77
|
-
return t?.(...e), c;
|
|
78
|
-
} : v(n) : t;
|
|
79
|
-
}
|
|
80
|
-
function v(t) {
|
|
81
|
-
return t && ((...n) => {
|
|
82
|
-
const e = n[0];
|
|
83
|
-
return I(e) && E(e), t(...n);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function E(t) {
|
|
87
|
-
return t.preventBaseUIHandler = () => {
|
|
88
|
-
t.baseUIHandlerPrevented = !0;
|
|
89
|
-
}, t;
|
|
90
|
-
}
|
|
91
|
-
function M(t, n) {
|
|
92
|
-
return n ? t ? n + " " + t : n : t;
|
|
93
|
-
}
|
|
94
|
-
function I(t) {
|
|
95
|
-
return t != null && typeof t == "object" && "nativeEvent" in t;
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { NOOP as e } from "./index258.js";
|
|
3
|
+
const o = /* @__PURE__ */ t.createContext({
|
|
4
|
+
controlId: void 0,
|
|
5
|
+
registerControlId: e,
|
|
6
|
+
labelId: void 0,
|
|
7
|
+
setLabelId: e,
|
|
8
|
+
messageIds: [],
|
|
9
|
+
setMessageIds: e,
|
|
10
|
+
getDescriptionProps: (n) => n
|
|
11
|
+
});
|
|
12
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "LabelableContext");
|
|
13
|
+
function r() {
|
|
14
|
+
return t.useContext(o);
|
|
96
15
|
}
|
|
97
16
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
j as mergeProps,
|
|
101
|
-
w as mergePropsN
|
|
17
|
+
o as LabelableContext,
|
|
18
|
+
r as useLabelableContext
|
|
102
19
|
};
|
|
103
20
|
//# sourceMappingURL=index308.js.map
|
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","sources":["../node_modules/@base-ui/react/merge-props/mergeProps.mjs"],"sourcesContent":["import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}"],"names":["EMPTY_PROPS","mergeProps","a","b","c","d","e","createInitialMergedProps","merged","mergeInto","mergePropsN","props","i","inputProps","isPropsGetter","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","mergedProps","externalProps","externalPropValue","mergeObjects","mergeClassNames","mergeEventHandlers","key","value","code0","code1","code2","previousProps","ourHandler","theirHandler","args","event","isSyntheticEvent","baseUIEvent","makeEventPreventable","result","handler","ourClassName","theirClassName"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/@base-ui/react/internals/labelable-provider/LabelableContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { NOOP } from \"../noop.mjs\";\n/**\n * A context for providing [labelable elements](https://html.spec.whatwg.org/multipage/forms.html#category-label)\\\n * with an accessible name (label) and description.\n */\nexport const LabelableContext = /*#__PURE__*/React.createContext({\n controlId: undefined,\n registerControlId: NOOP,\n labelId: undefined,\n setLabelId: NOOP,\n messageIds: [],\n setMessageIds: NOOP,\n getDescriptionProps: externalProps => externalProps\n});\nif (process.env.NODE_ENV !== \"production\") LabelableContext.displayName = \"LabelableContext\";\nexport function useLabelableContext() {\n return React.useContext(LabelableContext);\n}"],"names":["LabelableContext","React","NOOP","externalProps","useLabelableContext"],"mappings":";;AAQY,MAACA,IAAgC,gBAAAC,EAAM,cAAc;AAAA,EAC/D,WAAW;AAAA,EACX,mBAAmBC;AAAA,EACnB,SAAS;AAAA,EACT,YAAYA;AAAA,EACZ,YAAY,CAAA;AAAA,EACZ,eAAeA;AAAA,EACf,qBAAqB,CAAAC,MAAiBA;AACxC,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcH,EAAiB,cAAc;AACnE,SAASI,IAAsB;AACpC,SAAOH,EAAM,WAAWD,CAAgB;AAC1C;","x_google_ignoreList":[0]}
|
package/dist/index309.js
CHANGED
|
@@ -1,87 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* Updates the entire store's state and notifies all registered listeners.
|
|
30
|
-
*
|
|
31
|
-
* @param newState The new state to set for the store.
|
|
32
|
-
*/
|
|
33
|
-
setState(t) {
|
|
34
|
-
if (this.state === t)
|
|
35
|
-
return;
|
|
36
|
-
this.state = t, this.updateTick += 1;
|
|
37
|
-
const s = this.updateTick;
|
|
38
|
-
for (const e of this.listeners) {
|
|
39
|
-
if (s !== this.updateTick)
|
|
40
|
-
return;
|
|
41
|
-
e(t);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
46
|
-
*
|
|
47
|
-
* @param changes An object containing the changes to apply to the current state.
|
|
48
|
-
*/
|
|
49
|
-
update(t) {
|
|
50
|
-
for (const s in t)
|
|
51
|
-
if (!Object.is(this.state[s], t[s])) {
|
|
52
|
-
this.setState({
|
|
53
|
-
...this.state,
|
|
54
|
-
...t
|
|
55
|
-
});
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
61
|
-
*
|
|
62
|
-
* @param key The key in the store's state to update.
|
|
63
|
-
* @param value The new value to set for the specified key.
|
|
64
|
-
*/
|
|
65
|
-
set(t, s) {
|
|
66
|
-
Object.is(this.state[t], s) || this.setState({
|
|
67
|
-
...this.state,
|
|
68
|
-
[t]: s
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Gives the state a new reference and updates all registered listeners.
|
|
73
|
-
*/
|
|
74
|
-
notifyAll() {
|
|
75
|
-
const t = {
|
|
76
|
-
...this.state
|
|
1
|
+
import { FieldControlDataAttributes as e } from "./index382.js";
|
|
2
|
+
const t = {
|
|
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
|
+
valid: null,
|
|
13
|
+
valueMissing: !1
|
|
14
|
+
}, a = {
|
|
15
|
+
valid: null,
|
|
16
|
+
touched: !1,
|
|
17
|
+
dirty: !1,
|
|
18
|
+
filled: !1,
|
|
19
|
+
focused: !1
|
|
20
|
+
}, f = {
|
|
21
|
+
disabled: !1,
|
|
22
|
+
...a
|
|
23
|
+
}, i = {
|
|
24
|
+
valid(l) {
|
|
25
|
+
return l === null ? null : l ? {
|
|
26
|
+
[e.valid]: ""
|
|
27
|
+
} : {
|
|
28
|
+
[e.invalid]: ""
|
|
77
29
|
};
|
|
78
|
-
this.setState(t);
|
|
79
|
-
}
|
|
80
|
-
use(t, s, e, i) {
|
|
81
|
-
return r(this, t, s, e, i);
|
|
82
30
|
}
|
|
83
|
-
}
|
|
31
|
+
};
|
|
84
32
|
export {
|
|
85
|
-
|
|
33
|
+
f as DEFAULT_FIELD_ROOT_STATE,
|
|
34
|
+
a as DEFAULT_FIELD_STATE_ATTRIBUTES,
|
|
35
|
+
t as DEFAULT_VALIDITY_STATE,
|
|
36
|
+
i as fieldValidityMapping
|
|
86
37
|
};
|
|
87
38
|
//# sourceMappingURL=index309.js.map
|
package/dist/index309.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index309.js","sources":["
|
|
1
|
+
{"version":3,"file":"index309.js","sources":["../../../node_modules/@base-ui/react/internals/field-constants/constants.mjs"],"sourcesContent":["import { FieldControlDataAttributes } from \"../../field/control/FieldControlDataAttributes.mjs\";\nexport const DEFAULT_VALIDITY_STATE = {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valid: null,\n valueMissing: false\n};\nexport const DEFAULT_FIELD_STATE_ATTRIBUTES = {\n valid: null,\n touched: false,\n dirty: false,\n filled: false,\n focused: false\n};\nexport const DEFAULT_FIELD_ROOT_STATE = {\n disabled: false,\n ...DEFAULT_FIELD_STATE_ATTRIBUTES\n};\nexport const fieldValidityMapping = {\n valid(value) {\n if (value === null) {\n return null;\n }\n if (value) {\n return {\n [FieldControlDataAttributes.valid]: ''\n };\n }\n return {\n [FieldControlDataAttributes.invalid]: ''\n };\n }\n};"],"names":["DEFAULT_VALIDITY_STATE","DEFAULT_FIELD_STATE_ATTRIBUTES","DEFAULT_FIELD_ROOT_STATE","fieldValidityMapping","value","FieldControlDataAttributes"],"mappings":";AACY,MAACA,IAAyB;AAAA,EACpC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AAAA,EACP,cAAc;AAChB,GACaC,IAAiC;AAAA,EAC5C,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AACX,GACaC,IAA2B;AAAA,EACtC,UAAU;AAAA,EACV,GAAGD;AACL,GACaE,IAAuB;AAAA,EAClC,MAAMC,GAAO;AACX,WAAIA,MAAU,OACL,OAELA,IACK;AAAA,MACL,CAACC,EAA2B,KAAK,GAAG;AAAA,IAC5C,IAEW;AAAA,MACL,CAACA,EAA2B,OAAO,GAAG;AAAA,IAC5C;AAAA,EACE;AACF;","x_google_ignoreList":[0]}
|
package/dist/index31.js
CHANGED
|
@@ -1,245 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import { useSelection as rt } from "./index123.js";
|
|
21
|
-
import { convertMatchersToTimeZone as R } from "./index124.js";
|
|
22
|
-
import { rangeIncludesDate as it } from "./index125.js";
|
|
23
|
-
import { toTimeZone as N } from "./index126.js";
|
|
24
|
-
import { isDateRange as dt } from "./index127.js";
|
|
25
|
-
import { enUS as lt } from "./index128.js";
|
|
26
|
-
function Ft(Z) {
|
|
27
|
-
let e = Z;
|
|
28
|
-
const f = e.timeZone;
|
|
29
|
-
if (f && (e = {
|
|
30
|
-
...Z,
|
|
31
|
-
timeZone: f
|
|
32
|
-
}, e.today && (e.today = N(e.today, f)), e.month && (e.month = N(e.month, f)), e.defaultMonth && (e.defaultMonth = N(e.defaultMonth, f)), e.startMonth && (e.startMonth = N(e.startMonth, f)), e.endMonth && (e.endMonth = N(e.endMonth, f)), e.mode === "single" && e.selected ? e.selected = N(e.selected, f) : e.mode === "multiple" && e.selected ? e.selected = e.selected?.map((o) => N(o, f)) : e.mode === "range" && e.selected && (e.selected = {
|
|
33
|
-
from: e.selected.from ? N(e.selected.from, f) : e.selected.from,
|
|
34
|
-
to: e.selected.to ? N(e.selected.to, f) : e.selected.to
|
|
35
|
-
}), e.disabled !== void 0 && (e.disabled = R(e.disabled, f)), e.hidden !== void 0 && (e.hidden = R(e.hidden, f)), e.modifiers)) {
|
|
36
|
-
const o = {};
|
|
37
|
-
Object.keys(e.modifiers).forEach((s) => {
|
|
38
|
-
o[s] = R(e.modifiers?.[s], f);
|
|
39
|
-
}), e.modifiers = o;
|
|
40
|
-
}
|
|
41
|
-
const { components: c, formatters: D, labels: G, dateLib: t, locale: H, classNames: l } = K(() => {
|
|
42
|
-
const o = { ...lt, ...e.locale }, s = e.broadcastCalendar ? 1 : e.weekStartsOn, n = e.noonSafe && e.timeZone ? et(e.timeZone, {
|
|
43
|
-
weekStartsOn: s,
|
|
44
|
-
locale: o
|
|
45
|
-
}) : void 0, u = e.dateLib && n ? { ...n, ...e.dateLib } : e.dateLib ?? n, i = new He({
|
|
46
|
-
locale: o,
|
|
47
|
-
weekStartsOn: s,
|
|
48
|
-
firstWeekContainsDate: e.firstWeekContainsDate,
|
|
49
|
-
useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens,
|
|
50
|
-
useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens,
|
|
51
|
-
timeZone: e.timeZone,
|
|
52
|
-
numerals: e.numerals
|
|
53
|
-
}, u);
|
|
54
|
-
return {
|
|
55
|
-
dateLib: i,
|
|
56
|
-
components: Ue(e.components),
|
|
57
|
-
formatters: $e(e.formatters),
|
|
58
|
-
labels: qe(e.labels, i.options),
|
|
59
|
-
locale: o,
|
|
60
|
-
classNames: { ...Ve(), ...e.classNames }
|
|
61
|
-
};
|
|
62
|
-
}, [
|
|
63
|
-
e.locale,
|
|
64
|
-
e.broadcastCalendar,
|
|
65
|
-
e.weekStartsOn,
|
|
66
|
-
e.firstWeekContainsDate,
|
|
67
|
-
e.useAdditionalWeekYearTokens,
|
|
68
|
-
e.useAdditionalDayOfYearTokens,
|
|
69
|
-
e.timeZone,
|
|
70
|
-
e.numerals,
|
|
71
|
-
e.dateLib,
|
|
72
|
-
e.noonSafe,
|
|
73
|
-
e.components,
|
|
74
|
-
e.formatters,
|
|
75
|
-
e.labels,
|
|
76
|
-
e.classNames
|
|
77
|
-
]);
|
|
78
|
-
e.today || (e = { ...e, today: t.today() });
|
|
79
|
-
const { captionLayout: v, mode: E, navLayout: M, numberOfMonths: _ = 1, onDayBlur: I, onDayClick: B, onDayFocus: U, onDayKeyDown: j, onDayMouseEnter: V, onDayMouseLeave: $, onNextClick: q, onPrevClick: z, showWeekNumber: J, styles: m } = e, { formatCaption: Q, formatDay: X, formatMonthDropdown: de, formatWeekNumber: le, formatWeekNumberHeader: me, formatWeekdayName: ce, formatYearDropdown: ue } = D, ee = ot(e, t), { days: fe, months: g, navStart: S, navEnd: O, previousMonth: p, nextMonth: h, goToMonth: k } = ee, L = _e(fe, e, S, O, t), { isSelected: Y, select: x, selected: w } = rt(e, t) ?? {}, { blur: te, focused: ae, isFocusTarget: pe, moveFocus: oe, setFocused: C } = st(e, ee, L, Y ?? (() => !1), t), { labelDayButton: he, labelGridcell: be, labelGrid: ye, labelMonthDropdown: ke, labelNav: ne, labelPrevious: Ne, labelNext: ve, labelWeekday: De, labelWeekNumber: Me, labelWeekNumberHeader: ge, labelYearDropdown: we } = G, Ce = K(() => Qe(t, e.ISOWeek, e.broadcastCalendar, e.today), [t, e.ISOWeek, e.broadcastCalendar, e.today]), se = E !== void 0 || B !== void 0, P = y(() => {
|
|
80
|
-
p && (k(p), z?.(p));
|
|
81
|
-
}, [p, k, z]), F = y(() => {
|
|
82
|
-
h && (k(h), q?.(h));
|
|
83
|
-
}, [k, h, q]), We = y((o, s) => (n) => {
|
|
84
|
-
n.preventDefault(), n.stopPropagation(), C(o), !s.disabled && (x?.(o.date, s, n), B?.(o.date, s, n));
|
|
85
|
-
}, [x, B, C]), Ee = y((o, s) => (n) => {
|
|
86
|
-
C(o), U?.(o.date, s, n);
|
|
87
|
-
}, [U, C]), Be = y((o, s) => (n) => {
|
|
88
|
-
te(), I?.(o.date, s, n);
|
|
89
|
-
}, [te, I]), Se = y((o, s) => (n) => {
|
|
90
|
-
const u = {
|
|
91
|
-
ArrowLeft: [
|
|
92
|
-
n.shiftKey ? "month" : "day",
|
|
93
|
-
e.dir === "rtl" ? "after" : "before"
|
|
94
|
-
],
|
|
95
|
-
ArrowRight: [
|
|
96
|
-
n.shiftKey ? "month" : "day",
|
|
97
|
-
e.dir === "rtl" ? "before" : "after"
|
|
98
|
-
],
|
|
99
|
-
ArrowDown: [n.shiftKey ? "year" : "week", "after"],
|
|
100
|
-
ArrowUp: [n.shiftKey ? "year" : "week", "before"],
|
|
101
|
-
PageUp: [n.shiftKey ? "year" : "month", "before"],
|
|
102
|
-
PageDown: [n.shiftKey ? "year" : "month", "after"],
|
|
103
|
-
Home: ["startOfWeek", "before"],
|
|
104
|
-
End: ["endOfWeek", "after"]
|
|
105
|
-
};
|
|
106
|
-
if (u[n.key]) {
|
|
107
|
-
n.preventDefault(), n.stopPropagation();
|
|
108
|
-
const [i, b] = u[n.key];
|
|
109
|
-
oe(i, b);
|
|
1
|
+
import { defaultDateLib as A } from "./index105.js";
|
|
2
|
+
import { rangeIncludesDate as p } from "./index125.js";
|
|
3
|
+
import { isDatesArray as a, isDateRange as I, isDayOfWeekType as g, isDateInterval as k, isDateAfterType as O, isDateBeforeType as W } from "./index127.js";
|
|
4
|
+
function b(f, n, r = A) {
|
|
5
|
+
const t = Array.isArray(n) ? n : [n], { isSameDay: o, differenceInCalendarDays: i, isAfter: D } = r;
|
|
6
|
+
return t.some((e) => {
|
|
7
|
+
if (typeof e == "boolean")
|
|
8
|
+
return e;
|
|
9
|
+
if (r.isDate(e))
|
|
10
|
+
return o(f, e);
|
|
11
|
+
if (a(e, r))
|
|
12
|
+
return e.some((s) => o(f, s));
|
|
13
|
+
if (I(e))
|
|
14
|
+
return p(e, f, !1, r);
|
|
15
|
+
if (g(e))
|
|
16
|
+
return Array.isArray(e.dayOfWeek) ? e.dayOfWeek.includes(f.getDay()) : e.dayOfWeek === f.getDay();
|
|
17
|
+
if (k(e)) {
|
|
18
|
+
const s = i(e.before, f), l = i(e.after, f), y = s > 0, u = l < 0;
|
|
19
|
+
return D(e.before, e.after) ? u && y : y || u;
|
|
110
20
|
}
|
|
111
|
-
|
|
112
|
-
}, [oe, j, e.dir]), Oe = y((o, s) => (n) => {
|
|
113
|
-
V?.(o.date, s, n);
|
|
114
|
-
}, [V]), Le = y((o, s) => (n) => {
|
|
115
|
-
$?.(o.date, s, n);
|
|
116
|
-
}, [$]), Ye = y((o, s) => (n) => {
|
|
117
|
-
const u = Number(n.target.value), i = t.setMonth(t.startOfMonth(o), u);
|
|
118
|
-
k(t.addMonths(i, -s));
|
|
119
|
-
}, [t, k]), xe = y((o, s) => (n) => {
|
|
120
|
-
const u = Number(n.target.value), i = t.setYear(t.startOfMonth(o), u);
|
|
121
|
-
k(t.addMonths(i, -s));
|
|
122
|
-
}, [t, k]), { className: Pe, style: Fe } = K(() => ({
|
|
123
|
-
className: [l[a.Root], e.className].filter(Boolean).join(" "),
|
|
124
|
-
style: { ...m?.[a.Root], ...e.style }
|
|
125
|
-
}), [l, e.className, e.style, m]), Ae = je(e), re = (o) => {
|
|
126
|
-
const s = m?.[a.Dropdown], n = m?.[o];
|
|
127
|
-
if (!(!s && !n))
|
|
128
|
-
return {
|
|
129
|
-
...s,
|
|
130
|
-
...n
|
|
131
|
-
};
|
|
132
|
-
}, ie = Ge(null);
|
|
133
|
-
at(ie, !!e.animate, {
|
|
134
|
-
classNames: l,
|
|
135
|
-
months: g,
|
|
136
|
-
focused: ae,
|
|
137
|
-
dateLib: t
|
|
21
|
+
return O(e) ? i(f, e.after) > 0 : W(e) ? i(e.before, f) > 0 : typeof e == "function" ? e(f) : !1;
|
|
138
22
|
});
|
|
139
|
-
const Te = {
|
|
140
|
-
dayPickerProps: e,
|
|
141
|
-
selected: w,
|
|
142
|
-
select: x,
|
|
143
|
-
isSelected: Y,
|
|
144
|
-
months: g,
|
|
145
|
-
nextMonth: h,
|
|
146
|
-
previousMonth: p,
|
|
147
|
-
goToMonth: k,
|
|
148
|
-
getModifiers: L,
|
|
149
|
-
components: c,
|
|
150
|
-
classNames: l,
|
|
151
|
-
styles: m,
|
|
152
|
-
labels: G,
|
|
153
|
-
formatters: D
|
|
154
|
-
};
|
|
155
|
-
return d.createElement(
|
|
156
|
-
nt.Provider,
|
|
157
|
-
{ value: Te },
|
|
158
|
-
d.createElement(
|
|
159
|
-
c.Root,
|
|
160
|
-
{ rootRef: e.animate ? ie : void 0, className: Pe, style: Fe, dir: e.dir, id: e.id, lang: e.lang ?? H.code, nonce: e.nonce, title: e.title, role: e.role, "aria-label": e["aria-label"], "aria-labelledby": e["aria-labelledby"], ...Ae },
|
|
161
|
-
d.createElement(
|
|
162
|
-
c.Months,
|
|
163
|
-
{ className: l[a.Months], style: m?.[a.Months] },
|
|
164
|
-
!e.hideNavigation && !M && d.createElement(c.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: l[a.Nav], style: m?.[a.Nav], "aria-label": ne(), onPreviousClick: P, onNextClick: F, previousMonth: p, nextMonth: h }),
|
|
165
|
-
g.map((o, s) => {
|
|
166
|
-
const n = e.reverseMonths ? g.length - 1 - s : s;
|
|
167
|
-
return d.createElement(
|
|
168
|
-
c.Month,
|
|
169
|
-
{
|
|
170
|
-
"data-animated-month": e.animate ? "true" : void 0,
|
|
171
|
-
className: l[a.Month],
|
|
172
|
-
style: m?.[a.Month],
|
|
173
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
174
|
-
key: s,
|
|
175
|
-
displayIndex: s,
|
|
176
|
-
calendarMonth: o
|
|
177
|
-
},
|
|
178
|
-
M === "around" && !e.hideNavigation && s === 0 && d.createElement(
|
|
179
|
-
c.PreviousMonthButton,
|
|
180
|
-
{ type: "button", className: l[a.PreviousMonthButton], style: m?.[a.PreviousMonthButton], tabIndex: p ? void 0 : -1, "aria-disabled": p ? void 0 : !0, "aria-label": Ne(p), onClick: P, "data-animated-button": e.animate ? "true" : void 0 },
|
|
181
|
-
d.createElement(c.Chevron, { disabled: p ? void 0 : !0, className: l[a.Chevron], style: m?.[a.Chevron], orientation: e.dir === "rtl" ? "right" : "left" })
|
|
182
|
-
),
|
|
183
|
-
d.createElement(c.MonthCaption, { "data-animated-caption": e.animate ? "true" : void 0, className: l[a.MonthCaption], style: m?.[a.MonthCaption], calendarMonth: o, displayIndex: s }, v?.startsWith("dropdown") ? d.createElement(
|
|
184
|
-
c.DropdownNav,
|
|
185
|
-
{ className: l[a.Dropdowns], style: m?.[a.Dropdowns] },
|
|
186
|
-
(() => {
|
|
187
|
-
const u = v === "dropdown" || v === "dropdown-months" ? d.createElement(c.MonthsDropdown, { key: "month", className: l[a.MonthsDropdown], "aria-label": ke(), disabled: !!e.disableNavigation, onChange: Ye(o.date, n), options: ze(o.date, S, O, D, t), style: re(a.MonthsDropdown), value: t.getMonth(o.date) }) : d.createElement("span", { key: "month" }, de(o.date, t)), i = v === "dropdown" || v === "dropdown-years" ? d.createElement(c.YearsDropdown, { key: "year", className: l[a.YearsDropdown], "aria-label": we(t.options), disabled: !!e.disableNavigation, onChange: xe(o.date, n), options: Xe(S, O, D, t, !!e.reverseYears), style: re(a.YearsDropdown), value: t.getYear(o.date) }) : d.createElement("span", { key: "year" }, ue(o.date, t));
|
|
188
|
-
return t.getMonthYearOrder() === "year-first" ? [i, u] : [u, i];
|
|
189
|
-
})(),
|
|
190
|
-
d.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
191
|
-
border: 0,
|
|
192
|
-
clip: "rect(0 0 0 0)",
|
|
193
|
-
height: "1px",
|
|
194
|
-
margin: "-1px",
|
|
195
|
-
overflow: "hidden",
|
|
196
|
-
padding: 0,
|
|
197
|
-
position: "absolute",
|
|
198
|
-
width: "1px",
|
|
199
|
-
whiteSpace: "nowrap",
|
|
200
|
-
wordWrap: "normal"
|
|
201
|
-
} }, Q(o.date, t.options, t))
|
|
202
|
-
) : d.createElement(c.CaptionLabel, { className: l[a.CaptionLabel], style: m?.[a.CaptionLabel], role: "status", "aria-live": "polite" }, Q(o.date, t.options, t))),
|
|
203
|
-
M === "around" && !e.hideNavigation && s === _ - 1 && d.createElement(
|
|
204
|
-
c.NextMonthButton,
|
|
205
|
-
{ type: "button", className: l[a.NextMonthButton], style: m?.[a.NextMonthButton], tabIndex: h ? void 0 : -1, "aria-disabled": h ? void 0 : !0, "aria-label": ve(h), onClick: F, "data-animated-button": e.animate ? "true" : void 0 },
|
|
206
|
-
d.createElement(c.Chevron, { disabled: h ? void 0 : !0, className: l[a.Chevron], style: m?.[a.Chevron], orientation: e.dir === "rtl" ? "left" : "right" })
|
|
207
|
-
),
|
|
208
|
-
s === _ - 1 && M === "after" && !e.hideNavigation && d.createElement(c.Nav, { "data-animated-nav": e.animate ? "true" : void 0, className: l[a.Nav], style: m?.[a.Nav], "aria-label": ne(), onPreviousClick: P, onNextClick: F, previousMonth: p, nextMonth: h }),
|
|
209
|
-
d.createElement(
|
|
210
|
-
c.MonthGrid,
|
|
211
|
-
{ role: "grid", "aria-multiselectable": E === "multiple" || E === "range", "aria-label": ye(o.date, t.options, t) || void 0, className: l[a.MonthGrid], style: m?.[a.MonthGrid] },
|
|
212
|
-
!e.hideWeekdays && d.createElement(
|
|
213
|
-
c.Weekdays,
|
|
214
|
-
{ "data-animated-weekdays": e.animate ? "true" : void 0, className: l[a.Weekdays], style: m?.[a.Weekdays] },
|
|
215
|
-
J && d.createElement(c.WeekNumberHeader, { "aria-label": ge(t.options), className: l[a.WeekNumberHeader], style: m?.[a.WeekNumberHeader], scope: "col" }, me()),
|
|
216
|
-
Ce.map((u) => d.createElement(c.Weekday, { "aria-label": De(u, t.options, t), className: l[a.Weekday], key: String(u), style: m?.[a.Weekday], scope: "col" }, ce(u, t.options, t)))
|
|
217
|
-
),
|
|
218
|
-
d.createElement(c.Weeks, { "data-animated-weeks": e.animate ? "true" : void 0, className: l[a.Weeks], style: m?.[a.Weeks] }, o.weeks.map((u) => d.createElement(
|
|
219
|
-
c.Week,
|
|
220
|
-
{ className: l[a.Week], key: u.weekNumber, style: m?.[a.Week], week: u },
|
|
221
|
-
J && d.createElement(c.WeekNumber, { week: u, style: m?.[a.WeekNumber], "aria-label": Me(u.weekNumber, {
|
|
222
|
-
locale: H
|
|
223
|
-
}), className: l[a.WeekNumber], scope: "row", role: "rowheader" }, le(u.weekNumber, t)),
|
|
224
|
-
u.days.map((i) => {
|
|
225
|
-
const { date: b } = i, r = L(i);
|
|
226
|
-
if (r[tt.focused] = !r.hidden && !!ae?.isEqualTo(i), r[W.selected] = Y?.(b) || r.selected, dt(w)) {
|
|
227
|
-
const { from: A, to: T } = w;
|
|
228
|
-
r[W.range_start] = !!(A && T && t.isSameDay(b, A)), r[W.range_end] = !!(A && T && t.isSameDay(b, T)), r[W.range_middle] = it(w, b, !0, t);
|
|
229
|
-
}
|
|
230
|
-
const Ke = Je(r, m, e.modifiersStyles), Re = Ie(r, l, e.modifiersClassNames), Ze = !se && !r.hidden ? be(b, r, t.options, t) : void 0;
|
|
231
|
-
return d.createElement(c.Day, { key: `${i.isoDate}_${i.displayMonthId}`, day: i, modifiers: r, className: Re.join(" "), style: Ke, role: "gridcell", "aria-selected": r.selected || void 0, "aria-label": Ze, "data-day": i.isoDate, "data-month": i.outside ? i.dateMonthId : void 0, "data-selected": r.selected || void 0, "data-disabled": r.disabled || void 0, "data-hidden": r.hidden || void 0, "data-outside": i.outside || void 0, "data-focused": r.focused || void 0, "data-today": r.today || void 0 }, !r.hidden && se ? d.createElement(c.DayButton, { className: l[a.DayButton], style: m?.[a.DayButton], type: "button", day: i, modifiers: r, disabled: !r.focused && r.disabled || void 0, "aria-disabled": r.focused && r.disabled || void 0, tabIndex: pe(i) ? 0 : -1, "aria-label": he(b, r, t.options, t), onClick: We(i, r), onBlur: Be(i, r), onFocus: Ee(i, r), onKeyDown: Se(i, r), onMouseEnter: Oe(i, r), onMouseLeave: Le(i, r) }, X(b, t.options, t)) : !r.hidden && X(i.date, t.options, t));
|
|
232
|
-
})
|
|
233
|
-
)))
|
|
234
|
-
)
|
|
235
|
-
);
|
|
236
|
-
})
|
|
237
|
-
),
|
|
238
|
-
e.footer && d.createElement(c.Footer, { className: l[a.Footer], style: m?.[a.Footer], role: "status", "aria-live": "polite" }, e.footer)
|
|
239
|
-
)
|
|
240
|
-
);
|
|
241
23
|
}
|
|
242
24
|
export {
|
|
243
|
-
|
|
25
|
+
b as dateMatchModifiers
|
|
244
26
|
};
|
|
245
27
|
//# sourceMappingURL=index31.js.map
|