@rpcbase/ui 0.223.0 → 0.225.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/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +13 -9
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/components/I18nField/index.d.ts +7 -2
- package/dist/components/I18nField/index.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +16 -10
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/index10.js +102 -103
- package/dist/index10.js.map +1 -1
- package/dist/index106.js +36 -36
- package/dist/index107.js +1 -1
- package/dist/index11.js +139 -132
- package/dist/index11.js.map +1 -1
- package/dist/index118.js +6 -6
- package/dist/index12.js +1 -1
- 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 +5 -46
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +68 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -69
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +364 -2
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +201 -303
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +46 -247
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +42 -56
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +169 -46
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +96 -156
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +24 -109
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +77 -72
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +8 -25
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +5 -8
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +4 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +466 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +139 -420
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +71 -149
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +229 -74
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +9 -262
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +42 -9
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +4 -42
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +11 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +63 -41
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +35 -227
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +14 -22
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +23 -24
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +104 -394
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +13 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -8
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -67
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +6 -6
- package/dist/index180.js +5 -20
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +11 -16
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +19 -5
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +13 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +261 -6
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +28 -7
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +126 -16
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +5 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +78 -4
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +280 -208
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +66 -12
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +8 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +16 -14
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +92 -13
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +65 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +45 -5
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +58 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +8 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +65 -53
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -8
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +16 -4
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +6 -4
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +6 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +16 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -9
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +12 -10
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +9 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +13 -9
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +13 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -5
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -4
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +6 -5
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -6
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +54 -5
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +8 -16
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +4 -7
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -10
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -10
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +4 -21
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +4 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +10 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +9 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +10 -16
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +10 -9
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +9 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -15
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -29
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -12
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +6 -25
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +5 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +29 -13
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +11 -153
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +23 -28
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -45
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +7 -11
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +9 -43
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -94
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +20 -85
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +10 -105
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +9 -52
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -11
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +4 -37
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -8
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +14 -114
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +18 -15
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +15 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +10 -34
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +13 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +154 -9
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +30 -8
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +9 -19
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +45 -25
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +11 -16
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +43 -23
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +95 -28
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +87 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +105 -4
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +52 -17
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +11 -12
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +36 -19
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -5
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +117 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +17 -23
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +14 -111
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +3 -15
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +29 -522
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +19 -124
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +9 -133
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -4
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +19 -4
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +29 -4
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +16 -15
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +66 -8
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +8 -5
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +11 -4
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +7 -544
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +6 -47
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +13 -17
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +3 -5
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +3 -7
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +99 -6
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +17 -7
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -11
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +29 -8
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +51 -12
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +131 -62
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +9 -69
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +4 -8
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +4 -14
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +12 -66
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +21 -4
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +1 -1
- package/dist/index300.js +121 -54
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +28 -68
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +33 -31
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +74 -9
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +262 -152
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +28 -107
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +6 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +141 -21
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +61 -15
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +48 -27
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +227 -120
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +15 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +20 -7
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +12 -23
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +51 -13
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +14 -25
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +22 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +55 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +29 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +45 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +43 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +21 -229
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +48 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +24 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +74 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +21 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +15 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +17 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +22 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +40 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +282 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +72 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +4 -23
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +87 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +7 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +33 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +20 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +38 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +20 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +7 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +30 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +7 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +82 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +62 -51
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +273 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +15 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +14 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +29 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +20 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +129 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +9 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +44 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +69 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +17 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +38 -21
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +11 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +9 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +7 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +14 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +11 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +403 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +56 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +15 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +15 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +8 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +75 -127
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +21 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +16 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +24 -0
- package/dist/index362.js.map +1 -0
- package/dist/index363.js +12 -0
- package/dist/index363.js.map +1 -0
- package/dist/index364.js +29 -0
- package/dist/index364.js.map +1 -0
- package/dist/index365.js +30 -0
- package/dist/index365.js.map +1 -0
- package/dist/index366.js +141 -0
- package/dist/index366.js.map +1 -0
- package/dist/index367.js +16 -0
- package/dist/index367.js.map +1 -0
- package/dist/index368.js +230 -0
- package/dist/index368.js.map +1 -0
- package/dist/index369.js +7 -0
- package/dist/index369.js.map +1 -0
- package/dist/index37.js +22 -221
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +23 -0
- package/dist/index370.js.map +1 -0
- package/dist/index371.js +81 -0
- package/dist/index371.js.map +1 -0
- package/dist/index372.js +15 -0
- package/dist/index372.js.map +1 -0
- package/dist/index373.js +7 -0
- package/dist/index373.js.map +1 -0
- package/dist/index374.js +81 -0
- package/dist/index374.js.map +1 -0
- package/dist/index375.js +204 -0
- package/dist/index375.js.map +1 -0
- package/dist/index376.js +75 -0
- package/dist/index376.js.map +1 -0
- package/dist/index377.js +12 -0
- package/dist/index377.js.map +1 -0
- package/dist/index378.js +19 -0
- package/dist/index378.js.map +1 -0
- package/dist/index379.js +20 -0
- package/dist/index379.js.map +1 -0
- package/dist/index38.js +37 -90
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +7 -0
- package/dist/index380.js.map +1 -0
- package/dist/index381.js +15 -0
- package/dist/index381.js.map +1 -0
- package/dist/index382.js +9 -0
- package/dist/index382.js.map +1 -0
- package/dist/index383.js +24 -0
- package/dist/index383.js.map +1 -0
- package/dist/index384.js +48 -0
- package/dist/index384.js.map +1 -0
- package/dist/index385.js +21 -0
- package/dist/index385.js.map +1 -0
- package/dist/index386.js +8 -0
- package/dist/index386.js.map +1 -0
- package/dist/index387.js +8 -0
- package/dist/index387.js.map +1 -0
- package/dist/index388.js +8 -0
- package/dist/index388.js.map +1 -0
- package/dist/index389.js +7 -0
- package/dist/index389.js.map +1 -0
- package/dist/index39.js +28 -119
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +19 -0
- package/dist/index390.js.map +1 -0
- package/dist/index391.js +12 -0
- package/dist/index391.js.map +1 -0
- package/dist/index392.js +9 -0
- package/dist/index392.js.map +1 -0
- package/dist/index393.js +8 -0
- package/dist/index393.js.map +1 -0
- package/dist/index394.js +549 -0
- package/dist/index394.js.map +1 -0
- package/dist/index395.js +50 -0
- package/dist/index395.js.map +1 -0
- package/dist/index396.js +21 -0
- package/dist/index396.js.map +1 -0
- package/dist/index397.js +9 -0
- package/dist/index397.js.map +1 -0
- package/dist/index398.js +11 -0
- package/dist/index398.js.map +1 -0
- package/dist/index399.js +10 -0
- package/dist/index399.js.map +1 -0
- package/dist/index40.js +23 -6
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +11 -0
- package/dist/index400.js.map +1 -0
- package/dist/index401.js +15 -0
- package/dist/index401.js.map +1 -0
- package/dist/index402.js +12 -0
- package/dist/index402.js.map +1 -0
- package/dist/index403.js +16 -0
- package/dist/index403.js.map +1 -0
- package/dist/index404.js +18 -0
- package/dist/index404.js.map +1 -0
- package/dist/index405.js +495 -0
- package/dist/index405.js.map +1 -0
- package/dist/index406.js +6 -0
- package/dist/index406.js.map +1 -0
- package/dist/index407.js +6 -0
- package/dist/index407.js.map +1 -0
- package/dist/index408.js +8 -0
- package/dist/index408.js.map +1 -0
- package/dist/index409.js +59 -0
- package/dist/index409.js.map +1 -0
- package/dist/index41.js +51 -817
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +71 -0
- package/dist/index410.js.map +1 -0
- package/dist/index411.js +34 -0
- package/dist/index411.js.map +1 -0
- package/dist/index412.js +12 -0
- package/dist/index412.js.map +1 -0
- package/dist/index413.js +156 -0
- package/dist/index413.js.map +1 -0
- package/dist/index414.js +111 -0
- package/dist/index414.js.map +1 -0
- package/dist/index415.js +11 -0
- package/dist/index415.js.map +1 -0
- package/dist/index416.js +5 -0
- package/dist/index416.js.map +1 -0
- package/dist/index417.js +47 -0
- package/dist/index417.js.map +1 -0
- package/dist/index418.js +59 -0
- package/dist/index418.js.map +1 -0
- package/dist/index419.js +11 -0
- package/dist/index419.js.map +1 -0
- package/dist/index42.js +51 -57
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +5 -0
- package/dist/index420.js.map +1 -0
- package/dist/index421.js +58 -0
- package/dist/index421.js.map +1 -0
- package/dist/index422.js +59 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +19 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +32 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +16 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +10 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +5 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +5 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +5 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +21 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +5 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +130 -2
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +221 -11
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +90 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +118 -7
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +6 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +326 -23
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +247 -221
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +27 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +129 -2
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +26 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +22 -33
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +143 -46
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +35 -8
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +29 -12
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +41 -2
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +21 -2
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +84 -85
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +132 -6
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +51 -8
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +30 -6
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -4
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -47
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +2 -51
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +11 -7
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +17 -13
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +7 -133
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -11
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +123 -98
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +22 -215
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +234 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -47
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -50
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -4
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -28
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -50
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +6 -9
- package/dist/index78.js.map +1 -1
- package/dist/index8.js +53 -54
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +1 -1
- package/dist/lib/render-as-child.d.ts +5 -0
- package/dist/lib/render-as-child.d.ts.map +1 -0
- package/package.json +3 -6
- package/dist/lib/react-compose-refs.d.ts +0 -5
- package/dist/lib/react-compose-refs.d.ts.map +0 -1
package/dist/index368.js
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { floor as _ } from "./index345.js";
|
|
2
|
+
import { getComputedStyle as K } from "./index294.js";
|
|
3
|
+
import { stopEvent as b } from "./index365.js";
|
|
4
|
+
import { ARROW_UP as Q, ARROW_DOWN as X, ARROW_LEFT as z, ARROW_RIGHT as B } from "./index377.js";
|
|
5
|
+
function W(t, r, o) {
|
|
6
|
+
return Math.floor(t / r) !== o;
|
|
7
|
+
}
|
|
8
|
+
function j(t, r) {
|
|
9
|
+
return r < 0 || r >= t.length;
|
|
10
|
+
}
|
|
11
|
+
function x(t, r) {
|
|
12
|
+
return C(t.current, {
|
|
13
|
+
disabledIndices: r
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function v(t, r) {
|
|
17
|
+
return C(t.current, {
|
|
18
|
+
decrement: !0,
|
|
19
|
+
startingIndex: t.current.length,
|
|
20
|
+
disabledIndices: r
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function C(t, {
|
|
24
|
+
startingIndex: r = -1,
|
|
25
|
+
decrement: o = !1,
|
|
26
|
+
disabledIndices: a,
|
|
27
|
+
amount: n = 1
|
|
28
|
+
} = {}) {
|
|
29
|
+
let c = r;
|
|
30
|
+
do
|
|
31
|
+
c += o ? -n : n;
|
|
32
|
+
while (c >= 0 && c <= t.length - 1 && H(t, c, a));
|
|
33
|
+
return c;
|
|
34
|
+
}
|
|
35
|
+
function tt(t, {
|
|
36
|
+
event: r,
|
|
37
|
+
orientation: o,
|
|
38
|
+
loopFocus: a,
|
|
39
|
+
onLoop: n,
|
|
40
|
+
rtl: c,
|
|
41
|
+
cols: e,
|
|
42
|
+
disabledIndices: w,
|
|
43
|
+
minIndex: G,
|
|
44
|
+
maxIndex: g,
|
|
45
|
+
prevIndex: i,
|
|
46
|
+
stopEvent: D = !1
|
|
47
|
+
}) {
|
|
48
|
+
let f = i, E;
|
|
49
|
+
if (r.key === Q ? E = "up" : r.key === X && (E = "down"), E) {
|
|
50
|
+
const l = [], V = [];
|
|
51
|
+
let P = !1, T = 0;
|
|
52
|
+
{
|
|
53
|
+
let R = null, u = -1;
|
|
54
|
+
t.forEach((y, M) => {
|
|
55
|
+
if (y == null)
|
|
56
|
+
return;
|
|
57
|
+
T += 1;
|
|
58
|
+
const s = y.closest('[role="row"]');
|
|
59
|
+
s && (P = !0), (s !== R || u === -1) && (R = s, u += 1, l[u] = []), l[u].push(M), V[M] = u;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
let N = !1, S = 0;
|
|
63
|
+
if (P)
|
|
64
|
+
for (const R of l) {
|
|
65
|
+
const u = R.length;
|
|
66
|
+
u > S && (S = u), u !== e && (N = !0);
|
|
67
|
+
}
|
|
68
|
+
const U = N && T < t.length, h = S || e, $ = (R) => {
|
|
69
|
+
if (!N || i === -1)
|
|
70
|
+
return;
|
|
71
|
+
const u = V[i];
|
|
72
|
+
if (u == null)
|
|
73
|
+
return;
|
|
74
|
+
const y = l[u].indexOf(i), M = R === "up" ? -1 : 1;
|
|
75
|
+
for (let s = u + M, m = 0; m < l.length; m += 1, s += M) {
|
|
76
|
+
if (s < 0 || s >= l.length) {
|
|
77
|
+
if (!a || U)
|
|
78
|
+
return;
|
|
79
|
+
if (s = s < 0 ? l.length - 1 : 0, n) {
|
|
80
|
+
const k = Math.min(y, l[s].length - 1), O = l[s][k] ?? l[s][0], J = n(r, i, O);
|
|
81
|
+
s = V[J] ?? s;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const A = l[s];
|
|
85
|
+
for (let k = Math.min(y, A.length - 1); k >= 0; k -= 1) {
|
|
86
|
+
const O = A[k];
|
|
87
|
+
if (!H(t, O, w))
|
|
88
|
+
return O;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}, q = (R) => {
|
|
92
|
+
if (!U || i === -1)
|
|
93
|
+
return;
|
|
94
|
+
const u = i % h, y = R === "up" ? -h : h, M = g - g % h, s = _(g / h) + 1;
|
|
95
|
+
for (let m = i - u + y, A = 0; A < s; A += 1, m += y) {
|
|
96
|
+
if (m < 0 || m > g) {
|
|
97
|
+
if (!a)
|
|
98
|
+
return;
|
|
99
|
+
m = m < 0 ? M : 0;
|
|
100
|
+
}
|
|
101
|
+
const k = Math.min(m + h - 1, g);
|
|
102
|
+
for (let O = Math.min(m + u, k); O >= m; O -= 1)
|
|
103
|
+
if (!H(t, O, w))
|
|
104
|
+
return O;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
D && b(r);
|
|
108
|
+
const d = $(E) ?? q(E);
|
|
109
|
+
if (d !== void 0)
|
|
110
|
+
f = d;
|
|
111
|
+
else if (i === -1)
|
|
112
|
+
f = E === "up" ? g : G;
|
|
113
|
+
else if (f = C(t, {
|
|
114
|
+
startingIndex: i,
|
|
115
|
+
amount: h,
|
|
116
|
+
decrement: E === "up",
|
|
117
|
+
disabledIndices: w
|
|
118
|
+
}), a) {
|
|
119
|
+
if (E === "up" && (i - h < G || f < 0)) {
|
|
120
|
+
const R = i % h, u = g % h, y = g - (u - R);
|
|
121
|
+
u === R ? f = g : f = u > R ? y : y - h, n && (f = n(r, i, f));
|
|
122
|
+
}
|
|
123
|
+
E === "down" && i + h > g && (f = C(t, {
|
|
124
|
+
startingIndex: i % h - h,
|
|
125
|
+
amount: h,
|
|
126
|
+
disabledIndices: w
|
|
127
|
+
}), n && (f = n(r, i, f)));
|
|
128
|
+
}
|
|
129
|
+
j(t, f) && (f = i);
|
|
130
|
+
}
|
|
131
|
+
if (o === "both") {
|
|
132
|
+
const l = _(i / e);
|
|
133
|
+
r.key === (c ? z : B) && (D && b(r), i % e !== e - 1 ? (f = C(t, {
|
|
134
|
+
startingIndex: i,
|
|
135
|
+
disabledIndices: w
|
|
136
|
+
}), a && W(f, e, l) && (f = C(t, {
|
|
137
|
+
startingIndex: i - i % e - 1,
|
|
138
|
+
disabledIndices: w
|
|
139
|
+
}), n && (f = n(r, i, f)))) : a && (f = C(t, {
|
|
140
|
+
startingIndex: i - i % e - 1,
|
|
141
|
+
disabledIndices: w
|
|
142
|
+
}), n && (f = n(r, i, f))), W(f, e, l) && (f = i)), r.key === (c ? B : z) && (D && b(r), i % e !== 0 ? (f = C(t, {
|
|
143
|
+
startingIndex: i,
|
|
144
|
+
decrement: !0,
|
|
145
|
+
disabledIndices: w
|
|
146
|
+
}), a && W(f, e, l) && (f = C(t, {
|
|
147
|
+
startingIndex: i + (e - i % e),
|
|
148
|
+
decrement: !0,
|
|
149
|
+
disabledIndices: w
|
|
150
|
+
}), n && (f = n(r, i, f)))) : a && (f = C(t, {
|
|
151
|
+
startingIndex: i + (e - i % e),
|
|
152
|
+
decrement: !0,
|
|
153
|
+
disabledIndices: w
|
|
154
|
+
}), n && (f = n(r, i, f))), W(f, e, l) && (f = i));
|
|
155
|
+
const V = _(g / e) === l;
|
|
156
|
+
j(t, f) && (a && V ? (f = r.key === (c ? B : z) ? g : C(t, {
|
|
157
|
+
startingIndex: i - i % e - 1,
|
|
158
|
+
disabledIndices: w
|
|
159
|
+
}), n && (f = n(r, i, f))) : f = i);
|
|
160
|
+
}
|
|
161
|
+
return f;
|
|
162
|
+
}
|
|
163
|
+
function it(t, r, o) {
|
|
164
|
+
const a = [];
|
|
165
|
+
let n = 0;
|
|
166
|
+
return t.forEach(({
|
|
167
|
+
width: c,
|
|
168
|
+
height: e
|
|
169
|
+
}, w) => {
|
|
170
|
+
if (c > r && process.env.NODE_ENV !== "production")
|
|
171
|
+
throw new Error(`[Floating UI]: Invalid grid - item width at index ${w} is greater than grid columns`);
|
|
172
|
+
let G = !1;
|
|
173
|
+
for (; !G; ) {
|
|
174
|
+
const g = [];
|
|
175
|
+
for (let i = 0; i < c; i += 1)
|
|
176
|
+
for (let D = 0; D < e; D += 1)
|
|
177
|
+
g.push(n + i + D * r);
|
|
178
|
+
n % r + c <= r && g.every((i) => a[i] == null) ? (g.forEach((i) => {
|
|
179
|
+
a[i] = w;
|
|
180
|
+
}), G = !0) : n += 1;
|
|
181
|
+
}
|
|
182
|
+
}), [...a];
|
|
183
|
+
}
|
|
184
|
+
function rt(t, r, o, a, n) {
|
|
185
|
+
if (t === -1)
|
|
186
|
+
return -1;
|
|
187
|
+
const c = o.indexOf(t), e = r[t];
|
|
188
|
+
switch (n) {
|
|
189
|
+
case "tl":
|
|
190
|
+
return c;
|
|
191
|
+
case "tr":
|
|
192
|
+
return e ? c + e.width - 1 : c;
|
|
193
|
+
case "bl":
|
|
194
|
+
return e ? c + (e.height - 1) * a : c;
|
|
195
|
+
case "br":
|
|
196
|
+
return o.lastIndexOf(t);
|
|
197
|
+
default:
|
|
198
|
+
return -1;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function ft(t, r) {
|
|
202
|
+
return r.flatMap((o, a) => t.includes(o) ? [a] : []);
|
|
203
|
+
}
|
|
204
|
+
function H(t, r, o) {
|
|
205
|
+
if (typeof o == "function" ? o(r) : o?.includes(r) ?? !1)
|
|
206
|
+
return !0;
|
|
207
|
+
const n = t[r];
|
|
208
|
+
return n ? Z(n) ? !o && (n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") : !0 : !1;
|
|
209
|
+
}
|
|
210
|
+
function Y(t) {
|
|
211
|
+
return t.visibility === "hidden" || t.visibility === "collapse";
|
|
212
|
+
}
|
|
213
|
+
function Z(t, r = t ? K(t) : null) {
|
|
214
|
+
return !t || !t.isConnected || !r || Y(r) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : r.display !== "none" && r.display !== "contents";
|
|
215
|
+
}
|
|
216
|
+
export {
|
|
217
|
+
it as createGridCellMap,
|
|
218
|
+
C as findNonDisabledListIndex,
|
|
219
|
+
rt as getGridCellIndexOfCorner,
|
|
220
|
+
ft as getGridCellIndices,
|
|
221
|
+
tt as getGridNavigatedIndex,
|
|
222
|
+
v as getMaxListIndex,
|
|
223
|
+
x as getMinListIndex,
|
|
224
|
+
W as isDifferentGridRow,
|
|
225
|
+
Z as isElementVisible,
|
|
226
|
+
Y as isHiddenByStyles,
|
|
227
|
+
j as isIndexOutOfListBounds,
|
|
228
|
+
H as isListIndexDisabled
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=index368.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index368.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js"],"sourcesContent":["import { floor } from '@floating-ui/utils';\nimport { getComputedStyle } from '@floating-ui/utils/dom';\nimport { stopEvent } from \"./event.js\";\nimport { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from \"./constants.js\";\nexport function isDifferentGridRow(index, cols, prevRow) {\n return Math.floor(index / cols) !== prevRow;\n}\nexport function isIndexOutOfListBounds(list, index) {\n return index < 0 || index >= list.length;\n}\nexport function getMinListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n disabledIndices\n });\n}\nexport function getMaxListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n decrement: true,\n startingIndex: listRef.current.length,\n disabledIndices\n });\n}\nexport function findNonDisabledListIndex(list, {\n startingIndex = -1,\n decrement = false,\n disabledIndices,\n amount = 1\n} = {}) {\n let index = startingIndex;\n do {\n index += decrement ? -amount : amount;\n } while (index >= 0 && index <= list.length - 1 && isListIndexDisabled(list, index, disabledIndices));\n return index;\n}\nexport function getGridNavigatedIndex(list, {\n event,\n orientation,\n loopFocus,\n onLoop,\n rtl,\n cols,\n disabledIndices,\n minIndex,\n maxIndex,\n prevIndex,\n stopEvent: stop = false\n}) {\n let nextIndex = prevIndex;\n let verticalDirection;\n if (event.key === ARROW_UP) {\n verticalDirection = 'up';\n } else if (event.key === ARROW_DOWN) {\n verticalDirection = 'down';\n }\n if (verticalDirection) {\n // -------------------------------------------------------------------------\n // Detect row structure only when handling vertical navigation. This keeps\n // the non-vertical key paths free from row inference work.\n // -------------------------------------------------------------------------\n const rows = [];\n const rowIndexMap = [];\n let hasRoleRow = false;\n let visibleItemCount = 0;\n {\n let currentRowEl = null;\n let currentRowIndex = -1;\n list.forEach((el, idx) => {\n if (el == null) {\n return;\n }\n visibleItemCount += 1;\n const rowEl = el.closest('[role=\"row\"]');\n if (rowEl) {\n hasRoleRow = true;\n }\n if (rowEl !== currentRowEl || currentRowIndex === -1) {\n currentRowEl = rowEl;\n currentRowIndex += 1;\n rows[currentRowIndex] = [];\n }\n rows[currentRowIndex].push(idx);\n rowIndexMap[idx] = currentRowIndex;\n });\n }\n let hasDomRows = false;\n let inferredDomCols = 0;\n if (hasRoleRow) {\n for (const row of rows) {\n const rowLength = row.length;\n if (rowLength > inferredDomCols) {\n inferredDomCols = rowLength;\n }\n if (rowLength !== cols) {\n hasDomRows = true;\n }\n }\n }\n const hasVirtualizedGaps = hasDomRows && visibleItemCount < list.length;\n const verticalCols = inferredDomCols || cols;\n const navigateVertically = direction => {\n if (!hasDomRows || prevIndex === -1) {\n return undefined;\n }\n const currentRow = rowIndexMap[prevIndex];\n if (currentRow == null) {\n return undefined;\n }\n const colInRow = rows[currentRow].indexOf(prevIndex);\n const step = direction === 'up' ? -1 : 1;\n for (let nextRow = currentRow + step, i = 0; i < rows.length; i += 1, nextRow += step) {\n if (nextRow < 0 || nextRow >= rows.length) {\n if (!loopFocus || hasVirtualizedGaps) {\n return undefined;\n }\n nextRow = nextRow < 0 ? rows.length - 1 : 0;\n if (onLoop) {\n const clampedCol = Math.min(colInRow, rows[nextRow].length - 1);\n const targetItemIndex = rows[nextRow][clampedCol] ?? rows[nextRow][0];\n const returnedItemIndex = onLoop(event, prevIndex, targetItemIndex);\n nextRow = rowIndexMap[returnedItemIndex] ?? nextRow;\n }\n }\n const targetRow = rows[nextRow];\n for (let col = Math.min(colInRow, targetRow.length - 1); col >= 0; col -= 1) {\n const candidate = targetRow[col];\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n const navigateVerticallyWithInferredRows = direction => {\n if (!hasVirtualizedGaps || prevIndex === -1) {\n return undefined;\n }\n const colInRow = prevIndex % verticalCols;\n const rowStep = direction === 'up' ? -verticalCols : verticalCols;\n const lastRowStart = maxIndex - maxIndex % verticalCols;\n const rowCount = floor(maxIndex / verticalCols) + 1;\n for (let rowStart = prevIndex - colInRow + rowStep, i = 0; i < rowCount; i += 1, rowStart += rowStep) {\n if (rowStart < 0 || rowStart > maxIndex) {\n if (!loopFocus) {\n return undefined;\n }\n rowStart = rowStart < 0 ? lastRowStart : 0;\n }\n const rowEnd = Math.min(rowStart + verticalCols - 1, maxIndex);\n for (let candidate = Math.min(rowStart + colInRow, rowEnd); candidate >= rowStart; candidate -= 1) {\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n if (stop) {\n stopEvent(event);\n }\n const verticalCandidate = navigateVertically(verticalDirection) ?? navigateVerticallyWithInferredRows(verticalDirection);\n if (verticalCandidate !== undefined) {\n nextIndex = verticalCandidate;\n } else if (prevIndex === -1) {\n nextIndex = verticalDirection === 'up' ? maxIndex : minIndex;\n } else {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n amount: verticalCols,\n decrement: verticalDirection === 'up',\n disabledIndices\n });\n if (loopFocus) {\n if (verticalDirection === 'up' && (prevIndex - verticalCols < minIndex || nextIndex < 0)) {\n const col = prevIndex % verticalCols;\n const maxCol = maxIndex % verticalCols;\n const offset = maxIndex - (maxCol - col);\n if (maxCol === col) {\n nextIndex = maxIndex;\n } else {\n nextIndex = maxCol > col ? offset : offset - verticalCols;\n }\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (verticalDirection === 'down' && prevIndex + verticalCols > maxIndex) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex % verticalCols - verticalCols,\n amount: verticalCols,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n }\n }\n if (isIndexOutOfListBounds(list, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n\n // Remains on the same row/column.\n if (orientation === 'both') {\n const prevRow = floor(prevIndex / cols);\n if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== cols - 1) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== 0) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n decrement: true,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n const lastRow = floor(maxIndex / cols) === prevRow;\n if (isIndexOutOfListBounds(list, nextIndex)) {\n if (loopFocus && lastRow) {\n nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n } else {\n nextIndex = prevIndex;\n }\n }\n }\n return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nexport function createGridCellMap(sizes, cols, dense) {\n const cellMap = [];\n let startIndex = 0;\n sizes.forEach(({\n width,\n height\n }, index) => {\n if (width > cols) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(`[Floating UI]: Invalid grid - item width at index ${index} is greater than grid columns`);\n }\n }\n let itemPlaced = false;\n if (dense) {\n startIndex = 0;\n }\n while (!itemPlaced) {\n const targetCells = [];\n for (let i = 0; i < width; i += 1) {\n for (let j = 0; j < height; j += 1) {\n targetCells.push(startIndex + i + j * cols);\n }\n }\n if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n targetCells.forEach(cell => {\n cellMap[cell] = index;\n });\n itemPlaced = true;\n } else {\n startIndex += 1;\n }\n }\n });\n\n // convert into a non-sparse array\n return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nexport function getGridCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n if (index === -1) {\n return -1;\n }\n const firstCellIndex = cellMap.indexOf(index);\n const sizeItem = sizes[index];\n switch (corner) {\n case 'tl':\n return firstCellIndex;\n case 'tr':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + sizeItem.width - 1;\n case 'bl':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + (sizeItem.height - 1) * cols;\n case 'br':\n return cellMap.lastIndexOf(index);\n default:\n return -1;\n }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nexport function getGridCellIndices(indices, cellMap) {\n return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\nexport function isListIndexDisabled(list, index, disabledIndices) {\n const isExplicitlyDisabled = typeof disabledIndices === 'function' ? disabledIndices(index) : disabledIndices?.includes(index) ?? false;\n if (isExplicitlyDisabled) {\n return true;\n }\n const element = list[index];\n if (!element) {\n return false;\n }\n if (!isElementVisible(element)) {\n return true;\n }\n return !disabledIndices && (element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true');\n}\nexport function isHiddenByStyles(styles) {\n return styles.visibility === 'hidden' || styles.visibility === 'collapse';\n}\nexport function isElementVisible(element, styles = element ? getComputedStyle(element) : null) {\n if (!element || !element.isConnected || !styles || isHiddenByStyles(styles)) {\n return false;\n }\n if (typeof element.checkVisibility === 'function') {\n return element.checkVisibility();\n }\n return styles.display !== 'none' && styles.display !== 'contents';\n}"],"names":["isDifferentGridRow","index","cols","prevRow","isIndexOutOfListBounds","list","getMinListIndex","listRef","disabledIndices","findNonDisabledListIndex","getMaxListIndex","startingIndex","decrement","amount","isListIndexDisabled","getGridNavigatedIndex","event","orientation","loopFocus","onLoop","rtl","minIndex","maxIndex","prevIndex","stop","nextIndex","verticalDirection","ARROW_UP","ARROW_DOWN","rows","rowIndexMap","hasRoleRow","visibleItemCount","currentRowEl","currentRowIndex","el","idx","rowEl","hasDomRows","inferredDomCols","row","rowLength","hasVirtualizedGaps","verticalCols","navigateVertically","direction","currentRow","colInRow","step","nextRow","i","clampedCol","targetItemIndex","returnedItemIndex","targetRow","col","candidate","navigateVerticallyWithInferredRows","rowStep","lastRowStart","rowCount","floor","rowStart","rowEnd","stopEvent","verticalCandidate","maxCol","offset","ARROW_LEFT","ARROW_RIGHT","lastRow","createGridCellMap","sizes","dense","cellMap","startIndex","width","height","itemPlaced","targetCells","j","cell","getGridCellIndexOfCorner","corner","firstCellIndex","sizeItem","getGridCellIndices","indices","cellIndex","element","isElementVisible","isHiddenByStyles","styles","getComputedStyle"],"mappings":";;;;AAIO,SAASA,EAAmBC,GAAOC,GAAMC,GAAS;AACvD,SAAO,KAAK,MAAMF,IAAQC,CAAI,MAAMC;AACtC;AACO,SAASC,EAAuBC,GAAMJ,GAAO;AAClD,SAAOA,IAAQ,KAAKA,KAASI,EAAK;AACpC;AACO,SAASC,EAAgBC,GAASC,GAAiB;AACxD,SAAOC,EAAyBF,EAAQ,SAAS;AAAA,IAC/C,iBAAAC;AAAA,EACJ,CAAG;AACH;AACO,SAASE,E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C1B,SAAKwF,IAGAC,EAAiBD,CAAO,IAGtB,CAACjF,MAAoBiF,EAAQ,aAAa,UAAU,KAAKA,EAAQ,aAAa,eAAe,MAAM,UAFjG,KAHA;AAMX;AACO,SAASE,EAAiBC,GAAQ;AACvC,SAAOA,EAAO,eAAe,YAAYA,EAAO,eAAe;AACjE;AACO,SAASF,EAAiBD,GAASG,IAASH,IAAUI,EAAiBJ,CAAO,IAAI,MAAM;AAC7F,SAAI,CAACA,KAAW,CAACA,EAAQ,eAAe,CAACG,KAAUD,EAAiBC,CAAM,IACjE,KAEL,OAAOH,EAAQ,mBAAoB,aAC9BA,EAAQ,gBAAe,IAEzBG,EAAO,YAAY,UAAUA,EAAO,YAAY;AACzD;","x_google_ignoreList":[0]}
|
package/dist/index369.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index369.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js"],"sourcesContent":["export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}"],"names":["createAttribute","name"],"mappings":"AAAO,SAASA,EAAgBC,GAAM;AACpC,SAAO,gBAAgBA,CAAI;AAC7B;","x_google_ignoreList":[0]}
|
package/dist/index37.js
CHANGED
|
@@ -1,225 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
6
|
-
return t.replace(/\D/g, "");
|
|
7
|
-
}
|
|
8
|
-
function P(t) {
|
|
9
|
-
return t ? t.length > W ? !1 : C.some((e) => e.startsWith(t)) : !0;
|
|
10
|
-
}
|
|
11
|
-
const N = /[\u061C\u200B-\u200F\u202A-\u202E\u2066-\u2069\uFEFF]/g;
|
|
12
|
-
function T(t) {
|
|
13
|
-
return t.replace(N, "");
|
|
14
|
-
}
|
|
15
|
-
function q(t, e, s = {}) {
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { useDialogRootContext as p } from "./index171.js";
|
|
3
|
+
import { useRenderElement as a } from "./index172.js";
|
|
4
|
+
import { useBaseUiId as c } from "./index178.js";
|
|
5
|
+
const d = /* @__PURE__ */ n.forwardRef(function(e, r) {
|
|
16
6
|
const {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
function y(t) {
|
|
35
|
-
if (t)
|
|
36
|
-
return O[t] ?? t;
|
|
37
|
-
}
|
|
38
|
-
function _(t, e, s) {
|
|
39
|
-
if (!t || !s || (t.nationalNumber ?? "").length < 4)
|
|
40
|
-
return;
|
|
41
|
-
const o = t.countryCallingCode;
|
|
42
|
-
if (!o)
|
|
43
|
-
return;
|
|
44
|
-
const i = t.getMetadata, n = (typeof i == "function" ? i() : null)?.country_calling_codes?.[o];
|
|
45
|
-
if (!n || n.length === 0)
|
|
46
|
-
return;
|
|
47
|
-
const r = [];
|
|
48
|
-
for (const f of n) {
|
|
49
|
-
const l = y(f);
|
|
50
|
-
l && !r.includes(l) && r.push(l);
|
|
51
|
-
}
|
|
52
|
-
if (r.length !== 0)
|
|
53
|
-
return e && r.includes(e) ? e : r.includes(x) ? x : r[0];
|
|
54
|
-
}
|
|
55
|
-
function B(t, e, s, u) {
|
|
56
|
-
if (!t)
|
|
57
|
-
return !1;
|
|
58
|
-
if (!u)
|
|
59
|
-
return t.startsWith("0");
|
|
60
|
-
if (!s || !t.startsWith(s) || !t.slice(s.length).startsWith("0"))
|
|
61
|
-
return !1;
|
|
62
|
-
const o = t.slice(s.length + 1), i = e.startsWith(s) ? e.slice(s.length) : e;
|
|
63
|
-
return o === i;
|
|
64
|
-
}
|
|
65
|
-
function S(t) {
|
|
66
|
-
for (const e of $)
|
|
67
|
-
if (t.startsWith(e))
|
|
68
|
-
return t.slice(e.length);
|
|
69
|
-
return t;
|
|
70
|
-
}
|
|
71
|
-
function M(t, e, s = {}) {
|
|
72
|
-
const {
|
|
73
|
-
allowJustPlus: u = !1,
|
|
74
|
-
removeNationalPrefix: o = !0,
|
|
75
|
-
previousValue: i
|
|
76
|
-
} = s, n = T(t).trim();
|
|
77
|
-
if (!n)
|
|
78
|
-
return "";
|
|
79
|
-
if (n === "+")
|
|
80
|
-
return u ? "+" : "";
|
|
81
|
-
if (n.startsWith("+")) {
|
|
82
|
-
const a = g(n);
|
|
83
|
-
if (!a)
|
|
84
|
-
return u ? "+" : "";
|
|
85
|
-
const d = S(a);
|
|
86
|
-
if (d !== a)
|
|
87
|
-
return d ? `+${d}` : u ? "+" : "";
|
|
88
|
-
if (o && e) {
|
|
89
|
-
const h = p(e);
|
|
90
|
-
if (a.startsWith(h) && a.slice(h.length).startsWith("0")) {
|
|
91
|
-
const E = a.slice(h.length + 1);
|
|
92
|
-
return E ? `+${h}${E}` : `+${h}`;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return `+${a}`;
|
|
96
|
-
}
|
|
97
|
-
const r = g(n);
|
|
98
|
-
if (!r)
|
|
99
|
-
return "";
|
|
100
|
-
const f = S(r);
|
|
101
|
-
if (f !== r)
|
|
102
|
-
return f ? `+${f}` : u ? "+" : "";
|
|
103
|
-
const l = typeof i == "string" ? i : "", m = l && l.startsWith("+") ? g(l) : "";
|
|
104
|
-
if (m && m.length > r.length && m.endsWith(r) && m.length - r.length <= W)
|
|
105
|
-
return `+${r}`;
|
|
106
|
-
if (r === "0")
|
|
107
|
-
return "0";
|
|
108
|
-
if (o && e && r.length > 1 && r.startsWith("0") && !r.startsWith("00")) {
|
|
109
|
-
const a = p(e), d = r.slice(1);
|
|
110
|
-
return d ? `+${a}${d}` : `+${a}`;
|
|
111
|
-
}
|
|
112
|
-
return e ? r.length <= 4 ? `+${r}` : `+${p(e)}${r}` : r;
|
|
113
|
-
}
|
|
114
|
-
function Y(t, e) {
|
|
115
|
-
if (t === "+")
|
|
116
|
-
return {
|
|
117
|
-
international: "+",
|
|
118
|
-
national: "",
|
|
119
|
-
formatted: "+",
|
|
120
|
-
phoneNumber: null,
|
|
121
|
-
detectedCountry: void 0,
|
|
122
|
-
inferredCountry: void 0,
|
|
123
|
-
hasExplicitInternationalPrefix: !0
|
|
124
|
-
};
|
|
125
|
-
const s = /^\s*\+/.test(t), u = e ? new I(e) : new I(), o = u.input(t), i = u.getNumber(), c = g(t), n = y(i?.country ?? u.country ?? void 0), r = n ?? !i ? void 0 : y(_(i, e, c)), f = i?.formatInternational() ?? o, l = i?.formatNational() ?? g(f);
|
|
126
|
-
return {
|
|
127
|
-
international: f,
|
|
128
|
-
national: l,
|
|
129
|
-
formatted: o,
|
|
130
|
-
phoneNumber: i,
|
|
131
|
-
detectedCountry: n,
|
|
132
|
-
inferredCountry: r,
|
|
133
|
-
hasExplicitInternationalPrefix: s
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
function v(t, e) {
|
|
137
|
-
return t.startsWith(e) ? t.slice(e.length) : t;
|
|
138
|
-
}
|
|
139
|
-
function H(t, e) {
|
|
140
|
-
if (!e || !t)
|
|
141
|
-
return null;
|
|
142
|
-
try {
|
|
143
|
-
return D(t, e) === "TOO_LONG" ? "TOO_LONG" : null;
|
|
144
|
-
} catch {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function U(t, e, s, u = {}) {
|
|
149
|
-
const {
|
|
150
|
-
hasRemovedNationalPrefix: o = !1,
|
|
151
|
-
detectedCountry: i,
|
|
152
|
-
hasExplicitInternationalPrefix: c = !1
|
|
153
|
-
} = u;
|
|
154
|
-
if (!t)
|
|
155
|
-
return {
|
|
156
|
-
shouldSuggest: !1,
|
|
157
|
-
query: ""
|
|
158
|
-
};
|
|
159
|
-
if (t === "+")
|
|
160
|
-
return {
|
|
161
|
-
shouldSuggest: !0,
|
|
162
|
-
query: ""
|
|
163
|
-
};
|
|
164
|
-
const n = g(t);
|
|
165
|
-
if (!n)
|
|
166
|
-
return {
|
|
167
|
-
shouldSuggest: !0,
|
|
168
|
-
query: ""
|
|
169
|
-
};
|
|
170
|
-
if (o)
|
|
171
|
-
return {
|
|
172
|
-
shouldSuggest: !1,
|
|
173
|
-
query: ""
|
|
174
|
-
};
|
|
175
|
-
if (c && !i)
|
|
176
|
-
return P(n) ? {
|
|
177
|
-
shouldSuggest: !0,
|
|
178
|
-
query: n
|
|
179
|
-
} : {
|
|
180
|
-
shouldSuggest: !1,
|
|
181
|
-
query: ""
|
|
182
|
-
};
|
|
183
|
-
let r = s?.countryCallingCode ?? null;
|
|
184
|
-
if (!r) {
|
|
185
|
-
if (e) {
|
|
186
|
-
const l = p(e);
|
|
187
|
-
n.startsWith(l) && (r = l);
|
|
188
|
-
} else if (!c)
|
|
189
|
-
return {
|
|
190
|
-
shouldSuggest: !1,
|
|
191
|
-
query: ""
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
return r ? v(n, r).length === 0 ? {
|
|
195
|
-
shouldSuggest: !0,
|
|
196
|
-
query: n
|
|
197
|
-
} : {
|
|
198
|
-
shouldSuggest: !1,
|
|
199
|
-
query: ""
|
|
200
|
-
} : {
|
|
201
|
-
shouldSuggest: !0,
|
|
202
|
-
query: n
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function V(t, e) {
|
|
206
|
-
if (t.shouldSuggest)
|
|
207
|
-
return !1;
|
|
208
|
-
const {
|
|
209
|
-
hasExplicitInternationalPrefix: s = !1,
|
|
210
|
-
detectedCountry: u
|
|
211
|
-
} = e;
|
|
212
|
-
return s ? !!u : !0;
|
|
213
|
-
}
|
|
7
|
+
render: m,
|
|
8
|
+
className: f,
|
|
9
|
+
style: u,
|
|
10
|
+
id: i,
|
|
11
|
+
...t
|
|
12
|
+
} = e, {
|
|
13
|
+
store: s
|
|
14
|
+
} = p(), o = c(i);
|
|
15
|
+
return s.useSyncedValueWithCleanup("descriptionElementId", o), a("p", e, {
|
|
16
|
+
ref: r,
|
|
17
|
+
props: [{
|
|
18
|
+
id: o
|
|
19
|
+
}, t]
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "DialogDescription");
|
|
214
23
|
export {
|
|
215
|
-
|
|
216
|
-
Y as formatWithAsYouType,
|
|
217
|
-
H as getLengthIssue,
|
|
218
|
-
U as getSuggestionState,
|
|
219
|
-
q as injectNationalPrefixDisplay,
|
|
220
|
-
M as normalizeInputValue,
|
|
221
|
-
g as sanitizeDigits,
|
|
222
|
-
V as shouldDisplayExplicitCountrySelection,
|
|
223
|
-
v as stripPrefix
|
|
24
|
+
d as DialogDescription
|
|
224
25
|
};
|
|
225
26
|
//# sourceMappingURL=index37.js.map
|
package/dist/index37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":["../src/components/PhoneNumberInput/normalization.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { AsYouType, getCountryCallingCode, validatePhoneNumberLength } from \"libphonenumber-js\"\n\nimport {\n COMMON_IDD_PREFIXES,\n COUNTRY_DIAL_CODES,\n DEFAULT_COUNTRY,\n MAX_DIAL_CODE_LENGTH,\n} from \"./country-options\"\n\n\nexport type LengthIssue = \"TOO_LONG\"\n\nexport function sanitizeDigits(value: string) {\n return value.replace(/\\D/g, \"\")\n}\n\nfunction isDialCodeProgress(digits: string) {\n if (!digits) {\n return true\n }\n\n if (digits.length > MAX_DIAL_CODE_LENGTH) {\n return false\n }\n\n return COUNTRY_DIAL_CODES.some((dial) => dial.startsWith(digits))\n}\n\nconst INVISIBLE_FORMATTING_CHARACTERS =\n /[\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2066-\\u2069\\uFEFF]/g\n\nfunction stripInvisibleFormatting(value: string) {\n return value.replace(INVISIBLE_FORMATTING_CHARACTERS, \"\")\n}\n\nexport function injectNationalPrefixDisplay(\n international: string,\n dialCode: string,\n options: { force?: boolean } = {}\n) {\n // Preserve a user-typed national trunk (e.g. the French \"0\") purely for display\n // so validation can continue to use the canonical E.164 representation internally.\n const { force = false } = options\n const prefix = `+${dialCode}`\n\n if (!international.startsWith(prefix)) {\n return international\n }\n\n if (!force) {\n return international\n }\n\n const remainder = international.slice(prefix.length).trimStart()\n const alreadyHasTrunk = remainder.startsWith(\"0\")\n\n if (alreadyHasTrunk) {\n return international\n }\n\n if (!remainder) {\n return `${prefix} 0`\n }\n\n const [firstGroup, ...restGroups] = remainder.split(\" \")\n const rebuiltFirstGroup = `0${firstGroup ?? \"\"}`\n const rebuiltRemainder = restGroups.length > 0 ? ` ${restGroups.join(\" \")}` : \"\"\n\n return `${prefix} ${rebuiltFirstGroup}${rebuiltRemainder}`.replace(/\\s\\s+/g, \" \").trimEnd()\n}\n\nconst DETECTED_COUNTRY_OVERRIDES: Partial<Record<CountryCode, CountryCode>> = {\n GG: \"GB\",\n JE: \"GB\",\n IM: \"GB\",\n}\n\nfunction canonicalizeDetectedCountry(candidate: CountryCode | undefined): CountryCode | undefined {\n if (!candidate) {\n return undefined\n }\n return DETECTED_COUNTRY_OVERRIDES[candidate] ?? candidate\n}\n\ntype AsYouTypeNumber = ReturnType<AsYouType[\"getNumber\"]>\n\nfunction inferCountryFromDialCode(\n phoneNumber: AsYouTypeNumber,\n baseCountry: CountryCode | undefined,\n normalizedDigits: string\n): CountryCode | undefined {\n if (!phoneNumber) {\n return undefined\n }\n\n if (!normalizedDigits) {\n return undefined\n }\n\n const nationalDigits = phoneNumber.nationalNumber ?? \"\"\n if (nationalDigits.length < 4) {\n return undefined\n }\n\n const dial = phoneNumber.countryCallingCode\n if (!dial) {\n return undefined\n }\n\n const metadataGetter = (phoneNumber as unknown as { getMetadata?: () => unknown }).getMetadata\n const metadata =\n typeof metadataGetter === \"function\"\n ? (metadataGetter() as {\n country_calling_codes?: Record<string, string[]>\n } | null)\n : null\n\n const candidates = metadata?.country_calling_codes?.[dial]\n if (!candidates || candidates.length === 0) {\n return undefined\n }\n\n const canonicalCandidates: CountryCode[] = []\n for (const candidate of candidates) {\n const canonical = canonicalizeDetectedCountry(candidate as CountryCode)\n if (canonical && !canonicalCandidates.includes(canonical)) {\n canonicalCandidates.push(canonical)\n }\n }\n\n if (canonicalCandidates.length === 0) {\n return undefined\n }\n\n if (baseCountry && canonicalCandidates.includes(baseCountry)) {\n return baseCountry\n }\n\n if (canonicalCandidates.includes(DEFAULT_COUNTRY)) {\n return DEFAULT_COUNTRY\n }\n\n return canonicalCandidates[0]\n}\n\nexport function detectNationalPrefixForDisplay(\n rawDigits: string,\n internationalDigits: string,\n dialCode: string,\n hasExplicitInternationalPrefix: boolean\n) {\n if (!rawDigits) {\n return false\n }\n\n if (!hasExplicitInternationalPrefix) {\n return rawDigits.startsWith(\"0\")\n }\n\n if (!dialCode) {\n return false\n }\n\n if (!rawDigits.startsWith(dialCode)) {\n return false\n }\n\n if (!rawDigits.slice(dialCode.length).startsWith(\"0\")) {\n return false\n }\n\n const rawAfterTrunk = rawDigits.slice(dialCode.length + 1)\n const internationalAfterDial = internationalDigits.startsWith(dialCode)\n ? internationalDigits.slice(dialCode.length)\n : internationalDigits\n\n return rawAfterTrunk === internationalAfterDial\n}\n\nfunction stripIddPrefix(digits: string) {\n for (const prefix of COMMON_IDD_PREFIXES) {\n if (digits.startsWith(prefix)) {\n return digits.slice(prefix.length)\n }\n }\n return digits\n}\n\nexport function normalizeInputValue(\n rawValue: string,\n country: CountryCode | undefined,\n options: {\n allowJustPlus?: boolean\n removeNationalPrefix?: boolean\n previousValue?: string\n } = {}\n) {\n const { allowJustPlus = false, removeNationalPrefix = true, previousValue } = options\n const cleaned = stripInvisibleFormatting(rawValue)\n const trimmed = cleaned.trim()\n\n if (!trimmed) {\n return \"\"\n }\n\n if (trimmed === \"+\") {\n return allowJustPlus ? \"+\" : \"\"\n }\n\n if (trimmed.startsWith(\"+\")) {\n const digits = sanitizeDigits(trimmed)\n if (!digits) {\n return allowJustPlus ? \"+\" : \"\"\n }\n const digitsWithoutIdd = stripIddPrefix(digits)\n if (digitsWithoutIdd !== digits) {\n return digitsWithoutIdd ? `+${digitsWithoutIdd}` : allowJustPlus ? \"+\" : \"\"\n }\n if (removeNationalPrefix && country) {\n const dial = getCountryCallingCode(country)\n if (digits.startsWith(dial) && digits.slice(dial.length).startsWith(\"0\")) {\n const withoutPrefix = digits.slice(dial.length + 1)\n return withoutPrefix ? `+${dial}${withoutPrefix}` : `+${dial}`\n }\n }\n return `+${digits}`\n }\n\n const digitsOnly = sanitizeDigits(trimmed)\n if (!digitsOnly) {\n return \"\"\n }\n\n const digitsWithoutIdd = stripIddPrefix(digitsOnly)\n if (digitsWithoutIdd !== digitsOnly) {\n return digitsWithoutIdd ? `+${digitsWithoutIdd}` : allowJustPlus ? \"+\" : \"\"\n }\n\n const previousNormalized = typeof previousValue === \"string\" ? previousValue : \"\"\n const previousDigits =\n previousNormalized && previousNormalized.startsWith(\"+\")\n ? sanitizeDigits(previousNormalized)\n : \"\"\n\n if (previousDigits && previousDigits.length > digitsOnly.length) {\n if (previousDigits.endsWith(digitsOnly)) {\n const removedPrefixLength = previousDigits.length - digitsOnly.length\n if (removedPrefixLength <= MAX_DIAL_CODE_LENGTH) {\n return `+${digitsOnly}`\n }\n }\n }\n\n if (digitsOnly === \"0\") {\n return \"0\"\n }\n\n if (\n removeNationalPrefix &&\n country &&\n digitsOnly.length > 1 &&\n digitsOnly.startsWith(\"0\") &&\n !digitsOnly.startsWith(\"00\")\n ) {\n const dial = getCountryCallingCode(country)\n const withoutPrefix = digitsOnly.slice(1)\n return withoutPrefix ? `+${dial}${withoutPrefix}` : `+${dial}`\n }\n\n if (!country) {\n return digitsOnly\n }\n\n if (digitsOnly.length <= 4) {\n return `+${digitsOnly}`\n }\n\n const dial = getCountryCallingCode(country)\n return `+${dial}${digitsOnly}`\n}\n\nexport function formatWithAsYouType(value: string, baseCountry?: CountryCode) {\n if (value === \"+\") {\n return {\n international: \"+\",\n national: \"\",\n formatted: \"+\",\n phoneNumber: null,\n detectedCountry: undefined,\n inferredCountry: undefined,\n hasExplicitInternationalPrefix: true,\n }\n }\n\n const hasExplicitInternationalPrefix = /^\\s*\\+/.test(value)\n const formatter = baseCountry ? new AsYouType(baseCountry) : new AsYouType()\n const formatted = formatter.input(value)\n const phoneNumber = formatter.getNumber()\n const digits = sanitizeDigits(value)\n const detectedCountry = canonicalizeDetectedCountry(\n (phoneNumber?.country ?? formatter.country ?? undefined) as CountryCode | undefined\n )\n const inferredCountry =\n detectedCountry ?? !phoneNumber\n ? undefined\n : canonicalizeDetectedCountry(\n inferCountryFromDialCode(phoneNumber, baseCountry, digits)\n )\n\n const international = phoneNumber?.formatInternational() ?? formatted\n const national = phoneNumber?.formatNational() ?? sanitizeDigits(international)\n\n return {\n international,\n national,\n formatted,\n phoneNumber,\n detectedCountry,\n inferredCountry,\n hasExplicitInternationalPrefix,\n }\n}\n\nexport function stripPrefix(value: string, prefix: string) {\n return value.startsWith(prefix) ? value.slice(prefix.length) : value\n}\n\nexport function getLengthIssue(value: string, country: CountryCode | undefined): LengthIssue | null {\n if (!country || !value) {\n return null\n }\n\n try {\n const result = validatePhoneNumberLength(value, country)\n return result === \"TOO_LONG\" ? \"TOO_LONG\" : null\n } catch {\n return null\n }\n}\n\ntype SuggestionState = {\n shouldSuggest: boolean\n query: string\n}\n\nexport function getSuggestionState(\n normalized: string,\n baseCountry: CountryCode | undefined,\n phoneNumber: ReturnType<AsYouType[\"getNumber\"]>,\n options: {\n hasRemovedNationalPrefix?: boolean\n detectedCountry?: CountryCode\n hasExplicitInternationalPrefix?: boolean\n } = {}\n): SuggestionState {\n const {\n hasRemovedNationalPrefix = false,\n detectedCountry,\n hasExplicitInternationalPrefix = false,\n } = options\n\n if (!normalized) {\n return { shouldSuggest: false, query: \"\" }\n }\n\n if (normalized === \"+\") {\n return { shouldSuggest: true, query: \"\" }\n }\n\n const digits = sanitizeDigits(normalized)\n if (!digits) {\n return { shouldSuggest: true, query: \"\" }\n }\n\n if (hasRemovedNationalPrefix) {\n return { shouldSuggest: false, query: \"\" }\n }\n\n if (hasExplicitInternationalPrefix && !detectedCountry) {\n if (!isDialCodeProgress(digits)) {\n return { shouldSuggest: false, query: \"\" }\n }\n return { shouldSuggest: true, query: digits }\n }\n\n let dial = phoneNumber?.countryCallingCode ?? null\n if (!dial) {\n if (baseCountry) {\n const baseDial = getCountryCallingCode(baseCountry)\n if (digits.startsWith(baseDial)) {\n dial = baseDial\n }\n } else if (!hasExplicitInternationalPrefix) {\n return { shouldSuggest: false, query: \"\" }\n }\n }\n\n if (!dial) {\n return { shouldSuggest: true, query: digits }\n }\n\n const nationalDigits = stripPrefix(digits, dial)\n if (nationalDigits.length === 0) {\n return { shouldSuggest: true, query: digits }\n }\n\n return { shouldSuggest: false, query: \"\" }\n}\n\nexport function shouldDisplayExplicitCountrySelection(\n suggestion: SuggestionState,\n options: { detectedCountry?: CountryCode; hasExplicitInternationalPrefix?: boolean }\n) {\n if (suggestion.shouldSuggest) {\n return false\n }\n\n const { hasExplicitInternationalPrefix = false, detectedCountry } = options\n\n if (!hasExplicitInternationalPrefix) {\n return true\n }\n\n return Boolean(detectedCountry)\n}\n"],"names":["sanitizeDigits","value","replace","isDialCodeProgress","digits","length","MAX_DIAL_CODE_LENGTH","COUNTRY_DIAL_CODES","some","dial","startsWith","INVISIBLE_FORMATTING_CHARACTERS","stripInvisibleFormatting","injectNationalPrefixDisplay","international","dialCode","options","force","prefix","remainder","slice","trimStart","firstGroup","restGroups","split","rebuiltFirstGroup","rebuiltRemainder","join","trimEnd","DETECTED_COUNTRY_OVERRIDES","GG","JE","IM","canonicalizeDetectedCountry","candidate","inferCountryFromDialCode","phoneNumber","baseCountry","normalizedDigits","nationalNumber","countryCallingCode","metadataGetter","getMetadata","candidates","country_calling_codes","canonicalCandidates","canonical","includes","push","DEFAULT_COUNTRY","detectNationalPrefixForDisplay","rawDigits","internationalDigits","hasExplicitInternationalPrefix","rawAfterTrunk","internationalAfterDial","stripIddPrefix","COMMON_IDD_PREFIXES","normalizeInputValue","rawValue","country","allowJustPlus","removeNationalPrefix","previousValue","trimmed","trim","digitsWithoutIdd","getCountryCallingCode","withoutPrefix","digitsOnly","previousNormalized","previousDigits","endsWith","formatWithAsYouType","national","formatted","detectedCountry","undefined","inferredCountry","test","formatter","AsYouType","input","getNumber","formatInternational","formatNational","stripPrefix","getLengthIssue","validatePhoneNumberLength","getSuggestionState","normalized","hasRemovedNationalPrefix","shouldSuggest","query","baseDial","shouldDisplayExplicitCountrySelection","suggestion","Boolean"],"mappings":";;;;AAaO,SAASA,EAAeC,GAAe;AAC5C,SAAOA,EAAMC,QAAQ,OAAO,EAAE;AAChC;AAEA,SAASC,EAAmBC,GAAgB;AAC1C,SAAKA,IAIDA,EAAOC,SAASC,IACX,KAGFC,EAAmBC,KAAMC,CAAAA,MAASA,EAAKC,WAAWN,CAAM,CAAC,IAPvD;AAQX;AAEA,MAAMO,IACJ;AAEF,SAASC,EAAyBX,GAAe;AAC/C,SAAOA,EAAMC,QAAQS,GAAiC,EAAE;AAC1D;AAEO,SAASE,EACdC,GACAC,GACAC,IAA+B,CAAA,GAC/B;AAGA,QAAM;AAAA,IAAEC,OAAAA,IAAQ;AAAA,EAAA,IAAUD,GACpBE,IAAS,IAAIH,CAAQ;AAM3B,MAJI,CAACD,EAAcJ,WAAWQ,CAAM,KAIhC,CAACD;AACH,WAAOH;AAGT,QAAMK,IAAYL,EAAcM,MAAMF,EAAOb,MAAM,EAAEgB,UAAAA;AAGrD,MAFwBF,EAAUT,WAAW,GAAG;AAG9C,WAAOI;AAGT,MAAI,CAACK;AACH,WAAO,GAAGD,CAAM;AAGlB,QAAM,CAACI,GAAY,GAAGC,CAAU,IAAIJ,EAAUK,MAAM,GAAG,GACjDC,IAAoB,IAAIH,KAAc,EAAE,IACxCI,IAAmBH,EAAWlB,SAAS,IAAI,IAAIkB,EAAWI,KAAK,GAAG,CAAC,KAAK;AAE9E,SAAO,GAAGT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KzE,EAAmBC,CAAM,IAGvB;AAAA,MAAEwF,eAAe;AAAA,MAAMC,OAAOzF;AAAAA,IAAAA,IAF5B;AAAA,MAAEwF,eAAe;AAAA,MAAOC,OAAO;AAAA,IAAA;AAK1C,MAAIpF,IAAO2B,GAAaI,sBAAsB;AAC9C,MAAI,CAAC/B;AACH,QAAI4B,GAAa;AACf,YAAMyD,IAAW3B,EAAsB9B,CAAW;AAClD,MAAIjC,EAAOM,WAAWoF,CAAQ,MAC5BrF,IAAOqF;AAAAA,IAEX,WAAW,CAACzC;AACV,aAAO;AAAA,QAAEuC,eAAe;AAAA,QAAOC,OAAO;AAAA,MAAA;AAAA;AAI1C,SAAKpF,IAIkB6E,EAAYlF,GAAQK,CAAI,EAC5BJ,WAAW,IACrB;AAAA,IAAEuF,eAAe;AAAA,IAAMC,OAAOzF;AAAAA,EAAAA,IAGhC;AAAA,IAAEwF,eAAe;AAAA,IAAOC,OAAO;AAAA,EAAA,IAR7B;AAAA,IAAED,eAAe;AAAA,IAAMC,OAAOzF;AAAAA,EAAAA;AASzC;AAEO,SAAS2F,EACdC,GACAhF,GACA;AACA,MAAIgF,EAAWJ;AACb,WAAO;AAGT,QAAM;AAAA,IAAEvC,gCAAAA,IAAiC;AAAA,IAAOuB,iBAAAA;AAAAA,EAAAA,IAAoB5D;AAEpE,SAAKqC,IAIE4C,EAAQrB,IAHN;AAIX;"}
|
|
1
|
+
{"version":3,"file":"index37.js","sources":["../../../node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.js\";\nimport { useRenderElement } from \"../../internals/useRenderElement.js\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.js\";\n/**\n * A paragraph with additional information about the dialog.\n * Renders a `<p>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogDescription = /*#__PURE__*/React.forwardRef(function DialogDescription(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n id: idProp,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useDialogRootContext();\n const id = useBaseUiId(idProp);\n store.useSyncedValueWithCleanup('descriptionElementId', id);\n return useRenderElement('p', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogDescription.displayName = \"DialogDescription\";"],"names":["DialogDescription","React","componentProps","forwardedRef","render","className","style","idProp","elementProps","store","useDialogRootContext","id","useBaseUiId","useRenderElement"],"mappings":";;;;AAYY,MAACA,IAAiC,gBAAAC,EAAM,WAAW,SAA2BC,GAAgBC,GAAc;AACtH,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,IAAIC;AAAA,IACJ,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAKC,EAAYL,CAAM;AAC7B,SAAAE,EAAM,0BAA0B,wBAAwBE,CAAE,GACnDE,EAAiB,KAAKX,GAAgB;AAAA,IAC3C,KAAKC;AAAA,IACL,OAAO,CAAC;AAAA,MACN,IAAAQ;AAAA,IACN,GAAOH,CAAY;AAAA,EACnB,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAkB,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index370.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NOOP as u } from "./index285.js";
|
|
2
|
+
let e = 0;
|
|
3
|
+
function s(c, t = {}) {
|
|
4
|
+
const {
|
|
5
|
+
preventScroll: o = !1,
|
|
6
|
+
cancelPrevious: a = !0,
|
|
7
|
+
sync: i = !1
|
|
8
|
+
} = t;
|
|
9
|
+
a && cancelAnimationFrame(e);
|
|
10
|
+
const r = () => c?.focus({
|
|
11
|
+
preventScroll: o
|
|
12
|
+
});
|
|
13
|
+
if (i)
|
|
14
|
+
return r(), u;
|
|
15
|
+
const n = requestAnimationFrame(r);
|
|
16
|
+
return e = n, () => {
|
|
17
|
+
e === n && (cancelAnimationFrame(n), e = 0);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
s as enqueueFocus
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index370.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js"],"sourcesContent":["import { NOOP } from '@base-ui/utils/empty';\nlet rafId = 0;\nexport function enqueueFocus(el, options = {}) {\n const {\n preventScroll = false,\n cancelPrevious = true,\n sync = false\n } = options;\n if (cancelPrevious) {\n cancelAnimationFrame(rafId);\n }\n const exec = () => el?.focus({\n preventScroll\n });\n if (sync) {\n exec();\n return NOOP;\n }\n const currentRafId = requestAnimationFrame(exec);\n rafId = currentRafId;\n return () => {\n if (rafId === currentRafId) {\n cancelAnimationFrame(currentRafId);\n rafId = 0;\n }\n };\n}"],"names":["rafId","enqueueFocus","el","options","preventScroll","cancelPrevious","sync","exec","NOOP","currentRafId"],"mappings":";AACA,IAAIA,IAAQ;AACL,SAASC,EAAaC,GAAIC,IAAU,IAAI;AAC7C,QAAM;AAAA,IACJ,eAAAC,IAAgB;AAAA,IAChB,gBAAAC,IAAiB;AAAA,IACjB,MAAAC,IAAO;AAAA,EACX,IAAMH;AACJ,EAAIE,KACF,qBAAqBL,CAAK;AAE5B,QAAMO,IAAO,MAAML,GAAI,MAAM;AAAA,IAC3B,eAAAE;AAAA,EACJ,CAAG;AACD,MAAIE;AACF,WAAAC,EAAI,GACGC;AAET,QAAMC,IAAe,sBAAsBF,CAAI;AAC/C,SAAAP,IAAQS,GACD,MAAM;AACX,IAAIT,MAAUS,MACZ,qBAAqBA,CAAY,GACjCT,IAAQ;AAAA,EAEZ;AACF;","x_google_ignoreList":[0]}
|