@rpcbase/ui 0.280.0 → 0.281.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/AddressAutocompleteInput/index.d.ts +1 -1
- package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -1
- package/dist/components/ApplePayButton/index.d.ts +1 -1
- package/dist/components/ApplePayButton/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/DayPickerField/index.d.ts +2 -2
- package/dist/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.d.ts +9 -9
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/FilesUploadField/index.d.ts +1 -1
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/components/HourPickerField/index.d.ts +2 -2
- package/dist/components/HourPickerField/index.d.ts.map +1 -1
- package/dist/components/I18nField/index.d.ts +1 -1
- package/dist/components/I18nField/index.d.ts.map +1 -1
- package/dist/components/Image/index.d.ts +1 -1
- package/dist/components/Image/index.d.ts.map +1 -1
- package/dist/components/ImagesField/index.d.ts +1 -1
- package/dist/components/ImagesField/index.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Notifications/NotificationsButton.d.ts +1 -1
- package/dist/components/Notifications/NotificationsButton.d.ts.map +1 -1
- package/dist/components/Notifications/NotificationsDrawer.d.ts +1 -1
- package/dist/components/Notifications/NotificationsDrawer.d.ts.map +1 -1
- package/dist/components/Notifications/NotificationsSettings.d.ts +1 -1
- package/dist/components/Notifications/NotificationsSettings.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/suggestions.d.ts +3 -3
- package/dist/components/PhoneNumberInput/suggestions.d.ts.map +1 -1
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/header/MenuPopover/index.d.ts +1 -1
- package/dist/components/header/MenuPopover/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js +6 -4
- package/dist/index10.js.map +1 -1
- package/dist/index12.js.map +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index14.js.map +1 -1
- package/dist/index15.js.map +1 -1
- package/dist/index154.js +19 -7
- package/dist/index154.js.map +1 -1
- package/dist/index16.js +36 -45
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +3 -3
- package/dist/index160.js.map +1 -1
- package/dist/index166.js +5 -5
- package/dist/index166.js.map +1 -1
- package/dist/index172.js +27 -25
- package/dist/index172.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +145 -162
- package/dist/index182.js.map +1 -1
- package/dist/index184.js +6 -8
- package/dist/index184.js.map +1 -1
- package/dist/index186.js +2 -8
- package/dist/index186.js.map +1 -1
- package/dist/index19.js +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +16 -15
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +13 -17
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +3 -2
- package/dist/index200.js.map +1 -1
- package/dist/index207.js +5 -90
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +15 -3
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +102 -22
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +3 -28
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +23 -19
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +27 -6
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +19 -14
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +14 -26
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +7 -22
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +27 -6
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +23 -5
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +6 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +5 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +4 -24
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +4 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +21 -21
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -23
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +23 -6
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +22 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -17
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +8 -49
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +18 -5
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +50 -19
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +20 -28
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +27 -104
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +98 -33
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +28 -113
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +117 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +12 -4
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +4 -15
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +13 -62
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +64 -9
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +10 -106
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +107 -13
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +16 -13
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +13 -5
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +4 -316
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +315 -58
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +58 -223
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +215 -318
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +250 -306
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +308 -173
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +178 -7
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +8 -15
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +41 -5
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +46 -38
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +7 -50
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +49 -6
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +48 -46
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +6 -51
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +10 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +60 -8
- package/dist/index259.js.map +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +41 -60
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +88 -34
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +47 -94
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +36 -49
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +45 -32
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +47 -46
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +18 -48
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +174 -15
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +47 -169
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +17 -34
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +59 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +10 -66
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +4 -4
- package/dist/index273.js +71 -69
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +158 -152
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +7 -13
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -5
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -6
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +11 -12
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +65 -9
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +6 -74
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +25 -6
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +24 -24
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +125 -24
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +52 -115
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +59 -55
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +48 -61
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +5 -48
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +14 -8
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +18 -14
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +10 -17
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +23 -11
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +52 -25
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +6 -52
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +137 -5
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +59 -149
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +90 -49
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +11 -117
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +863 -11
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +21 -865
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index300.js +417 -27
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +774 -483
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +7436 -803
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +7 -7429
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +12 -6
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -12
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +469 -5
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +32 -464
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +18 -36
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +28 -17
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -30
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +59 -4
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +11 -59
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +5 -9
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +9 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +12 -9
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +3 -13
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +17 -3
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +23 -14
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +39 -23
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +5 -41
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +25 -5
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +18 -24
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +32 -17
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +5 -34
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +9 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +7 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +9 -8
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +10 -9
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +7 -10
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +75 -7
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +153 -66
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +99 -147
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +13 -113
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +78 -12
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +23 -57
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +12 -45
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +16 -13
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +100 -15
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +50 -95
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +57 -5
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +41 -78
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +100 -58
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +46 -104
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +39 -51
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +143 -42
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +122 -123
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +224 -108
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +158 -174
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +213 -144
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +5 -309
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +6 -5
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +7 -6
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +4 -5
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +4 -4
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +21 -6
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +10 -21
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +128 -10
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +36 -122
- package/dist/index359.js.map +1 -1
- package/dist/index360.js +64 -38
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +115 -66
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +485 -112
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +7 -490
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +1 -1
- package/dist/index364.js.map +1 -1
- package/dist/index367.js +2 -9
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +26 -5
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +43 -27
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +35 -46
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +16 -27
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +41 -16
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +11 -42
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +10 -14
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +51 -9
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +40 -53
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +17 -43
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -15
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +4 -4
- package/dist/index379.js.map +1 -1
- package/dist/index380.js +9 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +304 -9
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +4 -339
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +21 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +106 -16
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +19 -109
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +18 -18
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +14 -19
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +12 -4
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +113 -20
- package/dist/index389.js.map +1 -1
- package/dist/index390.js +5 -11
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +28 -85
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +9 -9
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +6 -29
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +254 -10
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +12 -6
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +11 -252
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +6 -11
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +22 -10
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +22 -6
- package/dist/index399.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index400.js +103 -21
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +15 -23
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +11 -108
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +10 -15
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +237 -10
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +27 -9
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +33 -238
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +11 -30
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +118 -48
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +39 -11
- package/dist/index409.js.map +1 -1
- package/dist/index410.js +18 -121
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +11 -39
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +21 -24
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +17 -11
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +10 -20
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +4 -17
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +300 -14
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +61 -323
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +4 -63
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +28 -4
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +468 -25
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +250 -452
- package/dist/index421.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index7.js +91 -133
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +2 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +11 -4
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +1 -3
- package/dist/index72.js.map +1 -1
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +16 -19
- package/dist/index9.js.map +1 -1
- package/dist/test-only/TestCoverageTestBadge/index.d.ts +1 -1
- package/dist/test-only/TestCoverageTestBadge/index.d.ts.map +1 -1
- package/package.json +15 -15
- package/dist/index422.js +0 -272
- package/dist/index422.js.map +0 -1
package/dist/index381.js
CHANGED
|
@@ -1,13 +1,308 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRefWithInit as e } from "./index185.js";
|
|
3
|
+
import { useMergedRefs as t } from "./index186.js";
|
|
4
|
+
import { EMPTY_ARRAY as n, EMPTY_OBJECT as r } from "./index191.js";
|
|
5
|
+
import { mergeProps as i } from "./index195.js";
|
|
6
|
+
import { useStableCallback as a } from "./index202.js";
|
|
7
|
+
import { useIsoLayoutEffect as o } from "./index204.js";
|
|
8
|
+
import { none as ee } from "./index210.js";
|
|
9
|
+
import { createChangeEventDetails as s } from "./index211.js";
|
|
10
|
+
import { useValueAsRef as te } from "./index229.js";
|
|
11
|
+
import { visuallyHidden as ne, visuallyHiddenInput as re } from "./index231.js";
|
|
12
|
+
import { useClick as ie } from "./index246.js";
|
|
13
|
+
import { useDismiss as ae } from "./index247.js";
|
|
14
|
+
import { useStore as c } from "./index259.js";
|
|
15
|
+
import { ReactStore as oe } from "./index261.js";
|
|
16
|
+
import { useTransitionStatus as se } from "./index264.js";
|
|
17
|
+
import { useOpenChangeComplete as ce } from "./index266.js";
|
|
18
|
+
import { FOCUSABLE_POPUP_PROPS as le } from "./index267.js";
|
|
19
|
+
import { useFloatingRootContext as ue } from "./index272.js";
|
|
20
|
+
import { useListNavigation as de } from "./index274.js";
|
|
21
|
+
import { useTypeahead as fe } from "./index275.js";
|
|
22
|
+
import { useValueChanged as pe } from "./index290.js";
|
|
23
|
+
import { useOpenInteractionType as me } from "./index291.js";
|
|
24
|
+
import { useOnFirstRender as he } from "./index363.js";
|
|
25
|
+
import { usePreviousValue as ge } from "./index364.js";
|
|
26
|
+
import { isElementDisabled as _e } from "./index365.js";
|
|
27
|
+
import { useControlled as l } from "./index366.js";
|
|
28
|
+
import { SelectRootContext as ve } from "./index367.js";
|
|
29
|
+
import { useFieldRootContext as ye } from "./index369.js";
|
|
30
|
+
import { useRegisterFieldControl as be } from "./index370.js";
|
|
31
|
+
import { useLabelableId as xe } from "./index372.js";
|
|
32
|
+
import { compareItemEquality as Se, defaultItemEquality as Ce, findItemIndex as we } from "./index373.js";
|
|
33
|
+
import { stringifyAsLabel as Te, stringifyAsValue as u } from "./index375.js";
|
|
34
|
+
import { selectors as d } from "./index376.js";
|
|
35
|
+
import { useFormContext as Ee } from "./index377.js";
|
|
36
|
+
import { areArraysEqual as De } from "./index378.js";
|
|
37
|
+
import { getMaxScrollOffset as Oe, normalizeScrollOffset as ke } from "./index380.js";
|
|
38
|
+
import * as f from "react";
|
|
39
|
+
import { jsx as Ae, jsxs as je } from "react/jsx-runtime";
|
|
40
|
+
//#region ../../node_modules/@base-ui/react/select/root/SelectRoot.mjs
|
|
41
|
+
function p(p) {
|
|
42
|
+
let { id: Me, value: Ne, defaultValue: Pe = null, onValueChange: Fe, open: Ie, defaultOpen: Le = !1, onOpenChange: Re, name: m, form: h, autoComplete: ze, disabled: Be = !1, readOnly: g = !1, required: _ = !1, modal: Ve = !0, actionsRef: He, inputRef: Ue, onOpenChangeComplete: v, items: y, multiple: b = !1, itemToStringLabel: x, itemToStringValue: S, isItemEqualToValue: C = Ce, highlightItemOnHover: w = !0, children: We } = p, { clearErrors: Ge } = Ee(), { setDirty: Ke, setTouched: qe, setFocused: Je, validityData: Ye, setFilled: T, name: Xe, disabled: Ze, validation: E, validationMode: Qe } = ye(), D = xe({ id: Me }), O = Ze || Be, k = Xe ?? m, [A, $e] = l({
|
|
43
|
+
controlled: Ne,
|
|
44
|
+
default: b ? Pe ?? n : Pe,
|
|
45
|
+
name: "Select",
|
|
46
|
+
state: "value"
|
|
47
|
+
}), [j, et] = l({
|
|
48
|
+
controlled: Ie,
|
|
49
|
+
default: Le,
|
|
50
|
+
name: "Select",
|
|
51
|
+
state: "open"
|
|
52
|
+
}), M = f.useRef([]), N = f.useRef([]), P = f.useRef(null), tt = f.useRef(null), nt = f.useRef(0), rt = f.useRef(null), F = f.useRef([]), I = f.useRef(!1), it = f.useRef(null), L = f.useRef(null), at = f.useRef({
|
|
53
|
+
allowSelectedMouseUp: !1,
|
|
54
|
+
allowUnselectedMouseUp: !1,
|
|
55
|
+
dragY: 0
|
|
56
|
+
}), ot = f.useRef(!1), { mounted: R, setMounted: st, transitionStatus: z } = se(j), { openMethod: B, triggerProps: V } = me(j), H = e(() => new oe({
|
|
57
|
+
id: D,
|
|
58
|
+
labelId: void 0,
|
|
59
|
+
modal: Ve,
|
|
60
|
+
multiple: b,
|
|
61
|
+
itemToStringLabel: x,
|
|
62
|
+
itemToStringValue: S,
|
|
63
|
+
isItemEqualToValue: C,
|
|
64
|
+
value: A,
|
|
65
|
+
open: j,
|
|
66
|
+
mounted: R,
|
|
67
|
+
transitionStatus: z,
|
|
68
|
+
items: y,
|
|
69
|
+
forceMount: !1,
|
|
70
|
+
openMethod: null,
|
|
71
|
+
activeIndex: null,
|
|
72
|
+
selectedIndex: null,
|
|
73
|
+
popupProps: {},
|
|
74
|
+
triggerProps: {},
|
|
75
|
+
triggerElement: null,
|
|
76
|
+
positionerElement: null,
|
|
77
|
+
listElement: null,
|
|
78
|
+
popupSide: null,
|
|
79
|
+
scrollUpArrowVisible: !1,
|
|
80
|
+
scrollDownArrowVisible: !1,
|
|
81
|
+
hasScrollArrows: !1
|
|
82
|
+
})).current, U = c(H, d.activeIndex), W = c(H, d.selectedIndex), ct = c(H, d.triggerElement), lt = c(H, d.positionerElement), ut = ge(B), dt = B ?? ut, ft = f.useMemo(() => b ? "" : u(A, S), [
|
|
83
|
+
b,
|
|
84
|
+
A,
|
|
85
|
+
S
|
|
86
|
+
]), pt = f.useMemo(() => b && Array.isArray(A) ? A.map((e) => u(e, S)) : u(A, S), [
|
|
87
|
+
b,
|
|
88
|
+
A,
|
|
89
|
+
S
|
|
90
|
+
]), mt = te(ct), ht = a(() => pt);
|
|
91
|
+
be(mt, D, A, ht, !O, m);
|
|
92
|
+
let gt = f.useRef(A), G = b ? Array.isArray(A) && A.length > 0 : A != null && ft !== "";
|
|
93
|
+
o(() => {
|
|
94
|
+
T(G);
|
|
95
|
+
}, [G, T]), o(function() {
|
|
96
|
+
let e = A, t = !1;
|
|
97
|
+
if (b) {
|
|
98
|
+
let n = Array.isArray(A) ? A : [];
|
|
99
|
+
t = n.length === 0, e = n[n.length - 1];
|
|
100
|
+
}
|
|
101
|
+
let n = t ? -1 : we(F.current, e, C), r = n === -1 ? null : n;
|
|
102
|
+
r === null && (L.current = null), !j && H.set("selectedIndex", r);
|
|
103
|
+
}, [
|
|
104
|
+
b,
|
|
105
|
+
j,
|
|
106
|
+
A,
|
|
107
|
+
C,
|
|
108
|
+
H
|
|
109
|
+
]);
|
|
110
|
+
function _t(e) {
|
|
111
|
+
let t = Ye.initialValue;
|
|
112
|
+
return Array.isArray(e) && Array.isArray(t) ? !De(e, t, (e, t) => Se(e, t, C)) : e !== t;
|
|
113
|
+
}
|
|
114
|
+
pe(A, () => {
|
|
115
|
+
Ge(k), Ke(_t(A)), E.change(A);
|
|
116
|
+
});
|
|
117
|
+
let K = a((e, t) => {
|
|
118
|
+
Re?.(e, t), !t.isCanceled && (et(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (qe(!0), Je(!1), Qe === "onBlur" && E.commit(A)));
|
|
119
|
+
}), q = a(() => {
|
|
120
|
+
st(!1), H.update({
|
|
121
|
+
activeIndex: null,
|
|
122
|
+
openMethod: null,
|
|
123
|
+
scrollUpArrowVisible: !1,
|
|
124
|
+
scrollDownArrowVisible: !1
|
|
125
|
+
}), v?.(!1);
|
|
126
|
+
});
|
|
127
|
+
ce({
|
|
128
|
+
enabled: !He,
|
|
129
|
+
open: j,
|
|
130
|
+
ref: P,
|
|
131
|
+
onComplete() {
|
|
132
|
+
j || q();
|
|
133
|
+
}
|
|
134
|
+
}), f.useImperativeHandle(He, () => ({ unmount: q }), [q]);
|
|
135
|
+
let J = a((e, t) => {
|
|
136
|
+
Fe?.(e, t), !t.isCanceled && $e(e);
|
|
137
|
+
}), vt = a((e) => {
|
|
138
|
+
let t = Oe(e.scrollHeight, e.clientHeight), n = ke(e.scrollTop, t), r = n > 0, i = n < t;
|
|
139
|
+
H.set("scrollUpArrowVisible", r), H.set("scrollDownArrowVisible", i);
|
|
140
|
+
}), Y = ue({
|
|
141
|
+
open: j,
|
|
142
|
+
onOpenChange: K,
|
|
143
|
+
elements: {
|
|
144
|
+
reference: ct,
|
|
145
|
+
floating: lt
|
|
146
|
+
}
|
|
147
|
+
}), yt = ie(Y, {
|
|
148
|
+
enabled: !g && !O,
|
|
149
|
+
event: "mousedown"
|
|
150
|
+
}), X = ae(Y), Z = de(Y, {
|
|
151
|
+
enabled: !g && !O,
|
|
152
|
+
listRef: M,
|
|
153
|
+
activeIndex: U,
|
|
154
|
+
selectedIndex: W,
|
|
155
|
+
disabledIndices: n,
|
|
156
|
+
onNavigate(e) {
|
|
157
|
+
e === null && !j || H.set("activeIndex", e);
|
|
158
|
+
},
|
|
159
|
+
focusItemOnHover: w
|
|
160
|
+
}), Q = fe(Y, {
|
|
161
|
+
enabled: !g && !O && (j || !b),
|
|
162
|
+
listRef: N,
|
|
163
|
+
activeIndex: U,
|
|
164
|
+
selectedIndex: W,
|
|
165
|
+
disabledIndices: (e) => _e(M.current[e]),
|
|
166
|
+
onMatch(e) {
|
|
167
|
+
j ? H.set("activeIndex", e) : J(F.current[e], s(ee));
|
|
168
|
+
},
|
|
169
|
+
onTyping(e) {
|
|
170
|
+
I.current = e;
|
|
171
|
+
}
|
|
172
|
+
}), bt = f.useMemo(() => i(Q.reference, Z.reference, X.reference, yt.reference, V), [
|
|
173
|
+
yt.reference,
|
|
174
|
+
Q.reference,
|
|
175
|
+
Z.reference,
|
|
176
|
+
X.reference,
|
|
177
|
+
V
|
|
178
|
+
]), xt = f.useMemo(() => i(le, Q.floating, Z.floating, X.floating), [
|
|
179
|
+
Q.floating,
|
|
180
|
+
Z.floating,
|
|
181
|
+
X.floating
|
|
182
|
+
]), St = Z.item ?? r;
|
|
183
|
+
he(() => {
|
|
184
|
+
H.update({
|
|
185
|
+
popupProps: xt,
|
|
186
|
+
triggerProps: bt
|
|
187
|
+
});
|
|
188
|
+
}), H.useSyncedValues({
|
|
189
|
+
id: D,
|
|
190
|
+
modal: Ve,
|
|
191
|
+
multiple: b,
|
|
192
|
+
value: A,
|
|
193
|
+
open: j,
|
|
194
|
+
mounted: R,
|
|
195
|
+
transitionStatus: z,
|
|
196
|
+
popupProps: xt,
|
|
197
|
+
triggerProps: bt,
|
|
198
|
+
items: y,
|
|
199
|
+
itemToStringLabel: x,
|
|
200
|
+
itemToStringValue: S,
|
|
201
|
+
isItemEqualToValue: C,
|
|
202
|
+
openMethod: dt
|
|
203
|
+
});
|
|
204
|
+
let Ct = f.useMemo(() => ({
|
|
205
|
+
store: H,
|
|
206
|
+
floatingContext: Y,
|
|
207
|
+
required: _,
|
|
208
|
+
disabled: O,
|
|
209
|
+
readOnly: g,
|
|
210
|
+
multiple: b,
|
|
211
|
+
highlightItemOnHover: w,
|
|
212
|
+
setValue: J,
|
|
213
|
+
setOpen: K,
|
|
214
|
+
listRef: M,
|
|
215
|
+
popupRef: P,
|
|
216
|
+
scrollHandlerRef: tt,
|
|
217
|
+
handleScrollArrowVisibility: vt,
|
|
218
|
+
scrollArrowsMountedCountRef: nt,
|
|
219
|
+
itemProps: St,
|
|
220
|
+
valueRef: rt,
|
|
221
|
+
valuesRef: F,
|
|
222
|
+
labelsRef: N,
|
|
223
|
+
typingRef: I,
|
|
224
|
+
selectionRef: at,
|
|
225
|
+
firstItemTextRef: it,
|
|
226
|
+
selectedItemTextRef: L,
|
|
227
|
+
validation: E,
|
|
228
|
+
onOpenChangeComplete: v,
|
|
229
|
+
alignItemWithTriggerActiveRef: ot,
|
|
230
|
+
initialValueRef: gt
|
|
231
|
+
}), [
|
|
232
|
+
H,
|
|
233
|
+
Y,
|
|
234
|
+
_,
|
|
235
|
+
O,
|
|
236
|
+
g,
|
|
237
|
+
b,
|
|
238
|
+
w,
|
|
239
|
+
J,
|
|
240
|
+
K,
|
|
241
|
+
St,
|
|
242
|
+
E,
|
|
243
|
+
v,
|
|
244
|
+
vt
|
|
245
|
+
]), wt = t(Ue, E.inputRef), $ = b ? void 0 : k, Tt = f.useMemo(() => !b || !Array.isArray(A) || !k ? null : A.map((e) => {
|
|
246
|
+
let t = u(e, S);
|
|
247
|
+
return /*#__PURE__*/ Ae("input", {
|
|
248
|
+
type: "hidden",
|
|
249
|
+
form: h,
|
|
250
|
+
name: k,
|
|
251
|
+
value: t,
|
|
252
|
+
disabled: O
|
|
253
|
+
}, t);
|
|
254
|
+
}), [
|
|
255
|
+
b,
|
|
256
|
+
A,
|
|
257
|
+
h,
|
|
258
|
+
k,
|
|
259
|
+
S,
|
|
260
|
+
O
|
|
261
|
+
]);
|
|
262
|
+
return /*#__PURE__*/ je(ve.Provider, {
|
|
263
|
+
value: Ct,
|
|
264
|
+
children: [
|
|
265
|
+
We,
|
|
266
|
+
/*#__PURE__*/ Ae("input", {
|
|
267
|
+
...E.getValidationProps(O, {
|
|
268
|
+
onFocus() {
|
|
269
|
+
H.state.triggerElement?.focus({ focusVisible: !0 });
|
|
270
|
+
},
|
|
271
|
+
onChange(e) {
|
|
272
|
+
if (e.nativeEvent.defaultPrevented || O || g) return;
|
|
273
|
+
let t = e.currentTarget.value, n = s(ee, e.nativeEvent);
|
|
274
|
+
function r() {
|
|
275
|
+
if (b) return;
|
|
276
|
+
let e = t.toLowerCase(), r = F.current.findIndex((t) => u(t, S).toLowerCase() === e || Te(t, x).toLowerCase() === e);
|
|
277
|
+
r === -1 && (r = F.current.findIndex((t, n) => {
|
|
278
|
+
let r = N.current[n];
|
|
279
|
+
return r != null && r.toLowerCase() === e;
|
|
280
|
+
}));
|
|
281
|
+
let i = F.current[r];
|
|
282
|
+
i != null && J(i, n);
|
|
283
|
+
}
|
|
284
|
+
H.set("forceMount", !0), queueMicrotask(r);
|
|
285
|
+
}
|
|
286
|
+
}),
|
|
287
|
+
id: D && $ == null ? `${D}-hidden-input` : void 0,
|
|
288
|
+
form: h,
|
|
289
|
+
name: $,
|
|
290
|
+
autoComplete: ze,
|
|
291
|
+
value: ft,
|
|
292
|
+
disabled: O,
|
|
293
|
+
required: _ && !(b && G),
|
|
294
|
+
readOnly: g,
|
|
295
|
+
ref: wt,
|
|
296
|
+
style: k ? re : ne,
|
|
297
|
+
tabIndex: -1,
|
|
298
|
+
"aria-hidden": !0,
|
|
299
|
+
suppressHydrationWarning: !0
|
|
300
|
+
}),
|
|
301
|
+
Tt
|
|
302
|
+
]
|
|
303
|
+
});
|
|
9
304
|
}
|
|
10
305
|
//#endregion
|
|
11
|
-
export {
|
|
306
|
+
export { p as SelectRoot };
|
|
12
307
|
|
|
13
308
|
//# sourceMappingURL=index381.js.map
|
package/dist/index381.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index381.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/scrollEdges.mjs"],"sourcesContent":["import { clamp } from \"../internals/clamp.mjs\";\nexport const SCROLL_EDGE_TOLERANCE_PX = 1;\nexport function getMaxScrollOffset(scrollSize, clientSize) {\n return Math.max(0, scrollSize - clientSize);\n}\nexport function normalizeScrollOffset(value, max) {\n if (max <= 0) {\n return 0;\n }\n const clamped = clamp(value, 0, max);\n const startDistance = clamped;\n const endDistance = max - clamped;\n const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;\n const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;\n if (withinStartTolerance && withinEndTolerance) {\n return startDistance <= endDistance ? 0 : max;\n }\n if (withinStartTolerance) {\n return 0;\n }\n if (withinEndTolerance) {\n return max;\n }\n return clamped;\n}"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAgB,EAAmB,GAAY,GAAY;CACzD,OAAO,KAAK,IAAI,GAAG,IAAa,CAAU;AAC5C;AACA,SAAgB,EAAsB,GAAO,GAAK;CAChD,IAAI,KAAO,GACT,OAAO;CAET,IAAM,IAAU,EAAM,GAAO,GAAG,CAAG,GAC7B,IAAgB,GAChB,IAAc,IAAM,GACpB,IAAuB,KAAA,GACvB,IAAqB,KAAA;CAU3B,OATI,KAAwB,IACnB,KAAiB,IAAc,IAAI,IAExC,IACK,IAEL,IACK,IAEF;AACT"}
|
|
1
|
+
{"version":3,"file":"index381.js","names":["React","REASONS.none"],"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, ReactStore } 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 } 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 ReactStore({\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;\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(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 && serializedValue !== '';\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n let target = value;\n let empty = false;\n if (multiple) {\n const currentValue = Array.isArray(value) ? value : [];\n empty = currentValue.length === 0;\n target = currentValue[currentValue.length - 1];\n }\n const index = empty ? -1 : findItemIndex(valuesRef.current, target, isItemEqualToValue);\n const nextIndex = index === -1 ? null : index;\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [multiple, open, value, isItemEqualToValue, store]);\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 scrollUpArrowVisible: false,\n scrollDownArrowVisible: false\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(scroller => {\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 store.set('scrollUpArrowVisible', shouldShowUp);\n store.set('scrollDownArrowVisible', shouldShowDown);\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(REASONS.none));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n\n // `Select.Trigger` applies the id itself from the store, so it's deliberately not merged here.\n const mergedTriggerProps = React.useMemo(() => mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps), [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps]);\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 store.useSyncedValues({\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 const contextValue = React.useMemo(() => ({\n store,\n floatingContext,\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, floatingContext, required, disabled, readOnly, multiple, highlightItemOnHover, setValue, setOpen, itemProps, validation, onOpenChangeComplete, handleScrollArrowVisibility]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\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__*/_jsxs(SelectRootContext.Provider, {\n value: contextValue,\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/react/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 = 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 && !(multiple && hasSelectedValue),\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}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,SAAgB,EAAW,GAAO;CAChC,IAAM,EACJ,QACA,OAAO,IACP,mBAAe,MACf,mBACA,MAAM,IACN,kBAAc,IACd,kBACA,MAAM,GACN,SACA,kBACA,UAAU,KAAe,IACzB,cAAW,IACX,cAAW,IACX,YAAQ,IACR,gBACA,cACA,yBACA,UACA,cAAW,IACX,sBACA,sBACA,wBAAqB,IACrB,0BAAuB,IACvB,iBACE,GACE,EACJ,oBACE,GAAe,GACb,EACJ,cACA,gBACA,gBACA,kBACA,cACA,MAAM,IACN,UAAU,IACV,eACA,uBACE,GAAoB,GAClB,IAAc,GAAe,EACjC,OACF,CAAC,GACK,IAAW,MAAiB,IAC5B,IAAO,MAAa,GACpB,CAAC,GAAO,MAAqB,EAAc;EAC/C,YAAY;EACZ,SAAS,IAAW,MAAgB,IAAc;EAClD,MAAM;EACN,OAAO;CACT,CAAC,GACK,CAAC,GAAM,MAAoB,EAAc;EAC7C,YAAY;EACZ,SAAS;EACT,MAAM;EACN,OAAO;CACT,CAAC,GACK,IAAUA,EAAM,OAAO,CAAC,CAAC,GACzB,IAAYA,EAAM,OAAO,CAAC,CAAC,GAC3B,IAAWA,EAAM,OAAO,IAAI,GAC5B,KAAmBA,EAAM,OAAO,IAAI,GACpC,KAA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