@rpcbase/ui 0.279.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/index222.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index222.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index222.js","names":[],"sources":["../../../node_modules/@base-ui/utils/platform/env.mjs"],"sourcesContent":["import { lowerUserAgent } from \"./shared.mjs\";\n\n/** Running in jsdom or HappyDOM (used by unit tests). */\nexport const jsdom = /jsdom|happydom/.test(lowerUserAgent);"],"x_google_ignoreList":[0],"mappings":";;AAGA,IAAa,IAAQ,iBAAiB,KAAK,CAAc"}
|
package/dist/index223.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return t;
|
|
7
|
-
}
|
|
8
|
-
function n(t, n) {
|
|
9
|
-
if (!t || !n) return !1;
|
|
10
|
-
let r = n.getRootNode?.();
|
|
11
|
-
if (t.contains(n)) return !0;
|
|
12
|
-
if (r && e(r)) {
|
|
13
|
-
let e = n;
|
|
14
|
-
for (; e;) {
|
|
15
|
-
if (t === e) return !0;
|
|
16
|
-
e = e.parentNode || e.host;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return !1;
|
|
1
|
+
import { android as e } from "./index219.js";
|
|
2
|
+
import { jsdom as t } from "./index222.js";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/floating-ui-react/utils/event.mjs
|
|
4
|
+
function n(e) {
|
|
5
|
+
e.preventDefault(), e.stopPropagation();
|
|
20
6
|
}
|
|
21
7
|
function r(e) {
|
|
22
|
-
return "
|
|
8
|
+
return "nativeEvent" in e;
|
|
9
|
+
}
|
|
10
|
+
function i(t) {
|
|
11
|
+
return t.pointerType === "" && t.isTrusted ? !0 : e && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
12
|
+
}
|
|
13
|
+
function a(n) {
|
|
14
|
+
return t ? !1 : !e && n.width === 0 && n.height === 0 || e && n.width === 1 && n.height === 1 && n.pressure === 0 && n.detail === 0 && n.pointerType === "mouse" || n.width < 1 && n.height < 1 && n.pressure === 0 && n.detail === 0 && n.pointerType === "touch";
|
|
15
|
+
}
|
|
16
|
+
function o(e, t) {
|
|
17
|
+
let n = ["mouse", "pen"];
|
|
18
|
+
return t || n.push("", void 0), n.includes(e);
|
|
19
|
+
}
|
|
20
|
+
function s(e) {
|
|
21
|
+
let t = e.type;
|
|
22
|
+
return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { s as isClickLikeEvent, o as isMouseLikePointerType, r as isReactEvent, i as isVirtualClick, a as isVirtualPointerEvent, n as stopEvent };
|
|
26
26
|
|
|
27
27
|
//# sourceMappingURL=index223.js.map
|
package/dist/index223.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index223.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index223.js","names":["platform.os.android","platform.env.jsdom"],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/event.mjs"],"sourcesContent":["import { platform } from '@base-ui/utils/platform';\nexport function stopEvent(event) {\n event.preventDefault();\n event.stopPropagation();\n}\nexport function isReactEvent(event) {\n return 'nativeEvent' in event;\n}\n\n// License: https://github.com/adobe/react-spectrum/blob/main/packages/@react-aria/utils/src/isVirtualEvent.ts\nexport function isVirtualClick(event) {\n if (event.pointerType === '' && event.isTrusted) {\n return true;\n }\n if (platform.os.android && event.pointerType) {\n return event.type === 'click' && event.buttons === 1;\n }\n return event.detail === 0 && !event.pointerType;\n}\nexport function isVirtualPointerEvent(event) {\n if (platform.env.jsdom) {\n return false;\n }\n return !platform.os.android && event.width === 0 && event.height === 0 || platform.os.android && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse' ||\n // iOS VoiceOver returns 0.333• for width/height.\n event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'touch';\n}\nexport function isMouseLikePointerType(pointerType, strict) {\n // On some Linux machines with Chromium, mouse inputs return a `pointerType`\n // of \"pen\": https://github.com/floating-ui/floating-ui/issues/2015\n const values = ['mouse', 'pen'];\n if (!strict) {\n values.push('', undefined);\n }\n return values.includes(pointerType);\n}\nexport function isClickLikeEvent(event) {\n const type = event.type;\n return type === 'click' || type === 'mousedown' || type === 'keydown' || type === 'keyup';\n}"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAgB,EAAU,GAAO;CAE/B,AADA,EAAM,eAAe,GACrB,EAAM,gBAAgB;AACxB;AACA,SAAgB,EAAa,GAAO;CAClC,OAAO,iBAAiB;AAC1B;AAGA,SAAgB,EAAe,GAAO;CAOpC,OANI,EAAM,gBAAgB,MAAM,EAAM,YAC7B,KAELA,KAAuB,EAAM,cACxB,EAAM,SAAS,WAAW,EAAM,YAAY,IAE9C,EAAM,WAAW,KAAK,CAAC,EAAM;AACtC;AACA,SAAgB,EAAsB,GAAO;CAI3C,OAHIC,IACK,KAEF,CAACD,KAAuB,EAAM,UAAU,KAAK,EAAM,WAAW,KAAKA,KAAuB,EAAM,UAAU,KAAK,EAAM,WAAW,KAAK,EAAM,aAAa,KAAK,EAAM,WAAW,KAAK,EAAM,gBAAgB,WAEhN,EAAM,QAAQ,KAAK,EAAM,SAAS,KAAK,EAAM,aAAa,KAAK,EAAM,WAAW,KAAK,EAAM,gBAAgB;AAC7G;AACA,SAAgB,EAAuB,GAAa,GAAQ;CAG1D,IAAM,IAAS,CAAC,SAAS,KAAK;CAI9B,OAHK,KACH,EAAO,KAAK,IAAI,KAAA,CAAS,GAEpB,EAAO,SAAS,CAAW;AACpC;AACA,SAAgB,EAAiB,GAAO;CACtC,IAAM,IAAO,EAAM;CACnB,OAAO,MAAS,WAAW,MAAS,eAAe,MAAS,aAAa,MAAS;AACpF"}
|
package/dist/index224.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { activeElement as t, contains as n, getTarget as r } from "./index223.js";
|
|
4
|
-
//#region ../../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs
|
|
5
|
-
function i(e, t) {
|
|
6
|
-
if (t == null) return !1;
|
|
7
|
-
if ("composedPath" in e) return e.composedPath().includes(t);
|
|
8
|
-
let n = e;
|
|
9
|
-
return n.target != null && t.contains(n.target);
|
|
10
|
-
}
|
|
11
|
-
function a(e) {
|
|
12
|
-
return e.matches("html,body");
|
|
13
|
-
}
|
|
14
|
-
function o(t) {
|
|
15
|
-
return e(t) && t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
|
|
16
|
-
}
|
|
17
|
-
function s(e) {
|
|
18
|
-
return e ? e.getAttribute("role") === "combobox" && o(e) : !1;
|
|
19
|
-
}
|
|
20
|
-
function c(e) {
|
|
21
|
-
return e ? e.hasAttribute("data-base-ui-focusable") ? e : e.querySelector("[data-base-ui-focusable]") || e : null;
|
|
22
|
-
}
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs
|
|
2
|
+
var e = "data-base-ui-focusable", t = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", n = "ArrowLeft", r = "ArrowRight", i = "ArrowUp", a = "ArrowDown";
|
|
23
3
|
//#endregion
|
|
24
|
-
export {
|
|
4
|
+
export { a as ARROW_DOWN, n as ARROW_LEFT, r as ARROW_RIGHT, i as ARROW_UP, e as FOCUSABLE_ATTRIBUTE, t as TYPEABLE_SELECTOR };
|
|
25
5
|
|
|
26
6
|
//# sourceMappingURL=index224.js.map
|
package/dist/index224.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index224.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/
|
|
1
|
+
{"version":3,"file":"index224.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs"],"sourcesContent":["export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,IAAsB,0BAGtB,IAAoB,wHACpB,IAAa,aACb,IAAc,cACd,IAAW,WACX,IAAa"}
|
package/dist/index225.js
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isShadowRoot as e } from "./index200.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/internals/shadowDom.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
let t = e.activeElement;
|
|
5
|
+
for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
function n(t, n) {
|
|
9
|
+
if (!t || !n) return !1;
|
|
10
|
+
let r = n.getRootNode?.();
|
|
11
|
+
if (t.contains(n)) return !0;
|
|
12
|
+
if (r && e(r)) {
|
|
13
|
+
let e = n;
|
|
14
|
+
for (; e;) {
|
|
15
|
+
if (t === e) return !0;
|
|
16
|
+
e = e.parentNode || e.host;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return !1;
|
|
20
|
+
}
|
|
21
|
+
function r(e) {
|
|
22
|
+
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
6
23
|
}
|
|
7
24
|
//#endregion
|
|
8
|
-
export {
|
|
25
|
+
export { t as activeElement, n as contains, r as getTarget };
|
|
9
26
|
|
|
10
27
|
//# sourceMappingURL=index225.js.map
|
package/dist/index225.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index225.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index225.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/shadowDom.mjs"],"sourcesContent":["import { isShadowRoot } from '@floating-ui/utils/dom';\nexport function activeElement(doc) {\n let element = doc.activeElement;\n while (element?.shadowRoot?.activeElement != null) {\n element = element.shadowRoot.activeElement;\n }\n return element;\n}\nexport function contains(parent, child) {\n if (!parent || !child) {\n return false;\n }\n const rootNode = child.getRootNode?.();\n\n // First, attempt with the faster native method.\n if (parent.contains(child)) {\n return true;\n }\n\n // Then fall back to traversing out of shadow roots when needed.\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next) {\n return true;\n }\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nexport function getTarget(event) {\n if ('composedPath' in event) {\n return event.composedPath()[0];\n }\n\n // TS assumes `composedPath()` always exists, but older browsers without\n // shadow DOM support still fall back to `target`.\n return event.target;\n}"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAgB,EAAc,GAAK;CACjC,IAAI,IAAU,EAAI;CAClB,OAAO,GAAS,YAAY,iBAAiB,OAC3C,IAAU,EAAQ,WAAW;CAE/B,OAAO;AACT;AACA,SAAgB,EAAS,GAAQ,GAAO;CACtC,IAAI,CAAC,KAAU,CAAC,GACd,OAAO;CAET,IAAM,IAAW,EAAM,cAAc;CAGrC,IAAI,EAAO,SAAS,CAAK,GACvB,OAAO;CAIT,IAAI,KAAY,EAAa,CAAQ,GAAG;EACtC,IAAI,IAAO;EACX,OAAO,IAAM;GACX,IAAI,MAAW,GACb,OAAO;GAET,IAAO,EAAK,cAAc,EAAK;EACjC;CACF;CACA,OAAO;AACT;AACA,SAAgB,EAAU,GAAO;CAO/B,OANI,kBAAkB,IACb,EAAM,aAAa,CAAC,CAAC,KAKvB,EAAM;AACf"}
|
package/dist/index226.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { isHTMLElement as e } from "./index200.js";
|
|
2
|
+
import "./index224.js";
|
|
3
|
+
import { activeElement as t, contains as n, getTarget as r } from "./index225.js";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs
|
|
5
|
+
function i(e, t) {
|
|
6
|
+
if (t == null) return !1;
|
|
7
|
+
if ("composedPath" in e) return e.composedPath().includes(t);
|
|
8
|
+
let n = e;
|
|
9
|
+
return n.target != null && t.contains(n.target);
|
|
10
|
+
}
|
|
11
|
+
function a(e) {
|
|
12
|
+
return e.matches("html,body");
|
|
13
|
+
}
|
|
14
|
+
function o(t) {
|
|
15
|
+
return e(t) && t.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
return e ? e.getAttribute("role") === "combobox" && o(e) : !1;
|
|
19
|
+
}
|
|
20
|
+
function c(e) {
|
|
21
|
+
return e ? e.hasAttribute("data-base-ui-focusable") ? e : e.querySelector("[data-base-ui-focusable]") || e : null;
|
|
9
22
|
}
|
|
10
23
|
//#endregion
|
|
11
|
-
export {
|
|
24
|
+
export { t as activeElement, n as contains, c as getFloatingFocusElement, r as getTarget, i as isEventTargetWithin, a as isRootElement, s as isTypeableCombobox, o as isTypeableElement };
|
|
12
25
|
|
|
13
26
|
//# sourceMappingURL=index226.js.map
|
package/dist/index226.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index226.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index226.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs"],"sourcesContent":["import { isElement, isHTMLElement } from '@floating-ui/utils/dom';\nimport { platform } from '@base-ui/utils/platform';\nimport { FOCUSABLE_ATTRIBUTE, TYPEABLE_SELECTOR } from \"./constants.mjs\";\nimport { activeElement, contains, getTarget } from \"../../internals/shadowDom.mjs\";\nexport { activeElement, contains, getTarget };\nexport function isTargetInsideEnabledTrigger(target, triggerElements) {\n if (!isElement(target)) {\n return false;\n }\n const targetElement = target;\n if (triggerElements.hasElement(targetElement)) {\n return !targetElement.hasAttribute('data-trigger-disabled');\n }\n for (const [, trigger] of triggerElements.entries()) {\n if (contains(trigger, targetElement)) {\n return !trigger.hasAttribute('data-trigger-disabled');\n }\n }\n return false;\n}\nexport function isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const eventAgain = event;\n return eventAgain.target != null && node.contains(eventAgain.target);\n}\nexport function isRootElement(element) {\n return element.matches('html,body');\n}\nexport function isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nexport function isInteractiveElement(element) {\n return element?.closest(`button,a[href],[role=\"button\"],select,[tabindex]:not([tabindex=\"-1\"]),${TYPEABLE_SELECTOR}`) != null;\n}\nexport function isTypeableCombobox(element) {\n if (!element) {\n return false;\n }\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\nexport function matchesFocusVisible(element) {\n // We don't want to block focus from working with `visibleOnly`\n // (JSDOM doesn't match `:focus-visible` when the element has `:focus`)\n if (!element || platform.env.jsdom) {\n return true;\n }\n try {\n return element.matches(':focus-visible');\n } catch (_e) {\n return true;\n }\n}\nexport function getFloatingFocusElement(floatingElement) {\n if (!floatingElement) {\n return null;\n }\n // Try to find the element that has `{...getFloatingProps()}` spread on it.\n // This indicates the floating element is acting as a positioning wrapper, and\n // so focus should be managed on the child element with the event handlers and\n // aria props.\n return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAoBA,SAAgB,EAAoB,GAAO,GAAM;CAC/C,IAAI,KAAQ,MACV,OAAO;CAET,IAAI,kBAAkB,GACpB,OAAO,EAAM,aAAa,CAAC,CAAC,SAAS,CAAI;CAI3C,IAAM,IAAa;CACnB,OAAO,EAAW,UAAU,QAAQ,EAAK,SAAS,EAAW,MAAM;AACrE;AACA,SAAgB,EAAc,GAAS;CACrC,OAAO,EAAQ,QAAQ,WAAW;AACpC;AACA,SAAgB,EAAkB,GAAS;CACzC,OAAO,EAAc,CAAO,KAAK,EAAQ,QAAA,sHAAyB;AACpE;AAIA,SAAgB,EAAmB,GAAS;CAI1C,OAHK,IAGE,EAAQ,aAAa,MAAM,MAAM,cAAc,EAAkB,CAAO,IAFtE;AAGX;AAaA,SAAgB,EAAwB,GAAiB;CAQvD,OAPK,IAOE,EAAgB,aAAA,wBAAgC,IAAI,IAAkB,EAAgB,cAAc,0BAA0B,KAAK,IANjI;AAOX"}
|
package/dist/index227.js
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function n(n) {
|
|
6
|
-
let i = e(r, n).current;
|
|
7
|
-
return i.next = n, t(i.effect), i;
|
|
8
|
-
}
|
|
9
|
-
function r(e) {
|
|
10
|
-
let t = {
|
|
11
|
-
current: e,
|
|
12
|
-
next: e,
|
|
13
|
-
effect: () => {
|
|
14
|
-
t.current = t.next;
|
|
15
|
-
}
|
|
1
|
+
//#region ../../node_modules/@base-ui/utils/addEventListener.mjs
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
return e.addEventListener(t, n, r), () => {
|
|
4
|
+
e.removeEventListener(t, n, r);
|
|
16
5
|
};
|
|
17
|
-
return t;
|
|
18
6
|
}
|
|
19
7
|
//#endregion
|
|
20
|
-
export {
|
|
8
|
+
export { e as addEventListener };
|
|
21
9
|
|
|
22
10
|
//# sourceMappingURL=index227.js.map
|
package/dist/index227.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index227.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index227.js","names":[],"sources":["../../../node_modules/@base-ui/utils/addEventListener.mjs"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"x_google_ignoreList":[0],"mappings":";AAIA,SAAgB,EAAiB,GAAQ,GAAM,GAAU,GAAS;CAEhE,OADA,EAAO,iBAAiB,GAAM,GAAU,CAAO,SAClC;EACX,EAAO,oBAAoB,GAAM,GAAU,CAAO;CACpD;AACF"}
|
package/dist/index228.js
CHANGED
|
@@ -1,54 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
nextId = 1;
|
|
9
|
-
startId = 1;
|
|
10
|
-
isScheduled = !1;
|
|
11
|
-
tick = (e) => {
|
|
12
|
-
this.isScheduled = !1;
|
|
13
|
-
let t = this.callbacks, n = this.callbacksCount;
|
|
14
|
-
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, n > 0) for (let n = 0; n < t.length; n += 1) t[n]?.(e);
|
|
1
|
+
//#region ../../node_modules/@base-ui/utils/mergeCleanups.mjs
|
|
2
|
+
function e(...e) {
|
|
3
|
+
return () => {
|
|
4
|
+
for (let t = 0; t < e.length; t += 1) {
|
|
5
|
+
let n = e[t];
|
|
6
|
+
n && n();
|
|
7
|
+
}
|
|
15
8
|
};
|
|
16
|
-
request(e) {
|
|
17
|
-
let t = this.nextId;
|
|
18
|
-
this.nextId += 1, this.callbacks.push(e), this.callbacksCount += 1;
|
|
19
|
-
let n = process.env.NODE_ENV !== "production" && r !== requestAnimationFrame && (r = requestAnimationFrame, !0);
|
|
20
|
-
return (!this.isScheduled || n) && (requestAnimationFrame(this.tick), this.isScheduled = !0), t;
|
|
21
|
-
}
|
|
22
|
-
cancel(e) {
|
|
23
|
-
let t = e - this.startId;
|
|
24
|
-
t < 0 || t >= this.callbacks.length || (this.callbacks[t] = null, --this.callbacksCount);
|
|
25
|
-
}
|
|
26
|
-
}(), a = class e {
|
|
27
|
-
static create() {
|
|
28
|
-
return new e();
|
|
29
|
-
}
|
|
30
|
-
static request(e) {
|
|
31
|
-
return i.request(e);
|
|
32
|
-
}
|
|
33
|
-
static cancel(e) {
|
|
34
|
-
return i.cancel(e);
|
|
35
|
-
}
|
|
36
|
-
currentId = n;
|
|
37
|
-
request(e) {
|
|
38
|
-
this.cancel(), this.currentId = i.request(() => {
|
|
39
|
-
this.currentId = n, e();
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
cancel = () => {
|
|
43
|
-
this.currentId !== n && (i.cancel(this.currentId), this.currentId = n);
|
|
44
|
-
};
|
|
45
|
-
disposeEffect = () => this.cancel;
|
|
46
|
-
};
|
|
47
|
-
function o() {
|
|
48
|
-
let n = e(a.create).current;
|
|
49
|
-
return t(n.disposeEffect), n;
|
|
50
9
|
}
|
|
51
10
|
//#endregion
|
|
52
|
-
export {
|
|
11
|
+
export { e as mergeCleanups };
|
|
53
12
|
|
|
54
13
|
//# sourceMappingURL=index228.js.map
|
package/dist/index228.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index228.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index228.js","names":[],"sources":["../../../node_modules/@base-ui/utils/mergeCleanups.mjs"],"sourcesContent":["/**\n * Combines multiple cleanup functions into a single cleanup function.\n */\nexport function mergeCleanups(...cleanups) {\n return () => {\n for (let i = 0; i < cleanups.length; i += 1) {\n const cleanup = cleanups[i];\n if (cleanup) {\n cleanup();\n }\n }\n };\n}"],"x_google_ignoreList":[0],"mappings":";AAGA,SAAgB,EAAc,GAAG,GAAU;CACzC,aAAa;EACX,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,QAAQ,KAAK,GAAG;GAC3C,IAAM,IAAU,EAAS;GACzB,AAAI,KACF,EAAQ;EAEZ;CACF;AACF"}
|
package/dist/index229.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRefWithInit as e } from "./index185.js";
|
|
3
|
+
import { useIsoLayoutEffect as t } from "./index204.js";
|
|
4
|
+
//#region ../../node_modules/@base-ui/utils/useValueAsRef.mjs
|
|
5
|
+
function n(n) {
|
|
6
|
+
let i = e(r, n).current;
|
|
7
|
+
return i.next = n, t(i.effect), i;
|
|
8
|
+
}
|
|
9
|
+
function r(e) {
|
|
10
|
+
let t = {
|
|
11
|
+
current: e,
|
|
12
|
+
next: e,
|
|
13
|
+
effect: () => {
|
|
14
|
+
t.current = t.next;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
return t;
|
|
5
18
|
}
|
|
6
19
|
//#endregion
|
|
7
|
-
export {
|
|
20
|
+
export { n as useValueAsRef };
|
|
8
21
|
|
|
9
22
|
//# sourceMappingURL=index229.js.map
|
package/dist/index229.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index229.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index229.js","names":[],"sources":["../../../node_modules/@base-ui/utils/useValueAsRef.mjs"],"sourcesContent":["'use client';\n\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\n\n/**\n * Untracks the provided value by turning it into a ref to remove its reactivity.\n *\n * Used to access the passed value inside `React.useEffect` without causing the effect to re-run when the value changes.\n */\nexport function useValueAsRef(value) {\n const latest = useRefWithInit(createLatestRef, value).current;\n latest.next = value;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useIsoLayoutEffect(latest.effect);\n return latest;\n}\nfunction createLatestRef(value) {\n const latest = {\n current: value,\n next: value,\n effect: () => {\n latest.current = latest.next;\n }\n };\n return latest;\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAUA,SAAgB,EAAc,GAAO;CACnC,IAAM,IAAS,EAAe,GAAiB,CAAK,CAAC,CAAC;CAKtD,OAJA,EAAO,OAAO,GAGd,EAAmB,EAAO,MAAM,GACzB;AACT;AACA,SAAS,EAAgB,GAAO;CAC9B,IAAM,IAAS;EACb,SAAS;EACT,MAAM;EACN,cAAc;GACZ,EAAO,UAAU,EAAO;EAC1B;CACF;CACA,OAAO;AACT"}
|
package/dist/index230.js
CHANGED
|
@@ -1,23 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRefWithInit as e } from "./index185.js";
|
|
3
|
+
import { useOnMount as t } from "./index216.js";
|
|
4
|
+
//#region ../../node_modules/@base-ui/utils/useAnimationFrame.mjs
|
|
5
|
+
var n = null, r = globalThis.requestAnimationFrame, i = new class {
|
|
6
|
+
callbacks = [];
|
|
7
|
+
callbacksCount = 0;
|
|
8
|
+
nextId = 1;
|
|
9
|
+
startId = 1;
|
|
10
|
+
isScheduled = !1;
|
|
11
|
+
tick = (e) => {
|
|
12
|
+
this.isScheduled = !1;
|
|
13
|
+
let t = this.callbacks, n = this.callbacksCount;
|
|
14
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, n > 0) for (let n = 0; n < t.length; n += 1) t[n]?.(e);
|
|
15
|
+
};
|
|
16
|
+
request(e) {
|
|
17
|
+
let t = this.nextId;
|
|
18
|
+
this.nextId += 1, this.callbacks.push(e), this.callbacksCount += 1;
|
|
19
|
+
let n = process.env.NODE_ENV !== "production" && r !== requestAnimationFrame && (r = requestAnimationFrame, !0);
|
|
20
|
+
return (!this.isScheduled || n) && (requestAnimationFrame(this.tick), this.isScheduled = !0), t;
|
|
21
|
+
}
|
|
22
|
+
cancel(e) {
|
|
23
|
+
let t = e - this.startId;
|
|
24
|
+
t < 0 || t >= this.callbacks.length || (this.callbacks[t] = null, --this.callbacksCount);
|
|
25
|
+
}
|
|
26
|
+
}(), a = class e {
|
|
27
|
+
static create() {
|
|
28
|
+
return new e();
|
|
29
|
+
}
|
|
30
|
+
static request(e) {
|
|
31
|
+
return i.request(e);
|
|
32
|
+
}
|
|
33
|
+
static cancel(e) {
|
|
34
|
+
return i.cancel(e);
|
|
35
|
+
}
|
|
36
|
+
currentId = n;
|
|
37
|
+
request(e) {
|
|
38
|
+
this.cancel(), this.currentId = i.request(() => {
|
|
39
|
+
this.currentId = n, e();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
cancel = () => {
|
|
43
|
+
this.currentId !== n && (i.cancel(this.currentId), this.currentId = n);
|
|
44
|
+
};
|
|
45
|
+
disposeEffect = () => this.cancel;
|
|
19
46
|
};
|
|
47
|
+
function o() {
|
|
48
|
+
let n = e(a.create).current;
|
|
49
|
+
return t(n.disposeEffect), n;
|
|
50
|
+
}
|
|
20
51
|
//#endregion
|
|
21
|
-
export {
|
|
52
|
+
export { a as AnimationFrame, o as useAnimationFrame };
|
|
22
53
|
|
|
23
54
|
//# sourceMappingURL=index230.js.map
|
package/dist/index230.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index230.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index230.js","names":[],"sources":["../../../node_modules/@base-ui/utils/useAnimationFrame.mjs"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nimport { useOnMount } from \"./useOnMount.mjs\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nlet scheduler = new Scheduler();\n\n/**\n * Replaces the shared scheduler and drops all pending animation frame callbacks.\n *\n * For test environments only. The scheduler is process-global, so a callback scheduled in one test\n * but never run (e.g. requested under fake timers that were torn down before the frame fired) would\n * otherwise survive into a later test and run there against stale state. Call between tests to drop\n * such leftovers.\n */\nexport function resetAnimationFrameScheduler() {\n const previous = scheduler;\n scheduler = new Scheduler();\n // Continue the id sequence so `cancel()` calls from `AnimationFrame` instances created before the\n // reset cannot cancel callbacks scheduled after it.\n scheduler.nextId = previous.nextId;\n scheduler.startId = previous.nextId;\n // A frame requested before the reset may still be pending and holds the previous scheduler's\n // `tick`; empty its queue in place so that frame runs nothing when it eventually fires.\n previous.callbacks = [];\n previous.callbacksCount = 0;\n}\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAQA,IAAM,IAAQ,MACV,IAAW,WAAW,uBAuDtB,IAAY,IAAI,MAtDJ;CASd,YAAY,CAAC;CACb,iBAAiB;CACjB,SAAS;CACT,UAAU;CACV,cAAc;CACd,QAAO,MAAa;EAClB,KAAK,cAAc;EACnB,IAAM,IAAmB,KAAK,WACxB,IAAwB,KAAK;EAMnC,IAHA,KAAK,YAAY,CAAC,GAClB,KAAK,iBAAiB,GACtB,KAAK,UAAU,KAAK,QAChB,IAAwB,GAC1B,KAAK,IAAI,IAAI,GAAG,IAAI,EAAiB,QAAQ,KAAK,GAChD,EAAiB,EAAE,GAAG,CAAS;CAGrC;CACA,QAAQ,GAAI;EACV,IAAM,IAAK,KAAK;EAGhB,AAFA,KAAK,UAAU,GACf,KAAK,UAAU,KAAK,CAAE,GACtB,KAAK,kBAAkB;EAKvB,IAAM,IAAA,QAAA,IAAA,aAAwC,gBAAgB,MAAa,0BAA0B,IAAW,uBAAuB;EAKvI,QAJI,CAAC,KAAK,eAAe,OACvB,sBAAsB,KAAK,IAAI,GAC/B,KAAK,cAAc,KAEd;CACT;CACA,OAAO,GAAI;EACT,IAAM,IAAQ,IAAK,KAAK;EACpB,IAAQ,KAAK,KAAS,KAAK,UAAU,WAGzC,KAAK,UAAU,KAAS,MACxB,OAAK;CACP;AACF,EAC8B,GAsBjB,IAAb,MAAa,EAAe;CAC1B,OAAO,SAAS;EACd,OAAO,IAAI,EAAe;CAC5B;CACA,OAAO,QAAQ,GAAI;EACjB,OAAO,EAAU,QAAQ,CAAE;CAC7B;CACA,OAAO,OAAO,GAAI;EAChB,OAAO,EAAU,OAAO,CAAE;CAC5B;CACA,YAAY;CAKZ,QAAQ,GAAI;EAEV,AADA,KAAK,OAAO,GACZ,KAAK,YAAY,EAAU,cAAc;GAEvC,AADA,KAAK,YAAY,GACjB,EAAG;EACL,CAAC;CACH;CACA,eAAe;EACb,AAAI,KAAK,cAAc,MACrB,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAY;CAErB;CACA,sBACS,KAAK;AAEhB;AAKA,SAAgB,IAAoB;CAClC,IAAM,IAAU,EAAe,EAAe,MAAM,CAAC,CAAC;CAEtD,OADA,EAAW,EAAQ,aAAa,GACzB;AACT"}
|
package/dist/index231.js
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
ref: s,
|
|
21
|
-
style: r,
|
|
22
|
-
"aria-hidden": !c || void 0,
|
|
23
|
-
...u,
|
|
24
|
-
"data-base-ui-focus-guard": ""
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "FocusGuard");
|
|
1
|
+
//#region ../../node_modules/@base-ui/utils/visuallyHidden.mjs
|
|
2
|
+
var e = {
|
|
3
|
+
clipPath: "inset(50%)",
|
|
4
|
+
overflow: "hidden",
|
|
5
|
+
whiteSpace: "nowrap",
|
|
6
|
+
border: 0,
|
|
7
|
+
padding: 0,
|
|
8
|
+
width: 1,
|
|
9
|
+
height: 1,
|
|
10
|
+
margin: -1
|
|
11
|
+
}, t = {
|
|
12
|
+
...e,
|
|
13
|
+
position: "fixed",
|
|
14
|
+
top: 0,
|
|
15
|
+
left: 0
|
|
16
|
+
}, n = {
|
|
17
|
+
...e,
|
|
18
|
+
position: "absolute"
|
|
19
|
+
};
|
|
28
20
|
//#endregion
|
|
29
|
-
export {
|
|
21
|
+
export { t as visuallyHidden, n as visuallyHiddenInput };
|
|
30
22
|
|
|
31
23
|
//# sourceMappingURL=index231.js.map
|
package/dist/index231.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index231.js","names":[
|
|
1
|
+
{"version":3,"file":"index231.js","names":[],"sources":["../../../node_modules/@base-ui/utils/visuallyHidden.mjs"],"sourcesContent":["const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,IAAqB;CACzB,UAAU;CACV,UAAU;CACV,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,QAAQ;CACR,QAAQ;AACV,GACa,IAAiB;CAC5B,GAAG;CACH,UAAU;CACV,KAAK;CACL,MAAM;AACR,GACa,IAAsB;CACjC,GAAG;CACH,UAAU;AACZ"}
|