@rpcbase/ui 0.225.0 → 0.227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PhoneNumberInput/index.d.ts +1 -1
- package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/normalization.d.ts +0 -28
- package/dist/components/PhoneNumberInput/normalization.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/types.d.ts +4 -4
- package/dist/components/PhoneNumberInput/types.d.ts.map +1 -1
- package/dist/index106.js +36 -36
- package/dist/index118.js +6 -6
- package/dist/index121.js +10 -10
- package/dist/index123.js +2 -2
- package/dist/index124.js +3 -3
- package/dist/index125.js +1 -1
- package/dist/index127.js +2 -2
- package/dist/index129.js +2 -2
- package/dist/index150.js +11 -5
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +63 -63
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +38 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +13 -363
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +23 -261
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +108 -58
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +13 -47
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -169
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +4 -110
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -25
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +12 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +19 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +13 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +261 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -466
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +27 -185
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +5 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +78 -9
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +63 -39
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +8 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +16 -12
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +89 -65
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +66 -38
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +45 -13
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +5 -23
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +66 -108
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +363 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +262 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +383 -401
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +61 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +46 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +168 -18
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +110 -13
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +24 -261
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +8 -5
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +5 -28
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +5 -126
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +465 -77
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +181 -62
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +107 -8
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +262 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -91
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +42 -65
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -45
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +20 -59
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +66 -8
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +6 -66
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +11 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +48 -14
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +29 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +16 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +21 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +51 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +25 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +41 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +39 -12
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +45 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -13
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +70 -13
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +11 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +27 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +13 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -53
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +36 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +262 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +278 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +68 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +99 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +83 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +29 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +35 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +16 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +28 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +78 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +269 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -29
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +16 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +124 -24
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +40 -16
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +65 -7
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +13 -10
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +7 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +5 -21
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +3 -10
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +10 -9
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +133 -4
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +399 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -16
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -9
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +11 -18
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +58 -15
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -12
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +65 -12
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +17 -152
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +15 -29
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +5 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +4 -47
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -11
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +4 -44
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +6 -95
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +16 -86
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +4 -105
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -52
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +12 -11
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -37
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +13 -8
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +13 -116
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +4 -17
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -15
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +6 -3
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -36
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +53 -19
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +4 -8
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -19
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +8 -28
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +4 -16
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +4 -66
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -8
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +10 -11
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +9 -8
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +9 -5
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +10 -13
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +10 -3
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +9 -3
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +6 -99
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +5 -17
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +4 -5
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -29
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -51
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +5 -133
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +15 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +8 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +11 -4
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -11
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +21 -21
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +10 -122
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +9 -27
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -32
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +4 -73
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -262
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +14 -26
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +9 -6
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +18 -142
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +15 -61
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +10 -47
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +28 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +13 -20
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +25 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +5 -50
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +8 -16
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +11 -21
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +7 -50
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +13 -25
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +3 -41
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +3 -39
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +18 -45
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +5 -20
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +49 -68
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +119 -14
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +32 -11
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +73 -13
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +142 -18
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +61 -36
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +49 -278
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +15 -69
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -82
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -4
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +11 -29
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +21 -16
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +14 -35
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +154 -16
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +30 -3
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +9 -26
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +49 -4
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +10 -77
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +43 -268
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +95 -11
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +87 -11
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +104 -24
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +52 -16
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +10 -124
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +37 -5
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +7 -39
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +108 -57
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +18 -14
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +15 -7
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +3 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +36 -3
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +20 -10
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +9 -7
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +7 -398
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +18 -51
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +28 -11
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +16 -11
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +4 -5
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +11 -17
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +16 -12
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +5 -20
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +20 -8
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +44 -25
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +18 -27
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +5 -138
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +199 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +75 -224
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +4 -3
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +18 -20
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +12 -77
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +9 -12
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +26 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +26 -77
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +134 -197
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +11 -70
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +227 -9
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +3 -15
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +18 -15
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +78 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +12 -12
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +3 -5
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +70 -19
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +9 -45
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +16 -18
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +21 -5
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +3 -5
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +3 -5
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -4
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +4 -15
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +4 -9
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +15 -5
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +8 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +5 -545
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +5 -47
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +543 -15
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +47 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +17 -7
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +5 -6
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +7 -7
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +6 -11
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +7 -8
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +11 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +8 -14
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +12 -491
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +15 -3
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +492 -3
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +7 -4
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +2 -56
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +43 -67
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +56 -31
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +8 -9
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +2 -153
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +54 -107
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +55 -7
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +5 -2
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +54 -42
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +68 -56
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +31 -8
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +9 -2
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +152 -54
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +108 -56
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -16
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +2 -29
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +2 -13
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -7
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +16 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +29 -2
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +13 -2
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +7 -2
- package/dist/index430.js.map +1 -1
- package/dist/index44.js +22 -21
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +22 -196
- package/dist/index45.js.map +1 -1
- package/dist/index47.js +48 -40
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +2 -2
- package/dist/index49.js +34 -34
- package/dist/index50.js +29 -29
- package/dist/index51.js +2 -2
- package/dist/index52.js +12 -12
- package/dist/index53.js +4 -4
- package/dist/index54.js +1 -1
- package/dist/index55.js +22 -22
- package/dist/index56.js +5 -5
- package/dist/index57.js +5 -5
- package/dist/index58.js +8 -8
- package/dist/index59.js +5 -5
- package/dist/index60.js +17 -17
- package/dist/index61.js +5 -5
- package/dist/index62.js +3 -3
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const PhoneNumberInput: React.ForwardRefExoticComponent<Omit<Reac
|
|
|
9
9
|
country?: CountryCode;
|
|
10
10
|
locale?: string | string[];
|
|
11
11
|
onChange?: (details: PhoneNumberChangeDetails) => void;
|
|
12
|
-
onCountryChange?: (country: CountryCode, selection: PhoneNumberSelectedCountry) => void;
|
|
12
|
+
onCountryChange?: (country: CountryCode | null, selection: PhoneNumberSelectedCountry | null) => void;
|
|
13
13
|
className?: string;
|
|
14
14
|
inputClassName?: string;
|
|
15
15
|
selectProps?: Partial<SelectProps<CountryOption, false>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAe,EACb,KAAK,KAAK,IAAI,WAAW,EAG1B,MAAM,cAAc,CAAA;AAIrB,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EAExB,0BAA0B,EAC3B,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,OAAe,EACb,KAAK,KAAK,IAAI,WAAW,EAG1B,MAAM,cAAc,CAAA;AAIrB,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EAExB,0BAA0B,EAC3B,MAAM,SAAS,CAAA;AAsChB,YAAY,EACV,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,SAAS,CAAA;AA+MhB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;0CA20B5B,CAAA"}
|
|
@@ -1,47 +1,19 @@
|
|
|
1
1
|
import type { CountryCode } from "libphonenumber-js";
|
|
2
|
-
import { AsYouType } from "libphonenumber-js";
|
|
3
2
|
export type LengthIssue = "TOO_LONG";
|
|
4
3
|
export declare function sanitizeDigits(value: string): string;
|
|
5
|
-
export declare function injectNationalPrefixDisplay(international: string, dialCode: string, options?: {
|
|
6
|
-
force?: boolean;
|
|
7
|
-
}): string;
|
|
8
|
-
export declare function detectNationalPrefixForDisplay(rawDigits: string, internationalDigits: string, dialCode: string, hasExplicitInternationalPrefix: boolean): boolean;
|
|
9
|
-
export declare function normalizeInputValue(rawValue: string, country: CountryCode | undefined, options?: {
|
|
10
|
-
allowJustPlus?: boolean;
|
|
11
|
-
removeNationalPrefix?: boolean;
|
|
12
|
-
previousValue?: string;
|
|
13
|
-
}): string;
|
|
14
4
|
export declare function formatWithAsYouType(value: string, baseCountry?: CountryCode): {
|
|
15
5
|
international: string;
|
|
16
6
|
national: string;
|
|
17
7
|
formatted: string;
|
|
18
8
|
phoneNumber: null;
|
|
19
9
|
detectedCountry: undefined;
|
|
20
|
-
inferredCountry: undefined;
|
|
21
|
-
hasExplicitInternationalPrefix: boolean;
|
|
22
10
|
} | {
|
|
23
11
|
international: string;
|
|
24
12
|
national: string;
|
|
25
13
|
formatted: string;
|
|
26
14
|
phoneNumber: import("libphonenumber-js").PhoneNumber | undefined;
|
|
27
15
|
detectedCountry: CountryCode | undefined;
|
|
28
|
-
inferredCountry: CountryCode | undefined;
|
|
29
|
-
hasExplicitInternationalPrefix: boolean;
|
|
30
16
|
};
|
|
31
17
|
export declare function stripPrefix(value: string, prefix: string): string;
|
|
32
18
|
export declare function getLengthIssue(value: string, country: CountryCode | undefined): LengthIssue | null;
|
|
33
|
-
type SuggestionState = {
|
|
34
|
-
shouldSuggest: boolean;
|
|
35
|
-
query: string;
|
|
36
|
-
};
|
|
37
|
-
export declare function getSuggestionState(normalized: string, baseCountry: CountryCode | undefined, phoneNumber: ReturnType<AsYouType["getNumber"]>, options?: {
|
|
38
|
-
hasRemovedNationalPrefix?: boolean;
|
|
39
|
-
detectedCountry?: CountryCode;
|
|
40
|
-
hasExplicitInternationalPrefix?: boolean;
|
|
41
|
-
}): SuggestionState;
|
|
42
|
-
export declare function shouldDisplayExplicitCountrySelection(suggestion: SuggestionState, options: {
|
|
43
|
-
detectedCountry?: CountryCode;
|
|
44
|
-
hasExplicitInternationalPrefix?: boolean;
|
|
45
|
-
}): boolean;
|
|
46
|
-
export {};
|
|
47
19
|
//# sourceMappingURL=normalization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/normalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/normalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAA;AAEpC,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,UAE3C;AAeD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW;;;;;;;;;;;;EA2B3E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAExD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAWlG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/suggestions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAG5C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,WAAW,GAAG,IAAI,CAAA;IACpC,oBAAoB,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IACrD,iBAAiB,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,CAAA;IAC7D,qBAAqB,EAAE,MAAM,cAAc,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,iBAAiB,8CAA2D,CAAA;AAYzF,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,4CAqExE,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAoCrE,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/suggestions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAG5C,MAAM,MAAM,sBAAsB,GAAG;IACnC,gBAAgB,EAAE,WAAW,GAAG,IAAI,CAAA;IACpC,oBAAoB,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;IACrD,iBAAiB,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,CAAA;IAC7D,qBAAqB,EAAE,MAAM,cAAc,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,iBAAiB,8CAA2D,CAAA;AAYzF,eAAO,MAAM,gBAAgB,GAAI,OAAO,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,4CAqExE,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAoCrE,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,4CAkBtE,CAAA;AAED,eAAO,MAAM,aAAa,YAAa,CAAA;AAEvC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,2CAcxD"}
|
|
@@ -27,12 +27,12 @@ export type PhoneNumberChangeDetails = {
|
|
|
27
27
|
formattedInternational: string;
|
|
28
28
|
formattedNational: string;
|
|
29
29
|
e164: string | null;
|
|
30
|
-
country: CountryCode;
|
|
31
|
-
countryCallingCode: string;
|
|
30
|
+
country: CountryCode | null;
|
|
31
|
+
countryCallingCode: string | null;
|
|
32
32
|
nationalNumber: string;
|
|
33
33
|
rawInput: string;
|
|
34
34
|
isValid: boolean;
|
|
35
|
-
selectedCountry: PhoneNumberSelectedCountry;
|
|
35
|
+
selectedCountry: PhoneNumberSelectedCountry | null;
|
|
36
36
|
};
|
|
37
37
|
export type PhoneNumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange"> & {
|
|
38
38
|
value?: string;
|
|
@@ -40,7 +40,7 @@ export type PhoneNumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
40
40
|
country?: CountryCode;
|
|
41
41
|
locale?: string | string[];
|
|
42
42
|
onChange?: (details: PhoneNumberChangeDetails) => void;
|
|
43
|
-
onCountryChange?: (country: CountryCode, selection: PhoneNumberSelectedCountry) => void;
|
|
43
|
+
onCountryChange?: (country: CountryCode | null, selection: PhoneNumberSelectedCountry | null) => void;
|
|
44
44
|
className?: string;
|
|
45
45
|
inputClassName?: string;
|
|
46
46
|
selectProps?: Partial<SelectProps<CountryOption, false>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/PhoneNumberInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AAGxD,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAA;IACrD,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAA;CAC7D,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,WAAW,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;I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EAAE,KAAK,CAAC,CAAC,CAAA;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAA;IAC5C,uBAAuB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC/B,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,8BAA8B,CAAA;QACpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B,KAAK,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA"}
|
package/dist/index106.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 "./index254.js";
|
|
2
|
+
import "./index256.js";
|
|
3
|
+
import { endOfBroadcastWeek as f } from "./index261.js";
|
|
4
|
+
import { startOfBroadcastWeek as d } from "./index262.js";
|
|
5
5
|
import { enUS as m } from "./index129.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 "./index263.js";
|
|
7
|
+
import { addMonths as p } from "./index264.js";
|
|
8
|
+
import { addWeeks as O } from "./index265.js";
|
|
9
|
+
import { addYears as c } from "./index266.js";
|
|
10
|
+
import { differenceInCalendarDays as u } from "./index267.js";
|
|
11
|
+
import { differenceInCalendarMonths as l } from "./index268.js";
|
|
12
|
+
import { eachMonthOfInterval as M } from "./index269.js";
|
|
13
|
+
import { eachYearOfInterval as k } from "./index270.js";
|
|
14
|
+
import { endOfISOWeek as W } from "./index271.js";
|
|
15
|
+
import { endOfMonth as D } from "./index272.js";
|
|
16
|
+
import { endOfWeek as Y } from "./index273.js";
|
|
17
|
+
import { endOfYear as S } from "./index274.js";
|
|
18
|
+
import { format as y } from "./index275.js";
|
|
19
|
+
import { getISOWeek as g } from "./index276.js";
|
|
20
|
+
import { getMonth as I } from "./index277.js";
|
|
21
|
+
import { getYear as w } from "./index278.js";
|
|
22
|
+
import { getWeek as B } from "./index279.js";
|
|
23
|
+
import { isAfter as L } from "./index280.js";
|
|
24
|
+
import { isBefore as C } from "./index281.js";
|
|
25
|
+
import { isDate as z } from "./index282.js";
|
|
26
|
+
import { isSameDay as Z } from "./index283.js";
|
|
27
|
+
import { isSameMonth as b } from "./index284.js";
|
|
28
|
+
import { isSameYear as A } from "./index285.js";
|
|
29
|
+
import { max as F } from "./index286.js";
|
|
30
|
+
import { min as N } from "./index287.js";
|
|
31
|
+
import { setMonth as _ } from "./index288.js";
|
|
32
|
+
import { setYear as j } from "./index289.js";
|
|
33
|
+
import { startOfDay as x } from "./index290.js";
|
|
34
|
+
import { startOfISOWeek as H } from "./index291.js";
|
|
35
|
+
import { startOfMonth as K } from "./index292.js";
|
|
36
|
+
import { startOfWeek as T } from "./index293.js";
|
|
37
|
+
import { startOfYear as U } from "./index294.js";
|
|
38
38
|
class n {
|
|
39
39
|
/**
|
|
40
40
|
* Creates an instance of `DateLib`.
|
package/dist/index118.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 "./index254.js";
|
|
2
|
+
import "./index256.js";
|
|
3
|
+
import { differenceInCalendarMonths as h } from "./index268.js";
|
|
4
|
+
import { differenceInCalendarDays as O } from "./index267.js";
|
|
5
|
+
import { getISOWeek as k } from "./index276.js";
|
|
6
|
+
import { getWeek as w } from "./index279.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/index121.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 "./index295.js";
|
|
3
|
+
import { getDays as w } from "./index296.js";
|
|
4
|
+
import { getDisplayMonths as E } from "./index297.js";
|
|
5
|
+
import { getInitialMonth as c } from "./index298.js";
|
|
6
|
+
import { getMonths as b } from "./index299.js";
|
|
7
|
+
import { getNavMonths as q } from "./index300.js";
|
|
8
|
+
import { getNextMonth as F } from "./index301.js";
|
|
9
|
+
import { getPreviousMonth as P } from "./index302.js";
|
|
10
|
+
import { getWeeks as V } from "./index303.js";
|
|
11
|
+
import { useControlledValue as Z } from "./index304.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/index123.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 "./index305.js";
|
|
3
|
+
import { getNextFocus as v } from "./index306.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/index124.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 "./index307.js";
|
|
2
|
+
import { useRange as o } from "./index308.js";
|
|
3
|
+
import { useSingle as s } from "./index309.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/index125.js
CHANGED
package/dist/index127.js
CHANGED
package/dist/index129.js
CHANGED
package/dist/index150.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import i from "./index170.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
const e = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "DialogRootContext");
|
|
5
|
+
function s(n) {
|
|
6
|
+
const o = t.useContext(e);
|
|
7
|
+
if (n === !1 && o === void 0)
|
|
8
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : i(27));
|
|
9
|
+
return o;
|
|
5
10
|
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
e as DialogRootContext,
|
|
13
|
+
s as useDialogRootContext
|
|
8
14
|
};
|
|
9
15
|
//# sourceMappingURL=index150.js.map
|
package/dist/index150.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index150.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index150.js","sources":["../../../node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const DialogRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") DialogRootContext.displayName = \"DialogRootContext\";\nexport function useDialogRootContext(optional) {\n const dialogRootContext = React.useContext(DialogRootContext);\n if (optional === false && dialogRootContext === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.' : _formatErrorMessage(27));\n }\n return dialogRootContext;\n}"],"names":["DialogRootContext","React","useDialogRootContext","optional","dialogRootContext","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS;AACvE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AACpE,SAASE,EAAqBC,GAAU;AAC7C,QAAMC,IAAoBH,EAAM,WAAWD,CAAiB;AAC5D,MAAIG,MAAa,MAASC,MAAsB;AAC9C,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,6FAA6FC,EAAoB,EAAE,CAAC;AAE9K,SAAOD;AACT;","x_google_ignoreList":[0]}
|
package/dist/index151.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import b from "./index170.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { createElement as p } from "react";
|
|
4
|
+
import { useMergedRefs as E, useMergedRefsN as g } from "./index197.js";
|
|
5
|
+
import { getReactElementRef as y } from "./index314.js";
|
|
6
|
+
import { mergeObjects as R } from "./index315.js";
|
|
7
|
+
import { warn as v } from "./index316.js";
|
|
8
|
+
import { EMPTY_OBJECT as f } from "./index204.js";
|
|
9
|
+
import { getStateAttributesProps as w } from "./index317.js";
|
|
10
|
+
import { resolveClassName as C } from "./index318.js";
|
|
11
|
+
import { resolveStyle as T } from "./index319.js";
|
|
12
|
+
import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./index222.js";
|
|
13
|
+
function q(r, e, t = {}) {
|
|
14
|
+
const a = e.render, s = I(e, t);
|
|
15
|
+
if (t.enabled === !1)
|
|
16
|
+
return null;
|
|
17
|
+
const n = t.state ?? f;
|
|
18
|
+
return B(r, a, s, n);
|
|
13
19
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
r % 2 ? c(Object(t), !0).forEach(function(o) {
|
|
28
|
-
s(e, o, t[o]);
|
|
29
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(o) {
|
|
30
|
-
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return e;
|
|
20
|
+
function I(r, e = {}) {
|
|
21
|
+
const {
|
|
22
|
+
className: t,
|
|
23
|
+
style: a,
|
|
24
|
+
render: s
|
|
25
|
+
} = r, {
|
|
26
|
+
state: n = f,
|
|
27
|
+
ref: l,
|
|
28
|
+
props: u,
|
|
29
|
+
stateAttributesMapping: N,
|
|
30
|
+
enabled: i = !0
|
|
31
|
+
} = e, d = i ? C(t, n) : void 0, m = i ? T(a, n) : void 0, P = i ? w(n, N) : f, A = i && u ? O(u) : void 0, o = i ? R(P, A) ?? {} : f;
|
|
32
|
+
return typeof document < "u" && (i ? Array.isArray(l) ? o.ref = g([o.ref, y(s), ...l]) : o.ref = E(o.ref, y(s), l) : E(null, null)), i ? (d !== void 0 && (o.className = _(o.className, d)), m !== void 0 && (o.style = R(o.style, m)), o) : f;
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
return (r
|
|
34
|
+
function O(r) {
|
|
35
|
+
return Array.isArray(r) ? k(r) : h(void 0, r);
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
const M = /* @__PURE__ */ Symbol.for("react.lazy"), V = /^[A-Z][A-Za-z0-9$]*$/, $ = /[a-z]/;
|
|
38
|
+
function B(r, e, t, a) {
|
|
39
|
+
if (e) {
|
|
40
|
+
if (typeof e == "function")
|
|
41
|
+
return process.env.NODE_ENV !== "production" && D(e), e(t, a);
|
|
42
|
+
const s = h(t, e.props);
|
|
43
|
+
s.ref = t.ref;
|
|
44
|
+
let n = e;
|
|
45
|
+
if (n?.$$typeof === M && (n = c.Children.toArray(e)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ c.isValidElement(n))
|
|
46
|
+
throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join(`
|
|
47
|
+
`));
|
|
48
|
+
return /* @__PURE__ */ c.cloneElement(n, s);
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
if (r && typeof r == "string")
|
|
51
|
+
return L(r, t);
|
|
52
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : b(8));
|
|
51
53
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
throw a;
|
|
67
|
-
}
|
|
54
|
+
function D(r) {
|
|
55
|
+
const e = r.name;
|
|
56
|
+
e.length !== 0 && V.test(e) && $.test(e) && v(`The \`render\` prop received a function named \`${e}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
57
|
+
}
|
|
58
|
+
function L(r, e) {
|
|
59
|
+
return r === "button" ? /* @__PURE__ */ p("button", {
|
|
60
|
+
type: "button",
|
|
61
|
+
...e,
|
|
62
|
+
key: e.key
|
|
63
|
+
}) : r === "img" ? /* @__PURE__ */ p("img", {
|
|
64
|
+
alt: "",
|
|
65
|
+
...e,
|
|
66
|
+
key: e.key
|
|
67
|
+
}) : /* @__PURE__ */ c.createElement(r, e);
|
|
68
68
|
}
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
q as useRenderElement
|
|
71
71
|
};
|
|
72
72
|
//# sourceMappingURL=index151.js.map
|
package/dist/index151.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index151.js","sources":["../../../node_modules/libphonenumber-js/es6/validatePhoneNumberLength.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport normalizeArguments from './normalizeArguments.js';\nimport parsePhoneNumberWithError from './parsePhoneNumberWithError_.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport checkNumberLength from './helpers/checkNumberLength.js';\nexport default function validatePhoneNumberLength() {\n var _normalizeArguments = normalizeArguments(arguments),\n text = _normalizeArguments.text,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n options = _objectSpread(_objectSpread({}, options), {}, {\n extract: false\n });\n\n // Parse phone number.\n try {\n var phoneNumber = parsePhoneNumberWithError(text, options, metadata);\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(phoneNumber.countryCallingCode);\n var result = checkNumberLength(phoneNumber.nationalNumber, phoneNumber.country, metadata);\n if (result !== 'IS_POSSIBLE') {\n return result;\n }\n } catch (error) {\n /* istanbul ignore else */\n if (error instanceof ParseError) {\n return error.message;\n } else {\n throw error;\n }\n }\n}\n//# sourceMappingURL=validatePhoneNumberLength.js.map"],"names":["_typeof","o","ownKeys","r","_objectSpread","_defineProperty","_toPropertyKey","t","i","_toPrimitive","e","validatePhoneNumberLength","_normalizeArguments","normalizeArguments","text","options","metadata","phoneNumber","parsePhoneNumberWithError","Metadata","result","checkNumberLength","error","ParseError"],"mappings":";;;;;AAAA,SAASA,EAAQC,GAAG;AAAE;AAA2B,SAAOD,IAAwB,OAAO,UAArB,cAA2C,OAAO,OAAO,YAA1B,WAAqC,SAAUC,GAAG;AAAE,WAAO,OAAOA;AAAA,EAAG,IAAI,SAAUA,GAAG;AAAE,WAAOA,KAAmB,OAAO,UAArB,cAA+BA,EAAE,gBAAgB,UAAUA,MAAM,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAG,GAAGD,EAAQC,CAAC;AAAG;AAC7T,SAASC,EAAQ,GAAG,GAAG;AAAE,MAAI,IAAI,OAAO,KAAK,CAAC;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAI,IA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E,EAAE,KAAKH,GAAG,CAAc;AAAG,QAAgBP,EAAQQ,CAAC,KAArB,SAAwB,QAAOA;AAAG,UAAM,IAAI,UAAU,8CAA8C;AAAA,EAAG;AAAE,UAAqB,MAAb,WAAiB,SAAS,QAAQD,CAAC;AAAG;AAM5S,SAASI,IAA4B;AAClD,MAAIC,IAAsBC,EAAmB,SAAS,GACpDC,IAAOF,EAAoB,MAC3BG,IAAUH,EAAoB,SAC9BI,IAAWJ,EAAoB;AACjC,EAAAG,IAAUX,EAAcA,EAAc,CAAA,GAAIW,CAAO,GAAG,CAAA,GAAI;AAAA,IACtD,SAAS;AAAA,EACb,CAAG;AAGD,MAAI;AACF,QAAIE,IAAcC,EAA0BJ,GAAMC,GAASC,CAAQ;AACnE,IAAAA,IAAW,IAAIG,EAASH,CAAQ,GAChCA,EAAS,oBAAoBC,EAAY,kBAAkB;AAC3D,QAAIG,IAASC,EAAkBJ,EAAY,gBAAgBA,EAAY,SAASD,CAAQ;AACxF,QAAII,MAAW;AACb,aAAOA;AAAA,EAEX,SAASE,GAAO;AAEd,QAAIA,aAAiBC;AACnB,aAAOD,EAAM;AAEb,UAAMA;AAAA,EAEV;AACF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index151.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useRenderElement.js"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.js\";\nimport { resolveClassName } from \"../utils/resolveClassName.js\";\nimport { resolveStyle } from \"../utils/resolveStyle.js\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.js\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/facebook/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n\n // Workaround for https://github.com/facebook/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"names":["useRenderElement","element","componentProps","params","renderProp","outProps","useRenderElementProps","state","EMPTY_OBJECT","evaluateRenderProp","classNameProp","styleProp","ref","props","stateAttributesMapping","enabled","className","resolveClassName","style","resolveStyle","stateProps","getStateAttributesProps","resolvedProps","resolveRenderFunctionProps","mergeObjects","useMergedRefsN","getReactElementRef","useMergedRefs","mergeClassNames","mergePropsN","mergeProps","REACT_LAZY_TYPE","COMPONENT_IDENTIFIER_PATTERN","LOWERCASE_CHARACTER_PATTERN","render","warnIfRenderPropLooksLikeComponent","mergedProps","newElement","React","renderTag","_formatErrorMessage","renderFn","functionName","warn","Tag","_createElement"],"mappings":";;;;;;;;;;;;AAmBO,SAASA,EAAiBC,GAASC,GAA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