@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/index256.js
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
import { __commonJSMin as e } from "./index2.js";
|
|
2
|
-
import { require_builtin_esm_external_require_react as t } from "./
|
|
3
|
-
import { require_shim as n } from "./
|
|
4
|
-
//#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.
|
|
2
|
+
import { require_builtin_esm_external_require_react as t } from "./index251.js";
|
|
3
|
+
import { require_shim as n } from "./index254.js";
|
|
4
|
+
//#region ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
|
|
5
5
|
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (a
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
7
|
+
function r(e, t) {
|
|
8
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
9
|
+
}
|
|
10
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
11
|
+
var i = t(), a = n(), o = typeof Object.is == "function" ? Object.is : r, s = a.useSyncExternalStore, c = i.useRef, l = i.useEffect, u = i.useMemo, d = i.useDebugValue;
|
|
12
|
+
e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
|
|
13
|
+
var a = c(null);
|
|
14
|
+
if (a.current === null) {
|
|
15
|
+
var f = {
|
|
16
|
+
hasValue: !1,
|
|
17
|
+
value: null
|
|
18
|
+
};
|
|
19
|
+
a.current = f;
|
|
20
|
+
} else f = a.current;
|
|
21
|
+
a = u(function() {
|
|
22
|
+
function e(e) {
|
|
23
|
+
if (!a) {
|
|
24
|
+
if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
|
|
25
|
+
var t = f.value;
|
|
26
|
+
if (i(t, e)) return c = t;
|
|
27
|
+
}
|
|
28
|
+
return c = e;
|
|
26
29
|
}
|
|
27
|
-
|
|
30
|
+
if (t = c, o(s, e)) return t;
|
|
31
|
+
var n = r(e);
|
|
32
|
+
return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
f.hasValue = !0, f.value = p;
|
|
48
|
-
}, [p]), d(p), p;
|
|
49
|
-
};
|
|
34
|
+
var a = !1, s, c, l = n === void 0 ? null : n;
|
|
35
|
+
return [function() {
|
|
36
|
+
return e(t());
|
|
37
|
+
}, l === null ? void 0 : function() {
|
|
38
|
+
return e(l());
|
|
39
|
+
}];
|
|
40
|
+
}, [
|
|
41
|
+
t,
|
|
42
|
+
n,
|
|
43
|
+
r,
|
|
44
|
+
i
|
|
45
|
+
]);
|
|
46
|
+
var p = s(e, a[0], a[1]);
|
|
47
|
+
return l(function() {
|
|
48
|
+
f.hasValue = !0, f.value = p;
|
|
49
|
+
}, [p]), d(p), p;
|
|
50
|
+
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
51
|
+
})();
|
|
50
52
|
}));
|
|
51
53
|
//#endregion
|
|
52
54
|
export default r();
|
|
53
|
-
export { r as
|
|
55
|
+
export { r as require_with_selector_development };
|
|
54
56
|
|
|
55
57
|
//# sourceMappingURL=index256.js.map
|
package/dist/index256.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index256.js","names":[],"sources":["../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.
|
|
1
|
+
{"version":3,"file":"index256.js","names":[],"sources":["../../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAWA,AAAA,QAAA,IAAA,aAAA,iBACG,WAAY;EACX,SAAS,EAAG,GAAG,GAAG;GAChB,OAAQ,MAAM,MAAY,MAAN,KAAW,IAAI,KAAM,IAAI,MAAQ,MAAM,KAAK,MAAM;EACxE;EACA,AAAgB,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,+BADxC,cAEA,+BAA+B,4BAA4B,MAAM,CAAC;EACpE,IAAI,IAAA,EAAA,GACF,IAAA,EAAA,GACA,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAK,GACzD,IAAuB,EAAK,sBAC5B,IAAS,EAAM,QACf,IAAY,EAAM,WAClB,IAAU,EAAM,SAChB,IAAgB,EAAM;EAiExB,AAhEA,EAAQ,mCAAmC,SACzC,GACA,GACA,GACA,GACA,GACA;GACA,IAAI,IAAU,EAAO,IAAI;GACzB,IAAa,EAAQ,YAAjB,MAA0B;IAC5B,IAAI,IAAO;KAAE,UAAU,CAAC;KAAG,OAAO;IAAK;IACvC,EAAQ,UAAU;GACpB,OAAO,IAAO,EAAQ;GACtB,IAAU,EACR,WAAY;IACV,SAAS,EAAiB,GAAc;KACtC,IAAI,CAAC,GAAS;MAIZ,IAHA,IAAU,CAAC,GACX,IAAmB,GACnB,IAAe,EAAS,CAAY,GACrB,MAAX,KAAK,KAAiB,EAAK,UAAU;OACvC,IAAI,IAAmB,EAAK;OAC5B,IAAI,EAAQ,GAAkB,CAAY,GACxC,OAAQ,IAAoB;MAChC;MACA,OAAQ,IAAoB;KAC9B;KAEA,IADA,IAAmB,GACf,EAAS,GAAkB,CAAY,GACzC,OAAO;KACT,IAAI,IAAgB,EAAS,CAAY;KAIzC,OAHe,MAAX,KAAK,KAAiB,EAAQ,GAAkB,CAAa,KACvD,IAAmB,GAAe,MAC5C,IAAmB,GACX,IAAoB;IAC9B;IACA,IAAI,IAAU,CAAC,GACb,GACA,GACA,IACa,MAAX,KAAK,IAA0B,OAAO;IAC1C,OAAO,CACL,WAAY;KACV,OAAO,EAAiB,EAAY,CAAC;IACvC,GACS,MAAT,OACI,KAAK,IACL,WAAY;KACV,OAAO,EAAiB,EAAuB,CAAC;IAClD,CACN;GACF,GACA;IAAC;IAAa;IAAmB;IAAU;GAAO,CACpD;GACA,IAAI,IAAQ,EAAqB,GAAW,EAAQ,IAAI,EAAQ,EAAE;GASlE,OARA,EACE,WAAY;IAEV,AADA,EAAK,WAAW,CAAC,GACjB,EAAK,QAAQ;GACf,GACA,CAAC,CAAK,CACR,GACA,EAAc,CAAK,GACZ;EACT,GACgB,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,8BADxC,cAEA,+BAA+B,2BAA2B,MAAM,CAAC;CACrE,EAAA,CAAG"}
|
package/dist/index257.js
CHANGED
|
@@ -1,57 +1,12 @@
|
|
|
1
1
|
import { __commonJSMin as e } from "./index2.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
//#region ../../node_modules/use-sync-external-store/
|
|
5
|
-
var r = /* @__PURE__ */ e(((e) => {
|
|
6
|
-
process.env.NODE_ENV
|
|
7
|
-
function r(e, t) {
|
|
8
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
9
|
-
}
|
|
10
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
11
|
-
var i = t(), a = n(), o = typeof Object.is == "function" ? Object.is : r, s = a.useSyncExternalStore, c = i.useRef, l = i.useEffect, u = i.useMemo, d = i.useDebugValue;
|
|
12
|
-
e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
|
|
13
|
-
var a = c(null);
|
|
14
|
-
if (a.current === null) {
|
|
15
|
-
var f = {
|
|
16
|
-
hasValue: !1,
|
|
17
|
-
value: null
|
|
18
|
-
};
|
|
19
|
-
a.current = f;
|
|
20
|
-
} else f = a.current;
|
|
21
|
-
a = u(function() {
|
|
22
|
-
function e(e) {
|
|
23
|
-
if (!a) {
|
|
24
|
-
if (a = !0, s = e, e = r(e), i !== void 0 && f.hasValue) {
|
|
25
|
-
var t = f.value;
|
|
26
|
-
if (i(t, e)) return c = t;
|
|
27
|
-
}
|
|
28
|
-
return c = e;
|
|
29
|
-
}
|
|
30
|
-
if (t = c, o(s, e)) return t;
|
|
31
|
-
var n = r(e);
|
|
32
|
-
return i !== void 0 && i(t, n) ? (s = e, t) : (s = e, c = n);
|
|
33
|
-
}
|
|
34
|
-
var a = !1, s, c, l = n === void 0 ? null : n;
|
|
35
|
-
return [function() {
|
|
36
|
-
return e(t());
|
|
37
|
-
}, l === null ? void 0 : function() {
|
|
38
|
-
return e(l());
|
|
39
|
-
}];
|
|
40
|
-
}, [
|
|
41
|
-
t,
|
|
42
|
-
n,
|
|
43
|
-
r,
|
|
44
|
-
i
|
|
45
|
-
]);
|
|
46
|
-
var p = s(e, a[0], a[1]);
|
|
47
|
-
return l(function() {
|
|
48
|
-
f.hasValue = !0, f.value = p;
|
|
49
|
-
}, [p]), d(p), p;
|
|
50
|
-
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
51
|
-
})();
|
|
2
|
+
import { require_with_selector_production as t } from "./index255.js";
|
|
3
|
+
import { require_with_selector_development as n } from "./index256.js";
|
|
4
|
+
//#region ../../node_modules/use-sync-external-store/shim/with-selector.js
|
|
5
|
+
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
|
+
r.exports = process.env.NODE_ENV === "production" ? t() : n();
|
|
52
7
|
}));
|
|
53
8
|
//#endregion
|
|
54
9
|
export default r();
|
|
55
|
-
export { r as
|
|
10
|
+
export { r as require_with_selector };
|
|
56
11
|
|
|
57
12
|
//# sourceMappingURL=index257.js.map
|
package/dist/index257.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index257.js","names":[],"sources":["../../../node_modules/use-sync-external-store/
|
|
1
|
+
{"version":3,"file":"index257.js","names":[],"sources":["../../../node_modules/use-sync-external-store/shim/with-selector.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAEA,AAGE,EAAO,UAHT,QAAA,IAAA,aAA6B,eACpB,EAAA,IAEA,EAAA"}
|
package/dist/index258.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import "react";
|
|
2
|
+
//#region ../../node_modules/@base-ui/utils/fastHooks.mjs
|
|
3
|
+
var e = [], t = void 0;
|
|
4
|
+
function n() {
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
7
|
+
function r(t) {
|
|
8
|
+
e.push(t);
|
|
9
|
+
}
|
|
8
10
|
//#endregion
|
|
9
|
-
export
|
|
10
|
-
export { r as require_with_selector };
|
|
11
|
+
export { n as getInstance, r as register };
|
|
11
12
|
|
|
12
13
|
//# sourceMappingURL=index258.js.map
|
package/dist/index258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index258.js","names":[],"sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index258.js","names":[],"sources":["../../../node_modules/@base-ui/utils/fastHooks.mjs"],"sourcesContent":["import * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nconst hooks = [];\nlet currentInstance = undefined;\nexport function getInstance() {\n return currentInstance;\n}\nexport function setInstance(instance) {\n currentInstance = instance;\n}\nexport function register(hook) {\n hooks.push(hook);\n}\n\n/**\n * Wraps a component function to enable performance optimizations for internal hooks.\n *\n * **Performance Optimization:**\n * Components wrapped with `fastComponent` have access to a shared \"instance\" context that enables\n * specialized hook implementations to batch operations and reduce overhead. The wrapper creates a\n * stable instance object that persists across renders, sets it as the current context, calls\n * registered hooks before and after rendering, then clears the context. The primary benefit is\n * with `useStore`, where multiple store subscriptions within the same component are collapsed into\n * a single `useSyncExternalStore` subscription per store, significantly reducing re-render overhead.\n * This optimization is only active on React 19+; on earlier versions `useStore` falls back to a\n * separate subscription per call.\n *\n * **Requirements:**\n * - The component function should follow standard React component patterns\n * - `useStore` calls must keep a stable order and count across renders, as batched hooks are\n * matched by call index\n * - Do not rely on the instance context outside of specialized hooks\n *\n * @param fn - The component function to wrap\n * @returns A wrapped component with the same signature as the input function\n *\n * @example\n * ```tsx\n * // Wrapping a component to enable optimized useStore batching\n * export const TooltipRoot = fastComponent(function TooltipRoot(props) {\n * // These useStore calls share a single subscription\n * const open = useStore(store, (state) => state.open);\n * const disabled = useStore(store, (state) => state.disabled);\n * const value = useStore(store, (state) => state.value);\n * // ...\n * });\n * ```\n */\nexport function fastComponent(fn) {\n const FastComponent = (props, forwardedRef) => {\n const instance = useRefWithInit(createInstance).current;\n let result;\n try {\n currentInstance = instance;\n for (const hook of hooks) {\n hook.before(instance);\n }\n result = fn(props, forwardedRef);\n for (const hook of hooks) {\n hook.after(instance);\n }\n instance.didInitialize = true;\n } finally {\n currentInstance = undefined;\n }\n return result;\n };\n FastComponent.displayName = fn.displayName || fn.name;\n return FastComponent;\n}\n\n/**\n * Wraps a component function with ref forwarding to enable performance optimizations for internal hooks.\n *\n * This is a convenience wrapper that combines `fastComponent` with `React.forwardRef`, enabling\n * both performance optimizations and proper ref forwarding. See `fastComponent` for details on\n * the performance benefits.\n *\n * @param fn - The component function that accepts props and a forwarded ref\n * @returns A wrapped component with ref forwarding enabled\n *\n * @example\n * ```tsx\n * // Wrapping a component with ref forwarding and optimized hooks\n * export const TooltipTrigger = fastComponentRef(function TooltipTrigger(\n * props,\n * forwardedRef\n * ) {\n * const store = useContext(TooltipContext);\n * const open = useStore(store, (state) => state.open);\n * // ... component logic with ref\n * return <button ref={forwardedRef} {...props} />;\n * });\n * ```\n */\nexport function fastComponentRef(fn) {\n return /*#__PURE__*/React.forwardRef(fastComponent(fn));\n}\nfunction createInstance() {\n return {\n didInitialize: false\n };\n}"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAM,IAAQ,CAAC,GACX,IAAkB,KAAA;AACtB,SAAgB,IAAc;CAC5B,OAAO;AACT;AAIA,SAAgB,EAAS,GAAM;CAC7B,EAAM,KAAK,CAAI;AACjB"}
|
package/dist/index259.js
CHANGED
|
@@ -1,13 +1,65 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isReactVersionAtLeast as e } from "./index187.js";
|
|
2
|
+
import { require_shim as t } from "./index254.js";
|
|
3
|
+
import { require_with_selector as n } from "./index257.js";
|
|
4
|
+
import { getInstance as r, register as i } from "./index258.js";
|
|
5
|
+
import * as a from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/utils/store/useStore.mjs
|
|
7
|
+
var o = t(), s = n(), c = e(19) ? d : f;
|
|
8
|
+
function l(e, t, n, r, i) {
|
|
9
|
+
return c(e, t, n, r, i);
|
|
6
10
|
}
|
|
7
|
-
function
|
|
8
|
-
e.
|
|
11
|
+
function u(e, t, n, r, i) {
|
|
12
|
+
let s = a.useCallback(() => t(e.getSnapshot(), n, r, i), [
|
|
13
|
+
e,
|
|
14
|
+
t,
|
|
15
|
+
n,
|
|
16
|
+
r,
|
|
17
|
+
i
|
|
18
|
+
]);
|
|
19
|
+
return (0, o.useSyncExternalStore)(e.subscribe, s, s);
|
|
20
|
+
}
|
|
21
|
+
i({
|
|
22
|
+
before(e) {
|
|
23
|
+
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
24
|
+
let t = !1;
|
|
25
|
+
for (let n = 0; n < e.syncHooks.length; n += 1) {
|
|
26
|
+
let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
|
|
27
|
+
Object.is(r.value, i) || (t = !0, r.value = i);
|
|
28
|
+
}
|
|
29
|
+
return t && (e.syncTick += 1), e.syncTick;
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
after(e) {
|
|
33
|
+
e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
|
|
34
|
+
let n = /* @__PURE__ */ new Set();
|
|
35
|
+
for (let t of e.syncHooks) n.add(t.store);
|
|
36
|
+
let r = [];
|
|
37
|
+
for (let e of n) r.push(e.subscribe(t));
|
|
38
|
+
return () => {
|
|
39
|
+
for (let e of r) e();
|
|
40
|
+
};
|
|
41
|
+
}), (0, o.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function d(e, t, n, i, a) {
|
|
45
|
+
let o = r();
|
|
46
|
+
if (!o) return u(e, t, n, i, a);
|
|
47
|
+
let s = o.syncIndex;
|
|
48
|
+
o.syncIndex += 1;
|
|
49
|
+
let c;
|
|
50
|
+
return o.didInitialize ? (c = o.syncHooks[s], (c.store !== e || c.selector !== t || !Object.is(c.a1, n) || !Object.is(c.a2, i) || !Object.is(c.a3, a)) && (c.store !== e && (o.didChangeStore = !0), c.store = e, c.selector = t, c.a1 = n, c.a2 = i, c.a3 = a, c.value = t(e.getSnapshot(), n, i, a))) : (c = {
|
|
51
|
+
store: e,
|
|
52
|
+
selector: t,
|
|
53
|
+
a1: n,
|
|
54
|
+
a2: i,
|
|
55
|
+
a3: a,
|
|
56
|
+
value: t(e.getSnapshot(), n, i, a)
|
|
57
|
+
}, o.syncHooks.push(c)), c.value;
|
|
58
|
+
}
|
|
59
|
+
function f(e, t, n, r, i) {
|
|
60
|
+
return (0, s.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
9
61
|
}
|
|
10
62
|
//#endregion
|
|
11
|
-
export {
|
|
63
|
+
export { l as useStore };
|
|
12
64
|
|
|
13
65
|
//# sourceMappingURL=index259.js.map
|
package/dist/index259.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index259.js","names":[],"sources":["../../../node_modules/@base-ui/utils/
|
|
1
|
+
{"version":3,"file":"index259.js","names":["React","useSyncExternalStore","useSyncExternalStoreWithSelector"],"sources":["../../../node_modules/@base-ui/utils/store/useStore.mjs"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;sBAUM,IADgC,EAAsB,EACD,IAAI,IAAe;AAC9E,SAAgB,EAAS,GAAO,GAAU,GAAI,GAAI,GAAI;CACpD,OAAO,EAAuB,GAAO,GAAU,GAAI,GAAI,CAAE;AAC3D;AACA,SAAS,EAAY,GAAO,GAAU,GAAI,GAAI,GAAI;CAChD,IAAM,IAAeA,EAAM,kBAAkB,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE,GAAG;EAAC;EAAO;EAAU;EAAI;EAAI;CAAE,CAAC;CACrH,QAAA,GAAOC,EAAAA,qBAAAA,CAAqB,EAAM,WAAW,GAAc,CAAY;AACzE;AACA,EAAS;CACP,OAAO,GAAU;EAEf,AADA,EAAS,YAAY,GAChB,EAAS,kBACZ,EAAS,WAAW,GACpB,EAAS,YAAY,CAAC,GACtB,EAAS,iBAAiB,IAC1B,EAAS,oBAAoB;GAC3B,IAAI,IAAY;GAChB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,UAAU,QAAQ,KAAK,GAAG;IACrD,IAAM,IAAO,EAAS,UAAU,IAC1B,IAAQ,EAAK,SAAS,EAAK,MAAM,OAAO,EAAK,IAAI,EAAK,IAAI,EAAK,EAAE;IACvE,AAAK,OAAO,GAAG,EAAK,OAAO,CAAK,MAC9B,IAAY,IACZ,EAAK,QAAQ;GAEjB;GAIA,OAHI,MACF,EAAS,YAAY,IAEhB,EAAS;EAClB;CAEJ;CACA,MAAM,GAAU;EACd,AAAI,EAAS,UAAU,SAAS,MAC1B,EAAS,mBACX,EAAS,iBAAiB,IAC1B,EAAS,aAAY,MAAiB;GACpC,IAAM,oBAAS,IAAI,IAAI;GACvB,KAAK,IAAM,KAAQ,EAAS,WAC1B,EAAO,IAAI,EAAK,KAAK;GAEvB,IAAM,IAAe,CAAC;GACtB,KAAK,IAAM,KAAS,GAClB,EAAa,KAAK,EAAM,UAAU,CAAa,CAAC;GAElD,aAAa;IACX,KAAK,IAAM,KAAe,GACxB,EAAY;GAEhB;EACF,KAGF,GAAA,EAAA,qBAAA,CAAqB,EAAS,WAAW,EAAS,aAAa,EAAS,WAAW;CAEvF;AACF,CAAC;AACD,SAAS,EAAa,GAAO,GAAU,GAAI,GAAI,GAAI;CACjD,IAAM,IAAW,EAAY;CAC7B,IAAI,CAAC,GAEH,OAAO,EAAY,GAAO,GAAU,GAAI,GAAI,CAAE;CAEhD,IAAM,IAAQ,EAAS;CACvB,EAAS,aAAa;CACtB,IAAI;CAyBJ,OAxBK,EAAS,iBAWZ,IAAO,EAAS,UAAU,KACtB,EAAK,UAAU,KAAS,EAAK,aAAa,KAAY,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,KAAK,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,KAAK,CAAC,OAAO,GAAG,EAAK,IAAI,CAAE,OAChI,EAAK,UAAU,MACjB,EAAS,iBAAiB,KAE5B,EAAK,QAAQ,GACb,EAAK,WAAW,GAChB,EAAK,KAAK,GACV,EAAK,KAAK,GACV,EAAK,KAAK,GACV,EAAK,QAAQ,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE,OApBvD,IAAO;EACL;EACA;EACA;EACA;EACA;EACA,OAAO,EAAS,EAAM,YAAY,GAAG,GAAI,GAAI,CAAE;CACjD,GACA,EAAS,UAAU,KAAK,CAAI,IAevB,EAAK;AACd;AACA,SAAS,EAAe,GAAO,GAAU,GAAI,GAAI,GAAI;CACnD,QAAA,GAAOC,EAAAA,iCAAAA,CAAiC,EAAM,WAAW,EAAM,aAAa,EAAM,cAAa,MAAS,EAAS,GAAO,GAAI,GAAI,CAAE,CAAC;AACrI"}
|
package/dist/index26.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.js","names":[],"sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"x_google_ignoreList":[0],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index26.js","names":[],"sources":["../../../node_modules/date-fns/addDays.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * **You don't need date-fns\\***:\n *\n * Temporal has a built-in `add` method on all its classes:\n *\n * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)\n * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)\n * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)\n * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)\n * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)\n * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)\n *\n * \\* **Not really**, see: https://date-fns.org/you-dont-need-date-fns\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n *\n * @example\n * // Using Temporal:\n * // Add 10 days to 1 September 2014:\n * Temporal.PlainDate.from(\"2014-09-01\").add({ days: 10 }).toString();\n * //=> \"2014-09-11\"\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n"],"x_google_ignoreList":[0],"mappings":";;;AAgDA,SAAgB,EAAQ,GAAM,GAAQ,GAAS;CAC7C,IAAM,IAAQ,EAAO,GAAM,GAAS,EAAE;CAOtC,OANI,MAAM,CAAM,IAAU,EAAc,GAAS,MAAM,GAAM,GAAG,KAG3D,KAEL,EAAM,QAAQ,EAAM,QAAQ,IAAI,CAAM,GAFlB;AAItB"}
|
package/dist/index260.js
CHANGED
|
@@ -1,65 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
e,
|
|
14
|
-
t
|
|
15
|
-
n
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { useStore as e } from "./index259.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/utils/store/Store.mjs
|
|
3
|
+
var t = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
6
|
+
}
|
|
7
|
+
subscribe = (e) => (this.listeners.add(e), () => {
|
|
8
|
+
this.listeners.delete(e);
|
|
9
|
+
});
|
|
10
|
+
getSnapshot = () => this.state;
|
|
11
|
+
setState(e) {
|
|
12
|
+
if (this.state === e) return;
|
|
13
|
+
this.state = e, this.updateTick += 1;
|
|
14
|
+
let t = this.updateTick;
|
|
15
|
+
for (let n of this.listeners) {
|
|
16
|
+
if (t !== this.updateTick) return;
|
|
17
|
+
n(e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
update(e) {
|
|
21
|
+
for (let t in e) if (!Object.is(this.state[t], e[t])) {
|
|
22
|
+
this.setState({
|
|
23
|
+
...this.state,
|
|
24
|
+
...e
|
|
25
|
+
});
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
set(e, t) {
|
|
30
|
+
Object.is(this.state[e], t) || this.setState({
|
|
31
|
+
...this.state,
|
|
32
|
+
[e]: t
|
|
30
33
|
});
|
|
31
|
-
},
|
|
32
|
-
after(e) {
|
|
33
|
-
e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
|
|
34
|
-
let n = /* @__PURE__ */ new Set();
|
|
35
|
-
for (let t of e.syncHooks) n.add(t.store);
|
|
36
|
-
let r = [];
|
|
37
|
-
for (let e of n) r.push(e.subscribe(t));
|
|
38
|
-
return () => {
|
|
39
|
-
for (let e of r) e();
|
|
40
|
-
};
|
|
41
|
-
}), (0, o.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
42
34
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
store: e,
|
|
52
|
-
selector: t,
|
|
53
|
-
a1: n,
|
|
54
|
-
a2: i,
|
|
55
|
-
a3: a,
|
|
56
|
-
value: t(e.getSnapshot(), n, i, a)
|
|
57
|
-
}, o.syncHooks.push(c)), c.value;
|
|
58
|
-
}
|
|
59
|
-
function f(e, t, n, r, i) {
|
|
60
|
-
return (0, s.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
61
|
-
}
|
|
35
|
+
notifyAll() {
|
|
36
|
+
let e = { ...this.state };
|
|
37
|
+
this.setState(e);
|
|
38
|
+
}
|
|
39
|
+
use(t, n, r, i) {
|
|
40
|
+
return e(this, t, n, r, i);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
62
43
|
//#endregion
|
|
63
|
-
export {
|
|
44
|
+
export { t as Store };
|
|
64
45
|
|
|
65
46
|
//# sourceMappingURL=index260.js.map
|
package/dist/index260.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index260.js","names":[
|
|
1
|
+
{"version":3,"file":"index260.js","names":[],"sources":["../../../node_modules/@base-ui/utils/store/Store.mjs"],"sourcesContent":["import { useStore } from \"./useStore.mjs\";\n/**\n * A data store implementation that allows subscribing to state changes and updating the state.\n * It uses an observer pattern to notify subscribers when the state changes.\n */\nexport class Store {\n /**\n * The current state of the store.\n * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.\n * To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).\n * The values can be used directly (to avoid subscribing to the store) in effects or event handlers.\n *\n * Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.\n */\n\n // Internal state to handle recursive `setState()` calls\n\n constructor(state) {\n this.state = state;\n this.listeners = new Set();\n this.updateTick = 0;\n }\n\n /**\n * Registers a listener that will be called whenever the store's state changes.\n *\n * @param fn The listener function to be called on state changes.\n * @returns A function to unsubscribe the listener.\n */\n subscribe = fn => {\n this.listeners.add(fn);\n return () => {\n this.listeners.delete(fn);\n };\n };\n\n /**\n * Returns the current state of the store.\n */\n getSnapshot = () => {\n return this.state;\n };\n\n /**\n * Updates the entire store's state and notifies all registered listeners.\n *\n * @param newState The new state to set for the store.\n */\n setState(newState) {\n if (this.state === newState) {\n return;\n }\n this.state = newState;\n this.updateTick += 1;\n const currentTick = this.updateTick;\n for (const listener of this.listeners) {\n if (currentTick !== this.updateTick) {\n // If the tick has changed, a recursive `setState` call has been made,\n // and it has already notified all listeners.\n return;\n }\n listener(newState);\n }\n }\n\n /**\n * Merges the provided changes into the current state and notifies listeners if there are changes.\n *\n * @param changes An object containing the changes to apply to the current state.\n */\n update(changes) {\n for (const key in changes) {\n if (!Object.is(this.state[key], changes[key])) {\n this.setState({\n ...this.state,\n ...changes\n });\n return;\n }\n }\n }\n\n /**\n * Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.\n *\n * @param key The key in the store's state to update.\n * @param value The new value to set for the specified key.\n */\n set(key, value) {\n if (!Object.is(this.state[key], value)) {\n this.setState({\n ...this.state,\n [key]: value\n });\n }\n }\n\n /**\n * Gives the state a new reference and updates all registered listeners.\n */\n notifyAll() {\n const newState = {\n ...this.state\n };\n this.setState(newState);\n }\n use(selector, a1, a2, a3) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStore(this, selector, a1, a2, a3);\n }\n}"],"x_google_ignoreList":[0],"mappings":";;AAKA,IAAa,IAAb,MAAmB;CAYjB,YAAY,GAAO;EAGjB,AAFA,KAAK,QAAQ,GACb,KAAK,4BAAY,IAAI,IAAI,GACzB,KAAK,aAAa;CACpB;CAQA,aAAY,OACV,KAAK,UAAU,IAAI,CAAE,SACR;EACX,KAAK,UAAU,OAAO,CAAE;CAC1B;CAMF,oBACS,KAAK;CAQd,SAAS,GAAU;EACjB,IAAI,KAAK,UAAU,GACjB;EAGF,AADA,KAAK,QAAQ,GACb,KAAK,cAAc;EACnB,IAAM,IAAc,KAAK;EACzB,KAAK,IAAM,KAAY,KAAK,WAAW;GACrC,IAAI,MAAgB,KAAK,YAGvB;GAEF,EAAS,CAAQ;EACnB;CACF;CAOA,OAAO,GAAS;EACd,KAAK,IAAM,KAAO,GAChB,IAAI,CAAC,OAAO,GAAG,KAAK,MAAM,IAAM,EAAQ,EAAI,GAAG;GAC7C,KAAK,SAAS;IACZ,GAAG,KAAK;IACR,GAAG;GACL,CAAC;GACD;EACF;CAEJ;CAQA,IAAI,GAAK,GAAO;EACd,AAAK,OAAO,GAAG,KAAK,MAAM,IAAM,CAAK,KACnC,KAAK,SAAS;GACZ,GAAG,KAAK;IACP,IAAM;EACT,CAAC;CAEL;CAKA,YAAY;EACV,IAAM,IAAW,EACf,GAAG,KAAK,MACV;EACA,KAAK,SAAS,CAAQ;CACxB;CACA,IAAI,GAAU,GAAI,GAAI,GAAI;EAExB,OAAO,EAAS,MAAM,GAAU,GAAI,GAAI,CAAE;CAC5C;AACF"}
|