@rpcbase/ui 0.242.0 → 0.244.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
- package/dist/index105.js +36 -36
- package/dist/index117.js +6 -6
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index149.js.map +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +91 -91
- package/dist/index16.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +58 -14
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -68
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +87 -37
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +19 -13
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +16 -23
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -111
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +6 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +5 -4
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +7 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -19
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -11
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +12 -176
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -279
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -4
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +14 -28
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -126
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -63
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +6 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -16
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -29
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -69
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +5 -20
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -66
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +8 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -11
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -3
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -50
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +10 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +9 -29
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +10 -16
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +10 -5
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +9 -21
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -53
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -20
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -41
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -39
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +7 -46
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +13 -67
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +7 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +10 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +10 -11
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +21 -13
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -18
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +9 -36
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +9 -239
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -252
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +5 -68
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +15 -98
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +9 -83
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +18 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +19 -28
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +12 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +29 -34
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +12 -17
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +25 -3
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -26
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +20 -29
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +67 -4
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -78
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -272
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +3 -10
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +49 -24
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -17
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +27 -123
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +15 -4
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -65
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +22 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +53 -7
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +20 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +41 -3
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +39 -10
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +46 -8
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +22 -132
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +16 -396
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +21 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +68 -50
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +17 -11
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -27
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -11
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +30 -58
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +13 -8
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +15 -84
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +35 -18
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +69 -16
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +239 -5
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +251 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +68 -6
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +99 -4
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +176 -6
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +83 -16
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +13 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -4
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +29 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +16 -9
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +38 -14
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +35 -14
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +68 -4
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +17 -5
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -6
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +111 -5
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +25 -53
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +28 -8
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -5
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +126 -4
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +4 -8
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +78 -4
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +272 -4
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +11 -3
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +28 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +16 -10
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +10 -9
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +25 -10
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +16 -10
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +125 -9
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +5 -6
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +65 -5
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +14 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +14 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +11 -6
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +5 -16
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +3 -7
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +7 -10
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +133 -21
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +279 -8
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +399 -9
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +5 -10
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +52 -4
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +11 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +26 -15
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +11 -9
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +4 -18
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +14 -20
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +4 -13
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -30
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +11 -12
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +63 -25
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +8 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js.map +1 -1
- package/dist/index316.js.map +1 -1
- package/dist/index317.js.map +1 -1
- package/dist/index318.js.map +1 -1
- package/dist/index319.js.map +1 -1
- package/dist/index320.js.map +1 -1
- package/dist/index321.js.map +1 -1
- package/dist/index322.js.map +1 -1
- package/dist/index323.js.map +1 -1
- package/dist/index324.js.map +1 -1
- package/dist/index325.js.map +1 -1
- package/dist/index326.js.map +1 -1
- package/dist/index327.js.map +1 -1
- package/dist/index328.js.map +1 -1
- package/dist/index329.js.map +1 -1
- package/dist/index330.js.map +1 -1
- package/dist/index331.js.map +1 -1
- package/dist/index332.js.map +1 -1
- package/dist/index333.js.map +1 -1
- package/dist/index334.js.map +1 -1
- package/dist/index335.js.map +1 -1
- package/dist/index336.js.map +1 -1
- package/dist/index337.js.map +1 -1
- package/dist/index338.js.map +1 -1
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +2 -2
- package/dist/index34.js.map +1 -1
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +4 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +18 -12
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +12 -8
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +8 -13
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +11 -3
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +8 -3
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +12 -16
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -51
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +3 -5
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +4 -62
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +14 -66
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +10 -7
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +6 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +4 -11
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +3 -22
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +8 -16
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +52 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +15 -143
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +8 -80
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +11 -11
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +5 -61
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +21 -15
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +45 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +18 -6
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +5 -3
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +199 -10
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +73 -20
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +122 -43
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +17 -17
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +62 -5
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +61 -195
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +11 -73
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +20 -122
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +144 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +79 -17
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +61 -12
- package/dist/index375.js.map +1 -1
- package/dist/index376.js.map +1 -1
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -8
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -27
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +4 -138
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +15 -12
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +8 -46
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -21
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +542 -72
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +46 -11
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +17 -3
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +5 -71
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +7 -35
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +7 -7
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +7 -15
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +12 -3
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +9 -3
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +12 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +3 -5
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +3 -4
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +7 -16
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +12 -8
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +46 -5
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +137 -4
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +7 -544
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +27 -47
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +3 -17
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +21 -5
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +75 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +12 -7
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +3 -7
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +71 -11
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +35 -8
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +15 -12
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +5 -3
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +55 -14
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +66 -490
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +31 -8
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +9 -2
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +150 -41
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +108 -56
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +6 -6
- package/dist/index418.js.map +1 -1
- package/dist/index420.js +38 -49
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +50 -50
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +7 -32
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -68
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +55 -31
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +56 -9
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +3 -153
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +15 -108
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +491 -4
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +32 -55
- package/dist/index429.js.map +1 -1
- package/dist/index44.js.map +1 -1
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +36 -36
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +29 -29
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +12 -12
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +4 -4
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +1 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +21 -21
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +5 -5
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +5 -5
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +5 -5
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +17 -17
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +5 -5
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +3 -3
- package/dist/index62.js.map +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js.map +1 -1
- package/package.json +1 -1
package/dist/index429.js
CHANGED
|
@@ -1,59 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
20
|
-
switch (t) {
|
|
21
|
-
case "a":
|
|
22
|
-
case "aa":
|
|
23
|
-
return r.toUpperCase();
|
|
24
|
-
case "aaa":
|
|
25
|
-
return r;
|
|
26
|
-
case "aaaaa":
|
|
27
|
-
return r[0];
|
|
28
|
-
default:
|
|
29
|
-
return r === "am" ? "a.m." : "p.m.";
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// Hour [1-12]
|
|
33
|
-
h(e, t) {
|
|
34
|
-
return n(e.getHours() % 12 || 12, t.length);
|
|
35
|
-
},
|
|
36
|
-
// Hour [0-23]
|
|
37
|
-
H(e, t) {
|
|
38
|
-
return n(e.getHours(), t.length);
|
|
39
|
-
},
|
|
40
|
-
// Minute
|
|
41
|
-
m(e, t) {
|
|
42
|
-
return n(e.getMinutes(), t.length);
|
|
43
|
-
},
|
|
44
|
-
// Second
|
|
45
|
-
s(e, t) {
|
|
46
|
-
return n(e.getSeconds(), t.length);
|
|
47
|
-
},
|
|
48
|
-
// Fraction of second
|
|
49
|
-
S(e, t) {
|
|
50
|
-
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
|
51
|
-
a * Math.pow(10, r - 3)
|
|
52
|
-
);
|
|
53
|
-
return n(s, t.length);
|
|
1
|
+
function r() {
|
|
2
|
+
if (typeof navigator > "u")
|
|
3
|
+
return {
|
|
4
|
+
userAgent: "",
|
|
5
|
+
platform: "",
|
|
6
|
+
maxTouchPoints: 0
|
|
7
|
+
};
|
|
8
|
+
if (process.env.NODE_ENV !== "production") {
|
|
9
|
+
const a = navigator.userAgentData;
|
|
10
|
+
if (a && Array.isArray(a.brands))
|
|
11
|
+
return {
|
|
12
|
+
userAgent: a.brands.map(({
|
|
13
|
+
brand: o,
|
|
14
|
+
version: t
|
|
15
|
+
}) => `${o}/${t}`).join(" "),
|
|
16
|
+
platform: a.platform ?? navigator.platform ?? "",
|
|
17
|
+
maxTouchPoints: navigator.maxTouchPoints ?? 0
|
|
18
|
+
};
|
|
54
19
|
}
|
|
55
|
-
|
|
20
|
+
return {
|
|
21
|
+
userAgent: navigator.userAgent,
|
|
22
|
+
platform: navigator.platform ?? "",
|
|
23
|
+
maxTouchPoints: navigator.maxTouchPoints ?? 0
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const {
|
|
27
|
+
userAgent: n,
|
|
28
|
+
platform: e,
|
|
29
|
+
maxTouchPoints: s
|
|
30
|
+
} = r(), i = n.toLowerCase(), u = e.toLowerCase();
|
|
56
31
|
export {
|
|
57
|
-
|
|
32
|
+
u as lowerPlatform,
|
|
33
|
+
i as lowerUserAgent,
|
|
34
|
+
s as maxTouchPoints
|
|
58
35
|
};
|
|
59
36
|
//# sourceMappingURL=index429.js.map
|
package/dist/index429.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index429.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index429.js","sources":["../../../node_modules/@base-ui/utils/platform/shared.mjs"],"sourcesContent":["/**\n * Reads `navigator.userAgent` / `navigator.platform` (legacy but universally\n * supported) into a normalized shape. In development, prefers the modern\n * `navigator.userAgentData` API on Chromium to avoid DevTools warnings about\n * the deprecated reads; that branch is dead-code-eliminated in production\n * builds to keep the bundle small.\n *\n * Returns empty/zero values when `navigator` is undefined (SSR), so every\n * derived flag safely evaluates to `false`.\n */\nfunction readRawData() {\n if (typeof navigator === 'undefined') {\n return {\n userAgent: '',\n platform: '',\n maxTouchPoints: 0\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return {\n userAgent: uaData.brands.map(({\n brand,\n version\n }) => `${brand}/${version}`).join(' '),\n platform: uaData.platform ?? navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n }\n }\n return {\n userAgent: navigator.userAgent,\n platform: navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n}\nconst {\n userAgent,\n platform,\n maxTouchPoints\n} = readRawData();\nexport const lowerUserAgent = userAgent.toLowerCase();\nexport const lowerPlatform = platform.toLowerCase();\nexport { maxTouchPoints };"],"names":["readRawData","uaData","brand","version","userAgent","platform","maxTouchPoints","lowerUserAgent","lowerPlatform"],"mappings":"AAUA,SAASA,IAAc;AACrB,MAAI,OAAO,YAAc;AACvB,WAAO;AAAA,MACL,WAAW;AAAA,MACX,UAAU;AAAA,MACV,gBAAgB;AAAA,IACtB;AAEE,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAS,UAAU;AACzB,QAAIA,KAAU,MAAM,QAAQA,EAAO,MAAM;AACvC,aAAO;AAAA,QACL,WAAWA,EAAO,OAAO,IAAI,CAAC;AAAA,UAC5B,OAAAC;AAAA,UACA,SAAAC;AAAA,QACV,MAAc,GAAGD,CAAK,IAAIC,CAAO,EAAE,EAAE,KAAK,GAAG;AAAA,QACrC,UAAUF,EAAO,YAAY,UAAU,YAAY;AAAA,QACnD,gBAAgB,UAAU,kBAAkB;AAAA,MACpD;AAAA,EAEE;AACA,SAAO;AAAA,IACL,WAAW,UAAU;AAAA,IACrB,UAAU,UAAU,YAAY;AAAA,IAChC,gBAAgB,UAAU,kBAAkB;AAAA,EAChD;AACA;AACK,MAAC;AAAA,EACJ,WAAAG;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AACF,IAAIN,EAAW,GACFO,IAAiBH,EAAU,YAAW,GACtCI,IAAgBH,EAAS,YAAW;","x_google_ignoreList":[0]}
|
package/dist/index44.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index44.js","sources":["../src/components/PhoneNumberInput/country-options.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { getCountryCallingCode } from \"libphonenumber-js\"\n\nimport type { CountryOption, PhoneNumberSelectedCountry } from \"./types\"\nimport { getCountryList } from \"./countries\"\n\n\nexport const DEFAULT_COUNTRY: CountryCode = \"US\"\nconst COUNTRY_OPTIONS = getCountryList()\n\nconst COUNTRY_OPTIONS_CACHE = new Map<string, CountryOption[]>()\nconst DEFAULT_LOCALE_CACHE_KEY = \"__default_locale__\"\nexport const COUNTRY_DIAL_CODES = Array.from(\n new Set(COUNTRY_OPTIONS.map((code) => getCountryCallingCode(code)))\n).sort((a, b) => b.length - a.length)\nexport const MAX_DIAL_CODE_LENGTH = COUNTRY_DIAL_CODES.reduce(\n (max, dial) => Math.max(max, dial.length),\n 0\n)\nexport const COMMON_IDD_PREFIXES = [\"0011\", \"001\", \"011\", \"00\", \"810\"]\n\nexport function getValidCountry(input: CountryCode | undefined) {\n if (!input) {\n return DEFAULT_COUNTRY\n }\n\n return COUNTRY_OPTIONS.includes(input) ? input : DEFAULT_COUNTRY\n}\n\nfunction createDisplayNames(locale?: string | string[]) {\n if (typeof Intl === \"undefined\" || typeof Intl.DisplayNames === \"undefined\") {\n return null\n }\n\n try {\n const locales = Array.isArray(locale) ? locale : locale ? [locale] : undefined\n return new Intl.DisplayNames(locales, { type: \"region\" })\n } catch {\n return null\n }\n}\n\nfunction buildCountryOptions(locale?: string | string[]) {\n const displayNames = createDisplayNames(locale)\n const englishDisplayNames = createDisplayNames(\"en\")\n\n return COUNTRY_OPTIONS\n .map((country) => {\n const dialCode = getCountryCallingCode(country)\n const localizedName = displayNames?.of(country) ?? englishDisplayNames?.of(country) ?? country\n const englishName = englishDisplayNames?.of(country) ?? localizedName\n const aliasTokens = getCountryAliases(country)\n const searchableTokens = Array.from(\n new Set(\n [localizedName, englishName, country.toUpperCase(), country.toLowerCase(), ...aliasTokens].filter(\n Boolean\n )\n )\n ) as string[]\n return {\n value: country,\n name: localizedName,\n dialCode,\n label: `${localizedName} (+${dialCode})`,\n flag: countryCodeToFlagEmoji(country),\n searchableTokens,\n normalizedSearchableTokens: searchableTokens.map((token) => normalizeSearchValue(token)),\n }\n })\n .sort((a, b) => {\n const priorityA = getCountryPriority(a.value)\n const priorityB = getCountryPriority(b.value)\n if (priorityA !== priorityB) {\n return priorityA - priorityB\n }\n return a.name.localeCompare(b.name)\n })\n}\n\nfunction getCountryPriority(code: CountryCode) {\n if (code === \"US\") return 0\n if (code === \"CA\") return 1\n if (getCountryCallingCode(code) === \"1\") return 2\n return 3\n}\n\nexport function getLocaleCacheKey(locale?: string | string[]) {\n if (!locale) {\n return DEFAULT_LOCALE_CACHE_KEY\n }\n if (Array.isArray(locale)) {\n return locale.join(\"\\u0000\")\n }\n return locale\n}\n\nexport function parseLocaleCacheKey(cacheKey: string): string | string[] | undefined {\n if (cacheKey === DEFAULT_LOCALE_CACHE_KEY) {\n return undefined\n }\n\n if (cacheKey.includes(\"\\u0000\")) {\n const parts = cacheKey.split(\"\\u0000\").filter(Boolean)\n if (parts.length === 0) {\n return undefined\n }\n if (parts.length === 1) {\n return parts[0] ?? undefined\n }\n return parts\n }\n\n return cacheKey\n}\n\nexport function getCachedCountryOptions(locale: string | string[] | undefined, cacheKey: string) {\n const cached = COUNTRY_OPTIONS_CACHE.get(cacheKey)\n if (cached) {\n return cached\n }\n const built = buildCountryOptions(locale)\n COUNTRY_OPTIONS_CACHE.set(cacheKey, built)\n return built\n}\n\nexport function toSelectedCountry(option: CountryOption): PhoneNumberSelectedCountry {\n return {\n code: option.value,\n name: option.name,\n dialCode: option.dialCode,\n flag: option.flag,\n }\n}\n\nexport function buildFallbackSelectedCountry(country: CountryCode): PhoneNumberSelectedCountry {\n return {\n code: country,\n name: country,\n dialCode: getCountryCallingCode(country),\n flag: countryCodeToFlagEmoji(country),\n }\n}\n\nfunction countryCodeToFlagEmoji(country: CountryCode) {\n const upper = country?.toUpperCase()\n\n if (!upper || upper.length !== 2 || /[^A-Z]/.test(upper)) {\n return \"\"\n }\n\n const base = 127397\n return String.fromCodePoint(\n upper.charCodeAt(0) + base,\n upper.charCodeAt(1) + base\n )\n}\n\nconst DIACRITICS_REGEX = /[\\u0300-\\u036f]/g\n\nfunction stripDiacritics(value: string) {\n return value.normalize(\"NFD\").replace(DIACRITICS_REGEX, \"\")\n}\n\nexport function normalizeSearchValue(value: string) {\n return stripDiacritics(value).toLowerCase()\n}\n\nexport function optionMatchIndex(tokens: string[], query: string) {\n let best = Number.MAX_SAFE_INTEGER\n for (const token of tokens) {\n const index = token.indexOf(query)\n if (index >= 0 && index < best) {\n best = index\n }\n }\n return best === Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : best\n}\n\nfunction getCountryAliases(code: CountryCode): string[] {\n switch (code) {\n case \"US\":\n return [\"USA\", \"United States\", \"America\", \"United States of America\"]\n case \"GB\":\n return [\"UK\", \"United Kingdom\", \"Great Britain\", \"England\"]\n case \"AE\":\n return [\"UAE\", \"United Arab Emirates\"]\n case \"KR\":\n return [\"South Korea\", \"Korea\"]\n case \"CN\":\n return [\"China\", \"PRC\"]\n case \"CD\":\n return [\"DRC\", \"Congo-Kinshasa\"]\n case \"CG\":\n return [\"Congo-Brazzaville\"]\n case \"BR\":\n return [\"Brazil\"]\n default:\n return []\n }\n}\n\n"],"names":["DEFAULT_COUNTRY","COUNTRY_OPTIONS","getCountryList","COUNTRY_OPTIONS_CACHE","Map","DEFAULT_LOCALE_CACHE_KEY","COUNTRY_DIAL_CODES","Array","from","Set","map","code","getCountryCallingCode","sort","a","b","length","reduce","max","dial","Math","COMMON_IDD_PREFIXES","getValidCountry","input","includes","createDisplayNames","locale","Intl","DisplayNames","locales","isArray","undefined","type","buildCountryOptions","displayNames","englishDisplayNames","country","dialCode","localizedName","of","englishName","aliasTokens","getCountryAliases","searchableTokens","toUpperCase","toLowerCase","filter","Boolean","value","name","label","flag","countryCodeToFlagEmoji","normalizedSearchableTokens","token","normalizeSearchValue","priorityA","getCountryPriority","priorityB","localeCompare","getLocaleCacheKey","join","parseLocaleCacheKey","cacheKey","parts","split","getCachedCountryOptions","cached","get","built","set","toSelectedCountry","option","buildFallbackSelectedCountry","upper","test","base","String","fromCodePoint","charCodeAt","DIACRITICS_REGEX","stripDiacritics","normalize","replace","optionMatchIndex","tokens","query","best","Number","MAX_SAFE_INTEGER","index","indexOf"],"mappings":";;AAOO,MAAMA,IAA+B,MACtCC,IAAkBC,EAAAA,GAElBC,wBAA4BC,IAAAA,GAC5BC,IAA2B,sBACpBC,IAAqBC,MAAMC,KACtC,IAAIC,IAAIR,EAAgBS,I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,aAAO,CAAC,eAAe,OAAO;AAAA,IAChC,KAAK;AACH,aAAO,CAAC,SAAS,KAAK;AAAA,IACxB,KAAK;AACH,aAAO,CAAC,OAAO,gBAAgB;AAAA,IACjC,KAAK;AACH,aAAO,CAAC,mBAAmB;AAAA,IAC7B,KAAK;AACH,aAAO,CAAC,QAAQ;AAAA,IAClB;AACE,aAAO,CAAA;AAAA,EAAA;AAEb;"}
|
|
1
|
+
{"version":3,"file":"index44.js","sources":["../src/components/PhoneNumberInput/country-options.ts"],"sourcesContent":["import type { CountryCode } from \"libphonenumber-js\"\nimport { getCountryCallingCode } from \"libphonenumber-js\"\n\nimport type { CountryOption, PhoneNumberSelectedCountry } from \"./types\"\nimport { getCountryList } from \"./countries\"\n\n\nexport const DEFAULT_COUNTRY: CountryCode = \"US\"\nconst COUNTRY_OPTIONS = getCountryList()\n\nconst COUNTRY_OPTIONS_CACHE = new Map<string, CountryOption[]>()\nconst DEFAULT_LOCALE_CACHE_KEY = \"__default_locale__\"\nexport const COUNTRY_DIAL_CODES = Array.from(\n new Set(COUNTRY_OPTIONS.map((code) => getCountryCallingCode(code)))\n).sort((a, b) => b.length - a.length)\nexport const MAX_DIAL_CODE_LENGTH = COUNTRY_DIAL_CODES.reduce(\n (max, dial) => Math.max(max, dial.length),\n 0\n)\nexport const COMMON_IDD_PREFIXES = [\"0011\", \"001\", \"011\", \"00\", \"810\"]\n\nexport function getValidCountry(input: CountryCode | undefined) {\n if (!input) {\n return DEFAULT_COUNTRY\n }\n\n return COUNTRY_OPTIONS.includes(input) ? input : DEFAULT_COUNTRY\n}\n\nfunction createDisplayNames(locale?: string | string[]) {\n if (typeof Intl === \"undefined\" || typeof Intl.DisplayNames === \"undefined\") {\n return null\n }\n\n try {\n const locales = Array.isArray(locale) ? locale : locale ? [locale] : undefined\n return new Intl.DisplayNames(locales, { type: \"region\" })\n } catch {\n return null\n }\n}\n\nfunction buildCountryOptions(locale?: string | string[]) {\n const displayNames = createDisplayNames(locale)\n const englishDisplayNames = createDisplayNames(\"en\")\n\n return COUNTRY_OPTIONS\n .map((country) => {\n const dialCode = getCountryCallingCode(country)\n const localizedName = displayNames?.of(country) ?? englishDisplayNames?.of(country) ?? country\n const englishName = englishDisplayNames?.of(country) ?? localizedName\n const aliasTokens = getCountryAliases(country)\n const searchableTokens = Array.from(\n new Set(\n [localizedName, englishName, country.toUpperCase(), country.toLowerCase(), ...aliasTokens].filter(\n Boolean\n )\n )\n ) as string[]\n return {\n value: country,\n name: localizedName,\n dialCode,\n label: `${localizedName} (+${dialCode})`,\n flag: countryCodeToFlagEmoji(country),\n searchableTokens,\n normalizedSearchableTokens: searchableTokens.map((token) => normalizeSearchValue(token)),\n }\n })\n .sort((a, b) => {\n const priorityA = getCountryPriority(a.value)\n const priorityB = getCountryPriority(b.value)\n if (priorityA !== priorityB) {\n return priorityA - priorityB\n }\n return a.name.localeCompare(b.name)\n })\n}\n\nfunction getCountryPriority(code: CountryCode) {\n if (code === \"US\") return 0\n if (code === \"CA\") return 1\n if (getCountryCallingCode(code) === \"1\") return 2\n return 3\n}\n\nexport function getLocaleCacheKey(locale?: string | string[]) {\n if (!locale) {\n return DEFAULT_LOCALE_CACHE_KEY\n }\n if (Array.isArray(locale)) {\n return locale.join(\"\\u0000\")\n }\n return locale\n}\n\nexport function parseLocaleCacheKey(cacheKey: string): string | string[] | undefined {\n if (cacheKey === DEFAULT_LOCALE_CACHE_KEY) {\n return undefined\n }\n\n if (cacheKey.includes(\"\\u0000\")) {\n const parts = cacheKey.split(\"\\u0000\").filter(Boolean)\n if (parts.length === 0) {\n return undefined\n }\n if (parts.length === 1) {\n return parts[0] ?? undefined\n }\n return parts\n }\n\n return cacheKey\n}\n\nexport function getCachedCountryOptions(locale: string | string[] | undefined, cacheKey: string) {\n const cached = COUNTRY_OPTIONS_CACHE.get(cacheKey)\n if (cached) {\n return cached\n }\n const built = buildCountryOptions(locale)\n COUNTRY_OPTIONS_CACHE.set(cacheKey, built)\n return built\n}\n\nexport function toSelectedCountry(option: CountryOption): PhoneNumberSelectedCountry {\n return {\n code: option.value,\n name: option.name,\n dialCode: option.dialCode,\n flag: option.flag,\n }\n}\n\nexport function buildFallbackSelectedCountry(country: CountryCode): PhoneNumberSelectedCountry {\n return {\n code: country,\n name: country,\n dialCode: getCountryCallingCode(country),\n flag: countryCodeToFlagEmoji(country),\n }\n}\n\nfunction countryCodeToFlagEmoji(country: CountryCode) {\n const upper = country?.toUpperCase()\n\n if (!upper || upper.length !== 2 || /[^A-Z]/.test(upper)) {\n return \"\"\n }\n\n const base = 127397\n return String.fromCodePoint(\n upper.charCodeAt(0) + base,\n upper.charCodeAt(1) + base\n )\n}\n\nconst DIACRITICS_REGEX = /[\\u0300-\\u036f]/g\n\nfunction stripDiacritics(value: string) {\n return value.normalize(\"NFD\").replace(DIACRITICS_REGEX, \"\")\n}\n\nexport function normalizeSearchValue(value: string) {\n return stripDiacritics(value).toLowerCase()\n}\n\nexport function optionMatchIndex(tokens: string[], query: string) {\n let best = Number.MAX_SAFE_INTEGER\n for (const token of tokens) {\n const index = token.indexOf(query)\n if (index >= 0 && index < best) {\n best = index\n }\n }\n return best === Number.MAX_SAFE_INTEGER ? Number.MAX_SAFE_INTEGER : best\n}\n\nfunction getCountryAliases(code: CountryCode): string[] {\n switch (code) {\n case \"US\":\n return [\"USA\", \"United States\", \"America\", \"United States of America\"]\n case \"GB\":\n return [\"UK\", \"United Kingdom\", \"Great Britain\", \"England\"]\n case \"AE\":\n return [\"UAE\", \"United Arab Emirates\"]\n case \"KR\":\n return [\"South Korea\", \"Korea\"]\n case \"CN\":\n return [\"China\", \"PRC\"]\n case \"CD\":\n return [\"DRC\", \"Congo-Kinshasa\"]\n case \"CG\":\n return [\"Congo-Brazzaville\"]\n case \"BR\":\n return [\"Brazil\"]\n default:\n return []\n }\n}\n\n"],"names":["DEFAULT_COUNTRY","COUNTRY_OPTIONS","getCountryList","COUNTRY_OPTIONS_CACHE","Map","DEFAULT_LOCALE_CACHE_KEY","COUNTRY_DIAL_CODES","Array","from","Set","map","code","getCountryCallingCode","sort","a","b","length","reduce","max","dial","Math","COMMON_IDD_PREFIXES","getValidCountry","input","includes","createDisplayNames","locale","Intl","DisplayNames","locales","isArray","undefined","type","buildCountryOptions","displayNames","englishDisplayNames","country","dialCode","localizedName","of","englishName","aliasTokens","getCountryAliases","searchableTokens","toUpperCase","toLowerCase","filter","Boolean","value","name","label","flag","countryCodeToFlagEmoji","normalizedSearchableTokens","token","normalizeSearchValue","priorityA","getCountryPriority","priorityB","localeCompare","getLocaleCacheKey","join","parseLocaleCacheKey","cacheKey","parts","split","getCachedCountryOptions","cached","get","built","set","toSelectedCountry","option","buildFallbackSelectedCountry","upper","test","base","String","fromCodePoint","charCodeAt","DIACRITICS_REGEX","stripDiacritics","normalize","replace","optionMatchIndex","tokens","query","best","Number","MAX_SAFE_INTEGER","index","indexOf"],"mappings":";;AAOO,MAAMA,IAA+B,MACtCC,IAAkBC,EAAAA,GAElBC,wBAA4BC,IAAAA,GAC5BC,IAA2B,sBACpBC,IAAqBC,MAAMC,KACtC,IAAIC,IAAIR,EAAgBS,IAAKC,OAASC,EAAsBD,CAAI,CAAC,CAAC,CACpE,EAAEE,KAAK,CAACC,GAAGC,MAAMA,EAAEC,SAASF,EAAEE,MAAM;AACAV,EAAmBW,OACrD,CAACC,GAAKC,MAASC,KAAKF,IAAIA,GAAKC,EAAKH,MAAM,GACxC,CACF;AACO,MAAMK,IAAsB,CAAC,QAAQ,OAAO,OAAO,MAAM,KAAK;AAE9D,SAASC,EAAgBC,GAAgC;AAC9D,SAAKA,KAIEtB,EAAgBuB,SAASD,CAAK,IAAIA,IAHhCvB;AAIX;AAEA,SAASyB,EAAmBC,GAA4B;AACtD,MAAI,OAAOC,OAAS,OAAe,OAAOA,KAAKC,eAAiB;AAC9D,WAAO;AAGT,MAAI;AACF,UAAMC,IAAUtB,MAAMuB,QAAQJ,CAAM,IAAIA,IAASA,IAAS,CAACA,CAAM,IAAIK;AACrE,WAAO,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AmB;AAEzB,SAASC,EAAgBjC,GAAe;AACtC,SAAOA,EAAMkC,UAAU,KAAK,EAAEC,QAAQH,GAAkB,EAAE;AAC5D;AAEO,SAASzB,EAAqBP,GAAe;AAClD,SAAOiC,EAAgBjC,CAAK,EAAEH,YAAAA;AAChC;AAEO,SAASuC,EAAiBC,GAAkBC,GAAe;AAChE,MAAIC,IAAOC,OAAOC;AAClB,aAAWnC,KAAS+B,GAAQ;AAC1B,UAAMK,IAAQpC,EAAMqC,QAAQL,CAAK;AACjC,IAAII,KAAS,KAAKA,IAAQH,MACxBA,IAAOG;AAAAA,EAEX;AACA,SAAOH,MAASC,OAAOC,mBAAmBD,OAAOC,mBAAmBF;AACtE;AAEA,SAAS7C,EAAkB/B,GAA6B;AACtD,UAAQA,GAAAA;AAAAA,IACR,KAAK;AACH,aAAO,CAAC,OAAO,iBAAiB,WAAW,0BAA0B;AAAA,IACvE,KAAK;AACH,aAAO,CAAC,MAAM,kBAAkB,iBAAiB,SAAS;AAAA,IAC5D,KAAK;AACH,aAAO,CAAC,OAAO,sBAAsB;AAAA,IACvC,KAAK;AACH,aAAO,CAAC,eAAe,OAAO;AAAA,IAChC,KAAK;AACH,aAAO,CAAC,SAAS,KAAK;AAAA,IACxB,KAAK;AACH,aAAO,CAAC,OAAO,gBAAgB;AAAA,IACjC,KAAK;AACH,aAAO,CAAC,mBAAmB;AAAA,IAC7B,KAAK;AACH,aAAO,CAAC,QAAQ;AAAA,IAClB;AACE,aAAO,CAAA;AAAA,EAAA;AAEX;"}
|
package/dist/index48.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index48.js","sources":["
|
|
1
|
+
{"version":3,"file":"index48.js","sources":["../../../node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { getCountryCallingCode as _getCountryCallingCode } from '../../core/index.js'\r\n\r\nexport function getCountryCallingCode() {\r\n\treturn withMetadataArgument(_getCountryCallingCode, arguments)\r\n}"],"names":["getCountryCallingCode","withMetadataArgument","_getCountryCallingCode"],"mappings":";;AAGO,SAASA,IAAwB;AACvC,SAAOC,EAAqBC,GAAwB,SAAS;AAC9D;","x_google_ignoreList":[0]}
|
package/dist/index49.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { visuallyHiddenInput as nt, visuallyHidden as st } from "./
|
|
3
|
-
import { useMergedRefs as lt } from "./
|
|
4
|
-
import { useRefWithInit as it } from "./
|
|
5
|
-
import { useOnFirstRender as at } from "./
|
|
6
|
-
import { usePreviousValue as ut } from "./
|
|
7
|
-
import { isElementDisabled as ct } from "./
|
|
8
|
-
import { useControlled as de } from "./
|
|
9
|
-
import { useIsoLayoutEffect as P } from "./
|
|
10
|
-
import { useStableCallback as C } from "./
|
|
11
|
-
import { useValueAsRef as ft } from "./
|
|
12
|
-
import { EMPTY_OBJECT as dt, EMPTY_ARRAY as me } from "./
|
|
13
|
-
import { SelectRootContext as mt, SelectFloatingContext as pt } from "./
|
|
14
|
-
import { useFieldRootContext as gt } from "./
|
|
15
|
-
import { useRegisterFieldControl as ht } from "./
|
|
16
|
-
import { useLabelableId as Rt } from "./
|
|
17
|
-
import { useTransitionStatus as yt } from "./
|
|
18
|
-
import { selectors as M } from "./
|
|
19
|
-
import { createChangeEventDetails as pe } from "./
|
|
20
|
-
import { useOpenChangeComplete as It } from "./
|
|
21
|
-
import { useFormContext as xt } from "./
|
|
22
|
-
import { stringifyAsValue as I, stringifyAsLabel as vt } from "./
|
|
23
|
-
import { defaultItemEquality as Ct, findItemIndex as ge, compareItemEquality as bt } from "./
|
|
24
|
-
import { areArraysEqual as Vt } from "./
|
|
25
|
-
import { useValueChanged as At } from "./
|
|
26
|
-
import { useOpenInteractionType as St } from "./
|
|
27
|
-
import { getMaxScrollOffset as Pt, normalizeScrollOffset as Mt } from "./
|
|
2
|
+
import { visuallyHiddenInput as nt, visuallyHidden as st } from "./index231.js";
|
|
3
|
+
import { useMergedRefs as lt } from "./index232.js";
|
|
4
|
+
import { useRefWithInit as it } from "./index233.js";
|
|
5
|
+
import { useOnFirstRender as at } from "./index234.js";
|
|
6
|
+
import { usePreviousValue as ut } from "./index235.js";
|
|
7
|
+
import { isElementDisabled as ct } from "./index236.js";
|
|
8
|
+
import { useControlled as de } from "./index237.js";
|
|
9
|
+
import { useIsoLayoutEffect as P } from "./index238.js";
|
|
10
|
+
import { useStableCallback as C } from "./index239.js";
|
|
11
|
+
import { useValueAsRef as ft } from "./index240.js";
|
|
12
|
+
import { EMPTY_OBJECT as dt, EMPTY_ARRAY as me } from "./index241.js";
|
|
13
|
+
import { SelectRootContext as mt, SelectFloatingContext as pt } from "./index242.js";
|
|
14
|
+
import { useFieldRootContext as gt } from "./index243.js";
|
|
15
|
+
import { useRegisterFieldControl as ht } from "./index244.js";
|
|
16
|
+
import { useLabelableId as Rt } from "./index245.js";
|
|
17
|
+
import { useTransitionStatus as yt } from "./index246.js";
|
|
18
|
+
import { selectors as M } from "./index247.js";
|
|
19
|
+
import { createChangeEventDetails as pe } from "./index248.js";
|
|
20
|
+
import { useOpenChangeComplete as It } from "./index249.js";
|
|
21
|
+
import { useFormContext as xt } from "./index250.js";
|
|
22
|
+
import { stringifyAsValue as I, stringifyAsLabel as vt } from "./index251.js";
|
|
23
|
+
import { defaultItemEquality as Ct, findItemIndex as ge, compareItemEquality as bt } from "./index252.js";
|
|
24
|
+
import { areArraysEqual as Vt } from "./index253.js";
|
|
25
|
+
import { useValueChanged as At } from "./index254.js";
|
|
26
|
+
import { useOpenInteractionType as St } from "./index255.js";
|
|
27
|
+
import { getMaxScrollOffset as Pt, normalizeScrollOffset as Mt } from "./index256.js";
|
|
28
28
|
import { j as w } from "./index30.js";
|
|
29
|
-
import { useStore as E } from "./
|
|
30
|
-
import { useFloatingRootContext as wt } from "./
|
|
31
|
-
import { useClick as Et } from "./
|
|
32
|
-
import { useDismiss as Ot } from "./
|
|
33
|
-
import { useListNavigation as Tt } from "./
|
|
34
|
-
import { useTypeahead as Ft } from "./
|
|
35
|
-
import { mergeProps as he } from "./
|
|
36
|
-
import { FOCUSABLE_POPUP_PROPS as Lt } from "./
|
|
37
|
-
import { Store as Ut } from "./
|
|
38
|
-
import { none as Ht, focusOut as qt, outsidePress as Dt } from "./
|
|
29
|
+
import { useStore as E } from "./index257.js";
|
|
30
|
+
import { useFloatingRootContext as wt } from "./index258.js";
|
|
31
|
+
import { useClick as Et } from "./index259.js";
|
|
32
|
+
import { useDismiss as Ot } from "./index260.js";
|
|
33
|
+
import { useListNavigation as Tt } from "./index261.js";
|
|
34
|
+
import { useTypeahead as Ft } from "./index262.js";
|
|
35
|
+
import { mergeProps as he } from "./index263.js";
|
|
36
|
+
import { FOCUSABLE_POPUP_PROPS as Lt } from "./index264.js";
|
|
37
|
+
import { Store as Ut } from "./index265.js";
|
|
38
|
+
import { none as Ht, focusOut as qt, outsidePress as Dt } from "./index266.js";
|
|
39
39
|
function Cr(Re) {
|
|
40
40
|
const {
|
|
41
41
|
id: ye,
|
package/dist/index49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index49.js","sources":["../node_modules/@base-ui/react/select/root/SelectRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { usePreviousValue } from '@base-ui/utils/usePreviousValue';\nimport { isElementDisabled } from '@base-ui/utils/isElementDisabled';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore, Store } from '@base-ui/utils/store';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useClick, useDismiss, useFloatingRootContext, useListNavigation, useTypeahead } from \"../../floating-ui-react/index.mjs\";\nimport { SelectRootContext, SelectFloatingContext } from \"./SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.mjs\";\nimport { stringifyAsLabel, stringifyAsValue } from \"../../internals/resolveValueLabel.mjs\";\nimport { compareItemEquality, defaultItemEquality, findItemIndex } from \"../../internals/itemEquality.mjs\";\nimport { areArraysEqual } from \"../../internals/areArraysEqual.mjs\";\nimport { useValueChanged } from \"../../internals/useValueChanged.mjs\";\nimport { useOpenInteractionType } from \"../../utils/useOpenInteractionType.mjs\";\nimport { getMaxScrollOffset, normalizeScrollOffset } from \"../../utils/scrollEdges.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\n\n/**\n * Groups all parts of the select.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SelectRoot(props) {\n const {\n id,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n name: nameProp,\n form,\n autoComplete,\n disabled: disabledProp = false,\n readOnly = false,\n required = false,\n modal = true,\n actionsRef,\n inputRef,\n onOpenChangeComplete,\n items,\n multiple = false,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue = defaultItemEquality,\n highlightItemOnHover = true,\n children\n } = props;\n const {\n clearErrors\n } = useFormContext();\n const {\n setDirty,\n setTouched,\n setFocused,\n validityData,\n setFilled,\n name: fieldName,\n disabled: fieldDisabled,\n validation,\n validationMode\n } = useFieldRootContext();\n const generatedId = useLabelableId({\n id\n });\n const disabled = fieldDisabled || disabledProp;\n const name = fieldName ?? nameProp;\n const [value, setValueUnwrapped] = useControlled({\n controlled: valueProp,\n default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,\n name: 'Select',\n state: 'value'\n });\n const [open, setOpenUnwrapped] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select',\n state: 'open'\n });\n const listRef = React.useRef([]);\n const labelsRef = React.useRef([]);\n const popupRef = React.useRef(null);\n const scrollHandlerRef = React.useRef(null);\n const scrollArrowsMountedCountRef = React.useRef(0);\n const valueRef = React.useRef(null);\n const valuesRef = React.useRef([]);\n const typingRef = React.useRef(false);\n const firstItemTextRef = React.useRef(null);\n const selectedItemTextRef = React.useRef(null);\n const selectionRef = React.useRef({\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n });\n const alignItemWithTriggerActiveRef = React.useRef(false);\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const {\n openMethod,\n triggerProps: interactionTypeProps\n } = useOpenInteractionType(open);\n const store = useRefWithInit(() => new Store({\n id: generatedId,\n labelId: undefined,\n modal,\n multiple,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n value,\n open,\n mounted,\n transitionStatus,\n items,\n forceMount: false,\n openMethod: null,\n activeIndex: null,\n selectedIndex: null,\n popupProps: {},\n triggerProps: {},\n triggerElement: null,\n positionerElement: null,\n listElement: null,\n popupSide: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false,\n hasScrollArrows: false\n })).current;\n const activeIndex = useStore(store, selectors.activeIndex);\n const selectedIndex = useStore(store, selectors.selectedIndex);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const previousOpenMethod = usePreviousValue(openMethod);\n const renderedOpenMethod = openMethod ?? previousOpenMethod ?? null;\n const serializedValue = React.useMemo(() => {\n // In multiple mode the shared input is nameless; per-value entries are submitted via\n // `hiddenInputs`. Its value is therefore irrelevant, and passing the whole array to\n // `stringifyAsValue` would invoke a user `itemToStringValue` with an array it doesn't expect.\n if (multiple) {\n return '';\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const fieldStringValue = React.useMemo(() => {\n if (multiple && Array.isArray(value)) {\n return value.map(currentValue => stringifyAsValue(currentValue, itemToStringValue));\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const controlRef = useValueAsRef(store.state.triggerElement);\n const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);\n useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled, nameProp);\n const initialValueRef = React.useRef(value);\n // Mirror the `hasSelectedValue` store selector so the Field's filled state agrees with the\n // trigger/value placeholder semantics (a value serializing to `''` counts as empty).\n const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && stringifyAsValue(value, itemToStringValue) !== '';\n useIsoLayoutEffect(() => {\n // Ensure the values and labels are registered for programmatic value changes.\n if (value !== initialValueRef.current) {\n store.set('forceMount', true);\n }\n }, [store, value]);\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n const registry = valuesRef.current;\n let nextIndex;\n if (multiple) {\n const currentValue = Array.isArray(value) ? value : [];\n if (currentValue.length === 0) {\n nextIndex = null;\n } else {\n const lastValue = currentValue[currentValue.length - 1];\n const lastIndex = findItemIndex(registry, lastValue, isItemEqualToValue);\n nextIndex = lastIndex === -1 ? null : lastIndex;\n }\n } else {\n const index = findItemIndex(registry, value, isItemEqualToValue);\n nextIndex = index === -1 ? null : index;\n }\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [hasSelectedValue, multiple, open, value, valuesRef, isItemEqualToValue, store, selectedItemTextRef]);\n function isSelectedValueDirty(currentValue) {\n const initialValue = validityData.initialValue;\n if (Array.isArray(currentValue) && Array.isArray(initialValue)) {\n return !areArraysEqual(currentValue, initialValue, (itemValue, initialItemValue) => compareItemEquality(itemValue, initialItemValue, isItemEqualToValue));\n }\n return currentValue !== initialValue;\n }\n useValueChanged(value, () => {\n clearErrors(name);\n setDirty(isSelectedValueDirty(value));\n validation.change(value);\n });\n const setOpen = useStableCallback((nextOpen, eventDetails) => {\n onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setOpenUnwrapped(nextOpen);\n if (!nextOpen && (eventDetails.reason === REASONS.focusOut || eventDetails.reason === REASONS.outsidePress)) {\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n }\n });\n const handleUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeIndex: null,\n openMethod: null\n });\n onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: !actionsRef,\n open,\n ref: popupRef,\n onComplete() {\n if (!open) {\n handleUnmount();\n }\n }\n });\n React.useImperativeHandle(actionsRef, () => ({\n unmount: handleUnmount\n }), [handleUnmount]);\n const setValue = useStableCallback((nextValue, eventDetails) => {\n onValueChange?.(nextValue, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(nextValue);\n });\n const handleScrollArrowVisibility = useStableCallback(() => {\n const scroller = store.state.listElement || popupRef.current;\n if (!scroller) {\n return;\n }\n const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);\n const shouldShowUp = scrollTop > 0;\n const shouldShowDown = scrollTop < maxScrollTop;\n if (store.state.scrollUpArrowVisible !== shouldShowUp) {\n store.set('scrollUpArrowVisible', shouldShowUp);\n }\n if (store.state.scrollDownArrowVisible !== shouldShowDown) {\n store.set('scrollDownArrowVisible', shouldShowDown);\n }\n });\n const floatingContext = useFloatingRootContext({\n open,\n onOpenChange: setOpen,\n elements: {\n reference: triggerElement,\n floating: positionerElement\n }\n });\n const click = useClick(floatingContext, {\n enabled: !readOnly && !disabled,\n event: 'mousedown'\n });\n const dismiss = useDismiss(floatingContext);\n const listNavigation = useListNavigation(floatingContext, {\n enabled: !readOnly && !disabled,\n listRef,\n activeIndex,\n selectedIndex,\n disabledIndices: EMPTY_ARRAY,\n onNavigate(nextActiveIndex) {\n // Retain the highlight while transitioning out.\n if (nextActiveIndex === null && !open) {\n return;\n }\n store.set('activeIndex', nextActiveIndex);\n },\n focusItemOnHover: highlightItemOnHover\n });\n const typeahead = useTypeahead(floatingContext, {\n enabled: !readOnly && !disabled && (open || !multiple),\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n // Skip disabled items while matching so typeahead advances to the next selectable item\n // (a click can never select a disabled item and native `<select>` skips them too). Resolve\n // the disabled state from the element via the attribute-only `isElementDisabled` so the\n // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the\n // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.\n disabledIndices: index => isElementDisabled(listRef.current[index]),\n onMatch(index) {\n if (open) {\n store.set('activeIndex', index);\n } else {\n setValue(valuesRef.current[index], createChangeEventDetails('none'));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n const mergedTriggerProps = React.useMemo(() => {\n const triggerInteractionProps = mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps);\n if (generatedId) {\n triggerInteractionProps.id = generatedId;\n }\n return triggerInteractionProps;\n }, [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps, generatedId]);\n const popupProps = React.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation.floating, dismiss.floating), [typeahead.floating, listNavigation.floating, dismiss.floating]);\n const itemProps = listNavigation.item ?? EMPTY_OBJECT;\n useOnFirstRender(() => {\n store.update({\n popupProps,\n triggerProps: mergedTriggerProps\n });\n });\n useIsoLayoutEffect(() => {\n store.update({\n id: generatedId,\n modal,\n multiple,\n value,\n open,\n mounted,\n transitionStatus,\n popupProps,\n triggerProps: mergedTriggerProps,\n items,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n openMethod: renderedOpenMethod\n });\n }, [store, generatedId, modal, multiple, value, open, mounted, transitionStatus, popupProps, mergedTriggerProps, items, itemToStringLabel, itemToStringValue, isItemEqualToValue, renderedOpenMethod]);\n const contextValue = React.useMemo(() => ({\n store,\n name,\n required,\n disabled,\n readOnly,\n multiple,\n highlightItemOnHover,\n setValue,\n setOpen,\n listRef,\n popupRef,\n scrollHandlerRef,\n handleScrollArrowVisibility,\n scrollArrowsMountedCountRef,\n itemProps,\n valueRef,\n valuesRef,\n labelsRef,\n typingRef,\n selectionRef,\n firstItemTextRef,\n selectedItemTextRef,\n validation,\n onOpenChangeComplete,\n alignItemWithTriggerActiveRef,\n initialValueRef\n }), [store, name, required, disabled, readOnly, multiple, highlightItemOnHover, setValue, setOpen, itemProps, validation, onOpenChangeComplete, handleScrollArrowVisibility]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\n const hasMultipleSelection = multiple && Array.isArray(value) && value.length > 0;\n const hiddenInputName = multiple ? undefined : name;\n const hiddenInputs = React.useMemo(() => {\n if (!multiple || !Array.isArray(value) || !name) {\n return null;\n }\n return value.map(v => {\n const currentSerializedValue = stringifyAsValue(v, itemToStringValue);\n return /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: currentSerializedValue,\n disabled: disabled\n }, currentSerializedValue);\n });\n }, [multiple, value, form, name, itemToStringValue, disabled]);\n return /*#__PURE__*/_jsx(SelectRootContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsxs(SelectFloatingContext.Provider, {\n value: floatingContext,\n children: [children, /*#__PURE__*/_jsx(\"input\", {\n ...validation.getValidationProps(disabled, {\n onFocus() {\n // Move focus to the trigger element when the hidden input is focused.\n store.state.triggerElement?.focus({\n // Supported in Chrome from 144 (January 2026)\n focusVisible: true\n });\n },\n // Handle browser autofill.\n onChange(event) {\n // Workaround for https://github.com/facebook/react/issues/9023\n if (event.nativeEvent.defaultPrevented || disabled || readOnly) {\n return;\n }\n const nextValue = event.currentTarget.value;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n function handleChange() {\n if (multiple) {\n // Browser autofill only writes a single scalar value.\n return;\n }\n\n // Preserve the original serialized matching, then fall back to rendered text,\n // which browsers can autofill for primitive values like `value=\"US\">United States`.\n const nextValueLower = nextValue.toLowerCase();\n let matchingIndex = valuesRef.current.findIndex(candidate => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);\n if (matchingIndex === -1) {\n matchingIndex = valuesRef.current.findIndex((_, index) => {\n const renderedLabel = labelsRef.current[index];\n return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;\n });\n }\n const matchingValue = matchingIndex === -1 ? undefined : valuesRef.current[matchingIndex];\n if (matchingValue != null) {\n // `setValue` may be canceled by `onValueChange`; rely on `useValueChanged` to\n // mark the field dirty and run validation only when the value actually changes.\n setValue(matchingValue, details);\n }\n }\n store.set('forceMount', true);\n queueMicrotask(handleChange);\n }\n }),\n id: generatedId && hiddenInputName == null ? `${generatedId}-hidden-input` : undefined,\n form: form,\n name: hiddenInputName,\n autoComplete: autoComplete,\n value: serializedValue,\n disabled: disabled,\n required: required && !hasMultipleSelection,\n readOnly: readOnly,\n ref: ref,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n \"aria-hidden\": true,\n suppressHydrationWarning: true\n }), hiddenInputs]\n })\n });\n}"],"names":["SelectRoot","props","id","valueProp","defaultValue","onValueChange","openProp","defaultOpen","onOpenChange","nameProp","form","autoComplete","disabledProp","readOnly","required","modal","actionsRef","inputRef","onOpenChangeComplete","items","multiple","itemToStringLabel","itemToStringValue","isItemEqualToValue","defaultItemEquality","highlightItemOnHover","children","clearErrors","useFormContext","setDirty","setTouched","setFocused","validityData","setFilled","fieldName","fieldDisabled","validation","validationMode","useFieldRootContext","generatedId","useLabelableId","disabled","name","value","setValueUnwrapped","useControlled","EMPTY_ARRAY","open","setOpenUnwrapped","listRef","React","labelsRef","popupRef","scrollHandlerRef","scrollArrowsMountedCountRef","valueRef","valuesRef","typingRef","firstItemTextRef","selectedItemTextRef","selectionRef","alignItemWithTriggerActiveRef","mounted","setMounted","transitionStatus","useTransitionStatus","openMethod","interactionTypeProps","useOpenInteractionType","store","useRefWithInit","Store","activeIndex","useStore","selectors","selectedIndex","triggerElement","positionerElement","previousOpenMethod","usePreviousValue","renderedOpenMethod","serializedValue","stringifyAsValue","fieldStringValue","currentValue","controlRef","useValueAsRef","getStringifiedValueForForm","useStableCallback","useRegisterFieldControl","initialValueRef","hasSelectedValue","useIsoLayoutEffect","registry","nextIndex","lastValue","lastIndex","findItemIndex","index","isSelectedValueDirty","initialValue","areArraysEqual","itemValue","initialItemValue","compareItemEquality","useValueChanged","setOpen","nextOpen","eventDetails","REASONS.focusOut","REASONS.outsidePress","handleUnmount","useOpenChangeComplete","setValue","nextValue","handleScrollArrowVisibility","scroller","maxScrollTop","getMaxScrollOffset","scrollTop","normalizeScrollOffset","shouldShowUp","shouldShowDown","floatingContext","useFloatingRootContext","click","useClick","dismiss","useDismiss","listNavigation","useListNavigation","nextActiveIndex","typeahead","useTypeahead","isElementDisabled","createChangeEventDetails","typing","mergedTriggerProps","triggerInteractionProps","mergeProps","popupProps","FOCUSABLE_POPUP_PROPS","itemProps","EMPTY_OBJECT","useOnFirstRender","contextValue","ref","useMergedRefs","hasMultipleSelection","hiddenInputName","hiddenInputs","v","currentSerializedValue","_jsx","SelectRootContext","_jsxs","SelectFloatingContext","event","details","REASONS.none","handleChange","nextValueLower","matchingIndex","candidate","stringifyAsLabel","_","renderedLabel","matchingValue","visuallyHiddenInput","visuallyHidden"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,SAASA,GAAWC,IAAO;AAChC,QAAM;AAAA,IACJ,IAAAC;AAAA,IACA,OAAOC;AAAA,IACP,cAAAC,IAAe;AAAA,IACf,eAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC,KAAc;AAAA,IACd,cAAAC;AAAA,IACA,MAAMC;AAAA,IACN,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAUC,KAAe;AAAA,IACzB,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,OAAAC,IAAQ;AAAA,IACR,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,mBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC,IAAqBC;AAAA,IACrB,sBAAAC,IAAuB;AAAA,IACvB,UAAAC;AAAA,EACJ,IAAMzB,IACE;AAAA,IACJ,aAAA0B;AAAA,EACJ,IAAMC,GAAc,GACZ;AAAA,IACJ,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAMC;AAAA,IACN,UAAUC;AAAA,IACV,YAAAC;AAAA,IACA,gBAAAC;AAAA,EACJ,IAAMC,GAAmB,GACjBC,IAAcC,GAAe;AAAA,IACjC,IAAAtC;AAAA,EACJ,CAAG,GACKuC,IAAWN,MAAiBvB,IAC5B8B,IAAOR,MAAazB,GACpB,CAACkC,GAAOC,EAAiB,IAAIC,GAAc;AAAA,IAC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0]}
|
|
1
|
+
{"version":3,"file":"index49.js","sources":["../../../node_modules/@base-ui/react/select/root/SelectRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { usePreviousValue } from '@base-ui/utils/usePreviousValue';\nimport { isElementDisabled } from '@base-ui/utils/isElementDisabled';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore, Store } from '@base-ui/utils/store';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useClick, useDismiss, useFloatingRootContext, useListNavigation, useTypeahead } from \"../../floating-ui-react/index.mjs\";\nimport { SelectRootContext, SelectFloatingContext } from \"./SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.mjs\";\nimport { stringifyAsLabel, stringifyAsValue } from \"../../internals/resolveValueLabel.mjs\";\nimport { compareItemEquality, defaultItemEquality, findItemIndex } from \"../../internals/itemEquality.mjs\";\nimport { areArraysEqual } from \"../../internals/areArraysEqual.mjs\";\nimport { useValueChanged } from \"../../internals/useValueChanged.mjs\";\nimport { useOpenInteractionType } from \"../../utils/useOpenInteractionType.mjs\";\nimport { getMaxScrollOffset, normalizeScrollOffset } from \"../../utils/scrollEdges.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\n\n/**\n * Groups all parts of the select.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SelectRoot(props) {\n const {\n id,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n name: nameProp,\n form,\n autoComplete,\n disabled: disabledProp = false,\n readOnly = false,\n required = false,\n modal = true,\n actionsRef,\n inputRef,\n onOpenChangeComplete,\n items,\n multiple = false,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue = defaultItemEquality,\n highlightItemOnHover = true,\n children\n } = props;\n const {\n clearErrors\n } = useFormContext();\n const {\n setDirty,\n setTouched,\n setFocused,\n validityData,\n setFilled,\n name: fieldName,\n disabled: fieldDisabled,\n validation,\n validationMode\n } = useFieldRootContext();\n const generatedId = useLabelableId({\n id\n });\n const disabled = fieldDisabled || disabledProp;\n const name = fieldName ?? nameProp;\n const [value, setValueUnwrapped] = useControlled({\n controlled: valueProp,\n default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,\n name: 'Select',\n state: 'value'\n });\n const [open, setOpenUnwrapped] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select',\n state: 'open'\n });\n const listRef = React.useRef([]);\n const labelsRef = React.useRef([]);\n const popupRef = React.useRef(null);\n const scrollHandlerRef = React.useRef(null);\n const scrollArrowsMountedCountRef = React.useRef(0);\n const valueRef = React.useRef(null);\n const valuesRef = React.useRef([]);\n const typingRef = React.useRef(false);\n const firstItemTextRef = React.useRef(null);\n const selectedItemTextRef = React.useRef(null);\n const selectionRef = React.useRef({\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n });\n const alignItemWithTriggerActiveRef = React.useRef(false);\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const {\n openMethod,\n triggerProps: interactionTypeProps\n } = useOpenInteractionType(open);\n const store = useRefWithInit(() => new Store({\n id: generatedId,\n labelId: undefined,\n modal,\n multiple,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n value,\n open,\n mounted,\n transitionStatus,\n items,\n forceMount: false,\n openMethod: null,\n activeIndex: null,\n selectedIndex: null,\n popupProps: {},\n triggerProps: {},\n triggerElement: null,\n positionerElement: null,\n listElement: null,\n popupSide: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false,\n hasScrollArrows: false\n })).current;\n const activeIndex = useStore(store, selectors.activeIndex);\n const selectedIndex = useStore(store, selectors.selectedIndex);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const previousOpenMethod = usePreviousValue(openMethod);\n const renderedOpenMethod = openMethod ?? previousOpenMethod ?? null;\n const serializedValue = React.useMemo(() => {\n // In multiple mode the shared input is nameless; per-value entries are submitted via\n // `hiddenInputs`. Its value is therefore irrelevant, and passing the whole array to\n // `stringifyAsValue` would invoke a user `itemToStringValue` with an array it doesn't expect.\n if (multiple) {\n return '';\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const fieldStringValue = React.useMemo(() => {\n if (multiple && Array.isArray(value)) {\n return value.map(currentValue => stringifyAsValue(currentValue, itemToStringValue));\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const controlRef = useValueAsRef(store.state.triggerElement);\n const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);\n useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled, nameProp);\n const initialValueRef = React.useRef(value);\n // Mirror the `hasSelectedValue` store selector so the Field's filled state agrees with the\n // trigger/value placeholder semantics (a value serializing to `''` counts as empty).\n const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && stringifyAsValue(value, itemToStringValue) !== '';\n useIsoLayoutEffect(() => {\n // Ensure the values and labels are registered for programmatic value changes.\n if (value !== initialValueRef.current) {\n store.set('forceMount', true);\n }\n }, [store, value]);\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n const registry = valuesRef.current;\n let nextIndex;\n if (multiple) {\n const currentValue = Array.isArray(value) ? value : [];\n if (currentValue.length === 0) {\n nextIndex = null;\n } else {\n const lastValue = currentValue[currentValue.length - 1];\n const lastIndex = findItemIndex(registry, lastValue, isItemEqualToValue);\n nextIndex = lastIndex === -1 ? null : lastIndex;\n }\n } else {\n const index = findItemIndex(registry, value, isItemEqualToValue);\n nextIndex = index === -1 ? null : index;\n }\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [hasSelectedValue, multiple, open, value, valuesRef, isItemEqualToValue, store, selectedItemTextRef]);\n function isSelectedValueDirty(currentValue) {\n const initialValue = validityData.initialValue;\n if (Array.isArray(currentValue) && Array.isArray(initialValue)) {\n return !areArraysEqual(currentValue, initialValue, (itemValue, initialItemValue) => compareItemEquality(itemValue, initialItemValue, isItemEqualToValue));\n }\n return currentValue !== initialValue;\n }\n useValueChanged(value, () => {\n clearErrors(name);\n setDirty(isSelectedValueDirty(value));\n validation.change(value);\n });\n const setOpen = useStableCallback((nextOpen, eventDetails) => {\n onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setOpenUnwrapped(nextOpen);\n if (!nextOpen && (eventDetails.reason === REASONS.focusOut || eventDetails.reason === REASONS.outsidePress)) {\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n }\n });\n const handleUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeIndex: null,\n openMethod: null\n });\n onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: !actionsRef,\n open,\n ref: popupRef,\n onComplete() {\n if (!open) {\n handleUnmount();\n }\n }\n });\n React.useImperativeHandle(actionsRef, () => ({\n unmount: handleUnmount\n }), [handleUnmount]);\n const setValue = useStableCallback((nextValue, eventDetails) => {\n onValueChange?.(nextValue, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(nextValue);\n });\n const handleScrollArrowVisibility = useStableCallback(() => {\n const scroller = store.state.listElement || popupRef.current;\n if (!scroller) {\n return;\n }\n const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);\n const shouldShowUp = scrollTop > 0;\n const shouldShowDown = scrollTop < maxScrollTop;\n if (store.state.scrollUpArrowVisible !== shouldShowUp) {\n store.set('scrollUpArrowVisible', shouldShowUp);\n }\n if (store.state.scrollDownArrowVisible !== shouldShowDown) {\n store.set('scrollDownArrowVisible', shouldShowDown);\n }\n });\n const floatingContext = useFloatingRootContext({\n open,\n onOpenChange: setOpen,\n elements: {\n reference: triggerElement,\n floating: positionerElement\n }\n });\n const click = useClick(floatingContext, {\n enabled: !readOnly && !disabled,\n event: 'mousedown'\n });\n const dismiss = useDismiss(floatingContext);\n const listNavigation = useListNavigation(floatingContext, {\n enabled: !readOnly && !disabled,\n listRef,\n activeIndex,\n selectedIndex,\n disabledIndices: EMPTY_ARRAY,\n onNavigate(nextActiveIndex) {\n // Retain the highlight while transitioning out.\n if (nextActiveIndex === null && !open) {\n return;\n }\n store.set('activeIndex', nextActiveIndex);\n },\n focusItemOnHover: highlightItemOnHover\n });\n const typeahead = useTypeahead(floatingContext, {\n enabled: !readOnly && !disabled && (open || !multiple),\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n // Skip disabled items while matching so typeahead advances to the next selectable item\n // (a click can never select a disabled item and native `<select>` skips them too). Resolve\n // the disabled state from the element via the attribute-only `isElementDisabled` so the\n // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the\n // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.\n disabledIndices: index => isElementDisabled(listRef.current[index]),\n onMatch(index) {\n if (open) {\n store.set('activeIndex', index);\n } else {\n setValue(valuesRef.current[index], createChangeEventDetails('none'));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n const mergedTriggerProps = React.useMemo(() => {\n const triggerInteractionProps = mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps);\n if (generatedId) {\n triggerInteractionProps.id = generatedId;\n }\n return triggerInteractionProps;\n }, [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps, generatedId]);\n const popupProps = React.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation.floating, dismiss.floating), [typeahead.floating, listNavigation.floating, dismiss.floating]);\n const itemProps = listNavigation.item ?? EMPTY_OBJECT;\n useOnFirstRender(() => {\n store.update({\n popupProps,\n triggerProps: mergedTriggerProps\n });\n });\n useIsoLayoutEffect(() => {\n store.update({\n id: generatedId,\n modal,\n multiple,\n value,\n open,\n mounted,\n transitionStatus,\n popupProps,\n triggerProps: mergedTriggerProps,\n items,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n openMethod: renderedOpenMethod\n });\n }, [store, generatedId, modal, multiple, value, open, mounted, transitionStatus, popupProps, mergedTriggerProps, items, itemToStringLabel, itemToStringValue, isItemEqualToValue, renderedOpenMethod]);\n const contextValue = React.useMemo(() => ({\n store,\n name,\n required,\n disabled,\n readOnly,\n multiple,\n highlightItemOnHover,\n setValue,\n setOpen,\n listRef,\n popupRef,\n scrollHandlerRef,\n handleScrollArrowVisibility,\n scrollArrowsMountedCountRef,\n itemProps,\n valueRef,\n valuesRef,\n labelsRef,\n typingRef,\n selectionRef,\n firstItemTextRef,\n selectedItemTextRef,\n validation,\n onOpenChangeComplete,\n alignItemWithTriggerActiveRef,\n initialValueRef\n }), [store, name, required, disabled, readOnly, multiple, highlightItemOnHover, setValue, setOpen, itemProps, validation, onOpenChangeComplete, handleScrollArrowVisibility]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\n const hasMultipleSelection = multiple && Array.isArray(value) && value.length > 0;\n const hiddenInputName = multiple ? undefined : name;\n const hiddenInputs = React.useMemo(() => {\n if (!multiple || !Array.isArray(value) || !name) {\n return null;\n }\n return value.map(v => {\n const currentSerializedValue = stringifyAsValue(v, itemToStringValue);\n return /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: currentSerializedValue,\n disabled: disabled\n }, currentSerializedValue);\n });\n }, [multiple, value, form, name, itemToStringValue, disabled]);\n return /*#__PURE__*/_jsx(SelectRootContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsxs(SelectFloatingContext.Provider, {\n value: floatingContext,\n children: [children, /*#__PURE__*/_jsx(\"input\", {\n ...validation.getValidationProps(disabled, {\n onFocus() {\n // Move focus to the trigger element when the hidden input is focused.\n store.state.triggerElement?.focus({\n // Supported in Chrome from 144 (January 2026)\n focusVisible: true\n });\n },\n // Handle browser autofill.\n onChange(event) {\n // Workaround for https://github.com/facebook/react/issues/9023\n if (event.nativeEvent.defaultPrevented || disabled || readOnly) {\n return;\n }\n const nextValue = event.currentTarget.value;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n function handleChange() {\n if (multiple) {\n // Browser autofill only writes a single scalar value.\n return;\n }\n\n // Preserve the original serialized matching, then fall back to rendered text,\n // which browsers can autofill for primitive values like `value=\"US\">United States`.\n const nextValueLower = nextValue.toLowerCase();\n let matchingIndex = valuesRef.current.findIndex(candidate => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);\n if (matchingIndex === -1) {\n matchingIndex = valuesRef.current.findIndex((_, index) => {\n const renderedLabel = labelsRef.current[index];\n return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;\n });\n }\n const matchingValue = matchingIndex === -1 ? undefined : valuesRef.current[matchingIndex];\n if (matchingValue != null) {\n // `setValue` may be canceled by `onValueChange`; rely on `useValueChanged` to\n // mark the field dirty and run validation only when the value actually changes.\n setValue(matchingValue, details);\n }\n }\n store.set('forceMount', true);\n queueMicrotask(handleChange);\n }\n }),\n id: generatedId && hiddenInputName == null ? `${generatedId}-hidden-input` : undefined,\n form: form,\n name: hiddenInputName,\n autoComplete: autoComplete,\n value: serializedValue,\n disabled: disabled,\n required: required && !hasMultipleSelection,\n readOnly: readOnly,\n ref: ref,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n \"aria-hidden\": true,\n suppressHydrationWarning: true\n }), hiddenInputs]\n })\n });\n}"],"names":["SelectRoot","props","id","valueProp","defaultValue","onValueChange","openProp","defaultOpen","onOpenChange","nameProp","form","autoComplete","disabledProp","readOnly","required","modal","actionsRef","inputRef","onOpenChangeComplete","items","multiple","itemToStringLabel","itemToStringValue","isItemEqualToValue","defaultItemEquality","highlightItemOnHover","children","clearErrors","useFormContext","setDirty","setTouched","setFocused","validityData","setFilled","fieldName","fieldDisabled","validation","validationMode","useFieldRootContext","generatedId","useLabelableId","disabled","name","value","setValueUnwrapped","useControlled","EMPTY_ARRAY","open","setOpenUnwrapped","listRef","React","labelsRef","popupRef","scrollHandlerRef","scrollArrowsMountedCountRef","valueRef","valuesRef","typingRef","firstItemTextRef","selectedItemTextRef","selectionRef","alignItemWithTriggerActiveRef","mounted","setMounted","transitionStatus","useTransitionStatus","openMethod","interactionTypeProps","useOpenInteractionType","store","useRefWithInit","Store","activeIndex","useStore","selectors","selectedIndex","triggerElement","positionerElement","previousOpenMethod","usePreviousValue","renderedOpenMethod","serializedValue","stringifyAsValue","fieldStringValue","currentValue","controlRef","useValueAsRef","getStringifiedValueForForm","useStableCallback","useRegisterFieldControl","initialValueRef","hasSelectedValue","useIsoLayoutEffect","registry","nextIndex","lastValue","lastIndex","findItemIndex","index","isSelectedValueDirty","initialValue","areArraysEqual","itemValue","initialItemValue","compareItemEquality","useValueChanged","setOpen","nextOpen","eventDetails","REASONS.focusOut","REASONS.outsidePress","handleUnmount","useOpenChangeComplete","setValue","nextValue","handleScrollArrowVisibility","scroller","maxScrollTop","getMaxScrollOffset","scrollTop","normalizeScrollOffset","shouldShowUp","shouldShowDown","floatingContext","useFloatingRootContext","click","useClick","dismiss","useDismiss","listNavigation","useListNavigation","nextActiveIndex","typeahead","useTypeahead","isElementDisabled","createChangeEventDetails","typing","mergedTriggerProps","triggerInteractionProps","mergeProps","popupProps","FOCUSABLE_POPUP_PROPS","itemProps","EMPTY_OBJECT","useOnFirstRender","contextValue","ref","useMergedRefs","hasMultipleSelection","hiddenInputName","hiddenInputs","v","currentSerializedValue","_jsx","SelectRootContext","_jsxs","SelectFloatingContext","event","details","REASONS.none","handleChange","nextValueLower","matchingIndex","candidate","stringifyAsLabel","_","renderedLabel","matchingValue","visuallyHiddenInput","visuallyHidden"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CO,SAASA,GAAWC,IAAO;AAChC,QAAM;AAAA,IACJ,IAAAC;AAAA,IACA,OAAOC;AAAA,IACP,cAAAC,IAAe;AAAA,IACf,eAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC,KAAc;AAAA,IACd,cAAAC;AAAA,IACA,MAAMC;AAAA,IACN,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAUC,KAAe;AAAA,IACzB,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,OAAAC,IAAQ;AAAA,IACR,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IAC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sD,IAAeT,CAAO;AAAA,YAEnC;AACA,YAAAzF,EAAM,IAAI,cAAc,EAAI,GAC5B,eAAe2F,CAAY;AAAA,UAC7B;AAAA,QACV,CAAS;AAAA,QACD,IAAIzH,KAAe8G,MAAmB,OAAO,GAAG9G,CAAW,kBAAkB;AAAA,QAC7E,MAAM7B;AAAA,QACN,MAAM2I;AAAA,QACN,cAAc1I;AAAA,QACd,OAAOsE;AAAA,QACP,UAAUxC;AAAA,QACV,UAAU3B,KAAY,CAACsI;AAAA,QACvB,UAAUvI;AAAA,QACV,KAAKqI;AAAA,QACL,OAAOxG,IAAO8H,KAAsBC;AAAA,QACpC,UAAU;AAAA,QACV,eAAe;AAAA,QACf,0BAA0B;AAAA,MAClC,CAAO,GAAGnB,EAAY;AAAA,IACtB,CAAK;AAAA,EACL,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index50.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import * as M from "react";
|
|
2
|
-
import { rectToClientRect as Jt } from "./
|
|
3
|
-
import { addEventListener as Qt } from "./
|
|
4
|
-
import { useStableCallback as te } from "./
|
|
5
|
-
import { ownerDocument as Tt } from "./
|
|
6
|
-
import { useIsoLayoutEffect as rt } from "./
|
|
7
|
-
import { useAnimationFrame as ee } from "./
|
|
8
|
-
import { useSelectRootContext as oe, useSelectFloatingContext as ne } from "./
|
|
9
|
-
import { popupStateMapping as re } from "./
|
|
10
|
-
import { useSelectPositionerContext as ie } from "./
|
|
11
|
-
import { styleDisableScrollbar as Rt } from "./
|
|
12
|
-
import { transitionStatusMapping as se } from "./
|
|
13
|
-
import { useOpenChangeComplete as le } from "./
|
|
14
|
-
import { useRenderElement as ce } from "./
|
|
15
|
-
import { selectors as a } from "./
|
|
16
|
-
import { clearStyles as Ct, LIST_FUNCTIONAL_STYLES as ae } from "./
|
|
17
|
-
import { createChangeEventDetails as pe } from "./
|
|
18
|
-
import { useToolbarRootContext as me } from "./
|
|
19
|
-
import { COMPOSITE_KEYS as ue } from "./
|
|
20
|
-
import { getDisabledMountTransitionStyles as ge } from "./
|
|
21
|
-
import { clamp as U } from "./
|
|
22
|
-
import { SCROLL_EDGE_TOLERANCE_PX as v, getMaxScrollOffset as fe } from "./
|
|
23
|
-
import { useCSPContext as he } from "./
|
|
24
|
-
import { useDirection as de } from "./
|
|
2
|
+
import { rectToClientRect as Jt } from "./index289.js";
|
|
3
|
+
import { addEventListener as Qt } from "./index290.js";
|
|
4
|
+
import { useStableCallback as te } from "./index239.js";
|
|
5
|
+
import { ownerDocument as Tt } from "./index267.js";
|
|
6
|
+
import { useIsoLayoutEffect as rt } from "./index238.js";
|
|
7
|
+
import { useAnimationFrame as ee } from "./index291.js";
|
|
8
|
+
import { useSelectRootContext as oe, useSelectFloatingContext as ne } from "./index242.js";
|
|
9
|
+
import { popupStateMapping as re } from "./index270.js";
|
|
10
|
+
import { useSelectPositionerContext as ie } from "./index283.js";
|
|
11
|
+
import { styleDisableScrollbar as Rt } from "./index292.js";
|
|
12
|
+
import { transitionStatusMapping as se } from "./index293.js";
|
|
13
|
+
import { useOpenChangeComplete as le } from "./index249.js";
|
|
14
|
+
import { useRenderElement as ce } from "./index272.js";
|
|
15
|
+
import { selectors as a } from "./index247.js";
|
|
16
|
+
import { clearStyles as Ct, LIST_FUNCTIONAL_STYLES as ae } from "./index286.js";
|
|
17
|
+
import { createChangeEventDetails as pe } from "./index248.js";
|
|
18
|
+
import { useToolbarRootContext as me } from "./index294.js";
|
|
19
|
+
import { COMPOSITE_KEYS as ue } from "./index295.js";
|
|
20
|
+
import { getDisabledMountTransitionStyles as ge } from "./index296.js";
|
|
21
|
+
import { clamp as U } from "./index297.js";
|
|
22
|
+
import { SCROLL_EDGE_TOLERANCE_PX as v, getMaxScrollOffset as fe } from "./index256.js";
|
|
23
|
+
import { useCSPContext as he } from "./index298.js";
|
|
24
|
+
import { useDirection as de } from "./index299.js";
|
|
25
25
|
import { j as Ht } from "./index30.js";
|
|
26
|
-
import { useStore as d } from "./
|
|
27
|
-
import { getWindow as it } from "./
|
|
28
|
-
import { FloatingFocusManager as ye } from "./
|
|
29
|
-
import { platform as xe } from "./
|
|
30
|
-
import { webkit as Se } from "./
|
|
31
|
-
import { windowResize as Te } from "./
|
|
26
|
+
import { useStore as d } from "./index257.js";
|
|
27
|
+
import { getWindow as it } from "./index300.js";
|
|
28
|
+
import { FloatingFocusManager as ye } from "./index301.js";
|
|
29
|
+
import { platform as xe } from "./index302.js";
|
|
30
|
+
import { webkit as Se } from "./index303.js";
|
|
31
|
+
import { windowResize as Te } from "./index266.js";
|
|
32
32
|
const Re = {
|
|
33
33
|
...re,
|
|
34
34
|
...se
|