@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/index395.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index395.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index395.js","names":["React","_formatErrorMessage"],"sources":["../../../node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPositionerContext.displayName = \"SelectPositionerContext\";\nexport function useSelectPositionerContext() {\n const context = React.useContext(SelectPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.' : _formatErrorMessage(59));\n }\n return context;\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAa,IAAuC,gBAAM,cAAc,KAAA,CAAS;AACjF,QAAA,IAAA,aAA6B,iBAAc,EAAwB,cAAc;AACjF,SAAgB,IAA6B;CAC3C,IAAM,IAAUA,EAAM,WAAW,CAAuB;CACxD,IAAI,CAAC,GACH,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAkIC,EAAoB,EAAE,IAAzI,gHAA0I;CAEpM,OAAO;AACT"}
|
package/dist/index396.js
CHANGED
|
@@ -1,255 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { useDirection as m } from "./index392.js";
|
|
12
|
-
import { arrow as h } from "./index393.js";
|
|
13
|
-
import { hide as te } from "./index394.js";
|
|
14
|
-
import { DEFAULT_SIDES as ne } from "./index395.js";
|
|
15
|
-
import * as g from "react";
|
|
16
|
-
//#region ../../node_modules/@base-ui/react/utils/useAnchorPositioning.mjs
|
|
17
|
-
function _(e, t, n) {
|
|
18
|
-
let r = e === "inline-start" || e === "inline-end";
|
|
19
|
-
return {
|
|
20
|
-
top: "top",
|
|
21
|
-
right: r ? n ? "inline-start" : "inline-end" : "right",
|
|
22
|
-
bottom: "bottom",
|
|
23
|
-
left: r ? n ? "inline-end" : "inline-start" : "left"
|
|
24
|
-
}[t];
|
|
25
|
-
}
|
|
26
|
-
function re(e, t, n) {
|
|
27
|
-
let { rects: r, placement: i } = e;
|
|
28
|
-
return {
|
|
29
|
-
side: _(t, o(i), n),
|
|
30
|
-
align: a(i) || "center",
|
|
31
|
-
anchor: {
|
|
32
|
-
width: r.reference.width,
|
|
33
|
-
height: r.reference.height
|
|
34
|
-
},
|
|
35
|
-
positioner: {
|
|
36
|
-
width: r.floating.width,
|
|
37
|
-
height: r.floating.height
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function v(v) {
|
|
42
|
-
let { anchor: b, positionMethod: ie = "absolute", side: x = "bottom", sideOffset: S = 0, align: C = "center", alignOffset: w = 0, collisionBoundary: T, collisionPadding: ae = 5, sticky: E = !1, arrowPadding: oe = 5, disableAnchorTracking: D = !1, inline: se, keepMounted: O = !1, floatingRootContext: k, mounted: A, collisionAvoidance: j, shiftCrossAxis: M = !1, nodeId: ce, adaptiveOrigin: N, lazyFlip: le = !1, externalTree: ue } = v, [de, fe] = g.useState(null);
|
|
43
|
-
!A && de !== null && fe(null);
|
|
44
|
-
let P = j.side || "flip", F = j.align || "flip", pe = j.fallbackAxisSide || "end", me = typeof b == "function" ? b : void 0, he = t(me), ge = me ? he : b, I = r(b), _e = r(A), L = m() === "rtl", ve = de || {
|
|
45
|
-
top: "top",
|
|
46
|
-
right: "right",
|
|
47
|
-
bottom: "bottom",
|
|
48
|
-
left: "left",
|
|
49
|
-
"inline-end": L ? "left" : "right",
|
|
50
|
-
"inline-start": L ? "right" : "left"
|
|
51
|
-
}[x], ye = C === "center" ? ve : `${ve}-${C}`, R = ae, be = +(x === "bottom"), xe = +(x === "top"), Se = +(x === "right"), Ce = +(x === "left");
|
|
52
|
-
typeof R == "number" ? R = {
|
|
53
|
-
top: R + be,
|
|
54
|
-
right: R + Ce,
|
|
55
|
-
bottom: R + xe,
|
|
56
|
-
left: R + Se
|
|
57
|
-
} : R &&= {
|
|
58
|
-
top: (R.top || 0) + be,
|
|
59
|
-
right: (R.right || 0) + Ce,
|
|
60
|
-
bottom: (R.bottom || 0) + xe,
|
|
61
|
-
left: (R.left || 0) + Se
|
|
62
|
-
};
|
|
63
|
-
let z = {
|
|
64
|
-
boundary: T === "clipping-ancestors" ? "clippingAncestors" : T,
|
|
65
|
-
padding: R
|
|
66
|
-
}, B = g.useRef(null), V = r(S), H = r(w), we = typeof S == "function" ? 0 : S, Te = typeof w == "function" ? 0 : w, U = [];
|
|
67
|
-
se && U.push(se), U.push(d((e) => {
|
|
68
|
-
let t = re(e, x, L), n = typeof V.current == "function" ? V.current(t) : V.current, r = typeof H.current == "function" ? H.current(t) : H.current;
|
|
69
|
-
return {
|
|
70
|
-
mainAxis: n,
|
|
71
|
-
crossAxis: r,
|
|
72
|
-
alignmentAxis: r
|
|
73
|
-
};
|
|
74
|
-
}, [
|
|
75
|
-
we,
|
|
76
|
-
Te,
|
|
77
|
-
L,
|
|
78
|
-
x
|
|
79
|
-
]));
|
|
80
|
-
let Ee = F === "none" && P !== "shift", De = !Ee && (E || M || P === "shift"), Oe = P === "none" ? null : l({
|
|
81
|
-
...z,
|
|
82
|
-
padding: {
|
|
83
|
-
top: R.top + 1,
|
|
84
|
-
right: R.right + 1,
|
|
85
|
-
bottom: R.bottom + 1,
|
|
86
|
-
left: R.left + 1
|
|
87
|
-
},
|
|
88
|
-
mainAxis: !M && P === "flip",
|
|
89
|
-
crossAxis: F === "flip" && "alignment",
|
|
90
|
-
fallbackAxisSideDirection: pe
|
|
91
|
-
}), ke = Ee ? null : f((e) => {
|
|
92
|
-
let t = i(e.elements.floating).documentElement;
|
|
93
|
-
return {
|
|
94
|
-
...z,
|
|
95
|
-
rootBoundary: M ? {
|
|
96
|
-
x: 0,
|
|
97
|
-
y: 0,
|
|
98
|
-
width: t.clientWidth,
|
|
99
|
-
height: t.clientHeight
|
|
100
|
-
} : void 0,
|
|
101
|
-
mainAxis: F !== "none",
|
|
102
|
-
crossAxis: De,
|
|
103
|
-
limiter: E || M ? void 0 : u((e) => {
|
|
104
|
-
if (!B.current) return {};
|
|
105
|
-
let { width: t, height: n } = B.current.getBoundingClientRect(), r = s(o(e.placement)), i = r === "y" ? t : n, a = r === "y" ? R.left + R.right : R.top + R.bottom;
|
|
106
|
-
return { offset: i / 2 + a / 2 };
|
|
107
|
-
})
|
|
108
|
-
};
|
|
109
|
-
}, [
|
|
110
|
-
z,
|
|
111
|
-
E,
|
|
112
|
-
M,
|
|
113
|
-
R,
|
|
114
|
-
F
|
|
115
|
-
]);
|
|
116
|
-
P === "shift" || F === "shift" || C === "center" ? U.push(ke, Oe) : U.push(Oe, ke), U.push(p({
|
|
117
|
-
...z,
|
|
118
|
-
apply({ elements: { floating: t }, availableWidth: n, availableHeight: r, rects: i }) {
|
|
119
|
-
if (!_e.current) return;
|
|
120
|
-
let a = t.style;
|
|
121
|
-
a.setProperty("--available-width", `${n}px`), a.setProperty("--available-height", `${r}px`);
|
|
122
|
-
let o = e(t).devicePixelRatio || 1, { x: s, y: c, width: l, height: u } = i.reference, d = (Math.round((s + l) * o) - Math.round(s * o)) / o, f = (Math.round((c + u) * o) - Math.round(c * o)) / o;
|
|
123
|
-
a.setProperty("--anchor-width", `${d}px`), a.setProperty("--anchor-height", `${f}px`);
|
|
124
|
-
}
|
|
125
|
-
}), h((e) => ({
|
|
126
|
-
element: B.current || i(e.elements.floating).createElement("div"),
|
|
127
|
-
padding: oe,
|
|
128
|
-
offsetParent: "floating"
|
|
129
|
-
}), [oe]), {
|
|
130
|
-
name: "transformOrigin",
|
|
131
|
-
fn(e) {
|
|
132
|
-
let { elements: t, middlewareData: n, placement: r, rects: i, y: a } = e, c = o(r), l = s(c), u = B.current, d = n.arrow?.x || 0, f = n.arrow?.y || 0, p = u?.clientWidth || 0, ee = u?.clientHeight || 0, m = d + p / 2, h = f + ee / 2, te = Math.abs(n.shift?.y || 0), ne = i.reference.height / 2, g = typeof S == "function" ? S(re(e, x, L)) : S, _ = te > g, v = {
|
|
133
|
-
top: `${m}px calc(100% + ${g}px)`,
|
|
134
|
-
bottom: `${m}px ${-g}px`,
|
|
135
|
-
left: `calc(100% + ${g}px) ${h}px`,
|
|
136
|
-
right: `${-g}px ${h}px`
|
|
137
|
-
}[c], y = `${m}px ${i.reference.y + ne - a}px`;
|
|
138
|
-
return t.floating.style.setProperty("--transform-origin", De && l === "y" && _ ? y : v), {};
|
|
139
|
-
}
|
|
140
|
-
}, te, N), n(() => {
|
|
141
|
-
!A && k && k.update({
|
|
142
|
-
referenceElement: null,
|
|
143
|
-
floatingElement: null,
|
|
144
|
-
domReferenceElement: null,
|
|
145
|
-
positionReference: null
|
|
146
|
-
});
|
|
147
|
-
}, [A, k]);
|
|
148
|
-
let W = g.useMemo(() => ({
|
|
149
|
-
elementResize: !D && typeof ResizeObserver < "u",
|
|
150
|
-
layoutShift: !D && typeof IntersectionObserver < "u"
|
|
151
|
-
}), [D]), { refs: G, elements: K, x: Ae, y: je, middlewareData: q, update: J, placement: Me, context: Ne, isPositioned: Y, floatingStyles: Pe } = ee({
|
|
152
|
-
rootContext: k,
|
|
153
|
-
open: O ? A : void 0,
|
|
154
|
-
placement: ye,
|
|
155
|
-
middleware: U,
|
|
156
|
-
strategy: ie,
|
|
157
|
-
whileElementsMounted: O ? void 0 : (...e) => c(...e, W),
|
|
158
|
-
nodeId: ce,
|
|
159
|
-
externalTree: ue
|
|
160
|
-
}), { sideX: X, sideY: Fe } = q.adaptiveOrigin || ne, Z = Y ? ie : "fixed", Ie = g.useMemo(() => {
|
|
161
|
-
let e = N ? {
|
|
162
|
-
position: Z,
|
|
163
|
-
[X]: Ae,
|
|
164
|
-
[Fe]: je
|
|
165
|
-
} : {
|
|
166
|
-
position: Z,
|
|
167
|
-
...Pe
|
|
168
|
-
};
|
|
169
|
-
return Y || (e.opacity = 0), e;
|
|
170
|
-
}, [
|
|
171
|
-
N,
|
|
172
|
-
Z,
|
|
173
|
-
X,
|
|
174
|
-
Ae,
|
|
175
|
-
Fe,
|
|
176
|
-
je,
|
|
177
|
-
Pe,
|
|
178
|
-
Y
|
|
179
|
-
]), Q = g.useRef(null);
|
|
180
|
-
n(() => {
|
|
181
|
-
if (!A) return;
|
|
182
|
-
let e = I.current, t = typeof e == "function" ? e() : e, n = (y(t) ? t.current : t) || null;
|
|
183
|
-
n !== Q.current && (G.setPositionReference(n), Q.current = n);
|
|
184
|
-
}, [
|
|
185
|
-
A,
|
|
186
|
-
G,
|
|
187
|
-
ge,
|
|
188
|
-
I
|
|
189
|
-
]), g.useEffect(() => {
|
|
190
|
-
if (!A) return;
|
|
191
|
-
let e = I.current;
|
|
192
|
-
typeof e != "function" && y(e) && e.current !== Q.current && (G.setPositionReference(e.current), Q.current = e.current);
|
|
193
|
-
}, [
|
|
194
|
-
A,
|
|
195
|
-
G,
|
|
196
|
-
ge,
|
|
197
|
-
I
|
|
198
|
-
]), g.useEffect(() => {
|
|
199
|
-
if (O && A && K.reference && K.floating) return c(K.reference, K.floating, J, W);
|
|
200
|
-
}, [
|
|
201
|
-
O,
|
|
202
|
-
A,
|
|
203
|
-
K,
|
|
204
|
-
J,
|
|
205
|
-
W
|
|
206
|
-
]);
|
|
207
|
-
let $ = o(Me), Le = _(x, $, L), Re = a(Me) || "center", ze = !!q.hide?.referenceHidden;
|
|
208
|
-
n(() => {
|
|
209
|
-
le && A && Y && fe($);
|
|
210
|
-
}, [
|
|
211
|
-
le,
|
|
212
|
-
A,
|
|
213
|
-
Y,
|
|
214
|
-
$
|
|
215
|
-
]);
|
|
216
|
-
let Be = g.useMemo(() => ({
|
|
217
|
-
position: "absolute",
|
|
218
|
-
top: q.arrow?.y,
|
|
219
|
-
left: q.arrow?.x
|
|
220
|
-
}), [q.arrow]), Ve = q.arrow?.centerOffset !== 0;
|
|
221
|
-
return g.useMemo(() => ({
|
|
222
|
-
positionerStyles: Ie,
|
|
223
|
-
arrowStyles: Be,
|
|
224
|
-
arrowRef: B,
|
|
225
|
-
arrowUncentered: Ve,
|
|
226
|
-
side: Le,
|
|
227
|
-
align: Re,
|
|
228
|
-
physicalSide: $,
|
|
229
|
-
anchorHidden: ze,
|
|
230
|
-
refs: G,
|
|
231
|
-
context: Ne,
|
|
232
|
-
isPositioned: Y,
|
|
233
|
-
update: J
|
|
234
|
-
}), [
|
|
235
|
-
Ie,
|
|
236
|
-
Be,
|
|
237
|
-
B,
|
|
238
|
-
Ve,
|
|
239
|
-
Le,
|
|
240
|
-
Re,
|
|
241
|
-
$,
|
|
242
|
-
ze,
|
|
243
|
-
G,
|
|
244
|
-
Ne,
|
|
245
|
-
Y,
|
|
246
|
-
J
|
|
247
|
-
]);
|
|
248
|
-
}
|
|
249
|
-
function y(e) {
|
|
250
|
-
return e != null && "current" in e;
|
|
251
|
-
}
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/select/popup/utils.mjs
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
e && Object.assign(e.style, t);
|
|
4
|
+
}
|
|
5
|
+
var t = {
|
|
6
|
+
position: "relative",
|
|
7
|
+
maxHeight: "100%",
|
|
8
|
+
overflowX: "hidden",
|
|
9
|
+
overflowY: "auto"
|
|
10
|
+
};
|
|
252
11
|
//#endregion
|
|
253
|
-
export {
|
|
12
|
+
export { t as LIST_FUNCTIONAL_STYLES, e as clearStyles };
|
|
254
13
|
|
|
255
14
|
//# sourceMappingURL=index396.js.map
|
package/dist/index396.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index396.js","names":["React","ownerWindow"],"sources":["../../../node_modules/@base-ui/react/utils/useAnchorPositioning.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { getSide, getAlignment, getSideAxis } from '@floating-ui/utils';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { autoUpdate, flip, limitShift, offset, shift, useFloating, size } from \"../floating-ui-react/index.mjs\";\nimport { useDirection } from \"../internals/direction-context/DirectionContext.mjs\";\nimport { arrow } from \"../floating-ui-react/middleware/arrow.mjs\";\nimport { hide } from \"./hideMiddleware.mjs\";\nimport { DEFAULT_SIDES } from \"./adaptiveOriginMiddleware.mjs\";\nfunction getLogicalSide(sideParam, renderedSide, isRtl) {\n const isLogicalSideParam = sideParam === 'inline-start' || sideParam === 'inline-end';\n const logicalRight = isRtl ? 'inline-start' : 'inline-end';\n const logicalLeft = isRtl ? 'inline-end' : 'inline-start';\n return {\n top: 'top',\n right: isLogicalSideParam ? logicalRight : 'right',\n bottom: 'bottom',\n left: isLogicalSideParam ? logicalLeft : 'left'\n }[renderedSide];\n}\nfunction getOffsetData(state, sideParam, isRtl) {\n const {\n rects,\n placement\n } = state;\n const data = {\n side: getLogicalSide(sideParam, getSide(placement), isRtl),\n align: getAlignment(placement) || 'center',\n anchor: {\n width: rects.reference.width,\n height: rects.reference.height\n },\n positioner: {\n width: rects.floating.width,\n height: rects.floating.height\n }\n };\n return data;\n}\n/**\n * Provides standardized anchor positioning behavior for floating elements. Wraps Floating UI's\n * `useFloating` hook.\n */\nexport function useAnchorPositioning(params) {\n const {\n // Public parameters\n anchor,\n positionMethod = 'absolute',\n side: sideParam = 'bottom',\n sideOffset = 0,\n align = 'center',\n alignOffset = 0,\n collisionBoundary,\n collisionPadding: collisionPaddingParam = 5,\n sticky = false,\n arrowPadding = 5,\n disableAnchorTracking = false,\n inline: inlineMiddleware,\n // Private parameters\n keepMounted = false,\n floatingRootContext,\n mounted,\n collisionAvoidance,\n shiftCrossAxis = false,\n nodeId,\n adaptiveOrigin,\n lazyFlip = false,\n externalTree\n } = params;\n const [mountSide, setMountSide] = React.useState(null);\n if (!mounted && mountSide !== null) {\n setMountSide(null);\n }\n const collisionAvoidanceSide = collisionAvoidance.side || 'flip';\n const collisionAvoidanceAlign = collisionAvoidance.align || 'flip';\n const collisionAvoidanceFallbackAxisSide = collisionAvoidance.fallbackAxisSide || 'end';\n const anchorFn = typeof anchor === 'function' ? anchor : undefined;\n const anchorFnCallback = useStableCallback(anchorFn);\n const anchorDep = anchorFn ? anchorFnCallback : anchor;\n const anchorValueRef = useValueAsRef(anchor);\n const mountedRef = useValueAsRef(mounted);\n const direction = useDirection();\n const isRtl = direction === 'rtl';\n const side = mountSide || {\n top: 'top',\n right: 'right',\n bottom: 'bottom',\n left: 'left',\n 'inline-end': isRtl ? 'left' : 'right',\n 'inline-start': isRtl ? 'right' : 'left'\n }[sideParam];\n const placement = align === 'center' ? side : `${side}-${align}`;\n let collisionPadding = collisionPaddingParam;\n\n // Create a bias to the preferred side.\n // On iOS, when the mobile software keyboard opens, the input is exactly centered\n // in the viewport, but this can cause it to flip to the top undesirably.\n const bias = 1;\n const biasTop = sideParam === 'bottom' ? bias : 0;\n const biasBottom = sideParam === 'top' ? bias : 0;\n const biasLeft = sideParam === 'right' ? bias : 0;\n const biasRight = sideParam === 'left' ? bias : 0;\n if (typeof collisionPadding === 'number') {\n collisionPadding = {\n top: collisionPadding + biasTop,\n right: collisionPadding + biasRight,\n bottom: collisionPadding + biasBottom,\n left: collisionPadding + biasLeft\n };\n } else if (collisionPadding) {\n collisionPadding = {\n top: (collisionPadding.top || 0) + biasTop,\n right: (collisionPadding.right || 0) + biasRight,\n bottom: (collisionPadding.bottom || 0) + biasBottom,\n left: (collisionPadding.left || 0) + biasLeft\n };\n }\n const commonCollisionProps = {\n boundary: collisionBoundary === 'clipping-ancestors' ? 'clippingAncestors' : collisionBoundary,\n padding: collisionPadding\n };\n\n // Using a ref assumes that the arrow element is always present in the DOM for the lifetime of the\n // popup. If this assumption ends up being false, we can switch to state to manage the arrow's\n // presence.\n const arrowRef = React.useRef(null);\n\n // Keep these reactive if they're not functions\n const sideOffsetRef = useValueAsRef(sideOffset);\n const alignOffsetRef = useValueAsRef(alignOffset);\n const sideOffsetDep = typeof sideOffset !== 'function' ? sideOffset : 0;\n const alignOffsetDep = typeof alignOffset !== 'function' ? alignOffset : 0;\n const middleware = [];\n if (inlineMiddleware) {\n middleware.push(inlineMiddleware);\n }\n middleware.push(offset(state => {\n const data = getOffsetData(state, sideParam, isRtl);\n const sideAxis = typeof sideOffsetRef.current === 'function' ? sideOffsetRef.current(data) : sideOffsetRef.current;\n const alignAxis = typeof alignOffsetRef.current === 'function' ? alignOffsetRef.current(data) : alignOffsetRef.current;\n return {\n mainAxis: sideAxis,\n crossAxis: alignAxis,\n alignmentAxis: alignAxis\n };\n }, [sideOffsetDep, alignOffsetDep, isRtl, sideParam]));\n const shiftDisabled = collisionAvoidanceAlign === 'none' && collisionAvoidanceSide !== 'shift';\n const crossAxisShiftEnabled = !shiftDisabled && (sticky || shiftCrossAxis || collisionAvoidanceSide === 'shift');\n const flipMiddleware = collisionAvoidanceSide === 'none' ? null : flip({\n ...commonCollisionProps,\n // Ensure the popup flips if it's been limited by its --available-height and it resizes.\n // Since the size() padding is smaller than the flip() padding, flip() will take precedence.\n padding: {\n top: collisionPadding.top + bias,\n right: collisionPadding.right + bias,\n bottom: collisionPadding.bottom + bias,\n left: collisionPadding.left + bias\n },\n mainAxis: !shiftCrossAxis && collisionAvoidanceSide === 'flip',\n crossAxis: collisionAvoidanceAlign === 'flip' ? 'alignment' : false,\n fallbackAxisSideDirection: collisionAvoidanceFallbackAxisSide\n });\n const shiftMiddleware = shiftDisabled ? null : shift(data => {\n const html = ownerDocument(data.elements.floating).documentElement;\n return {\n ...commonCollisionProps,\n // Use the Layout Viewport to avoid shifting around when pinch-zooming\n // for context menus.\n rootBoundary: shiftCrossAxis ? {\n x: 0,\n y: 0,\n width: html.clientWidth,\n height: html.clientHeight\n } : undefined,\n mainAxis: collisionAvoidanceAlign !== 'none',\n crossAxis: crossAxisShiftEnabled,\n limiter: sticky || shiftCrossAxis ? undefined : limitShift(limitData => {\n if (!arrowRef.current) {\n return {};\n }\n const {\n width,\n height\n } = arrowRef.current.getBoundingClientRect();\n const sideAxis = getSideAxis(getSide(limitData.placement));\n const arrowSize = sideAxis === 'y' ? width : height;\n const offsetAmount = sideAxis === 'y' ? collisionPadding.left + collisionPadding.right : collisionPadding.top + collisionPadding.bottom;\n return {\n offset: arrowSize / 2 + offsetAmount / 2\n };\n })\n };\n }, [commonCollisionProps, sticky, shiftCrossAxis, collisionPadding, collisionAvoidanceAlign]);\n\n // https://floating-ui.com/docs/flip#combining-with-shift\n if (collisionAvoidanceSide === 'shift' || collisionAvoidanceAlign === 'shift' || align === 'center') {\n middleware.push(shiftMiddleware, flipMiddleware);\n } else {\n middleware.push(flipMiddleware, shiftMiddleware);\n }\n middleware.push(size({\n ...commonCollisionProps,\n apply({\n elements: {\n floating\n },\n availableWidth,\n availableHeight,\n rects\n }) {\n if (!mountedRef.current) {\n return;\n }\n const floatingStyle = floating.style;\n floatingStyle.setProperty('--available-width', `${availableWidth}px`);\n floatingStyle.setProperty('--available-height', `${availableHeight}px`);\n\n // Snap anchor dimensions to device pixels to ensure the popup's visual width matches the anchor's one.\n const dpr = ownerWindow(floating).devicePixelRatio || 1;\n const {\n x,\n y,\n width,\n height\n } = rects.reference;\n const anchorWidth = (Math.round((x + width) * dpr) - Math.round(x * dpr)) / dpr;\n const anchorHeight = (Math.round((y + height) * dpr) - Math.round(y * dpr)) / dpr;\n floatingStyle.setProperty('--anchor-width', `${anchorWidth}px`);\n floatingStyle.setProperty('--anchor-height', `${anchorHeight}px`);\n }\n }), arrow(state => ({\n // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,\n // we'll create a fake element.\n element: arrowRef.current || ownerDocument(state.elements.floating).createElement('div'),\n padding: arrowPadding,\n offsetParent: 'floating'\n }), [arrowPadding]), {\n name: 'transformOrigin',\n fn(state) {\n const {\n elements,\n middlewareData,\n placement: renderedPlacement,\n rects,\n y\n } = state;\n const currentRenderedSide = getSide(renderedPlacement);\n const currentRenderedAxis = getSideAxis(currentRenderedSide);\n const arrowEl = arrowRef.current;\n const arrowX = middlewareData.arrow?.x || 0;\n const arrowY = middlewareData.arrow?.y || 0;\n const arrowWidth = arrowEl?.clientWidth || 0;\n const arrowHeight = arrowEl?.clientHeight || 0;\n const transformX = arrowX + arrowWidth / 2;\n const transformY = arrowY + arrowHeight / 2;\n const shiftY = Math.abs(middlewareData.shift?.y || 0);\n const halfAnchorHeight = rects.reference.height / 2;\n const sideOffsetValue = typeof sideOffset === 'function' ? sideOffset(getOffsetData(state, sideParam, isRtl)) : sideOffset;\n const isOverlappingAnchor = shiftY > sideOffsetValue;\n const adjacentTransformOrigin = {\n top: `${transformX}px calc(100% + ${sideOffsetValue}px)`,\n bottom: `${transformX}px ${-sideOffsetValue}px`,\n left: `calc(100% + ${sideOffsetValue}px) ${transformY}px`,\n right: `${-sideOffsetValue}px ${transformY}px`\n }[currentRenderedSide];\n const overlapTransformOrigin = `${transformX}px ${rects.reference.y + halfAnchorHeight - y}px`;\n elements.floating.style.setProperty('--transform-origin', crossAxisShiftEnabled && currentRenderedAxis === 'y' && isOverlappingAnchor ? overlapTransformOrigin : adjacentTransformOrigin);\n return {};\n }\n }, hide, adaptiveOrigin);\n useIsoLayoutEffect(() => {\n // Ensure positioning doesn't run initially for `keepMounted` elements that\n // aren't initially open.\n if (!mounted && floatingRootContext) {\n floatingRootContext.update({\n referenceElement: null,\n floatingElement: null,\n domReferenceElement: null,\n positionReference: null\n });\n }\n }, [mounted, floatingRootContext]);\n const autoUpdateOptions = React.useMemo(() => ({\n elementResize: !disableAnchorTracking && typeof ResizeObserver !== 'undefined',\n layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== 'undefined'\n }), [disableAnchorTracking]);\n const {\n refs,\n elements,\n x,\n y,\n middlewareData,\n update,\n placement: renderedPlacement,\n context,\n isPositioned,\n floatingStyles: originalFloatingStyles\n } = useFloating({\n rootContext: floatingRootContext,\n open: keepMounted ? mounted : undefined,\n placement,\n middleware,\n strategy: positionMethod,\n whileElementsMounted: keepMounted ? undefined : (...args) => autoUpdate(...args, autoUpdateOptions),\n nodeId,\n externalTree\n });\n const {\n sideX,\n sideY\n } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;\n\n // Default to `fixed` when not positioned to prevent `autoFocus` scroll jumps.\n // This ensures the popup is inside the viewport initially before it gets positioned.\n const resolvedPosition = isPositioned ? positionMethod : 'fixed';\n const floatingStyles = React.useMemo(() => {\n const base = adaptiveOrigin ? {\n position: resolvedPosition,\n [sideX]: x,\n [sideY]: y\n } : {\n position: resolvedPosition,\n ...originalFloatingStyles\n };\n if (!isPositioned) {\n base.opacity = 0;\n }\n return base;\n }, [adaptiveOrigin, resolvedPosition, sideX, x, sideY, y, originalFloatingStyles, isPositioned]);\n const registeredPositionReferenceRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n const resolvedAnchor = typeof anchorValue === 'function' ? anchorValue() : anchorValue;\n const unwrappedElement = (isRef(resolvedAnchor) ? resolvedAnchor.current : resolvedAnchor) || null;\n const finalAnchor = unwrappedElement || null;\n if (finalAnchor !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(finalAnchor);\n registeredPositionReferenceRef.current = finalAnchor;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (!mounted) {\n return;\n }\n const anchorValue = anchorValueRef.current;\n\n // Refs from parent components are set after useLayoutEffect runs and are available in useEffect.\n // Therefore, if the anchor is a ref, we need to update the position reference in useEffect.\n if (typeof anchorValue === 'function') {\n return;\n }\n if (isRef(anchorValue) && anchorValue.current !== registeredPositionReferenceRef.current) {\n refs.setPositionReference(anchorValue.current);\n registeredPositionReferenceRef.current = anchorValue.current;\n }\n }, [mounted, refs, anchorDep, anchorValueRef]);\n React.useEffect(() => {\n if (keepMounted && mounted && elements.reference && elements.floating) {\n return autoUpdate(elements.reference, elements.floating, update, autoUpdateOptions);\n }\n return undefined;\n }, [keepMounted, mounted, elements, update, autoUpdateOptions]);\n const renderedSide = getSide(renderedPlacement);\n const logicalRenderedSide = getLogicalSide(sideParam, renderedSide, isRtl);\n const renderedAlign = getAlignment(renderedPlacement) || 'center';\n const anchorHidden = Boolean(middlewareData.hide?.referenceHidden);\n\n // Locks the flip (makes it \"sticky\") so it doesn't prefer a given placement\n // and flips back lazily, not eagerly. Ideal for filtered lists that change\n // the size of the popup dynamically to avoid unwanted flipping when typing.\n useIsoLayoutEffect(() => {\n if (lazyFlip && mounted && isPositioned) {\n setMountSide(renderedSide);\n }\n }, [lazyFlip, mounted, isPositioned, renderedSide]);\n const arrowStyles = React.useMemo(() => ({\n position: 'absolute',\n top: middlewareData.arrow?.y,\n left: middlewareData.arrow?.x\n }), [middlewareData.arrow]);\n const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;\n return React.useMemo(() => ({\n positionerStyles: floatingStyles,\n arrowStyles,\n arrowRef,\n arrowUncentered,\n side: logicalRenderedSide,\n align: renderedAlign,\n physicalSide: renderedSide,\n anchorHidden,\n refs,\n context,\n isPositioned,\n update\n }), [floatingStyles, arrowStyles, arrowRef, arrowUncentered, logicalRenderedSide, renderedAlign, renderedSide, anchorHidden, refs, context, isPositioned, update]);\n}\nfunction isRef(param) {\n return param != null && 'current' in param;\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;AAaA,SAAS,EAAe,GAAW,GAAc,GAAO;CACtD,IAAM,IAAqB,MAAc,kBAAkB,MAAc;CAGzE,OAAO;EACL,KAAK;EACL,OAAO,IAJY,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,KAAK,EAAY,YAAY,EAA+B,YAC/E,EAAK,qBAAqB,EAAY,OAAO,GAC7C,EAA+B,UAAU,EAAY;CAEzD,GAAG;EAAC;EAAS;EAAM;EAAW;CAAc,CAAC,GAC7C,EAAM,gBAAgB;EACpB,IAAI,KAAe,KAAW,EAAS,aAAa,EAAS,UAC3D,OAAO,EAAW,EAAS,WAAW,EAAS,UAAU,GAAQ,CAAiB;CAGtF,GAAG;EAAC;EAAa;EAAS;EAAU;EAAQ;CAAiB,CAAC;CAC9D,IAAM,IAAe,EAAQ,EAAiB,GACxC,KAAsB,EAAe,GAAW,GAAc,CAAK,GACnE,KAAgB,EAAa,EAAiB,KAAK,UACnD,KAAe,EAAQ,EAAe,MAAM;CAKlD,QAAyB;EACvB,AAAI,MAAY,KAAW,KACzB,GAAa,CAAY;CAE7B,GAAG;EAAC;EAAU;EAAS;EAAc;CAAY,CAAC;CAClD,IAAM,KAAcA,EAAM,eAAe;EACvC,UAAU;EACV,KAAK,EAAe,OAAO;EAC3B,MAAM,EAAe,OAAO;CAC9B,IAAI,CAAC,EAAe,KAAK,CAAC,GACpB,KAAkB,EAAe,OAAO,iBAAiB;CAC/D,OAAOA,EAAM,eAAe;EAC1B,kBAAkB;EAClB;EACA;EACA;EACA,MAAM;EACN,OAAO;EACP,cAAc;EACd;EACA;EACA;EACA;EACA;CACF,IAAI;EAAC;EAAgB;EAAa;EAAU;EAAiB;EAAqB;EAAe;EAAc;EAAc;EAAM;EAAS;EAAc;CAAM,CAAC;AACnK;AACA,SAAS,EAAM,GAAO;CACpB,OAAO,KAAS,QAAQ,aAAa;AACvC"}
|
|
1
|
+
{"version":3,"file":"index396.js","names":[],"sources":["../../../node_modules/@base-ui/react/select/popup/utils.mjs"],"sourcesContent":["export function clearStyles(element, originalStyles) {\n if (element) {\n Object.assign(element.style, originalStyles);\n }\n}\nexport const LIST_FUNCTIONAL_STYLES = {\n position: 'relative',\n maxHeight: '100%',\n overflowX: 'hidden',\n overflowY: 'auto'\n};"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAgB,EAAY,GAAS,GAAgB;CACnD,AAAI,KACF,OAAO,OAAO,EAAQ,OAAO,CAAc;AAE/C;AACA,IAAa,IAAyB;CACpC,UAAU;CACV,WAAW;CACX,WAAW;CACX,WAAW;AACb"}
|
package/dist/index397.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
process.env.NODE_ENV !== "production" && (n.displayName = "SelectPositionerContext");
|
|
7
|
-
function r() {
|
|
8
|
-
let r = t.useContext(n);
|
|
9
|
-
if (!r) throw Error(process.env.NODE_ENV === "production" ? e(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
10
|
-
return r;
|
|
1
|
+
import { EMPTY_OBJECT as e } from "./index191.js";
|
|
2
|
+
import { DISABLED_TRANSITIONS_STYLE as t } from "./index240.js";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/internals/getDisabledMountTransitionStyles.mjs
|
|
4
|
+
function n(n) {
|
|
5
|
+
return n === "starting" ? t : e;
|
|
11
6
|
}
|
|
12
7
|
//#endregion
|
|
13
|
-
export { n as
|
|
8
|
+
export { n as getDisabledMountTransitionStyles };
|
|
14
9
|
|
|
15
10
|
//# sourceMappingURL=index397.js.map
|
package/dist/index397.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index397.js","names":[
|
|
1
|
+
{"version":3,"file":"index397.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/getDisabledMountTransitionStyles.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { DISABLED_TRANSITIONS_STYLE } from \"./constants.mjs\";\nexport function getDisabledMountTransitionStyles(transitionStatus) {\n return transitionStatus === 'starting' ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;\n}"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAgB,EAAiC,GAAkB;CACjE,OAAO,MAAqB,aAAa,IAA6B;AACxE"}
|
package/dist/index398.js
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRenderElement as e } from "./index196.js";
|
|
3
|
+
import { popupStateMapping as t } from "./index198.js";
|
|
4
|
+
import { getDisabledMountTransitionStyles as n } from "./index397.js";
|
|
5
|
+
//#region ../../node_modules/@base-ui/react/utils/usePositioner.mjs
|
|
6
|
+
function r(r, i, { styles: a, transitionStatus: o, props: s, refs: c, hidden: l, inert: u = !1 }) {
|
|
7
|
+
let d = { ...a };
|
|
8
|
+
return u && (d.pointerEvents = "none"), e("div", r, {
|
|
9
|
+
state: i,
|
|
10
|
+
ref: c,
|
|
11
|
+
props: [
|
|
12
|
+
{
|
|
13
|
+
role: "presentation",
|
|
14
|
+
hidden: l,
|
|
15
|
+
style: d
|
|
16
|
+
},
|
|
17
|
+
n(o),
|
|
18
|
+
s
|
|
19
|
+
],
|
|
20
|
+
stateAttributesMapping: t
|
|
21
|
+
});
|
|
4
22
|
}
|
|
5
|
-
var t = {
|
|
6
|
-
position: "relative",
|
|
7
|
-
maxHeight: "100%",
|
|
8
|
-
overflowX: "hidden",
|
|
9
|
-
overflowY: "auto"
|
|
10
|
-
};
|
|
11
23
|
//#endregion
|
|
12
|
-
export {
|
|
24
|
+
export { r as usePositioner };
|
|
13
25
|
|
|
14
26
|
//# sourceMappingURL=index398.js.map
|
package/dist/index398.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index398.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index398.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/usePositioner.mjs"],"sourcesContent":["'use client';\n\nimport { popupStateMapping } from \"./popupStateMapping.mjs\";\nimport { useRenderElement } from \"../internals/useRenderElement.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../internals/getDisabledMountTransitionStyles.mjs\";\n/**\n * Renders the shared outer Positioner element used by popup components.\n * Applies the common role, hidden state, transition styles, state attributes, and optional inert styling.\n */\nexport function usePositioner(componentProps, state, {\n styles,\n transitionStatus,\n props,\n refs,\n hidden,\n inert = false\n}) {\n const style = {\n ...styles\n };\n if (inert) {\n style.pointerEvents = 'none';\n }\n return useRenderElement('div', componentProps, {\n state,\n ref: refs,\n props: [{\n role: 'presentation',\n hidden,\n style\n }, getDisabledMountTransitionStyles(transitionStatus), props],\n stateAttributesMapping: popupStateMapping\n });\n}"],"x_google_ignoreList":[0],"mappings":";;;;;AASA,SAAgB,EAAc,GAAgB,GAAO,EACnD,WACA,qBACA,UACA,SACA,WACA,WAAQ,MACP;CACD,IAAM,IAAQ,EACZ,GAAG,EACL;CAIA,OAHI,MACF,EAAM,gBAAgB,SAEjB,EAAiB,OAAO,GAAgB;EAC7C;EACA,KAAK;EACL,OAAO;GAAC;IACN,MAAM;IACN;IACA;GACF;GAAG,EAAiC,CAAgB;GAAG;EAAK;EAC5D,wBAAwB;CAC1B,CAAC;AACH"}
|
package/dist/index399.js
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIsoLayoutEffect as e } from "./index204.js";
|
|
3
|
+
import { ownerDocument as t } from "./index207.js";
|
|
4
|
+
import { useScrollLock as n } from "./index283.js";
|
|
5
|
+
import * as r from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
|
|
7
|
+
var i = 20;
|
|
8
|
+
function a(a, o, s, c) {
|
|
9
|
+
let [l, u] = r.useState(!1);
|
|
10
|
+
e(() => {
|
|
11
|
+
if (!a || !o || s == null) {
|
|
12
|
+
u(!1);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
let e = t(s).documentElement.clientWidth, n = s.offsetWidth;
|
|
16
|
+
u(e > 0 && n > 0 && n >= e - i);
|
|
17
|
+
}, [
|
|
18
|
+
a,
|
|
19
|
+
o,
|
|
20
|
+
s
|
|
21
|
+
]), n(a && (!o || l), c);
|
|
6
22
|
}
|
|
7
23
|
//#endregion
|
|
8
|
-
export {
|
|
24
|
+
export { a as useAnchoredPopupScrollLock };
|
|
9
25
|
|
|
10
26
|
//# sourceMappingURL=index399.js.map
|
package/dist/index399.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index399.js","names":[],"sources":["../../../node_modules/@base-ui/react/utils/
|
|
1
|
+
{"version":3,"file":"index399.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;AAWA,IAAM,IAA8B;AAOpC,SAAgB,EAA2B,GAAS,GAAW,GAAmB,GAAkB;CAClG,IAAM,CAAC,GAA2B,KAAgCA,EAAM,SAAS,EAAK;CAUtF,AATA,QAAyB;EACvB,IAAI,CAAC,KAAW,CAAC,KAAa,KAAqB,MAAM;GACvD,EAA6B,EAAK;GAClC;EACF;EACA,IAAM,IAAgB,EAAc,CAAiB,CAAC,CAAC,gBAAgB,aACjE,IAAa,EAAkB;EACrC,EAA6B,IAAgB,KAAK,IAAa,KAAK,KAAc,IAAgB,CAA2B;CAC/H,GAAG;EAAC;EAAS;EAAW;CAAiB,CAAC,GAC1C,EAAc,MAAY,CAAC,KAAa,IAA4B,CAAgB;AACtF"}
|
package/dist/index4.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","names":[
|
|
1
|
+
{"version":3,"file":"index4.js","names":[],"sources":["../src/helpers/useIsTouchDevice.ts"],"sourcesContent":["import { useEffect, useState } from \"react\"\n\n\nconst TOUCH_MEDIA_QUERY = \"(pointer: coarse)\"\n\nexport function useIsTouchDevice() {\n const [isTouchDevice, setIsTouchDevice] = useState(false)\n\n // React Compiler rejects hook aliasing (useIsomorphicLayoutEffect pattern), so we keep\n // a direct hook call and guard browser-only logic inside the effect.\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return\n }\n\n const mediaQuery =\n typeof window.matchMedia === \"function\" ? window.matchMedia(TOUCH_MEDIA_QUERY) : undefined\n\n const getHasTouchSupport = () => {\n if (typeof window === \"undefined\") {\n return false\n }\n\n const mqMatches = mediaQuery?.matches ?? false\n const nav = typeof navigator !== \"undefined\" ? navigator : undefined\n const maxTouchPoints = nav?.maxTouchPoints ?? 0\n const msMaxTouchPoints = (nav as unknown as { msMaxTouchPoints?: number })?.msMaxTouchPoints ?? 0\n\n return mqMatches || maxTouchPoints > 0 || msMaxTouchPoints > 0\n }\n\n const updateIsTouchDevice = () => {\n setIsTouchDevice(getHasTouchSupport())\n }\n\n updateIsTouchDevice()\n\n if (!mediaQuery) {\n return\n }\n\n if (typeof mediaQuery.addEventListener === \"function\") {\n mediaQuery.addEventListener(\"change\", updateIsTouchDevice)\n return () => mediaQuery.removeEventListener(\"change\", updateIsTouchDevice)\n }\n\n if (typeof mediaQuery.addListener === \"function\") {\n mediaQuery.addListener(updateIsTouchDevice)\n return () => mediaQuery.removeListener(updateIsTouchDevice)\n }\n }, [])\n\n return isTouchDevice\n}\n"],"mappings":";;;AAGA,IAAM,IAAoB;AAE1B,SAAO,IAAA;CAAA,IAAA,IAAA,EAAA,CAAA,GACL,CAAA,GAAA,KAA0C,EAAS,EAAK,GAAC,GAAA;CA4CnD,OA5CmD,EAAA,OAAA,OAAA,IAAA,2BAAA,KAI/C,UAAA;EACR,IAAI,OAAO,SAAW,KAAW;EAIjC,IAAA,IACE,OAAO,OAAM,cAAgB,aAAa,OAAM,WAAY,CAA6B,IAAzF,KAAA,GAEF,UAA2B;GACzB,IAAI,OAAO,SAAW,KAAW,OACxB;GAGT,IAAA,IAAkB,GAAU,WAAV,IAClB,IAAY,OAAO,YAAc,MAArB,YAAA,KAAA,GACZ,IAAuB,GAAG,kBAAH,GACvB,IAA0B,GAAkE,oBAAnE;GAAwE,OAE1F,KAAa,IAAiB,KAAK,IAAmB;EAAC,GAGhE,UAA4B;GAC1B,EAAiB,EAAmB,CAAC;EAAC;EAGxC,MAAoB,GAEf,GAIL;OAAI,OAAO,EAAU,oBAAsB,YACiB,OAA1D,EAAU,iBAAkB,UAAU,CAAmB,SAC5C,EAAU,oBAAqB,UAAU,CAAmB;GAG3E,IAAI,OAAO,EAAU,eAAiB,YACO,OAA3C,EAAU,YAAa,CAAmB,SAC7B,EAAU,eAAgB,CAAmB;EALgB;CAM3E,GACA,IAAA,CAAA,GAAE,EAAA,KAAA,GAAA,EAAA,KAAA,MAAA,IAAA,EAAA,IAAA,IAAA,EAAA,KAxCL,EAAU,GAwCP,CAAE,GAEE;AAAa"}
|
package/dist/index400.js
CHANGED
|
@@ -1,26 +1,108 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
import { useStableCallback as e } from "./index202.js";
|
|
3
|
+
import { useIsoLayoutEffect as t } from "./index204.js";
|
|
4
|
+
import { none as n } from "./index210.js";
|
|
5
|
+
import { createChangeEventDetails as r } from "./index211.js";
|
|
6
|
+
import { DROPDOWN_COLLISION_AVOIDANCE as i } from "./index240.js";
|
|
7
|
+
import { useStore as a } from "./index259.js";
|
|
8
|
+
import { inertValue as o } from "./index280.js";
|
|
9
|
+
import { InternalBackdrop as s } from "./index281.js";
|
|
10
|
+
import { useSelectRootContext as c } from "./index367.js";
|
|
11
|
+
import { findItemIndex as l } from "./index373.js";
|
|
12
|
+
import { selectors as u } from "./index376.js";
|
|
13
|
+
import { CompositeList as d } from "./index389.js";
|
|
14
|
+
import { useAnchorPositioning as f } from "./index394.js";
|
|
15
|
+
import { SelectPositionerContext as ee } from "./index395.js";
|
|
16
|
+
import { clearStyles as p } from "./index396.js";
|
|
17
|
+
import { usePositioner as m } from "./index398.js";
|
|
18
|
+
import { useAnchoredPopupScrollLock as h } from "./index399.js";
|
|
19
|
+
import * as g from "react";
|
|
20
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
21
|
+
//#region ../../node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
|
|
22
|
+
var te = { position: "fixed" }, y = /*#__PURE__*/ g.forwardRef(function(y, b) {
|
|
23
|
+
let { anchor: x, className: ne, render: re, positionMethod: ie, side: ae, align: oe, sideOffset: se, alignOffset: ce, collisionBoundary: S = "clipping-ancestors", collisionPadding: C, arrowPadding: w, sticky: T, disableAnchorTracking: E, alignItemWithTrigger: D = !0, collisionAvoidance: O = i, style: le, ...k } = y, { store: A, listRef: j, labelsRef: M, alignItemWithTriggerActiveRef: N, selectedItemTextRef: P, valuesRef: F, initialValueRef: I, popupRef: L, setValue: R, floatingContext: z } = c(), B = a(A, u.open), V = a(A, u.mounted), H = a(A, u.modal), U = a(A, u.value), W = a(A, u.openMethod), G = a(A, u.positionerElement), K = a(A, u.triggerElement), q = a(A, u.isItemEqualToValue), ue = a(A, u.transitionStatus), de = g.useRef(null), fe = g.useRef(null), [J, Y] = g.useState(D), X = V && J && W !== "touch";
|
|
24
|
+
!V && J !== D && Y(D), g.useImperativeHandle(N, () => X), h((X || H) && B, W === "touch", G, K);
|
|
25
|
+
let Z = f({
|
|
26
|
+
anchor: x,
|
|
27
|
+
floatingRootContext: z,
|
|
28
|
+
positionMethod: ie,
|
|
29
|
+
mounted: V,
|
|
30
|
+
side: ae,
|
|
31
|
+
sideOffset: se,
|
|
32
|
+
align: oe,
|
|
33
|
+
alignOffset: ce,
|
|
34
|
+
arrowPadding: w,
|
|
35
|
+
collisionBoundary: S,
|
|
36
|
+
collisionPadding: C,
|
|
37
|
+
sticky: T,
|
|
38
|
+
disableAnchorTracking: E ?? X,
|
|
39
|
+
collisionAvoidance: O,
|
|
40
|
+
keepMounted: !0
|
|
41
|
+
}), Q = X ? "none" : Z.side, pe = X ? te : Z.positionerStyles, me = {
|
|
42
|
+
open: B,
|
|
43
|
+
side: Q,
|
|
44
|
+
align: Z.align,
|
|
45
|
+
anchorHidden: Z.anchorHidden
|
|
46
|
+
};
|
|
47
|
+
t(() => {
|
|
48
|
+
A.set("popupSide", Z.side);
|
|
49
|
+
}, [A, Z.side]);
|
|
50
|
+
let he = A.useStateSetter("positionerElement"), ge = m(y, me, {
|
|
51
|
+
styles: pe,
|
|
52
|
+
transitionStatus: ue,
|
|
53
|
+
props: k,
|
|
54
|
+
refs: [b, he],
|
|
55
|
+
hidden: !V,
|
|
56
|
+
inert: !B
|
|
57
|
+
}), $ = g.useRef(0), _e = e((e) => {
|
|
58
|
+
if (F.current.length === 0) return;
|
|
59
|
+
let t = $.current;
|
|
60
|
+
if ($.current = e.size, e.size === t) return;
|
|
61
|
+
let i = r(n);
|
|
62
|
+
if (t !== 0 && !A.state.multiple && U !== null && l(F.current, U, q) === -1) {
|
|
63
|
+
let e = I.current, t = e != null && l(F.current, e, q) !== -1 ? e : null;
|
|
64
|
+
R(t, i), t === null && (A.set("selectedIndex", null), P.current = null);
|
|
65
|
+
}
|
|
66
|
+
if (t !== 0 && A.state.multiple && Array.isArray(U)) {
|
|
67
|
+
let e = U.filter((e) => l(F.current, e, q) !== -1);
|
|
68
|
+
e.length !== U.length && (R(e, i), e.length === 0 && (A.set("selectedIndex", null), P.current = null));
|
|
69
|
+
}
|
|
70
|
+
if (B && X) {
|
|
71
|
+
A.update({
|
|
72
|
+
scrollUpArrowVisible: !1,
|
|
73
|
+
scrollDownArrowVisible: !1
|
|
74
|
+
});
|
|
75
|
+
let e = { height: "" };
|
|
76
|
+
p(G, e), p(L.current, e);
|
|
77
|
+
}
|
|
78
|
+
}), ve = g.useMemo(() => ({
|
|
79
|
+
...Z,
|
|
80
|
+
side: Q,
|
|
81
|
+
alignItemWithTriggerActive: X,
|
|
82
|
+
setControlledAlignItemWithTrigger: Y,
|
|
83
|
+
scrollUpArrowRef: de,
|
|
84
|
+
scrollDownArrowRef: fe
|
|
85
|
+
}), [
|
|
86
|
+
Z,
|
|
87
|
+
Q,
|
|
88
|
+
X,
|
|
89
|
+
Y
|
|
90
|
+
]);
|
|
91
|
+
return /*#__PURE__*/ _(d, {
|
|
92
|
+
elementsRef: j,
|
|
93
|
+
labelsRef: M,
|
|
94
|
+
onMapChange: _e,
|
|
95
|
+
children: /*#__PURE__*/ v(ee.Provider, {
|
|
96
|
+
value: ve,
|
|
97
|
+
children: [V && H && /*#__PURE__*/ _(s, {
|
|
98
|
+
inert: o(!B),
|
|
99
|
+
cutout: K
|
|
100
|
+
}), ge]
|
|
101
|
+
})
|
|
21
102
|
});
|
|
22
|
-
}
|
|
103
|
+
});
|
|
104
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "SelectPositioner");
|
|
23
105
|
//#endregion
|
|
24
|
-
export {
|
|
106
|
+
export { y as SelectPositioner };
|
|
25
107
|
|
|
26
108
|
//# sourceMappingURL=index400.js.map
|