@rpcbase/ui 0.248.0 → 0.249.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/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/index167.js +3 -3
- package/dist/index172.js +9 -9
- package/dist/index175.js +1 -1
- package/dist/index176.js +8 -8
- package/dist/index178.js +1 -1
- package/dist/index182.js +1 -1
- package/dist/index184.js +5 -5
- package/dist/index185.js +13 -13
- package/dist/index186.js +1 -1
- package/dist/index188.js +6 -6
- package/dist/index189.js +3 -3
- package/dist/index192.js +4 -4
- package/dist/index193.js +6 -6
- package/dist/index194.js +20 -59
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +66 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -87
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +5 -19
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +11 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +49 -4
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -7
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +29 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +16 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +21 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +53 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +20 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +41 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +39 -13
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +46 -14
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +70 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +11 -54
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +13 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +18 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +36 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +239 -8
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +252 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +68 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +99 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +83 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +29 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -10
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +35 -11
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +17 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -6
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +28 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +78 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +272 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -15
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -10
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +16 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +125 -21
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -8
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +65 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -4
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +3 -16
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +10 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +7 -18
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +132 -19
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +397 -10
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -30
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +27 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +12 -20
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +57 -65
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +8 -6
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +87 -5
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +19 -11
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +16 -3
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +4 -49
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +6 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +4 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +6 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +16 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -53
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +4 -20
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +14 -46
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +13 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +4 -70
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +6 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -11
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +53 -12
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -36
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +4 -239
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +8 -252
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +4 -68
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -99
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +3 -83
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +10 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +9 -29
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +9 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +11 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +10 -17
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +9 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +6 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -28
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +5 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +6 -272
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +5 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +29 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +12 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +24 -15
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +5 -125
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +16 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +7 -65
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +10 -13
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +10 -7
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +21 -5
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +8 -3
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +9 -10
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +9 -7
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +4 -133
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +5 -399
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +17 -5
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +9 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +18 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +20 -27
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +12 -11
- package/dist/index314.js.map +1 -1
- package/dist/index317.js +1 -1
- package/dist/index318.js +1 -1
- package/dist/index321.js +2 -2
- package/dist/index322.js +2 -2
- package/dist/index325.js +1 -1
- package/dist/index330.js +3 -135
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +134 -16
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +17 -15
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +15 -3
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +2 -2
- package/dist/index336.js +7 -8
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +8 -7
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +24 -8
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +28 -11
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +15 -7
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +8 -13
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +11 -3
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +8 -3
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +12 -16
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +3 -24
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +3 -28
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +16 -15
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +2 -2
- package/dist/index349.js +5 -61
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +60 -65
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +66 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +143 -7
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +79 -4
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +61 -11
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +15 -22
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +8 -16
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +5 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +11 -144
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +19 -77
- package/dist/index359.js.map +1 -1
- package/dist/index360.js +16 -61
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +8 -15
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +4 -5
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +6 -18
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +3 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +12 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +19 -10
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +45 -6
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +18 -3
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +5 -21
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +200 -44
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +73 -17
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +124 -5
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +4 -200
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +18 -74
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +12 -123
- package/dist/index375.js.map +1 -1
- package/dist/index379.js +4 -4
- package/dist/index380.js +3 -3
- package/dist/index382.js +1 -1
- package/dist/index384.js +1 -1
- package/dist/index385.js +2 -2
- package/dist/index388.js +4 -4
- package/dist/index389.js +2 -2
- package/dist/index391.js +1 -1
- package/dist/index392.js +3 -5
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +3 -5
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +5 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +4 -15
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +4 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +15 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +8 -4
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +5 -545
- package/dist/index399.js.map +1 -1
- package/dist/index400.js +5 -47
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +543 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +47 -6
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +17 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +5 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +6 -11
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -8
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +11 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +9 -3
- package/dist/index409.js.map +1 -1
- package/dist/index410.js +13 -3
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +3 -15
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +15 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +1 -1
- package/dist/index414.js +7 -4
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +2 -56
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +43 -67
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +56 -31
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +8 -9
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +2 -153
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +54 -107
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +55 -7
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +33 -2
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +4 -43
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +55 -55
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +68 -8
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +31 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +9 -55
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +152 -55
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +107 -32
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +2 -16
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +2 -29
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +2 -13
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +2 -7
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +16 -2
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +29 -2
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +13 -2
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +7 -2
- package/dist/index437.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.js +2 -2
- package/dist/index49.js +30 -30
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +16 -16
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.js +6 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +8 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index76.js +2 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -8
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -6
- package/dist/index78.js.map +1 -1
- package/package.json +1 -1
package/dist/index105.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { TZDate as a } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import { endOfBroadcastWeek as f } from "./
|
|
4
|
-
import { startOfBroadcastWeek as d } from "./
|
|
1
|
+
import { TZDate as a } from "./index255.js";
|
|
2
|
+
import "./index257.js";
|
|
3
|
+
import { endOfBroadcastWeek as f } from "./index262.js";
|
|
4
|
+
import { startOfBroadcastWeek as d } from "./index263.js";
|
|
5
5
|
import { enUS as m } from "./index128.js";
|
|
6
|
-
import { addDays as v } from "./
|
|
7
|
-
import { addMonths as p } from "./
|
|
8
|
-
import { addWeeks as O } from "./
|
|
9
|
-
import { addYears as c } from "./
|
|
10
|
-
import { differenceInCalendarDays as u } from "./
|
|
11
|
-
import { differenceInCalendarMonths as l } from "./
|
|
12
|
-
import { eachMonthOfInterval as M } from "./
|
|
13
|
-
import { eachYearOfInterval as k } from "./
|
|
14
|
-
import { endOfISOWeek as W } from "./
|
|
15
|
-
import { endOfMonth as D } from "./
|
|
16
|
-
import { endOfWeek as Y } from "./
|
|
17
|
-
import { endOfYear as S } from "./
|
|
18
|
-
import { format as y } from "./
|
|
19
|
-
import { getISOWeek as g } from "./
|
|
20
|
-
import { getMonth as I } from "./
|
|
21
|
-
import { getYear as w } from "./
|
|
22
|
-
import { getWeek as B } from "./
|
|
23
|
-
import { isAfter as L } from "./
|
|
24
|
-
import { isBefore as C } from "./
|
|
25
|
-
import { isDate as z } from "./
|
|
26
|
-
import { isSameDay as Z } from "./
|
|
27
|
-
import { isSameMonth as b } from "./
|
|
28
|
-
import { isSameYear as A } from "./
|
|
29
|
-
import { max as F } from "./
|
|
30
|
-
import { min as N } from "./
|
|
31
|
-
import { setMonth as _ } from "./
|
|
32
|
-
import { setYear as j } from "./
|
|
33
|
-
import { startOfDay as x } from "./
|
|
34
|
-
import { startOfISOWeek as H } from "./
|
|
35
|
-
import { startOfMonth as K } from "./
|
|
36
|
-
import { startOfWeek as T } from "./
|
|
37
|
-
import { startOfYear as U } from "./
|
|
6
|
+
import { addDays as v } from "./index264.js";
|
|
7
|
+
import { addMonths as p } from "./index265.js";
|
|
8
|
+
import { addWeeks as O } from "./index266.js";
|
|
9
|
+
import { addYears as c } from "./index267.js";
|
|
10
|
+
import { differenceInCalendarDays as u } from "./index268.js";
|
|
11
|
+
import { differenceInCalendarMonths as l } from "./index269.js";
|
|
12
|
+
import { eachMonthOfInterval as M } from "./index270.js";
|
|
13
|
+
import { eachYearOfInterval as k } from "./index271.js";
|
|
14
|
+
import { endOfISOWeek as W } from "./index272.js";
|
|
15
|
+
import { endOfMonth as D } from "./index273.js";
|
|
16
|
+
import { endOfWeek as Y } from "./index274.js";
|
|
17
|
+
import { endOfYear as S } from "./index275.js";
|
|
18
|
+
import { format as y } from "./index276.js";
|
|
19
|
+
import { getISOWeek as g } from "./index277.js";
|
|
20
|
+
import { getMonth as I } from "./index278.js";
|
|
21
|
+
import { getYear as w } from "./index279.js";
|
|
22
|
+
import { getWeek as B } from "./index280.js";
|
|
23
|
+
import { isAfter as L } from "./index281.js";
|
|
24
|
+
import { isBefore as C } from "./index282.js";
|
|
25
|
+
import { isDate as z } from "./index283.js";
|
|
26
|
+
import { isSameDay as Z } from "./index284.js";
|
|
27
|
+
import { isSameMonth as b } from "./index285.js";
|
|
28
|
+
import { isSameYear as A } from "./index286.js";
|
|
29
|
+
import { max as F } from "./index287.js";
|
|
30
|
+
import { min as N } from "./index288.js";
|
|
31
|
+
import { setMonth as _ } from "./index289.js";
|
|
32
|
+
import { setYear as j } from "./index290.js";
|
|
33
|
+
import { startOfDay as x } from "./index291.js";
|
|
34
|
+
import { startOfISOWeek as H } from "./index292.js";
|
|
35
|
+
import { startOfMonth as K } from "./index293.js";
|
|
36
|
+
import { startOfWeek as T } from "./index294.js";
|
|
37
|
+
import { startOfYear as U } from "./index295.js";
|
|
38
38
|
class n {
|
|
39
39
|
/**
|
|
40
40
|
* Creates an instance of `DateLib`.
|
package/dist/index117.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TZDate as c } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import { differenceInCalendarMonths as h } from "./
|
|
4
|
-
import { differenceInCalendarDays as O } from "./
|
|
5
|
-
import { getISOWeek as k } from "./
|
|
6
|
-
import { getWeek as w } from "./
|
|
1
|
+
import { TZDate as c } from "./index255.js";
|
|
2
|
+
import "./index257.js";
|
|
3
|
+
import { differenceInCalendarMonths as h } from "./index269.js";
|
|
4
|
+
import { differenceInCalendarDays as O } from "./index268.js";
|
|
5
|
+
import { getISOWeek as k } from "./index277.js";
|
|
6
|
+
import { getWeek as w } from "./index280.js";
|
|
7
7
|
function W(o, D = {}) {
|
|
8
8
|
const { weekStartsOn: d, locale: g } = D, l = d ?? g?.options?.weekStartsOn ?? 0, r = (t) => {
|
|
9
9
|
const e = typeof t == "number" || typeof t == "string" ? new Date(t) : t;
|
package/dist/index120.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useEffect as D, useMemo as S } from "react";
|
|
2
|
-
import { getDates as N } from "./
|
|
3
|
-
import { getDays as w } from "./
|
|
4
|
-
import { getDisplayMonths as E } from "./
|
|
5
|
-
import { getInitialMonth as c } from "./
|
|
6
|
-
import { getMonths as b } from "./
|
|
7
|
-
import { getNavMonths as q } from "./
|
|
8
|
-
import { getNextMonth as F } from "./
|
|
9
|
-
import { getPreviousMonth as P } from "./
|
|
10
|
-
import { getWeeks as V } from "./
|
|
11
|
-
import { useControlledValue as Z } from "./
|
|
2
|
+
import { getDates as N } from "./index300.js";
|
|
3
|
+
import { getDays as w } from "./index301.js";
|
|
4
|
+
import { getDisplayMonths as E } from "./index302.js";
|
|
5
|
+
import { getInitialMonth as c } from "./index303.js";
|
|
6
|
+
import { getMonths as b } from "./index304.js";
|
|
7
|
+
import { getNavMonths as q } from "./index305.js";
|
|
8
|
+
import { getNextMonth as F } from "./index306.js";
|
|
9
|
+
import { getPreviousMonth as P } from "./index307.js";
|
|
10
|
+
import { getWeeks as V } from "./index308.js";
|
|
11
|
+
import { useControlledValue as Z } from "./index309.js";
|
|
12
12
|
function _(e, n) {
|
|
13
13
|
const [s, a] = q(e, n), { startOfMonth: i, endOfMonth: g } = n, h = c(e, s, a, n), [m, f] = Z(
|
|
14
14
|
h,
|
package/dist/index122.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as a } from "react";
|
|
2
|
-
import { calculateFocusTarget as T } from "./
|
|
3
|
-
import { getNextFocus as v } from "./
|
|
2
|
+
import { calculateFocusTarget as T } from "./index310.js";
|
|
3
|
+
import { getNextFocus as v } from "./index311.js";
|
|
4
4
|
function I(e, o, r, i, f) {
|
|
5
5
|
const { autoFocus: F } = e, [d, m] = a(), c = T(o.days, r, i || (() => !1), d), [s, u] = a(F ? c : void 0);
|
|
6
6
|
return {
|
package/dist/index123.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useMulti as i } from "./
|
|
2
|
-
import { useRange as o } from "./
|
|
3
|
-
import { useSingle as s } from "./
|
|
1
|
+
import { useMulti as i } from "./index312.js";
|
|
2
|
+
import { useRange as o } from "./index313.js";
|
|
3
|
+
import { useSingle as s } from "./index314.js";
|
|
4
4
|
function f(e, n) {
|
|
5
5
|
const t = s(e, n), r = i(e, n), u = o(e, n);
|
|
6
6
|
switch (e.mode) {
|
package/dist/index124.js
CHANGED
package/dist/index126.js
CHANGED
package/dist/index128.js
CHANGED
package/dist/index167.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import b from "./index321.js";
|
|
2
|
-
import y from "./
|
|
3
|
-
import m from "./
|
|
4
|
-
import C from "./
|
|
2
|
+
import y from "./index338.js";
|
|
3
|
+
import m from "./index339.js";
|
|
4
|
+
import C from "./index340.js";
|
|
5
5
|
import v from "./index157.js";
|
|
6
6
|
import { VALID_PUNCTUATION as s, VALID_DIGITS as g, PLUS_CHARS as p } from "./index159.js";
|
|
7
7
|
function d(i) {
|
package/dist/index172.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import b from "./index190.js";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { createElement as p } from "react";
|
|
4
|
-
import { useMergedRefs as E, useMergedRefsN as g } from "./
|
|
5
|
-
import { getReactElementRef as y } from "./
|
|
6
|
-
import { mergeObjects as R } from "./
|
|
7
|
-
import { warn as v } from "./
|
|
8
|
-
import { EMPTY_OBJECT as f } from "./
|
|
9
|
-
import { getStateAttributesProps as w } from "./
|
|
10
|
-
import { resolveClassName as C } from "./
|
|
11
|
-
import { resolveStyle as T } from "./
|
|
12
|
-
import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./
|
|
4
|
+
import { useMergedRefs as E, useMergedRefsN as g } from "./index195.js";
|
|
5
|
+
import { getReactElementRef as y } from "./index341.js";
|
|
6
|
+
import { mergeObjects as R } from "./index342.js";
|
|
7
|
+
import { warn as v } from "./index343.js";
|
|
8
|
+
import { EMPTY_OBJECT as f } from "./index204.js";
|
|
9
|
+
import { getStateAttributesProps as w } from "./index344.js";
|
|
10
|
+
import { resolveClassName as C } from "./index345.js";
|
|
11
|
+
import { resolveStyle as T } from "./index346.js";
|
|
12
|
+
import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./index222.js";
|
|
13
13
|
function q(r, e, t = {}) {
|
|
14
14
|
const a = e.render, s = I(e, t);
|
|
15
15
|
if (t.enabled === !1)
|
package/dist/index175.js
CHANGED
package/dist/index176.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { isHTMLElement as M } from "./
|
|
3
|
-
import { useStableCallback as H } from "./
|
|
4
|
-
import { error as y } from "./
|
|
5
|
-
import { SafeReact as B } from "./
|
|
6
|
-
import { useIsoLayoutEffect as A } from "./
|
|
7
|
-
import { useCompositeRootContext as L } from "./
|
|
8
|
-
import { useFocusableWhenDisabled as W } from "./
|
|
9
|
-
import { mergeProps as $, makeEventPreventable as x } from "./
|
|
2
|
+
import { isHTMLElement as M } from "./index248.js";
|
|
3
|
+
import { useStableCallback as H } from "./index202.js";
|
|
4
|
+
import { error as y } from "./index356.js";
|
|
5
|
+
import { SafeReact as B } from "./index357.js";
|
|
6
|
+
import { useIsoLayoutEffect as A } from "./index201.js";
|
|
7
|
+
import { useCompositeRootContext as L } from "./index358.js";
|
|
8
|
+
import { useFocusableWhenDisabled as W } from "./index359.js";
|
|
9
|
+
import { mergeProps as $, makeEventPreventable as x } from "./index222.js";
|
|
10
10
|
function X(a = {}) {
|
|
11
11
|
const {
|
|
12
12
|
disabled: o = !1,
|
package/dist/index178.js
CHANGED
package/dist/index182.js
CHANGED
package/dist/index184.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import "react-dom";
|
|
3
|
-
import { EMPTY_OBJECT as f } from "./
|
|
4
|
-
import { useId as T } from "./
|
|
5
|
-
import { useStableCallback as p } from "./
|
|
6
|
-
import { useIsoLayoutEffect as s } from "./
|
|
3
|
+
import { EMPTY_OBJECT as f } from "./index204.js";
|
|
4
|
+
import { useId as T } from "./index347.js";
|
|
5
|
+
import { useStableCallback as p } from "./index202.js";
|
|
6
|
+
import { useIsoLayoutEffect as s } from "./index201.js";
|
|
7
7
|
import { FOCUSABLE_ATTRIBUTE as v } from "./index390.js";
|
|
8
8
|
import { useFloatingParentNodeId as C } from "./index386.js";
|
|
9
9
|
import { useSyncedFloatingRootContext as E } from "./index389.js";
|
|
10
|
-
import { useTransitionStatus as I } from "./
|
|
10
|
+
import { useTransitionStatus as I } from "./index209.js";
|
|
11
11
|
import { useOpenChangeComplete as O } from "./index182.js";
|
|
12
12
|
import { createChangeEventDetails as S } from "./index175.js";
|
|
13
13
|
import { none as P } from "./index177.js";
|
package/dist/index185.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as E from "react";
|
|
2
|
-
import { isHTMLElement as q, getNodeName as Se, getWindow as Be } from "./
|
|
3
|
-
import { addEventListener as I } from "./
|
|
2
|
+
import { isHTMLElement as q, getNodeName as Se, getWindow as Be } from "./index248.js";
|
|
3
|
+
import { addEventListener as I } from "./index240.js";
|
|
4
4
|
import { mergeCleanups as ge } from "./index378.js";
|
|
5
|
-
import { useMergedRefs as Ee } from "./
|
|
6
|
-
import { useValueAsRef as $ } from "./
|
|
7
|
-
import { useStableCallback as oe } from "./
|
|
8
|
-
import { useIsoLayoutEffect as W } from "./
|
|
9
|
-
import { useTimeout as Fe } from "./
|
|
10
|
-
import { useAnimationFrame as Ue } from "./
|
|
11
|
-
import { ownerDocument as O } from "./
|
|
5
|
+
import { useMergedRefs as Ee } from "./index195.js";
|
|
6
|
+
import { useValueAsRef as $ } from "./index203.js";
|
|
7
|
+
import { useStableCallback as oe } from "./index202.js";
|
|
8
|
+
import { useIsoLayoutEffect as W } from "./index201.js";
|
|
9
|
+
import { useTimeout as Fe } from "./index225.js";
|
|
10
|
+
import { useAnimationFrame as Ue } from "./index241.js";
|
|
11
|
+
import { ownerDocument as O } from "./index224.js";
|
|
12
12
|
import { FocusGuard as Te } from "./index379.js";
|
|
13
|
-
import { isTypeableCombobox as xe, getFloatingFocusElement as ye, isTypeableElement as $e } from "./
|
|
14
|
-
import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./
|
|
13
|
+
import { isTypeableCombobox as xe, getFloatingFocusElement as ye, isTypeableElement as $e } from "./index230.js";
|
|
14
|
+
import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index253.js";
|
|
15
15
|
import { isOutsideEvent as Ie, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as De, isTabbable as ie, focusable as Ze } from "./index380.js";
|
|
16
16
|
import { getNodeAncestors as ve, getNodeChildren as he } from "./index381.js";
|
|
17
17
|
import { isElementVisible as et } from "./index382.js";
|
|
@@ -24,9 +24,9 @@ import { useFloatingTree as rt } from "./index386.js";
|
|
|
24
24
|
import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index191.js";
|
|
25
25
|
import { resolveRef as w } from "./index387.js";
|
|
26
26
|
import { j as ue } from "./index30.js";
|
|
27
|
-
import { activeElement as N, contains as c, getTarget as z } from "./
|
|
27
|
+
import { activeElement as N, contains as c, getTarget as z } from "./index231.js";
|
|
28
28
|
import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index177.js";
|
|
29
|
-
import { webkit as ct } from "./
|
|
29
|
+
import { webkit as ct } from "./index250.js";
|
|
30
30
|
function ft(n, D) {
|
|
31
31
|
const M = Be(z(n));
|
|
32
32
|
return n instanceof M.KeyboardEvent ? "keyboard" : n instanceof M.FocusEvent ? D || "keyboard" : "pointerType" in n ? n.pointerType || "keyboard" : "touches" in n ? "touch" : n instanceof M.MouseEvent ? D || (n.detail === 0 ? "keyboard" : "mouse") : "";
|
package/dist/index186.js
CHANGED
package/dist/index188.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import * as j from "react-dom";
|
|
3
|
-
import { isNode as w } from "./
|
|
4
|
-
import { addEventListener as S } from "./
|
|
3
|
+
import { isNode as w } from "./index248.js";
|
|
4
|
+
import { addEventListener as S } from "./index240.js";
|
|
5
5
|
import { mergeCleanups as G } from "./index378.js";
|
|
6
|
-
import { useId as _ } from "./
|
|
7
|
-
import { useIsoLayoutEffect as h } from "./
|
|
8
|
-
import { useStableCallback as L } from "./
|
|
9
|
-
import { EMPTY_OBJECT as k } from "./
|
|
6
|
+
import { useId as _ } from "./index347.js";
|
|
7
|
+
import { useIsoLayoutEffect as h } from "./index201.js";
|
|
8
|
+
import { useStableCallback as L } from "./index202.js";
|
|
9
|
+
import { EMPTY_OBJECT as k } from "./index204.js";
|
|
10
10
|
import { FocusGuard as T } from "./index379.js";
|
|
11
11
|
import { enableFocusInside as I, isOutsideEvent as E, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index380.js";
|
|
12
12
|
import { createChangeEventDetails as H } from "./index175.js";
|
package/dist/index189.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as w from "react";
|
|
2
|
-
import { useOnFirstRender as y } from "./
|
|
3
|
-
import { useDialogRoot as T, DialogInteractions as k } from "./
|
|
2
|
+
import { useOnFirstRender as y } from "./index197.js";
|
|
3
|
+
import { useDialogRoot as T, DialogInteractions as k } from "./index350.js";
|
|
4
4
|
import { useDialogRootContext as V, IsDrawerContext as A, DialogRootContext as B } from "./index171.js";
|
|
5
|
-
import { DialogStore as E } from "./
|
|
5
|
+
import { DialogStore as E } from "./index351.js";
|
|
6
6
|
import { j as a } from "./index30.js";
|
|
7
7
|
function J(c, l = "dialog") {
|
|
8
8
|
const {
|
package/dist/index192.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { useStableCallback as u } from "./
|
|
3
|
-
import { useEnhancedClickHandler as c } from "./
|
|
4
|
-
import { useValueChanged as l } from "./
|
|
5
|
-
import { ios as a } from "./
|
|
2
|
+
import { useStableCallback as u } from "./index202.js";
|
|
3
|
+
import { useEnhancedClickHandler as c } from "./index360.js";
|
|
4
|
+
import { useValueChanged as l } from "./index215.js";
|
|
5
|
+
import { ios as a } from "./index361.js";
|
|
6
6
|
function m(e, t) {
|
|
7
7
|
const n = u((p, s) => {
|
|
8
8
|
(typeof e == "function" ? e() : e) || t(s || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
|
package/dist/index193.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { useAnimationFrame as v } from "./
|
|
3
|
-
import { useTimeout as P } from "./
|
|
4
|
-
import { EMPTY_OBJECT as b } from "./
|
|
5
|
-
import { isTypeableElement as x } from "./
|
|
6
|
-
import { isMouseLikePointerType as E } from "./
|
|
2
|
+
import { useAnimationFrame as v } from "./index241.js";
|
|
3
|
+
import { useTimeout as P } from "./index225.js";
|
|
4
|
+
import { EMPTY_OBJECT as b } from "./index204.js";
|
|
5
|
+
import { isTypeableElement as x } from "./index230.js";
|
|
6
|
+
import { isMouseLikePointerType as E } from "./index253.js";
|
|
7
7
|
import { createChangeEventDetails as I } from "./index175.js";
|
|
8
|
-
import { getTarget as S } from "./
|
|
8
|
+
import { getTarget as S } from "./index231.js";
|
|
9
9
|
import { triggerPress as q } from "./index177.js";
|
|
10
10
|
function Y(s, M = {}) {
|
|
11
11
|
const {
|
package/dist/index194.js
CHANGED
|
@@ -1,62 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return `${t?.slice(0, -1)} ${n} ${e} ${i}`;
|
|
20
|
-
}
|
|
21
|
-
toTimeString() {
|
|
22
|
-
const t = this.internal.toUTCString().split(" ")[4], [e, n, i] = this.tzComponents();
|
|
23
|
-
return `${t} GMT${e}${n}${i} (${r(this.timeZone, this)})`;
|
|
24
|
-
}
|
|
25
|
-
toLocaleString(t, e) {
|
|
26
|
-
return Date.prototype.toLocaleString.call(this, t, {
|
|
27
|
-
...e,
|
|
28
|
-
timeZone: e?.timeZone || this.timeZone
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
toLocaleDateString(t, e) {
|
|
32
|
-
return Date.prototype.toLocaleDateString.call(this, t, {
|
|
33
|
-
...e,
|
|
34
|
-
timeZone: e?.timeZone || this.timeZone
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
toLocaleTimeString(t, e) {
|
|
38
|
-
return Date.prototype.toLocaleTimeString.call(this, t, {
|
|
39
|
-
...e,
|
|
40
|
-
timeZone: e?.timeZone || this.timeZone
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region private
|
|
45
|
-
tzComponents() {
|
|
46
|
-
const t = this.getTimezoneOffset(), e = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0");
|
|
47
|
-
return [e, n, i];
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
withTimeZone(t) {
|
|
51
|
-
return new o(+this, t);
|
|
52
|
-
}
|
|
53
|
-
//#region date-fns integration
|
|
54
|
-
[/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
|
|
55
|
-
return new o(+new Date(t), this.timeZone);
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
}
|
|
1
|
+
const i = {
|
|
2
|
+
clipPath: "inset(50%)",
|
|
3
|
+
overflow: "hidden",
|
|
4
|
+
whiteSpace: "nowrap",
|
|
5
|
+
border: 0,
|
|
6
|
+
padding: 0,
|
|
7
|
+
width: 1,
|
|
8
|
+
height: 1,
|
|
9
|
+
margin: -1
|
|
10
|
+
}, e = {
|
|
11
|
+
...i,
|
|
12
|
+
position: "fixed",
|
|
13
|
+
top: 0,
|
|
14
|
+
left: 0
|
|
15
|
+
}, t = {
|
|
16
|
+
...i,
|
|
17
|
+
position: "absolute"
|
|
18
|
+
};
|
|
59
19
|
export {
|
|
60
|
-
|
|
20
|
+
e as visuallyHidden,
|
|
21
|
+
t as visuallyHiddenInput
|
|
61
22
|
};
|
|
62
23
|
//# sourceMappingURL=index194.js.map
|
package/dist/index194.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index194.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index194.js","sources":["../../../node_modules/@base-ui/utils/visuallyHidden.mjs"],"sourcesContent":["const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};"],"names":["visuallyHiddenBase","visuallyHidden","visuallyHiddenInput"],"mappings":"AAAA,MAAMA,IAAqB;AAAA,EACzB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV,GACaC,IAAiB;AAAA,EAC5B,GAAGD;AAAA,EACH,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AACR,GACaE,IAAsB;AAAA,EACjC,GAAGF;AAAA,EACH,UAAU;AACZ;","x_google_ignoreList":[0]}
|
package/dist/index195.js
CHANGED
|
@@ -1,12 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useRefWithInit as r } from "./index196.js";
|
|
2
|
+
function b(n, e, c, t) {
|
|
3
|
+
const l = r(i).current;
|
|
4
|
+
return s(l, n, e, c, t) && o(l, [n, e, c, t]), l.callback;
|
|
5
|
+
}
|
|
6
|
+
function h(n) {
|
|
7
|
+
const e = r(i).current;
|
|
8
|
+
return f(e, n) && o(e, n), e.callback;
|
|
9
|
+
}
|
|
10
|
+
function i() {
|
|
11
|
+
return {
|
|
12
|
+
callback: null,
|
|
13
|
+
cleanup: null,
|
|
14
|
+
refs: []
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function s(n, e, c, t, l) {
|
|
18
|
+
return n.refs[0] !== e || n.refs[1] !== c || n.refs[2] !== t || n.refs[3] !== l;
|
|
19
|
+
}
|
|
20
|
+
function f(n, e) {
|
|
21
|
+
return n.refs.length !== e.length || n.refs.some((c, t) => c !== e[t]);
|
|
22
|
+
}
|
|
23
|
+
function o(n, e) {
|
|
24
|
+
if (n.refs = e, e.every((c) => c == null)) {
|
|
25
|
+
n.callback = null;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
n.callback = (c) => {
|
|
29
|
+
if (n.cleanup && (n.cleanup(), n.cleanup = null), c != null) {
|
|
30
|
+
const t = Array(e.length).fill(null);
|
|
31
|
+
for (let l = 0; l < e.length; l += 1) {
|
|
32
|
+
const u = e[l];
|
|
33
|
+
if (u != null)
|
|
34
|
+
switch (typeof u) {
|
|
35
|
+
case "function": {
|
|
36
|
+
const a = u(c);
|
|
37
|
+
typeof a == "function" && (t[l] = a);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
case "object": {
|
|
41
|
+
u.current = c;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
n.cleanup = () => {
|
|
47
|
+
for (let l = 0; l < e.length; l += 1) {
|
|
48
|
+
const u = e[l];
|
|
49
|
+
if (u != null)
|
|
50
|
+
switch (typeof u) {
|
|
51
|
+
case "function": {
|
|
52
|
+
const a = t[l];
|
|
53
|
+
typeof a == "function" ? a() : u(null);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
case "object": {
|
|
57
|
+
u.current = null;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
};
|
|
8
65
|
}
|
|
9
66
|
export {
|
|
10
|
-
|
|
67
|
+
b as useMergedRefs,
|
|
68
|
+
h as useMergedRefsN
|
|
11
69
|
};
|
|
12
70
|
//# sourceMappingURL=index195.js.map
|
package/dist/index195.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index195.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index195.js","sources":["../../../node_modules/@base-ui/utils/useMergedRefs.mjs"],"sourcesContent":["import { useRefWithInit } from \"./useRefWithInit.mjs\";\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n * This makes sure multiple refs are updated together and have the same value.\n *\n * This function accepts up to four refs. If you need to merge more, or have an unspecified number of refs to merge,\n * use `useMergedRefsN` instead.\n */\n\nexport function useMergedRefs(a, b, c, d) {\n const forkRef = useRefWithInit(createForkRef).current;\n if (didChange(forkRef, a, b, c, d)) {\n update(forkRef, [a, b, c, d]);\n }\n return forkRef.callback;\n}\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n *\n * If you need to merge a fixed number (up to four) of refs, use `useMergedRefs` instead for better performance.\n */\nexport function useMergedRefsN(refs) {\n const forkRef = useRefWithInit(createForkRef).current;\n if (didChangeN(forkRef, refs)) {\n update(forkRef, refs);\n }\n return forkRef.callback;\n}\nfunction createForkRef() {\n return {\n callback: null,\n cleanup: null,\n refs: []\n };\n}\nfunction didChange(forkRef, a, b, c, d) {\n // prettier-ignore\n return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d;\n}\nfunction didChangeN(forkRef, newRefs) {\n return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index) => ref !== newRefs[index]);\n}\nfunction update(forkRef, refs) {\n forkRef.refs = refs;\n if (refs.every(ref => ref == null)) {\n forkRef.callback = null;\n return;\n }\n forkRef.callback = instance => {\n if (forkRef.cleanup) {\n forkRef.cleanup();\n forkRef.cleanup = null;\n }\n if (instance != null) {\n const cleanupCallbacks = Array(refs.length).fill(null);\n for (let i = 0; i < refs.length; i += 1) {\n const ref = refs[i];\n if (ref == null) {\n continue;\n }\n switch (typeof ref) {\n case 'function':\n {\n const refCleanup = ref(instance);\n if (typeof refCleanup === 'function') {\n cleanupCallbacks[i] = refCleanup;\n }\n break;\n }\n case 'object':\n {\n ref.current = instance;\n break;\n }\n default:\n }\n }\n forkRef.cleanup = () => {\n for (let i = 0; i < refs.length; i += 1) {\n const ref = refs[i];\n if (ref == null) {\n continue;\n }\n switch (typeof ref) {\n case 'function':\n {\n const cleanupCallback = cleanupCallbacks[i];\n if (typeof cleanupCallback === 'function') {\n cleanupCallback();\n } else {\n ref(null);\n }\n break;\n }\n case 'object':\n {\n ref.current = null;\n break;\n }\n default:\n }\n }\n };\n }\n };\n}"],"names":["useMergedRefs","a","b","d","forkRef","useRefWithInit","createForkRef","didChange","update","useMergedRefsN","refs","didChangeN","c","newRefs","ref","index","instance","cleanupCallbacks","i","refCleanup","cleanupCallback"],"mappings":";AAUO,SAASA,EAAcC,GAAGC,GAAG,GAAGC,GAAG;AACxC,QAAMC,IAAUC,EAAeC,CAAa,EAAE;AAC9C,SAAIC,EAAUH,GAASH,GAAGC,GAAG,GAAGC,CAAC,KAC/BK,EAAOJ,GAAS,CAACH,GAAGC,GAAG,GAAGC,CAAC,CAAC,GAEvBC,EAAQ;AACjB;AAOO,SAASK,EAAeC,GAAM;AACnC,QAAMN,IAAUC,EAAeC,CAAa,EAAE;AAC9C,SAAIK,EAAWP,GAASM,CAAI,KAC1BF,EAAOJ,GAASM,CAAI,GAEfN,EAAQ;AACjB;AACA,SAASE,IAAgB;AACvB,SAAO;AAAA,IACL,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM,CAAA;AAAA,EACV;AACA;AACA,SAASC,EAAUH,GAASH,GAAGC,GAAGU,GAAGT,GAAG;AAEtC,SAAOC,EAAQ,KAAK,CAAC,MAAMH,KAAKG,EAAQ,KAAK,CAAC,MAAMF,KAAKE,EAAQ,KAAK,CAAC,MAAMQ,KAAKR,EAAQ,KAAK,CAAC,MAAMD;AACxG;AACA,SAASQ,EAAWP,GAASS,GAAS;AACpC,SAAOT,EAAQ,KAAK,WAAWS,EAAQ,UAAUT,EAAQ,KAAK,KAAK,CAACU,GAAKC,MAAUD,MAAQD,EAAQE,CAAK,CAAC;AAC3G;AACA,SAASP,EAAOJ,GAASM,GAAM;AAE7B,MADAN,EAAQ,OAAOM,GACXA,EAAK,MAAM,CAAAI,MAAOA,KAAO,IAAI,GAAG;AAClC,IAAAV,EAAQ,WAAW;AACnB;AAAA,EACF;AACA,EAAAA,EAAQ,WAAW,CAAAY,MAAY;AAK7B,QAJIZ,EAAQ,YACVA,EAAQ,QAAO,GACfA,EAAQ,UAAU,OAEhBY,KAAY,MAAM;AACpB,YAAMC,IAAmB,MAAMP,EAAK,MAAM,EAAE,KAAK,IAAI;AACrD,eAASQ,IAAI,GAAGA,IAAIR,EAAK,QAAQQ,KAAK,GAAG;AACvC,cAAMJ,IAAMJ,EAAKQ,CAAC;AAClB,YAAIJ,KAAO;AAGX,kBAAQ,OAAOA,GAAG;AAAA,YAChB,KAAK,YACH;AACE,oBAAMK,IAAaL,EAAIE,CAAQ;AAC/B,cAAI,OAAOG,KAAe,eACxBF,EAAiBC,CAAC,IAAIC;AAExB;AAAA,YACF;AAAA,YACF,KAAK,UACH;AACE,cAAAL,EAAI,UAAUE;AACd;AAAA,YACF;AAAA,UAEZ;AAAA,MACM;AACA,MAAAZ,EAAQ,UAAU,MAAM;AACtB,iBAASc,IAAI,GAAGA,IAAIR,EAAK,QAAQQ,KAAK,GAAG;AACvC,gBAAMJ,IAAMJ,EAAKQ,CAAC;AAClB,cAAIJ,KAAO;AAGX,oBAAQ,OAAOA,GAAG;AAAA,cAChB,KAAK,YACH;AACE,sBAAMM,IAAkBH,EAAiBC,CAAC;AAC1C,gBAAI,OAAOE,KAAoB,aAC7BA,EAAe,IAEfN,EAAI,IAAI;AAEV;AAAA,cACF;AAAA,cACF,KAAK,UACH;AACE,gBAAAA,EAAI,UAAU;AACd;AAAA,cACF;AAAA,YAEd;AAAA,QACQ;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
|