@rpcbase/ui 0.244.0 → 0.245.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index10.js +2 -2
- package/dist/index105.js +36 -36
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index117.js +6 -6
- package/dist/index12.js +3 -3
- 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/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +14 -5
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +38 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +13 -385
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +23 -261
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +109 -58
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +13 -47
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -169
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -110
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -25
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +12 -8
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +19 -4
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +11 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +176 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +268 -476
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -189
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +28 -14
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +63 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -6
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +15 -40
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +30 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +69 -58
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +5 -8
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +61 -80
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -20
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +383 -14
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +260 -4
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +59 -4
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +46 -6
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +169 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +109 -6
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +24 -16
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +8 -5
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -12
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -9
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +487 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +189 -13
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +107 -5
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +262 -6
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -5
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +39 -53
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +4 -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/index21.js +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/index22.js +2 -2
- 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/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -66
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +16 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +7 -3
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +9 -49
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +11 -4
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +20 -28
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +8 -16
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +9 -21
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +4 -53
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -20
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -41
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -39
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +19 -46
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +17 -20
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +12 -19
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -1
- package/dist/index250.js +28 -19
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +10 -68
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +5 -3
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +66 -11
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -30
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -13
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +8 -18
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +5 -36
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +12 -68
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +3 -239
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +3 -252
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +96 -65
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -98
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +26 -173
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +47 -79
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +6 -13
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +5 -3
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +60 -28
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +66 -16
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +131 -35
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +8 -34
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -69
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +4 -18
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +17 -107
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -26
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -28
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +8 -4
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +142 -124
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +79 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +61 -78
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +15 -273
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +20 -12
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +7 -28
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +12 -16
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +3 -10
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +49 -24
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -15
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +21 -125
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +3 -56
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +53 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +19 -64
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +42 -14
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +40 -14
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +46 -8
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +21 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +70 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +17 -3
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +3 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +13 -7
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +242 -3
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +15 -130
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +34 -277
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +229 -389
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +253 -5
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +64 -48
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +83 -11
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -27
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -11
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +16 -4
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +35 -15
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +21 -239
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +18 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -5
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +28 -63
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -9
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +75 -151
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +270 -30
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -11
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -50
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +24 -8
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +4 -23
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +16 -11
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +124 -42
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -97
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +61 -82
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +12 -104
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +7 -52
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -11
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +3 -4
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +10 -37
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -8
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +6 -3
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +385 -121
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -18
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +51 -14
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +11 -3
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +25 -34
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -20
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +154 -9
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +32 -8
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -24
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +46 -25
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +38 -8
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +9 -16
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +11 -4
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +43 -17
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +97 -12
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +86 -8
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +105 -11
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +51 -7
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +10 -12
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +4 -3
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +37 -3
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +74 -35
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +9 -4
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +136 -15
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +17 -11
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +15 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +4 -5
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +37 -3
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +19 -7
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +9 -51
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +8 -16
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +25 -8
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +20 -74
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +28 -5
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +15 -19
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +5 -45
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +16 -16
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +13 -5
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +7 -199
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +27 -74
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +131 -117
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +10 -15
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +44 -59
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +33 -18
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +3 -66
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +21 -11
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +74 -20
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +12 -145
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +3 -79
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +73 -61
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +200 -4
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +71 -20
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +35 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -5
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +26 -36
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +16 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +123 -15
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +4 -9
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +11 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +5 -4
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +3 -546
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +20 -46
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +45 -18
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +18 -6
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -8
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +21 -26
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +4 -6
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +20 -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 +16 -3
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +9 -3
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +6 -7
- 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/index4.js +2 -2
- package/dist/index40.js +56 -20
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +44 -135
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +17 -8
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +6 -27
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +7 -3
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +6 -21
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -75
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +12 -12
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +8 -3
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +12 -71
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -36
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +51 -59
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +14 -15
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +491 -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 +3 -68
- 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 -8
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -2
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +21 -50
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +107 -43
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +32 -55
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +6 -6
- package/dist/index422.js.map +1 -1
- package/dist/index424.js +38 -49
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +50 -50
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +8 -3
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +2 -15
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +50 -487
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +55 -32
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +127 -18
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +16 -2
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +29 -2
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +13 -2
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +7 -2
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +2 -16
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +2 -29
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +2 -13
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +2 -7
- package/dist/index437.js.map +1 -1
- package/dist/index44.js +39 -122
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +85 -42
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +123 -87
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +5 -126
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +332 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +246 -321
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +23 -254
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +129 -25
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +24 -129
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +19 -22
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +134 -19
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +30 -133
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +24 -30
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +38 -26
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +19 -39
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +133 -18
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +49 -134
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +25 -48
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +57 -28
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +56 -57
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +22 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +232 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +10 -22
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +17 -232
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index321.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index321.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index321.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB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WD,EAAoBC,CAAO,IAAI;AAAA,IAClE,KAAKA;AAAA,IACL,OAAOA;AAAA,IACP,QAAQA;AAAA,IACR,MAAMA;AAAA,EACV;AACA;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index322.js
CHANGED
|
@@ -1,101 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { formatRFC3966 as I } from "./index329.js";
|
|
6
|
-
var m = {
|
|
7
|
-
formatExtension: function(t, r, e) {
|
|
8
|
-
return "".concat(t).concat(e.ext()).concat(r);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
function O(n, t, r, e) {
|
|
12
|
-
r ? r = A({}, m, r) : r = m;
|
|
13
|
-
var a = new s(e);
|
|
14
|
-
if (n.country && n.country !== "001") {
|
|
15
|
-
if (!a.hasCountry(n.country))
|
|
16
|
-
throw new Error("Unknown country: ".concat(n.country));
|
|
17
|
-
a.selectNumberingPlan(n.country);
|
|
18
|
-
} else if (n.countryCallingCode)
|
|
19
|
-
a.selectNumberingPlan(n.countryCallingCode);
|
|
20
|
-
else return n.phone || "";
|
|
21
|
-
var o = a.countryCallingCode(), c = r.v2 ? n.nationalNumber : n.phone, i;
|
|
22
|
-
switch (t) {
|
|
23
|
-
case "NATIONAL":
|
|
24
|
-
return c ? (i = f(c, n.carrierCode, "NATIONAL", a, r), u(i, n.ext, a, r.formatExtension)) : "";
|
|
25
|
-
case "INTERNATIONAL":
|
|
26
|
-
return c ? (i = f(c, null, "INTERNATIONAL", a, r), i = "+".concat(o, " ").concat(i), u(i, n.ext, a, r.formatExtension)) : "+".concat(o);
|
|
27
|
-
case "E.164":
|
|
28
|
-
return "+".concat(o).concat(c);
|
|
29
|
-
case "RFC3966":
|
|
30
|
-
return I({
|
|
31
|
-
number: "+".concat(o).concat(c),
|
|
32
|
-
ext: n.ext
|
|
33
|
-
});
|
|
34
|
-
// For reference, here's Google's IDD formatter:
|
|
35
|
-
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
36
|
-
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
37
|
-
// Who would even need to format phone numbers in IDD format anyway?
|
|
38
|
-
case "IDD":
|
|
39
|
-
if (!r.fromCountry)
|
|
40
|
-
return;
|
|
41
|
-
var l = v(c, n.carrierCode, o, r.fromCountry, a);
|
|
42
|
-
return l ? u(l, n.ext, a, r.formatExtension) : void 0;
|
|
43
|
-
default:
|
|
44
|
-
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function f(n, t, r, e, a) {
|
|
48
|
-
var o = x(e.formats(), n);
|
|
49
|
-
return o ? g(n, o, {
|
|
50
|
-
useInternationalFormat: r === "INTERNATIONAL",
|
|
51
|
-
withNationalPrefix: !(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && a && a.nationalPrefix === !1),
|
|
52
|
-
carrierCode: t,
|
|
53
|
-
metadata: e
|
|
54
|
-
}) : n;
|
|
55
|
-
}
|
|
56
|
-
function x(n, t) {
|
|
57
|
-
return E(n, function(r) {
|
|
58
|
-
if (r.leadingDigitsPatterns().length > 0) {
|
|
59
|
-
var e = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
|
|
60
|
-
if (t.search(e) !== 0)
|
|
61
|
-
return !1;
|
|
62
|
-
}
|
|
63
|
-
return N(t, r.pattern());
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function u(n, t, r, e) {
|
|
67
|
-
return t ? e(n, t, r) : n;
|
|
68
|
-
}
|
|
69
|
-
function v(n, t, r, e, a) {
|
|
70
|
-
var o = h(e, a.metadata);
|
|
71
|
-
if (o === r) {
|
|
72
|
-
var c = f(n, t, "NATIONAL", a);
|
|
73
|
-
return r === "1" ? r + " " + c : c;
|
|
74
|
-
}
|
|
75
|
-
var i = d(e, void 0, a.metadata);
|
|
76
|
-
if (i)
|
|
77
|
-
return "".concat(i, " ").concat(r, " ").concat(f(n, null, "INTERNATIONAL", a));
|
|
78
|
-
}
|
|
79
|
-
function A() {
|
|
80
|
-
for (var n = 1, t = arguments.length, r = new Array(t), e = 0; e < t; e++)
|
|
81
|
-
r[e] = arguments[e];
|
|
82
|
-
for (; n < r.length; ) {
|
|
83
|
-
if (r[n])
|
|
84
|
-
for (var a in r[n])
|
|
85
|
-
r[0][a] = r[n][a];
|
|
86
|
-
n++;
|
|
87
|
-
}
|
|
88
|
-
return r[0];
|
|
89
|
-
}
|
|
90
|
-
function E(n, t) {
|
|
91
|
-
for (var r = 0; r < n.length; ) {
|
|
92
|
-
if (t(n[r]))
|
|
93
|
-
return n[r];
|
|
94
|
-
r++;
|
|
95
|
-
}
|
|
1
|
+
function t(e, n, r, d) {
|
|
2
|
+
return e.addEventListener(n, r, d), () => {
|
|
3
|
+
e.removeEventListener(n, r, d);
|
|
4
|
+
};
|
|
96
5
|
}
|
|
97
6
|
export {
|
|
98
|
-
|
|
99
|
-
O as default
|
|
7
|
+
t as addEventListener
|
|
100
8
|
};
|
|
101
9
|
//# sourceMappingURL=index322.js.map
|
package/dist/index322.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index322.js","sources":["../../../node_modules/libphonenumber-js/es6/format.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js';\nimport Metadata, { getCountryCallingCode } from './metadata.js';\nimport getIddPrefix from './helpers/getIddPrefix.js';\nimport { formatRFC3966 } from './helpers/RFC3966.js';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n }\n};\n\n/**\r\n * Formats a phone number.\r\n *\r\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\r\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\r\n *\r\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\r\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\r\n *\r\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\r\n * @param {string} format\r\n * @param {object} [options]\r\n * @param {object} metadataJson\r\n * @return {string}\r\n */\nexport default function formatNumber(input, format, options, metadataJson) {\n // Apply default options.\n if (options) {\n // Using ES6 \"rest spread\" syntax here didn't work with `babel`/`istanbul`\n // for some weird reason: this line of code would cause the code coverage\n // to show as not 100%. That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // options = { ...DEFAULT_OPTIONS, ...options }\n //\n options = merge({}, DEFAULT_OPTIONS, options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n var metadata = new Metadata(metadataJson);\n\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance.\n // Also, according to the `PhoneNumber` class source code, `country` can't be \"001\".\n // It means that normally `input.country` or `input.countryCallingCode` is supposed\n // to be present because either of the two is always required to exist in a `PhoneNumber` instance.\n // This means that realistically, it's gonna step into either the first `if`\n // or the following `else if`, and normally it won't even reach the legacy-compatibility\n // `else return input.phone || ''` part.\n // So normally, it won't ever return an empty string here.\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n metadata.selectNumberingPlan(input.country);\n } else if (input.countryCallingCode) {\n metadata.selectNumberingPlan(input.countryCallingCode);\n } else return input.phone || '';\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone;\n\n // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n var number;\n switch (format) {\n case 'NATIONAL':\n // Normally, the `input` object is supposed to be a `PhoneNumber` class instance,\n // and a `PhoneNumber` class instance is always required to have a `nationalNumber`.\n // This means that the `if (!nationalNumber)` below is just for legacy-compatibility\n // and it normally can't really happen, so normally it won't ever return an empty string here.\n if (!nationalNumber) {\n return '';\n }\n number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n\n // For reference, here's Google's IDD formatter:\n // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n // Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n // Who would even need to format phone numbers in IDD format anyway?\n case 'IDD':\n // If the required `fromCountry` parameter is not passed, it will return `undefined`.\n if (!options.fromCountry) {\n return;\n // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);\n // If the country of the phone number doesn't support IDD calling, it will return `undefined`.\n if (!formattedNumber) {\n return;\n }\n return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n}\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n if (!format) {\n return number;\n }\n return formatNationalNumberUsingFormat(number, format, {\n useInternationalFormat: formatAs === 'INTERNATIONAL',\n withNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options && options.nationalPrefix === false ? false : true,\n carrierCode: carrierCode,\n metadata: metadata\n });\n}\nexport function chooseFormatForNumber(availableFormats, nationalNumber) {\n // Using a `for ... of` loop here didn't work with `babel`/`istanbul`:\n // for some weird reason, it showed code coverage less than 100%.\n // That's because `babel`/`istanbul`, for some weird reason,\n // apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n //\n // for (const format of availableFormats) { ... }\n //\n return pickFirstMatchingElement(availableFormats, function (format) {\n // Validate leading digits.\n // The test case for \"else path\" could be found by searching for\n // \"format.leadingDigitsPatterns().length === 0\".\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];\n // If leading digits don't match then move on to the next phone number format\n if (nationalNumber.search(lastLeadingDigitsPattern) !== 0) {\n return false;\n }\n }\n // Check that the national number matches the phone number format regular expression\n return matchesEntirely(nationalNumber, format.pattern());\n });\n}\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\nfunction formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry, metadata) {\n var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata);\n // When calling within the same country calling code.\n if (fromCountryCallingCode === countryCallingCode) {\n var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata);\n // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n if (countryCallingCode === '1') {\n return countryCallingCode + ' ' + formattedNumber;\n }\n // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n return formattedNumber;\n }\n var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);\n if (iddPrefix) {\n return \"\".concat(iddPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));\n }\n}\nfunction merge() {\n var i = 1;\n for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {\n objects[_key] = arguments[_key];\n }\n while (i < objects.length) {\n if (objects[i]) {\n for (var key in objects[i]) {\n objects[0][key] = objects[i][key];\n }\n }\n i++;\n }\n return objects[0];\n}\nfunction pickFirstMatchingElement(elements, testFunction) {\n var i = 0;\n while (i < elements.length) {\n if (testFunction(elements[i])) {\n return elements[i];\n }\n i++;\n }\n}\n//# sourceMappingURL=format.js.map"],"names":["DEFAULT_OPTIONS","formattedNumber","extension","metadata","formatNumber","input","format","options","metadataJson","merge","Metadata","countryCallingCode","nationalNumber","number","formatNationalNumber","addExtension","formatRFC3966","formatIDD","carrierCode","formatAs","chooseFormatForNumber","formatNationalNumberUsingFormat","availableFormats","pickFirstMatchingElement","lastLeadingDigitsPattern","matchesEntirely","ext","formatExtension","fromCountry","fromCountryCallingCode","getCountryCallingCode","iddPrefix","getIddPrefix","i","_len","objects","_key","key","elements","testFunction"],"mappings":";;;;;AAUA,IAAIA,IAAkB;AAAA,EACpB,iBAAiB,SAAyBC,GAAiBC,GAAWC,GAAU;AAC9E,WAAO,GAAG,OAAOF,CAAe,EAAE,OAAOE,EAAS,IAAG,CAAE,EAAE,OAAOD,CAAS;AAAA,EAC3E;AACF;AAiBe,SAASE,EAAaC,GAAOC,GAAQC,GAASC,GAAc;AAEzE,EAAID,IAQFA,IAAUE,EAAM,IAAIT,GAAiBO,CAAO,IAE5CA,IAAUP;AAEZ,MAAIG,IAAW,IAAIO,EAASF,CAAY;AAUxC,MAAIH,EAAM,WAAWA,EAAM,YAAY,OAAO;AAE5C,QAAI,CAACF,EAAS,WAAWE,EAAM,OAAO;AACpC,YAAM,IAAI,MAAM,oBAAoB,OAAOA,EAAM,OAAO,CAAC;AAE3D,IAAAF,EAAS,oBAAoBE,EAAM,OAAO;AAAA,EAC5C,WAAWA,EAAM;AACf,IAAAF,EAAS,oBAAoBE,EAAM,kBAAkB;AAAA,MAChD,QAAOA,EAAM,SAAS;AAC7B,MAAIM,IAAqBR,EAAS,mBAAkB,GAChDS,IAAiBL,EAAQ,KAAKF,EAAM,iBAAiBA,EAAM,OAI3DQ;AACJ,UAAQP,GAAM;AAAA,IACZ,KAAK;AAKH,aAAKM,KAGLC,IAASC,EAAqBF,GAAgBP,EAAM,aAAa,YAAYF,GAAUI,CAAO,GACvFQ,EAAaF,GAAQR,EAAM,KAAKF,GAAUI,EAAQ,eAAe,KAH/D;AAAA,IAIX,KAAK;AAGH,aAAKK,KAGLC,IAASC,EAAqBF,GAAgB,MAAM,iBAAiBT,GAAUI,CAAO,GACtFM,IAAS,IAAI,OAAOF,GAAoB,GAAG,EAAE,OAAOE,CAAM,GACnDE,EAAaF,GAAQR,EAAM,KA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/addEventListener.mjs"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"names":["addEventListener","target","type","listener","options"],"mappings":"AAIO,SAASA,EAAiBC,GAAQC,GAAMC,GAAUC,GAAS;AAChE,SAAAH,EAAO,iBAAiBC,GAAMC,GAAUC,CAAO,GACxC,MAAM;AACX,IAAAH,EAAO,oBAAoBC,GAAMC,GAAUC,CAAO;AAAA,EACpD;AACF;","x_google_ignoreList":[0]}
|
package/dist/index323.js
CHANGED
|
@@ -1,90 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
function f(r) {
|
|
32
|
-
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
33
|
-
return f = function(e) {
|
|
34
|
-
if (e === null || !v(e)) return e;
|
|
35
|
-
if (typeof e != "function") throw new TypeError("Super expression must either be null or a function");
|
|
36
|
-
if (t !== void 0) {
|
|
37
|
-
if (t.has(e)) return t.get(e);
|
|
38
|
-
t.set(e, o);
|
|
39
|
-
}
|
|
40
|
-
function o() {
|
|
41
|
-
return h(e, arguments, c(this).constructor);
|
|
42
|
-
}
|
|
43
|
-
return o.prototype = Object.create(e.prototype, { constructor: { value: o, enumerable: !1, writable: !0, configurable: !0 } }), u(o, e);
|
|
44
|
-
}, f(r);
|
|
45
|
-
}
|
|
46
|
-
function h(r, t, n) {
|
|
47
|
-
if (p()) return Reflect.construct.apply(null, arguments);
|
|
48
|
-
var e = [null];
|
|
49
|
-
e.push.apply(e, t);
|
|
50
|
-
var o = new (r.bind.apply(r, e))();
|
|
51
|
-
return n && u(o, n.prototype), o;
|
|
52
|
-
}
|
|
53
|
-
function p() {
|
|
54
|
-
try {
|
|
55
|
-
var r = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
56
|
-
}));
|
|
57
|
-
} catch {
|
|
1
|
+
import { useRefWithInit as u } from "./index284.js";
|
|
2
|
+
import { useOnMount as h } from "./index384.js";
|
|
3
|
+
const s = null;
|
|
4
|
+
let l = globalThis.requestAnimationFrame;
|
|
5
|
+
class o {
|
|
6
|
+
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
7
|
+
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
8
|
+
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
9
|
+
* be much more efficient if there is a call pattern that alterns as
|
|
10
|
+
* "request-cancel-request-cancel-…".
|
|
11
|
+
* But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
|
|
12
|
+
* frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
|
|
13
|
+
callbacks = [];
|
|
14
|
+
callbacksCount = 0;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
startId = 1;
|
|
17
|
+
isScheduled = !1;
|
|
18
|
+
tick = (t) => {
|
|
19
|
+
this.isScheduled = !1;
|
|
20
|
+
const e = this.callbacks, r = this.callbacksCount;
|
|
21
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, r > 0)
|
|
22
|
+
for (let i = 0; i < e.length; i += 1)
|
|
23
|
+
e[i]?.(t);
|
|
24
|
+
};
|
|
25
|
+
request(t) {
|
|
26
|
+
const e = this.nextId;
|
|
27
|
+
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
28
|
+
const r = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
|
|
29
|
+
return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
|
|
58
30
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
function v(r) {
|
|
64
|
-
try {
|
|
65
|
-
return Function.toString.call(r).indexOf("[native code]") !== -1;
|
|
66
|
-
} catch {
|
|
67
|
-
return typeof r == "function";
|
|
31
|
+
cancel(t) {
|
|
32
|
+
const e = t - this.startId;
|
|
33
|
+
e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
|
|
68
34
|
}
|
|
69
35
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
36
|
+
const c = new o();
|
|
37
|
+
class a {
|
|
38
|
+
static create() {
|
|
39
|
+
return new a();
|
|
40
|
+
}
|
|
41
|
+
static request(t) {
|
|
42
|
+
return c.request(t);
|
|
43
|
+
}
|
|
44
|
+
static cancel(t) {
|
|
45
|
+
return c.cancel(t);
|
|
46
|
+
}
|
|
47
|
+
currentId = s;
|
|
48
|
+
/**
|
|
49
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
50
|
+
*/
|
|
51
|
+
request(t) {
|
|
52
|
+
this.cancel(), this.currentId = c.request(() => {
|
|
53
|
+
this.currentId = s, t();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
cancel = () => {
|
|
57
|
+
this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
|
|
58
|
+
};
|
|
59
|
+
disposeEffect = () => this.cancel;
|
|
74
60
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}, c(r);
|
|
61
|
+
function k() {
|
|
62
|
+
const n = u(a.create).current;
|
|
63
|
+
return h(n.disposeEffect), n;
|
|
79
64
|
}
|
|
80
|
-
var O = /* @__PURE__ */ (function(r) {
|
|
81
|
-
function t(n) {
|
|
82
|
-
var e;
|
|
83
|
-
return s(this, t), e = l(this, t, [n]), Object.setPrototypeOf(e, t.prototype), e.name = e.constructor.name, e;
|
|
84
|
-
}
|
|
85
|
-
return _(t, r), a(t);
|
|
86
|
-
})(/* @__PURE__ */ f(Error));
|
|
87
65
|
export {
|
|
88
|
-
|
|
66
|
+
a as AnimationFrame,
|
|
67
|
+
k as useAnimationFrame
|
|
89
68
|
};
|
|
90
69
|
//# sourceMappingURL=index323.js.map
|
package/dist/index323.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index323.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index323.js","sources":["../../../node_modules/@base-ui/utils/useAnimationFrame.mjs"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nimport { useOnMount } from \"./useOnMount.mjs\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nconst scheduler = new Scheduler();\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"names":["EMPTY","LAST_RAF","Scheduler","timestamp","currentCallbacks","currentCallbacksCount","fn","id","didRAFChange","index","scheduler","AnimationFrame","useAnimationFrame","timeout","useRefWithInit","useOnMount"],"mappings":";;AAQA,MAAMA,IAAQ;AACd,IAAIC,IAAW,WAAW;AAC1B,MAAMC,EAAU;AAAA;AAAA;AAA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,EAAU,QAAQ,MAAM;AACvC,WAAK,YAAYV,GACjBM,EAAE;AAAA,IACJ,CAAC;AAAA,EACH;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAcN,MACrBU,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAYV;AAAA,EAErB;AAAA,EACA,gBAAgB,MACP,KAAK;AAEhB;AAKO,SAASY,IAAoB;AAClC,QAAMC,IAAUC,EAAeH,EAAe,MAAM,EAAE;AACtD,SAAAI,EAAWF,EAAQ,aAAa,GACzBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index324.js
CHANGED
|
@@ -1,109 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
function y(r, t) {
|
|
11
|
-
var e = Object.keys(r);
|
|
12
|
-
if (Object.getOwnPropertySymbols) {
|
|
13
|
-
var n = Object.getOwnPropertySymbols(r);
|
|
14
|
-
t && (n = n.filter(function(o) {
|
|
15
|
-
return Object.getOwnPropertyDescriptor(r, o).enumerable;
|
|
16
|
-
})), e.push.apply(e, n);
|
|
17
|
-
}
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
function m(r) {
|
|
21
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
22
|
-
var e = arguments[t] != null ? arguments[t] : {};
|
|
23
|
-
t % 2 ? y(Object(e), !0).forEach(function(n) {
|
|
24
|
-
g(r, n, e[n]);
|
|
25
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : y(Object(e)).forEach(function(n) {
|
|
26
|
-
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(e, n));
|
|
1
|
+
import { j as s } from "./index28.js";
|
|
2
|
+
const e = "base-ui-disable-scrollbar", r = {
|
|
3
|
+
className: e,
|
|
4
|
+
getElement(l) {
|
|
5
|
+
return /* @__PURE__ */ s.jsx("style", {
|
|
6
|
+
nonce: l,
|
|
7
|
+
href: e,
|
|
8
|
+
precedence: "base-ui:low",
|
|
9
|
+
children: `.${e}{scrollbar-width:none}.${e}::-webkit-scrollbar{display:none}`
|
|
27
10
|
});
|
|
28
11
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function g(r, t, e) {
|
|
32
|
-
return (t = v(t)) in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
33
|
-
}
|
|
34
|
-
function v(r) {
|
|
35
|
-
var t = d(r, "string");
|
|
36
|
-
return f(t) == "symbol" ? t : t + "";
|
|
37
|
-
}
|
|
38
|
-
function d(r, t) {
|
|
39
|
-
if (f(r) != "object" || !r) return r;
|
|
40
|
-
var e = r[Symbol.toPrimitive];
|
|
41
|
-
if (e !== void 0) {
|
|
42
|
-
var n = e.call(r, t);
|
|
43
|
-
if (f(n) != "object") return n;
|
|
44
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
-
}
|
|
46
|
-
return (t === "string" ? String : Number)(r);
|
|
47
|
-
}
|
|
48
|
-
function O(r, t) {
|
|
49
|
-
return _(r) || w(r, t) || h(r, t) || j();
|
|
50
|
-
}
|
|
51
|
-
function j() {
|
|
52
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
53
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
54
|
-
}
|
|
55
|
-
function h(r, t) {
|
|
56
|
-
if (r) {
|
|
57
|
-
if (typeof r == "string") return s(r, t);
|
|
58
|
-
var e = {}.toString.call(r).slice(8, -1);
|
|
59
|
-
return e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set" ? Array.from(r) : e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e) ? s(r, t) : void 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function s(r, t) {
|
|
63
|
-
(t == null || t > r.length) && (t = r.length);
|
|
64
|
-
for (var e = 0, n = Array(t); e < t; e++) n[e] = r[e];
|
|
65
|
-
return n;
|
|
66
|
-
}
|
|
67
|
-
function w(r, t) {
|
|
68
|
-
var e = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
69
|
-
if (e != null) {
|
|
70
|
-
var n, o, u, l, c = [], i = !0, a = !1;
|
|
71
|
-
try {
|
|
72
|
-
if (u = (e = e.call(r)).next, t !== 0) for (; !(i = (n = u.call(e)).done) && (c.push(n.value), c.length !== t); i = !0) ;
|
|
73
|
-
} catch (p) {
|
|
74
|
-
a = !0, o = p;
|
|
75
|
-
} finally {
|
|
76
|
-
try {
|
|
77
|
-
if (!i && e.return != null && (l = e.return(), Object(l) !== l)) return;
|
|
78
|
-
} finally {
|
|
79
|
-
if (a) throw o;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return c;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function _(r) {
|
|
86
|
-
if (Array.isArray(r)) return r;
|
|
87
|
-
}
|
|
88
|
-
function S(r) {
|
|
89
|
-
var t = Array.prototype.slice.call(r), e = O(t, 4), n = e[0], o = e[1], u = e[2], l = e[3], c, i, a;
|
|
90
|
-
if (typeof n == "string")
|
|
91
|
-
c = n;
|
|
92
|
-
else throw new TypeError("A text for parsing must be a string.");
|
|
93
|
-
if (!o || typeof o == "string")
|
|
94
|
-
l ? (i = u, a = l) : (i = void 0, a = u), o && (i = m({
|
|
95
|
-
defaultCountry: o
|
|
96
|
-
}, i));
|
|
97
|
-
else if (b(o))
|
|
98
|
-
u ? (i = o, a = u) : a = o;
|
|
99
|
-
else throw new Error("Invalid second argument: ".concat(o));
|
|
100
|
-
return {
|
|
101
|
-
text: c,
|
|
102
|
-
options: i,
|
|
103
|
-
metadata: a
|
|
104
|
-
};
|
|
105
|
-
}
|
|
12
|
+
};
|
|
13
|
+
process.env.NODE_ENV !== "production" && (r.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
106
14
|
export {
|
|
107
|
-
|
|
15
|
+
r as styleDisableScrollbar
|
|
108
16
|
};
|
|
109
17
|
//# sourceMappingURL=index324.js.map
|
package/dist/index324.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index324.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index324.js","sources":["../../../node_modules/@base-ui/react/utils/styles.mjs"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst DISABLE_SCROLLBAR_CLASS_NAME = 'base-ui-disable-scrollbar';\nexport const styleDisableScrollbar = {\n className: DISABLE_SCROLLBAR_CLASS_NAME,\n getElement(nonce) {\n return /*#__PURE__*/_jsx(\"style\", {\n nonce: nonce,\n href: DISABLE_SCROLLBAR_CLASS_NAME,\n precedence: \"base-ui:low\",\n children: `.${DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.${DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`\n });\n }\n};\nif (process.env.NODE_ENV !== \"production\") styleDisableScrollbar.getElement.displayName = \"styleDisableScrollbar.getElement\";"],"names":["DISABLE_SCROLLBAR_CLASS_NAME","styleDisableScrollbar","nonce","_jsx"],"mappings":";AACA,MAAMA,IAA+B,6BACxBC,IAAwB;AAAA,EACnC,WAAWD;AAAA,EACX,WAAWE,GAAO;AAChB,WAAoBC,gBAAAA,EAAAA,IAAK,SAAS;AAAA,MAChC,OAAOD;AAAA,MACP,MAAMF;AAAA,MACN,YAAY;AAAA,MACZ,UAAU,IAAIA,CAA4B,0BAA0BA,CAA4B;AAAA,IACtG,CAAK;AAAA,EACH;AACF;AACI,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,WAAW,cAAc;","x_google_ignoreList":[0]}
|