@rpcbase/ui 0.247.0 → 0.248.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/Notifications/NotificationsDrawer.d.ts.map +1 -1
- package/dist/index105.js +36 -36
- package/dist/index117.js +6 -6
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index150.js +3 -3
- package/dist/index156.js +1 -1
- package/dist/index16.js +157 -157
- package/dist/index16.js.map +1 -1
- package/dist/index163.js +2 -2
- package/dist/index164.js +7 -7
- package/dist/index167.js +4 -4
- package/dist/index169.js +1 -1
- package/dist/index171.js +14 -58
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +68 -8
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +37 -87
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +13 -19
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +23 -16
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +111 -5
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +13 -6
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -6
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -5
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +5 -7
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +11 -16
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +19 -4
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +11 -5
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +176 -12
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +279 -9
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +4 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +28 -14
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +126 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +63 -5
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +8 -6
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +16 -6
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +29 -53
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +69 -8
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +58 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +8 -4
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +87 -8
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +19 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +16 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -3
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +5 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +6 -9
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +4 -9
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +6 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -9
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -6
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +12 -5
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +9 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +13 -5
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +13 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -16
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +6 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -10
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +54 -10
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +8 -21
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +4 -8
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +4 -9
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +8 -9
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +4 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -16
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +9 -18
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -20
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -12
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +10 -29
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +9 -12
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -25
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -14
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -68
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +7 -38
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +6 -14
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +16 -23
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +7 -111
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +11 -13
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -4
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +22 -4
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +9 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -11
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +9 -19
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +5 -11
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -176
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +15 -278
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -4
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +19 -28
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +18 -124
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +12 -63
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +29 -8
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +12 -15
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -30
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +5 -69
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +20 -155
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +65 -31
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +6 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -49
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +11 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +3 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +48 -41
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +4 -98
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +27 -84
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +14 -103
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -52
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +21 -11
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +53 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +20 -37
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +41 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +39 -3
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +46 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +18 -133
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +69 -16
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +17 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -36
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +11 -20
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +13 -8
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +18 -24
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +35 -27
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +239 -16
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +253 -20
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +66 -64
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +99 -6
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +83 -5
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +3 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +29 -3
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -50
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +35 -4
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +16 -28
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +3 -16
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +26 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +27 -20
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +4 -54
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +76 -18
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +268 -37
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +11 -39
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +10 -45
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +25 -20
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +15 -69
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +122 -14
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +5 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +65 -11
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -14
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +7 -18
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -36
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +3 -239
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -252
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7 -68
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +128 -94
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +391 -75
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +5 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +51 -28
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +10 -15
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +28 -35
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +11 -17
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +154 -3
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +31 -25
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -28
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +50 -4
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +9 -78
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +10 -271
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +43 -11
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +97 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +86 -25
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +104 -15
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +50 -123
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +11 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +4 -65
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +37 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +8 -7
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +135 -5
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +17 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +15 -10
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +3 -7
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +32 -129
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +18 -397
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +10 -5
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +8 -52
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +8 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +11 -27
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +2 -2
- package/dist/index340.js +8 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +13 -4
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +4 -18
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +3 -12
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +16 -7
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +22 -9
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +27 -7
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +14 -11
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +51 -3
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +61 -3
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +65 -16
- package/dist/index350.js.map +1 -1
- package/dist/index352.js +8 -51
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +5 -62
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +11 -66
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +21 -8
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +17 -5
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +8 -12
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +144 -21
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +77 -14
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +11 -11
- package/dist/index360.js +62 -8
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +15 -145
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +4 -79
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +17 -61
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +13 -15
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -5
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +10 -19
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +6 -4
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +3 -6
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +21 -3
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +44 -11
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +17 -20
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +5 -45
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +198 -15
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +74 -5
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +115 -192
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +4 -73
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +19 -122
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +8 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +27 -5
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +138 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +12 -15
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +46 -8
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +3 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +21 -4
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +72 -542
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +11 -46
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +3 -17
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +71 -5
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +35 -7
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +7 -7
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +15 -7
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +4 -11
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +4 -8
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +4 -13
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +15 -8
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +9 -27
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +5 -137
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +4 -12
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +543 -44
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +47 -4
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +17 -21
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +5 -75
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +8 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +6 -3
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -71
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +11 -35
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +9 -7
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +12 -15
- package/dist/index408.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index411.js +14 -4
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -56
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +490 -66
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +5 -31
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +56 -9
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +61 -146
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +26 -103
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +9 -15
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -3
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +106 -490
- package/dist/index420.js.map +1 -1
- package/dist/index49.js +36 -36
- 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 +21 -21
- 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/package.json +1 -1
package/dist/index173.js
CHANGED
|
@@ -1,91 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { TransitionStatusDataAttributes as d } from "./index174.js";
|
|
2
|
+
let r = (function(n) {
|
|
3
|
+
return n.open = "data-open", n.closed = "data-closed", n[n.startingStyle = d.startingStyle] = "startingStyle", n[n.endingStyle = d.endingStyle] = "endingStyle", n.anchorHidden = "data-anchor-hidden", n.side = "data-side", n.align = "data-align", n;
|
|
4
|
+
})({}), e = /* @__PURE__ */ (function(n) {
|
|
5
|
+
return n.popupOpen = "data-popup-open", n.pressed = "data-pressed", n;
|
|
6
|
+
})({});
|
|
7
|
+
const p = {
|
|
8
|
+
[e.popupOpen]: ""
|
|
9
|
+
}, t = {
|
|
10
|
+
[e.popupOpen]: "",
|
|
11
|
+
[e.pressed]: ""
|
|
12
|
+
}, l = {
|
|
13
|
+
[r.open]: ""
|
|
14
|
+
}, O = {
|
|
15
|
+
[r.closed]: ""
|
|
16
|
+
}, i = {
|
|
17
|
+
[r.anchorHidden]: ""
|
|
18
|
+
}, c = {
|
|
19
|
+
open(n) {
|
|
20
|
+
return n ? p : null;
|
|
21
|
+
}
|
|
22
|
+
}, a = {
|
|
23
|
+
open(n) {
|
|
24
|
+
return n ? t : null;
|
|
25
|
+
}
|
|
26
|
+
}, g = {
|
|
27
|
+
open(n) {
|
|
28
|
+
return n ? l : O;
|
|
29
|
+
},
|
|
30
|
+
anchorHidden(n) {
|
|
31
|
+
return n ? i : null;
|
|
6
32
|
}
|
|
7
|
-
|
|
8
|
-
return n.length ? new o(...n, e) : new o(Date.now(), e);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region time zone
|
|
12
|
-
withTimeZone(e) {
|
|
13
|
-
return new o(+this, e);
|
|
14
|
-
}
|
|
15
|
-
getTimezoneOffset() {
|
|
16
|
-
const e = -s(this.timeZone, this);
|
|
17
|
-
return e > 0 ? Math.floor(e) : Math.ceil(e);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region time
|
|
21
|
-
setTime(e) {
|
|
22
|
-
return Date.prototype.setTime.apply(this, arguments), p(this), +this;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region date-fns integration
|
|
26
|
-
[/* @__PURE__ */ Symbol.for("constructDateFrom")](e) {
|
|
27
|
-
return new o(+new Date(e), this.timeZone);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
}
|
|
31
|
-
const Z = /^(get|set)(?!UTC)/;
|
|
32
|
-
Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
|
|
33
|
-
if (!Z.test(t)) return;
|
|
34
|
-
const e = t.replace(Z, "$1UTC");
|
|
35
|
-
o.prototype[e] && (t.startsWith("get") ? o.prototype[t] = function() {
|
|
36
|
-
return this.internal[e]();
|
|
37
|
-
} : (o.prototype[t] = function() {
|
|
38
|
-
return Date.prototype[e].apply(this.internal, arguments), j(this), +this;
|
|
39
|
-
}, o.prototype[e] = function() {
|
|
40
|
-
return Date.prototype[e].apply(this, arguments), p(this), +this;
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
function p(t) {
|
|
44
|
-
t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - // Round after converting minutes to seconds to avoid fractional offset
|
|
45
|
-
// precision errors from historical offsets.
|
|
46
|
-
Math.round(-s(t.timeZone, t) * 60));
|
|
47
|
-
}
|
|
48
|
-
function j(t) {
|
|
49
|
-
Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), z(t);
|
|
50
|
-
}
|
|
51
|
-
function z(t, e) {
|
|
52
|
-
const n = Array.isArray(e) ? v(e) : +t.internal, h = s(t.timeZone, t), i = h > 0 ? Math.floor(h) : Math.ceil(h), T = /* @__PURE__ */ new Date(+t);
|
|
53
|
-
T.setUTCHours(T.getUTCHours() - 1);
|
|
54
|
-
const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), S = -(/* @__PURE__ */ new Date(+T)).getTimezoneOffset(), b = r - S;
|
|
55
|
-
let M = r;
|
|
56
|
-
if (b && r !== i) {
|
|
57
|
-
const l = Date.prototype.getHours.apply(t), U = Array.isArray(e) ? e[3] || 0 : t.internal.getUTCHours();
|
|
58
|
-
if (l !== U) {
|
|
59
|
-
const f = /* @__PURE__ */ new Date(+t), H = r - i;
|
|
60
|
-
H && f.setUTCMinutes(f.getUTCMinutes() + H);
|
|
61
|
-
const O = s(t.timeZone, f);
|
|
62
|
-
(O > 0 ? Math.floor(O) : Math.ceil(O)) === i && (M = S);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const u = M - i;
|
|
66
|
-
u && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + u);
|
|
67
|
-
const m = /* @__PURE__ */ new Date(+t);
|
|
68
|
-
m.setUTCSeconds(0);
|
|
69
|
-
const g = r > 0 ? m.getSeconds() : (m.getSeconds() - 60) % 60, a = Math.round(-(s(t.timeZone, t) * 60)) % 60;
|
|
70
|
-
(a || g) && Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + a + g);
|
|
71
|
-
const y = s(t.timeZone, t), c = y > 0 ? Math.floor(y) : Math.ceil(y), F = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - c, I = c !== i, D = F - u, w = c - i, N = n - c * 60 * 1e3, W = w > 0 && x(t) - n === w * 60 * 1e3 && x(t, N) !== n;
|
|
72
|
-
if (I && D && !W) {
|
|
73
|
-
Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + D);
|
|
74
|
-
const l = s(t.timeZone, t), U = l > 0 ? Math.floor(l) : Math.ceil(l), f = c - U;
|
|
75
|
-
f && D < 0 && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
|
|
76
|
-
}
|
|
77
|
-
p(t);
|
|
78
|
-
const C = (e ? n : n + a * 1e3) - +t.internal;
|
|
79
|
-
C && Math.abs(C) < 1800 * 1e3 && (Date.prototype.setTime.call(t, +t + C), p(t));
|
|
80
|
-
}
|
|
81
|
-
function v(t) {
|
|
82
|
-
return Date.UTC(t[0], t.length > 1 ? t[1] : 0, t.length > 2 ? t[2] : 1, ...t.slice(3));
|
|
83
|
-
}
|
|
84
|
-
function x(t, e) {
|
|
85
|
-
const n = new Date(e ?? +t);
|
|
86
|
-
return n.setUTCSeconds(n.getUTCSeconds() - Math.round(-s(t.timeZone, n) * 60)), +n;
|
|
87
|
-
}
|
|
33
|
+
};
|
|
88
34
|
export {
|
|
89
|
-
|
|
35
|
+
r as CommonPopupDataAttributes,
|
|
36
|
+
e as CommonTriggerDataAttributes,
|
|
37
|
+
g as popupStateMapping,
|
|
38
|
+
a as pressableTriggerOpenStateMapping,
|
|
39
|
+
c as triggerOpenStateMapping
|
|
90
40
|
};
|
|
91
41
|
//# sourceMappingURL=index173.js.map
|
package/dist/index173.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index173.js","sources":["../../../node_modules/@date-fns/tz/date/mini.js"],"sourcesContent":["import { tzOffset } from \"../tzOffset/index.js\";\n\n// TZDate stores time in two `Date` objects because native `Date` can only\n// expose local fields in the system time zone.\n//\n// The external date (`this`) stores the real timestamp. It is the value used by\n// `getTime()`, `valueOf()`, UTC getters/setters, comparisons, and arithmetic.\n// Its local getters are not used for target-zone fields because they would read\n// the timestamp through the system time zone.\n//\n// The internal date (`this.internal`) stores the target-zone wall-clock fields.\n// We read and write those fields through UTC getters/setters so the host system\n// time zone cannot reinterpret them. For example, `getHours()` returns\n// `internal.getUTCHours()`, and `setHours()` writes `internal.setUTCHours(...)`.\n//\n// Syncing moves data between the two representations:\n//\n// - `syncToInternal` starts from the external timestamp and rebuilds internal\n// wall-clock fields using `this.timeZone` offset.\n//\n// - `syncFromInternal` starts from internal wall-clock fields, writes them into\n// the external date, then adjusts that timestamp for the system/target offset\n// difference and DST edge cases.\n//\n// The public TZDate value is the combination of both: external is the instant,\n// internal is the wall-clock view of that instant in `this.timeZone`.\n\nexport class TZDateMini extends Date {\n //#region static\n\n constructor(...args) {\n super();\n\n // Time zone string is always the last string argument unless date string\n // is passed (as a single argument).\n if (args.length > 1 && typeof args[args.length - 1] === \"string\") {\n this.timeZone = args.pop();\n }\n this.internal = new Date();\n\n // Validate the time zone by checking its offset.\n if (isNaN(tzOffset(this.timeZone, this))) {\n this.setTime(NaN);\n } else {\n if (!args.length) {\n // No arguments passed: use current time\n this.setTime(Date.now());\n } else if (typeof args[0] === \"number\" && (args.length === 1 || args.length === 2 && typeof args[1] !== \"number\")) {\n // Timestamp passed: use it as is\n this.setTime(args[0]);\n } else if (typeof args[0] === \"string\") {\n // `Date` string passed: parse it as external date\n this.setTime(+new Date(args[0]));\n } else if (args[0] instanceof Date) {\n // `Date` passed: use its timestamp\n this.setTime(+args[0]);\n } else {\n // `Date` values passed:\n\n // Set it as external date.\n this.setTime(+new Date(...args));\n\n // Adjust internal and external dates considering that we might have\n // landed on the DST hour.\n adjustToSystemTZ(this, args);\n }\n }\n }\n static tz(tz, ...args) {\n return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);\n }\n\n //#endregion\n\n //#region time zone\n\n withTimeZone(timeZone) {\n return new TZDateMini(+this, timeZone);\n }\n getTimezoneOffset() {\n const offset = -tzOffset(this.timeZone, this);\n // Remove the seconds offset using `Math.floor` for negative UTC time zones\n // and `Math.ceil` for positive UTC time zones.\n return offset > 0 ? Math.floor(offset) : Math.ceil(offset);\n }\n\n //#endregion\n\n //#region time\n\n setTime(_time) {\n // Use the native `setTime` to the external date time.\n Date.prototype.setTime.apply(this, arguments);\n\n // Then apply it to the internal date adjusting to the timezone offset.\n syncToInternal(this);\n return +this;\n }\n\n //#endregion\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDateMini(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}\n\n// Assign getters and setters\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach(method => {\n if (!re.test(method)) return;\n const utcMethod = method.replace(re, \"$1UTC\");\n // Filter out methods without UTC counterparts\n if (!TZDateMini.prototype[utcMethod]) return;\n if (method.startsWith(\"get\")) {\n // Delegate to internal date's UTC method\n TZDateMini.prototype[method] = function () {\n return this.internal[utcMethod]();\n };\n } else {\n // Assign regular setter\n TZDateMini.prototype[method] = function () {\n Date.prototype[utcMethod].apply(this.internal, arguments);\n syncFromInternal(this);\n return +this;\n };\n\n // Assign UTC setter\n TZDateMini.prototype[utcMethod] = function () {\n Date.prototype[utcMethod].apply(this, arguments);\n syncToInternal(this);\n return +this;\n };\n }\n});\n\n/**\n * @internal\n * Function syncs time to internal date, applying the current time zone offset.\n *\n * @param {Date} date - `Date` to sync\n */\nfunction syncToInternal(date) {\n // Start internal from the same real timestamp as external.\n date.internal.setTime(+date);\n\n // Shift internal by the target offset so its UTC fields become the target-zone\n // wall-clock fields for the external timestamp.\n //\n // o internal UTC fields: 2024-02-11 00:00\n // |\n // | + Asia/Singapore offset (+08:00)\n // v\n // x internal UTC fields: 2024-02-11 08:00\n //\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() -\n // Round after converting minutes to seconds to avoid fractional offset\n // precision errors from historical offsets.\n Math.round(-tzOffset(date.timeZone, date) * 60));\n}\n\n/**\n * @internal\n * Function syncs internal wall-clock fields into the external date.\n *\n * @param {Date} date - The date to sync\n */\nfunction syncFromInternal(date) {\n // Copy target-zone wall-clock fields from internal into external using native\n // local setters. At this point external holds the right field values but they\n // are interpreted in the system time zone; `adjustToSystemTZ` fixes that.\n Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());\n Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());\n\n // Now we have to adjust the date to the system time zone\n adjustToSystemTZ(date);\n}\n\n/**\n * @internal\n * Function adjusts the date to the system time zone. It uses the time zone\n * differences to calculate the offset and adjust the date.\n *\n * We use it when constructing `TZDate` and syncing the external date from\n * the internal one.\n *\n * @param {TZDate} date - `TZDate` to adjust.\n */\nfunction adjustToSystemTZ(date, constructorArgs) {\n // Keep the intended target-zone wall-clock value before native Date/system\n // time zone normalization can move it. Later corrections compare against this\n // value to distinguish intended DST normalization from accidental drift.\n const expectedInternalTime = Array.isArray(constructorArgs) ? constructorArgsToInternalTime(constructorArgs) : +date.internal;\n //#region Initial offset calculation\n\n // Current target time zone offset at the native timestamp. It may include\n // historical offset seconds, which we preserve for the seconds adjustment.\n const offsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset used by minute-based timestamp adjustments.\n // Historical offsets can contain seconds, so we strip the fractional minute\n // here and handle remaining seconds in the seconds adjustment below.\n const offset = offsetWithSeconds > 0 ? Math.floor(offsetWithSeconds) : Math.ceil(offsetWithSeconds);\n\n //#endregion\n\n //#region System DST adjustment\n\n // Native `Date` may normalize the requested wall time when the system time\n // zone skips that hour for DST.\n //\n // We compare the system wall-clock hour represented by the external date with\n // the wall-clock hour stored in the internal date. If they differ, the next\n // offset-diff calculation may need the previous system offset, because the\n // current external timestamp is already after the system DST jump.\n\n // Previous-hour reference used to detect whether the system offset changed\n // immediately before the current native timestamp.\n const prevHour = new Date(+date);\n\n // Use UTC math so subtracting one hour cannot be normalized back into the\n // same missing local DST hour.\n prevHour.setUTCHours(prevHour.getUTCHours() - 1);\n\n // Current system offset at the native timestamp.\n const systemOffset = -new Date(+date).getTimezoneOffset();\n\n // System offset one real hour before the native timestamp.\n const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();\n\n // Non-zero when the system offset changed between `prevHour` and `date`.\n const systemDSTChange = systemOffset - prevHourSystemOffset;\n\n // System offset to use in the later system-target offset difference.\n // Defaults to the current system offset and switches to the previous offset\n // only when native `Date` normalized a missing system wall time.\n let systemOffsetForDiff = systemOffset;\n if (systemDSTChange && systemOffset !== offset) {\n // System wall-clock hour represented by the current external timestamp.\n const systemHour = Date.prototype.getHours.apply(date);\n\n // Target wall-clock hour currently stored in internal fields. Constructors\n // get it from arguments because internal may have already been synced from\n // the normalized external timestamp; setters get it directly from internal.\n const expectedHour = Array.isArray(constructorArgs) ? constructorArgs[3] || 0 : date.internal.getUTCHours();\n if (systemHour !== expectedHour) {\n // Check whether using the current system offset would keep the target\n // offset unchanged. If so, the only DST jump we crossed is the system\n // one, so the diff should use the pre-DST system offset.\n const testDate = new Date(+date);\n\n // Difference that the later offset-diff step would apply with the\n // current system offset.\n const testOffsetDiff = systemOffset - offset;\n if (testOffsetDiff) testDate.setUTCMinutes(testDate.getUTCMinutes() + testOffsetDiff);\n\n // Target offset after applying the current system offset difference.\n const testOffsetWithSeconds = tzOffset(date.timeZone, testDate);\n\n // Target offset without historical seconds, matching `offset`.\n const testOffset = testOffsetWithSeconds > 0 ? Math.floor(testOffsetWithSeconds) : Math.ceil(testOffsetWithSeconds);\n if (testOffset === offset) systemOffsetForDiff = prevHourSystemOffset;\n }\n }\n\n //#endregion\n\n //#region System diff adjustment\n\n // Move external from the system-zone interpretation of internal fields toward\n // the timestamp that represents those fields in the target time zone.\n //\n // At this point native `Date` has treated the internal wall-clock fields as if\n // they belonged to the system zone. The system-target offset difference moves\n // external by the distance between that system interpretation and the target\n // interpretation.\n\n // Difference between the system offset selected above and the minute-precision\n // target offset. Positive values move external forward; negative values move\n // it backward.\n const offsetDiff = systemOffsetForDiff - offset;\n if (offsetDiff)\n // Apply the system-target minute difference to external. Internal is\n // rebuilt from the final external timestamp after all adjustments are\n // complete.\n //\n // o external as target: 2023-01-31 23:00\n // |\n // | add `offsetDiff`\n // v\n // x external as target: 2023-02-01 12:00\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);\n\n //#endregion\n\n //#region Seconds system diff adjustment\n\n // Historical time zone offsets can include seconds, but the minute-based\n // offset adjustment above intentionally used minute precision.\n //\n // This adjustment applies the remaining seconds difference to external. For\n // example, historical Singapore used UTC+06:55:25, while ISO formatting shows\n // only `+06:55`; without the seconds correction, setter paths keep the wrong\n // wall-clock seconds.\n\n // Clone external as a native `Date` so we can inspect how the system time zone\n // represents the same timestamp.\n const systemDate = new Date(+date);\n\n // Zero UTC seconds before reading system seconds. Any remaining local seconds\n // then come from the system time zone offset rather than from the timestamp's\n // own seconds value.\n systemDate.setUTCSeconds(0);\n\n // Seconds part contributed by the system time zone offset. Negative offsets\n // need wrapping because `Date#getSeconds()` returns values in the 0..59 range.\n const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;\n\n // Seconds part contributed by the target time zone offset.\n const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;\n if (secondsOffset || systemSecondsOffset)\n // Apply the remaining second-level system-target difference to external.\n //\n // o external as Asia/Singapore: 1900-01-01 00:00:56\n // |\n // | + `secondsOffset`\n // | + `systemSecondsOffset`\n // v\n // x external as Asia/Singapore: 1900-01-01 00:00:31\n //\n Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);\n\n //#endregion\n\n //#region Post-adjustment DST fix\n\n // The first system-target offset move can cross a target-zone DST boundary.\n //\n // When that happens, the target offset at the new external timestamp differs\n // from the target offset used for `offsetDiff`. We compare the original move\n // with the move that would be calculated at the new timestamp, then apply the\n // difference to external.\n\n // Target offset at the current external timestamp, including historical\n // seconds for the later seconds adjustment.\n const postOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset at the current external timestamp.\n const postOffset = postOffsetWithSeconds > 0 ? Math.floor(postOffsetWithSeconds) : Math.ceil(postOffsetWithSeconds);\n\n // System offset at the current external timestamp.\n const postSystemOffset = -new Date(+date).getTimezoneOffset();\n\n // System-target offset difference at the current external timestamp.\n const postOffsetDiff = postSystemOffset - postOffset;\n\n // Whether the target offset changed after the first offset move.\n const offsetChanged = postOffset !== offset;\n\n // Difference between the current offset move and the move already applied.\n const postDiff = postOffsetDiff - offsetDiff;\n\n // If the first offset move already normalized a target DST gap forward, the\n // generic post-DST correction below would undo that valid normalization. This\n // happens, for example, with America/New_York 02:00 during spring-forward when\n // the system zone also changes offset around the same instant.\n const targetDSTShift = postOffset - offset;\n\n // Candidate timestamp that would represent the requested wall-clock time with\n // the post-transition target offset. If it still does not round-trip to the\n // requested wall-clock fields, the requested time is inside a target DST gap.\n const postOffsetCandidate = expectedInternalTime - postOffset * 60 * 1000;\n\n // Only positive target offset shifts are spring-forward gaps. Negative shifts\n // are fall-back overlaps and still need the regular post-adjustment path.\n const normalizedTargetDSTGap = targetDSTShift > 0 && targetInternalTime(date) - expectedInternalTime === targetDSTShift * 60 * 1000 && targetInternalTime(date, postOffsetCandidate) !== expectedInternalTime;\n if (offsetChanged && postDiff && !normalizedTargetDSTGap) {\n // Apply the target-DST correction to external. In the backward-crossing case\n // shown here, this lands on an intermediate value that needs `offsetChange`\n // below.\n //\n // o external as America/New_York: 2023-03-12 03:00 EDT\n // |\n // | + `postDiff`\n // v\n // x external as America/New_York: 2023-03-12 01:00 EST\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);\n\n // Target offset after applying `postDiff`. It may change again if the\n // correction itself crosses a target-zone DST boundary.\n const newOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset after applying `postDiff`.\n const newOffset = newOffsetWithSeconds > 0 ? Math.floor(newOffsetWithSeconds) : Math.ceil(newOffsetWithSeconds);\n\n // Offset change caused by the `postDiff` move itself.\n const offsetChange = postOffset - newOffset;\n\n // If the correction moved external backward across the target DST boundary,\n // apply the boundary change so external lands on the valid target-zone\n // timestamp. Forward crossings are already normalized by native Date, and\n // applying this correction there would undo the valid post-DST result.\n if (offsetChange && postDiff < 0) {\n // Apply the second target-DST correction to external.\n //\n // o external as America/New_York: 2023-03-12 01:00 EST\n // |\n // | + `offsetChange`\n // v\n // x external as America/New_York: 2023-03-12 03:00 EDT\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);\n }\n }\n\n //#endregion\n\n // Rebuild internal wall-clock fields from the final external timestamp.\n syncToInternal(date);\n\n // Native Date can normalize historical system offsets with minute and second\n // precision before we adjust to the target time zone. Correct only small\n // historical drift so DST gap normalization (usually one hour) remains intact.\n const expectedTime = constructorArgs ? expectedInternalTime : expectedInternalTime + secondsOffset * 1000;\n const drift = expectedTime - +date.internal;\n if (drift && Math.abs(drift) < 30 * 60 * 1000) {\n Date.prototype.setTime.call(date, +date + drift);\n syncToInternal(date);\n }\n}\nfunction constructorArgsToInternalTime(args) {\n // Mirror Date's date-value constructor defaults while preserving explicit\n // `undefined` behavior. Missing month/day default, but passed `undefined`\n // should remain invalid just like `Date.UTC(year, undefined, ...)`.\n return Date.UTC(args[0], args.length > 1 ? args[1] : 0, args.length > 2 ? args[2] : 1, ...args.slice(3));\n}\nfunction targetInternalTime(date, time) {\n // Compute the target-zone wall-clock representation for a timestamp without\n // mutating the TZDate. This mirrors syncToInternal for temporary checks.\n const internal = new Date(time ?? +date);\n internal.setUTCSeconds(internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, internal) * 60));\n return +internal;\n}"],"names":["TZDateMini","args","tzOffset","adjustToSystemTZ","tz","timeZone","offset","_time","syncToInternal","date","re","method","utcMethod","syncFromInternal","constructorArgs","expectedInternalTime","constructorArgsToInternalTime","offsetWithSeconds","prevHour","systemOffset","prevHourSystemOffset","systemDSTChange","systemOffsetForDiff","systemHour","expectedHour","testDate","testOffsetDiff","testOffsetWithSeconds","offsetDiff","systemDate","systemSecondsOffset","secondsOffset","postOffsetWithSeconds","postOffset","postOffsetDiff","offsetChanged","postDiff","targetDSTShift","postOffsetCandidate","normalizedTargetDSTGap","targetInternalTime","newOffsetWithSeconds","newOffset","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AAuBA,IAAuBgB,IAAgB,OACxE,CAACtB,EAAK;AACnC,EAAImC,KAAS,KAAK,IAAIA,CAAK,IAAI,OAAU,QACvC,KAAK,UAAU,QAAQ,KAAKnC,GAAM,CAACA,IAAOmC,CAAK,GAC/CpC,EAAeC,CAAI;AAEvB;AACA,SAASO,EAA8Bf,GAAM;AAI3C,SAAO,KAAK,IAAIA,EAAK,CAAC,GAAGA,EAAK,SAAS,IAAIA,EAAK,CAAC,IAAI,GAAGA,EAAK,SAAS,IAAIA,EAAK,CAAC,IAAI,GAAG,GAAGA,EAAK,MAAM,CAAC,CAAC;AACzG;AACA,SAASuC,EAAmB/B,GAAMoC,GAAM;AAGtC,QAAMC,IAAW,IAAI,KAAKD,KAAQ,CAACpC,CAAI;AACvC,SAAAqC,EAAS,cAAcA,EAAS,cAAa,IAAK,KAAK,MAAM,CAAC5C,EAASO,EAAK,UAAUqC,CAAQ,IAAI,EAAE,CAAC,GAC9F,CAACA;AACV;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index173.js","sources":["../../../node_modules/@base-ui/react/utils/popupStateMapping.mjs"],"sourcesContent":["import { TransitionStatusDataAttributes } from \"../internals/stateAttributesMapping.mjs\";\nexport let CommonPopupDataAttributes = function (CommonPopupDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonPopupDataAttributes[\"open\"] = \"data-open\";\n /**\n * Present when the popup is closed.\n */\n CommonPopupDataAttributes[\"closed\"] = \"data-closed\";\n /**\n * Present when the popup is animating in.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"startingStyle\"] = TransitionStatusDataAttributes.startingStyle] = \"startingStyle\";\n /**\n * Present when the popup is animating out.\n */\n CommonPopupDataAttributes[CommonPopupDataAttributes[\"endingStyle\"] = TransitionStatusDataAttributes.endingStyle] = \"endingStyle\";\n /**\n * Present when the anchor is hidden.\n */\n CommonPopupDataAttributes[\"anchorHidden\"] = \"data-anchor-hidden\";\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type { 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n CommonPopupDataAttributes[\"side\"] = \"data-side\";\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n CommonPopupDataAttributes[\"align\"] = \"data-align\";\n return CommonPopupDataAttributes;\n}({});\nexport let CommonTriggerDataAttributes = /*#__PURE__*/function (CommonTriggerDataAttributes) {\n /**\n * Present when the popup is open.\n */\n CommonTriggerDataAttributes[\"popupOpen\"] = \"data-popup-open\";\n /**\n * Present when a pressable trigger is pressed.\n */\n CommonTriggerDataAttributes[\"pressed\"] = \"data-pressed\";\n return CommonTriggerDataAttributes;\n}({});\nconst TRIGGER_HOOK = {\n [CommonTriggerDataAttributes.popupOpen]: ''\n};\nconst PRESSABLE_TRIGGER_HOOK = {\n [CommonTriggerDataAttributes.popupOpen]: '',\n [CommonTriggerDataAttributes.pressed]: ''\n};\nconst POPUP_OPEN_HOOK = {\n [CommonPopupDataAttributes.open]: ''\n};\nconst POPUP_CLOSED_HOOK = {\n [CommonPopupDataAttributes.closed]: ''\n};\nconst ANCHOR_HIDDEN_HOOK = {\n [CommonPopupDataAttributes.anchorHidden]: ''\n};\nexport const triggerOpenStateMapping = {\n open(value) {\n if (value) {\n return TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const pressableTriggerOpenStateMapping = {\n open(value) {\n if (value) {\n return PRESSABLE_TRIGGER_HOOK;\n }\n return null;\n }\n};\nexport const popupStateMapping = {\n open(value) {\n if (value) {\n return POPUP_OPEN_HOOK;\n }\n return POPUP_CLOSED_HOOK;\n },\n anchorHidden(value) {\n if (value) {\n return ANCHOR_HIDDEN_HOOK;\n }\n return null;\n }\n};"],"names":["CommonPopupDataAttributes","TransitionStatusDataAttributes","CommonTriggerDataAttributes","TRIGGER_HOOK","PRESSABLE_TRIGGER_HOOK","POPUP_OPEN_HOOK","POPUP_CLOSED_HOOK","ANCHOR_HIDDEN_HOOK","triggerOpenStateMapping","value","pressableTriggerOpenStateMapping","popupStateMapping"],"mappings":";AACU,IAACA,KAA4B,SAAUA,GAA2B;AAI1E,SAAAA,EAA0B,OAAU,aAIpCA,EAA0B,SAAY,eAItCA,EAA0BA,EAA0B,gBAAmBC,EAA+B,aAAa,IAAI,iBAIvHD,EAA0BA,EAA0B,cAAiBC,EAA+B,WAAW,IAAI,eAInHD,EAA0B,eAAkB,sBAK5CA,EAA0B,OAAU,aAKpCA,EAA0B,QAAW,cAC9BA;AACT,GAAE,CAAA,CAAE,GACOE,IAA2C,0BAAUA,GAA6B;AAI3F,SAAAA,EAA4B,YAAe,mBAI3CA,EAA4B,UAAa,gBAClCA;AACT,GAAE,CAAA,CAAE;AACJ,MAAMC,IAAe;AAAA,EACnB,CAACD,EAA4B,SAAS,GAAG;AAC3C,GACME,IAAyB;AAAA,EAC7B,CAACF,EAA4B,SAAS,GAAG;AAAA,EACzC,CAACA,EAA4B,OAAO,GAAG;AACzC,GACMG,IAAkB;AAAA,EACtB,CAACL,EAA0B,IAAI,GAAG;AACpC,GACMM,IAAoB;AAAA,EACxB,CAACN,EAA0B,MAAM,GAAG;AACtC,GACMO,IAAqB;AAAA,EACzB,CAACP,EAA0B,YAAY,GAAG;AAC5C,GACaQ,IAA0B;AAAA,EACrC,KAAKC,GAAO;AACV,WAAIA,IACKN,IAEF;AAAA,EACT;AACF,GACaO,IAAmC;AAAA,EAC9C,KAAKD,GAAO;AACV,WAAIA,IACKL,IAEF;AAAA,EACT;AACF,GACaO,IAAoB;AAAA,EAC/B,KAAKF,GAAO;AACV,WAAIA,IACKJ,IAEFC;AAAA,EACT;AAAA,EACA,aAAaG,GAAO;AAClB,WAAIA,IACKF,IAEF;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
package/dist/index174.js
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const f = t?.match(a);
|
|
12
|
-
return f ? o(t, f.slice(1)) : NaN;
|
|
1
|
+
let n = /* @__PURE__ */ (function(t) {
|
|
2
|
+
return t.startingStyle = "data-starting-style", t.endingStyle = "data-ending-style", t;
|
|
3
|
+
})({});
|
|
4
|
+
const e = {
|
|
5
|
+
[n.startingStyle]: ""
|
|
6
|
+
}, i = {
|
|
7
|
+
[n.endingStyle]: ""
|
|
8
|
+
}, r = {
|
|
9
|
+
transitionStatus(t) {
|
|
10
|
+
return t === "starting" ? e : t === "ending" ? i : null;
|
|
13
11
|
}
|
|
14
|
-
}
|
|
15
|
-
const a = /([+-]\d\d):?(\d\d)?/;
|
|
16
|
-
function o(t, r) {
|
|
17
|
-
const f = +(r[0] || 0), n = +(r[1] || 0), c = +(r[2] || 0) / 60;
|
|
18
|
-
return s[t] = f * 60 + n > 0 ? f * 60 + n + c : f * 60 - n - c;
|
|
19
|
-
}
|
|
12
|
+
};
|
|
20
13
|
export {
|
|
21
|
-
|
|
14
|
+
n as TransitionStatusDataAttributes,
|
|
15
|
+
r as transitionStatusMapping
|
|
22
16
|
};
|
|
23
17
|
//# sourceMappingURL=index174.js.map
|
package/dist/index174.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index174.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index174.js","sources":["../../../node_modules/@base-ui/react/internals/stateAttributesMapping.mjs"],"sourcesContent":["export let TransitionStatusDataAttributes = /*#__PURE__*/function (TransitionStatusDataAttributes) {\n /**\n * Present when the component is animating in.\n */\n TransitionStatusDataAttributes[\"startingStyle\"] = \"data-starting-style\";\n /**\n * Present when the component is animating out.\n */\n TransitionStatusDataAttributes[\"endingStyle\"] = \"data-ending-style\";\n return TransitionStatusDataAttributes;\n}({});\nconst STARTING_HOOK = {\n [TransitionStatusDataAttributes.startingStyle]: ''\n};\nconst ENDING_HOOK = {\n [TransitionStatusDataAttributes.endingStyle]: ''\n};\nexport const transitionStatusMapping = {\n transitionStatus(value) {\n if (value === 'starting') {\n return STARTING_HOOK;\n }\n if (value === 'ending') {\n return ENDING_HOOK;\n }\n return null;\n }\n};"],"names":["TransitionStatusDataAttributes","STARTING_HOOK","ENDING_HOOK","transitionStatusMapping","value"],"mappings":"AAAU,IAACA,IAA8C,0BAAUA,GAAgC;AAIjG,SAAAA,EAA+B,gBAAmB,uBAIlDA,EAA+B,cAAiB,qBACzCA;AACT,GAAE,CAAA,CAAE;AACJ,MAAMC,IAAgB;AAAA,EACpB,CAACD,EAA+B,aAAa,GAAG;AAClD,GACME,IAAc;AAAA,EAClB,CAACF,EAA+B,WAAW,GAAG;AAChD,GACaG,IAA0B;AAAA,EACrC,iBAAiBC,GAAO;AACtB,WAAIA,MAAU,aACLH,IAELG,MAAU,WACLF,IAEF;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
package/dist/index175.js
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { EMPTY_OBJECT as l } from "./index264.js";
|
|
2
|
+
function u(a, n, o, s) {
|
|
3
|
+
let e = !1, t = !1;
|
|
4
|
+
const r = l;
|
|
5
|
+
return {
|
|
6
|
+
reason: a,
|
|
7
|
+
event: n ?? new Event("base-ui"),
|
|
8
|
+
cancel() {
|
|
9
|
+
e = !0;
|
|
10
|
+
},
|
|
11
|
+
allowPropagation() {
|
|
12
|
+
t = !0;
|
|
13
|
+
},
|
|
14
|
+
get isCanceled() {
|
|
15
|
+
return e;
|
|
16
|
+
},
|
|
17
|
+
get isPropagationAllowed() {
|
|
18
|
+
return t;
|
|
19
|
+
},
|
|
20
|
+
trigger: o,
|
|
21
|
+
...r
|
|
22
|
+
};
|
|
16
23
|
}
|
|
17
24
|
export {
|
|
18
|
-
|
|
25
|
+
u as createChangeEventDetails
|
|
19
26
|
};
|
|
20
27
|
//# sourceMappingURL=index175.js.map
|
package/dist/index175.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index175.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index175.js","sources":["../../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.mjs\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}"],"names":["createChangeEventDetails","reason","event","trigger","customProperties","canceled","allowPropagation","custom","EMPTY_OBJECT"],"mappings":";AAmBO,SAASA,EAAyBC,GAAQC,GAAOC,GAASC,GAAkB;AACjF,MAAIC,IAAW,IACXC,IAAmB;AACvB,QAAMC,IAA6BC;AAmBnC,SAlBgB;AAAA,IACd,QAAAP;AAAA,IACA,OAAOC,KAAS,IAAI,MAAM,SAAS;AAAA,IACnC,SAAS;AACP,MAAAG,IAAW;AAAA,IACb;AAAA,IACA,mBAAmB;AACjB,MAAAC,IAAmB;AAAA,IACrB;AAAA,IACA,IAAI,aAAa;AACf,aAAOD;AAAA,IACT;AAAA,IACA,IAAI,uBAAuB;AACzB,aAAOC;AAAA,IACT;AAAA,IACA,SAAAH;AAAA,IACA,GAAGI;AAAA,EACP;AAEA;","x_google_ignoreList":[0]}
|
package/dist/index176.js
CHANGED
|
@@ -1,9 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { isHTMLElement as M } from "./index308.js";
|
|
3
|
+
import { useStableCallback as H } from "./index262.js";
|
|
4
|
+
import { error as y } from "./index352.js";
|
|
5
|
+
import { SafeReact as B } from "./index353.js";
|
|
6
|
+
import { useIsoLayoutEffect as A } from "./index261.js";
|
|
7
|
+
import { useCompositeRootContext as L } from "./index354.js";
|
|
8
|
+
import { useFocusableWhenDisabled as W } from "./index355.js";
|
|
9
|
+
import { mergeProps as $, makeEventPreventable as x } from "./index282.js";
|
|
10
|
+
function X(a = {}) {
|
|
11
|
+
const {
|
|
12
|
+
disabled: o = !1,
|
|
13
|
+
focusableWhenDisabled: C,
|
|
14
|
+
tabIndex: P = 0,
|
|
15
|
+
native: t = !0,
|
|
16
|
+
composite: T
|
|
17
|
+
} = a, i = l.useRef(null), E = L(!0), s = T ?? E !== void 0, {
|
|
18
|
+
props: u
|
|
19
|
+
} = W({
|
|
20
|
+
focusableWhenDisabled: C,
|
|
21
|
+
disabled: o,
|
|
22
|
+
composite: s,
|
|
23
|
+
tabIndex: P,
|
|
24
|
+
isNativeButton: t
|
|
25
|
+
});
|
|
26
|
+
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
27
|
+
if (!i.current)
|
|
28
|
+
return;
|
|
29
|
+
const n = f(i.current);
|
|
30
|
+
if (t) {
|
|
31
|
+
if (!n) {
|
|
32
|
+
const r = B.captureOwnerStack?.() || "";
|
|
33
|
+
y(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${r}`);
|
|
34
|
+
}
|
|
35
|
+
} else if (n) {
|
|
36
|
+
const r = B.captureOwnerStack?.() || "";
|
|
37
|
+
y(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${r}`);
|
|
38
|
+
}
|
|
39
|
+
}, [t]);
|
|
40
|
+
const p = l.useCallback(() => {
|
|
41
|
+
const n = i.current;
|
|
42
|
+
f(n) && s && o && u.disabled === void 0 && n.disabled && (n.disabled = !1);
|
|
43
|
+
}, [o, u.disabled, s]);
|
|
44
|
+
A(p, [p]);
|
|
45
|
+
const U = l.useCallback((n = {}) => {
|
|
46
|
+
const {
|
|
47
|
+
onClick: r,
|
|
48
|
+
onMouseDown: d,
|
|
49
|
+
onKeyUp: O,
|
|
50
|
+
onKeyDown: I,
|
|
51
|
+
onPointerDown: K,
|
|
52
|
+
...N
|
|
53
|
+
} = n;
|
|
54
|
+
return $({
|
|
55
|
+
onClick(e) {
|
|
56
|
+
if (o) {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
r?.(e);
|
|
61
|
+
},
|
|
62
|
+
onMouseDown(e) {
|
|
63
|
+
o || d?.(e);
|
|
64
|
+
},
|
|
65
|
+
onKeyDown(e) {
|
|
66
|
+
if (o || (x(e), I?.(e), e.baseUIHandlerPrevented))
|
|
67
|
+
return;
|
|
68
|
+
const b = e.target === e.currentTarget, c = e.currentTarget, g = f(c), h = !t && V(c), k = b && (t ? g : !h), D = e.key === "Enter", w = e.key === " ", m = c.getAttribute("role"), S = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
|
|
69
|
+
if (b && s && w) {
|
|
70
|
+
if (e.defaultPrevented && S)
|
|
71
|
+
return;
|
|
72
|
+
e.preventDefault(), h || t && g ? (c.click(), e.preventBaseUIHandler()) : k && (r?.(e), e.preventBaseUIHandler());
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
k && (!t && (w || D) && e.preventDefault(), !t && D && r?.(e));
|
|
76
|
+
},
|
|
77
|
+
onKeyUp(e) {
|
|
78
|
+
if (!o) {
|
|
79
|
+
if (x(e), O?.(e), e.target === e.currentTarget && t && s && f(e.currentTarget) && e.key === " ") {
|
|
80
|
+
e.preventDefault();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
e.baseUIHandlerPrevented || e.target === e.currentTarget && !t && !s && e.key === " " && r?.(e);
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
onPointerDown(e) {
|
|
87
|
+
if (o) {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
K?.(e);
|
|
92
|
+
}
|
|
93
|
+
}, t ? {
|
|
94
|
+
type: "button"
|
|
95
|
+
} : {
|
|
96
|
+
role: "button"
|
|
97
|
+
}, u, N);
|
|
98
|
+
}, [o, u, s, t]), R = H((n) => {
|
|
99
|
+
i.current = n, p();
|
|
100
|
+
});
|
|
101
|
+
return {
|
|
102
|
+
getButtonProps: U,
|
|
103
|
+
buttonRef: R
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function f(a) {
|
|
107
|
+
return M(a) && a.tagName === "BUTTON";
|
|
108
|
+
}
|
|
109
|
+
function V(a) {
|
|
110
|
+
return !!(a?.tagName === "A" && a?.href);
|
|
5
111
|
}
|
|
6
112
|
export {
|
|
7
|
-
|
|
113
|
+
X as useButton
|
|
8
114
|
};
|
|
9
115
|
//# sourceMappingURL=index176.js.map
|
package/dist/index176.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index176.js","sources":["../../../node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js"],"sourcesContent":["/**\n * Represents a month in a calendar year.\n *\n * A `CalendarMonth` contains the weeks within the month and the date of the\n * month.\n */\nexport class CalendarMonth {\n constructor(month, weeks) {\n this.date = month;\n this.weeks = weeks;\n }\n}\n"],"names":["CalendarMonth","month","weeks"],"mappings":"AAMO,MAAMA,EAAc;AAAA,EACvB,YAAYC,GAAOC,GAAO;AACtB,SAAK,OAAOD,GACZ,KAAK,QAAQC;AAAA,EACjB;AACJ;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index176.js","sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n if (isLink || isNativeButton && isButton) {\n currentTarget.click();\n event.preventBaseUIHandler();\n } else if (shouldClick) {\n externalOnClick?.(event);\n event.preventBaseUIHandler();\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (shouldClick) {\n if (!isNativeButton && (isSpaceKey || isEnterKey)) {\n event.preventDefault();\n }\n if (!isNativeButton && isEnterKey) {\n externalOnClick?.(event);\n }\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && event.key === ' ') {\n externalOnClick?.(event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return Boolean(elem?.tagName === 'A' && elem?.href);\n}"],"names":["useButton","parameters","disabled","focusableWhenDisabled","tabIndex","isNativeButton","compositeProp","elementRef","React","compositeRootContext","useCompositeRootContext","isCompositeItem","focusableWhenDisabledProps","useFocusableWhenDisabled","isButtonTag","isButtonElement","ownerStackMessage","SafeReact","error","updateDisabled","element","useIsoLayoutEffect","getButtonProps","externalProps","externalOnClick","externalOnMouseDown","externalOnKeyUp","externalOnKeyDown","externalOnPointerDown","otherExternalProps","mergeProps","event","makeEventPreventable","isCurrentTarget","currentTarget","isButton","isLink","isValidLinkElement","shouldClick","isEnterKey","isSpaceKey","role","isTextNavigationRole","buttonRef","useStableCallback","elem","isHTMLElement"],"mappings":";;;;;;;;;AAWO,SAASA,EAAUC,IAAa,IAAI;AACzC,QAAM;AAAA,IACJ,UAAAC,IAAW;AAAA,IACX,uBAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,QAAQC,IAAiB;AAAA,IACzB,WAAWC;AAAA,EACf,IAAML,GACEM,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAuBC,EAAwB,EAAI,GACnDC,IAAkBL,KAAiBG,MAAyB,QAC5D;AAAA,IACJ,OAAOG;AAAA,EACX,IAAMC,EAAyB;AAAA,IAC3B,uBAAAV;AAAA,IACA,UAAAD;AAAA,IACA,WAAWS;AAAA,IACX,UAAAP;AAAA,IACA,gBAAAC;AAAA,EACJ,CAAG;AACD,EAAI,QAAQ,IAAI,aAAa,gBAE3BG,EAAM,UAAU,MAAM;AACpB,QAAI,CAACD,EAAW;AACd;AAEF,UAAMO,IAAcC,EAAgBR,EAAW,OAAO;AACtD,QAAIF;AACF,UAAI,CAACS,GAAa;AAChB,cAAME,IAAoBC,EAAU,oBAAiB,KAAQ;AAE7D,QAAAC,EAAM,gSAAaF,CAAiB,EAAE;AAAA,MACxC;AAAA,eACSF,GAAa;AACtB,YAAME,IAAoBC,EAAU,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AS5B,EAAgB8B,GAAM;AAC7B,SAAOC,EAAcD,CAAI,KAAKA,EAAK,YAAY;AACjD;AACA,SAASR,EAAmBQ,GAAM;AAChC,SAAO,GAAQA,GAAM,YAAY,OAAOA,GAAM;AAChD;","x_google_ignoreList":[0]}
|
package/dist/index177.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
constructor(e, s) {
|
|
3
|
-
this.days = s, this.weekNumber = e;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
const e = "none", s = "trigger-press", o = "trigger-hover", t = "outside-press", n = "item-press", c = "close-press", i = "focus-out", r = "escape-key", a = "list-navigation", p = "cancel-open", g = "imperative-action", l = "window-resize";
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
p as cancelOpen,
|
|
4
|
+
c as closePress,
|
|
5
|
+
r as escapeKey,
|
|
6
|
+
i as focusOut,
|
|
7
|
+
g as imperativeAction,
|
|
8
|
+
n as itemPress,
|
|
9
|
+
a as listNavigation,
|
|
10
|
+
e as none,
|
|
11
|
+
t as outsidePress,
|
|
12
|
+
o as triggerHover,
|
|
13
|
+
s as triggerPress,
|
|
14
|
+
l as windowResize
|
|
8
15
|
};
|
|
9
16
|
//# sourceMappingURL=index177.js.map
|
package/dist/index177.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index177.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index177.js","sources":["../../../node_modules/@base-ui/react/internals/reason-parts.mjs"],"sourcesContent":["export const none = 'none';\nexport const triggerPress = 'trigger-press';\nexport const triggerHover = 'trigger-hover';\nexport const triggerFocus = 'trigger-focus';\nexport const outsidePress = 'outside-press';\nexport const itemPress = 'item-press';\nexport const closePress = 'close-press';\nexport const linkPress = 'link-press';\nexport const clearPress = 'clear-press';\nexport const chipRemovePress = 'chip-remove-press';\nexport const trackPress = 'track-press';\nexport const incrementPress = 'increment-press';\nexport const decrementPress = 'decrement-press';\nexport const inputChange = 'input-change';\nexport const inputClear = 'input-clear';\nexport const inputBlur = 'input-blur';\nexport const inputPaste = 'input-paste';\nexport const inputPress = 'input-press';\nexport const focusOut = 'focus-out';\nexport const escapeKey = 'escape-key';\nexport const closeWatcher = 'close-watcher';\nexport const listNavigation = 'list-navigation';\nexport const keyboard = 'keyboard';\nexport const pointer = 'pointer';\nexport const drag = 'drag';\nexport const wheel = 'wheel';\nexport const scrub = 'scrub';\nexport const cancelOpen = 'cancel-open';\nexport const siblingOpen = 'sibling-open';\nexport const disabled = 'disabled';\nexport const missing = 'missing';\nexport const initial = 'initial';\nexport const imperativeAction = 'imperative-action';\nexport const swipe = 'swipe';\nexport const windowResize = 'window-resize';"],"names":["none","triggerPress","triggerHover","outsidePress","itemPress","closePress","focusOut","escapeKey","listNavigation","cancelOpen","imperativeAction","windowResize"],"mappings":"AAAY,MAACA,IAAO,QACPC,IAAe,iBACfC,IAAe,iBAEfC,IAAe,iBACfC,IAAY,cACZC,IAAa,eAYbC,IAAW,aACXC,IAAY,cAEZC,IAAiB,mBAMjBC,IAAa,eAKbC,IAAmB,qBAEnBC,IAAe;","x_google_ignoreList":[0]}
|
package/dist/index178.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const o = s(e, t), r = n(e, t);
|
|
5
|
-
return t.addDays(o, r * 7 - 1);
|
|
1
|
+
import { useId as r } from "./index344.js";
|
|
2
|
+
function i(e) {
|
|
3
|
+
return r(e, "base-ui");
|
|
6
4
|
}
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
i as useBaseUiId
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=index178.js.map
|
package/dist/index178.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index178.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index178.js","sources":["../../../node_modules/@base-ui/react/internals/useBaseUiId.mjs"],"sourcesContent":["'use client';\n\nimport { useId } from '@base-ui/utils/useId';\n\n/**\n * Wraps `useId` and prefixes generated `id`s with `base-ui-`\n * @param {string | undefined} idOverride overrides the generated id when provided\n * @returns {string | undefined}\n */\nexport function useBaseUiId(idOverride) {\n return useId(idOverride, 'base-ui');\n}"],"names":["useBaseUiId","idOverride","useId"],"mappings":";AASO,SAASA,EAAYC,GAAY;AACtC,SAAOC,EAAMD,GAAY,SAAS;AACpC;","x_google_ignoreList":[0]}
|
package/dist/index179.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
let t = /* @__PURE__ */ (function(e) {
|
|
2
|
+
return e.nestedDialogs = "--nested-dialogs", e;
|
|
3
|
+
})({});
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
t as DialogPopupCssVars
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=index179.js.map
|
package/dist/index179.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index179.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index179.js","sources":["../../../node_modules/@base-ui/react/dialog/popup/DialogPopupCssVars.mjs"],"sourcesContent":["export let DialogPopupCssVars = /*#__PURE__*/function (DialogPopupCssVars) {\n /**\n * Indicates how many dialogs are nested within.\n * @type {number}\n */\n DialogPopupCssVars[\"nestedDialogs\"] = \"--nested-dialogs\";\n return DialogPopupCssVars;\n}({});"],"names":["DialogPopupCssVars"],"mappings":"AAAU,IAACA,IAAkC,0BAAUA,GAAoB;AAKzE,SAAAA,EAAmB,gBAAmB,oBAC/BA;AACT,GAAE,CAAA,CAAE;","x_google_ignoreList":[0]}
|
package/dist/index180.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return isNaN(r) ? i(e, NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
6
|
-
}
|
|
1
|
+
import { CommonPopupDataAttributes as e } from "./index173.js";
|
|
2
|
+
let y = (function(n) {
|
|
3
|
+
return n[n.open = e.open] = "open", n[n.closed = e.closed] = "closed", n[n.startingStyle = e.startingStyle] = "startingStyle", n[n.endingStyle = e.endingStyle] = "endingStyle", n.nested = "data-nested", n.nestedDialogOpen = "data-nested-dialog-open", n;
|
|
4
|
+
})({});
|
|
7
5
|
export {
|
|
8
|
-
|
|
6
|
+
y as DialogPopupDataAttributes
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=index180.js.map
|
package/dist/index180.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index180.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index180.js","sources":["../../../node_modules/@base-ui/react/dialog/popup/DialogPopupDataAttributes.mjs"],"sourcesContent":["import { CommonPopupDataAttributes } from \"../../utils/popupStateMapping.mjs\";\nexport let DialogPopupDataAttributes = function (DialogPopupDataAttributes) {\n /**\n * Present when the dialog is open.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"open\"] = CommonPopupDataAttributes.open] = \"open\";\n /**\n * Present when the dialog is closed.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"closed\"] = CommonPopupDataAttributes.closed] = \"closed\";\n /**\n * Present when the dialog is animating in.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"startingStyle\"] = CommonPopupDataAttributes.startingStyle] = \"startingStyle\";\n /**\n * Present when the dialog is animating out.\n */\n DialogPopupDataAttributes[DialogPopupDataAttributes[\"endingStyle\"] = CommonPopupDataAttributes.endingStyle] = \"endingStyle\";\n /**\n * Present when the dialog is nested within another dialog.\n */\n DialogPopupDataAttributes[\"nested\"] = \"data-nested\";\n /**\n * Present when the dialog has other open dialogs nested within it.\n */\n DialogPopupDataAttributes[\"nestedDialogOpen\"] = \"data-nested-dialog-open\";\n return DialogPopupDataAttributes;\n}({});"],"names":["DialogPopupDataAttributes","CommonPopupDataAttributes"],"mappings":";AACU,IAACA,KAA4B,SAAUA,GAA2B;AAI1E,SAAAA,EAA0BA,EAA0B,OAAUC,EAA0B,IAAI,IAAI,QAIhGD,EAA0BA,EAA0B,SAAYC,EAA0B,MAAM,IAAI,UAIpGD,EAA0BA,EAA0B,gBAAmBC,EAA0B,aAAa,IAAI,iBAIlHD,EAA0BA,EAA0B,cAAiBC,EAA0B,WAAW,IAAI,eAI9GD,EAA0B,SAAY,eAItCA,EAA0B,mBAAsB,2BACzCA;AACT,GAAE,CAAA,CAAE;","x_google_ignoreList":[0]}
|