@rpcbase/ui 0.230.0 → 0.232.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/I18nField/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/index.d.ts.map +1 -1
- package/dist/index11.js +291 -278
- package/dist/index11.js.map +1 -1
- package/dist/index127.js +36 -36
- package/dist/index139.js +6 -6
- package/dist/index142.js +10 -10
- package/dist/index144.js +2 -2
- package/dist/index145.js +3 -3
- package/dist/index146.js +1 -1
- package/dist/index148.js +2 -2
- package/dist/index150.js +2 -2
- package/dist/index171.js +11 -13
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +62 -148
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +37 -30
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +14 -10
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +23 -48
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +109 -10
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +13 -45
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -95
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -87
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +247 -240
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +5 -106
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +11 -52
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +19 -11
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +13 -38
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +261 -8
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -116
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +28 -18
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +126 -15
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +5 -3
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +76 -34
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +65 -19
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +8 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +15 -8
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +91 -18
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +63 -26
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +44 -15
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +13 -58
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +154 -8
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +28 -64
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +9 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +46 -14
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +43 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +95 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +86 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +105 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +52 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +11 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +37 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +8 -12
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +116 -9
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +17 -13
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -13
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +3 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +36 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +20 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +9 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -54
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +19 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +28 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +16 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +58 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +8 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +66 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +19 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +16 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +5 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +6 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +16 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +12 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +9 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +13 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -16
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +5 -10
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +6 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -21
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +54 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +8 -9
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +4 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +4 -4
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +8 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +4 -16
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +3 -18
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +10 -15
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -29
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +10 -12
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +10 -25
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +9 -5
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +7 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -66
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +4 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +5 -5
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +6 -11
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +5 -50
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +17 -4
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +7 -29
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +10 -16
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +10 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +21 -21
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +10 -51
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -25
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -41
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +4 -39
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +6 -45
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +16 -23
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +9 -19
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +18 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +15 -70
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -17
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +29 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +12 -27
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +25 -13
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +5 -18
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +20 -37
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +64 -63
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -262
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +10 -277
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +49 -67
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +4 -46
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +27 -97
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -82
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +6 -13
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +21 -3
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +50 -28
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +25 -16
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +42 -38
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +39 -34
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +45 -69
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +20 -16
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +70 -3
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +15 -108
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +11 -26
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +26 -27
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +14 -4
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +18 -126
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +36 -4
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +258 -74
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +269 -260
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +68 -11
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +97 -25
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +83 -15
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +3 -10
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +28 -24
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +16 -16
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +34 -125
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -4
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +3 -40
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +24 -63
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +28 -13
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +4 -14
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +78 -7
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +270 -13
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +11 -5
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +10 -3
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +25 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +16 -7
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +109 -117
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +5 -261
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +39 -398
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +65 -52
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +14 -12
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -11
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +5 -4
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +3 -11
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +11 -4
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +8 -5
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +133 -11
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +395 -74
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +51 -65
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +11 -8
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -92
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +7 -19
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +11 -4
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +8 -17
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +13 -12
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +3 -8
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +3 -11
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +16 -7
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +50 -12
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +5 -3
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +122 -3
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +33 -4
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +74 -15
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +141 -7
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +61 -51
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +49 -11
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +15 -17
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +8 -5
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +4 -5
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +11 -20
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +21 -44
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +21 -18
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +5 -5
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +16 -199
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +12 -77
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +4 -123
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +10 -16
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +16 -32
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +5 -73
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +20 -142
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +45 -62
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +17 -49
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +4 -4
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +200 -11
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +76 -20
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +8 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +26 -5
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +27 -4
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +136 -14
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -8
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +226 -5
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +3 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +19 -545
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +77 -46
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +12 -18
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +3 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +71 -7
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +9 -7
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +15 -7
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +4 -11
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -8
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +4 -13
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +16 -3
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +9 -3
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +5 -8
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +5 -26
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +543 -24
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +44 -135
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +16 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +5 -226
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +7 -3
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +6 -19
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +7 -77
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +12 -12
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +8 -3
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +12 -71
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +3 -9
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +3 -16
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +14 -4
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +490 -54
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +5 -68
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +55 -30
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +68 -9
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +26 -148
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +9 -108
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +153 -8
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +108 -2
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +7 -43
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +2 -56
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +43 -7
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +56 -2
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +7 -54
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +2 -56
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +54 -14
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +51 -487
- package/dist/index422.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.js +2 -2
- package/dist/index49.js +34 -34
- package/dist/index50.js +29 -29
- package/dist/index51.js +2 -2
- package/dist/index52.js +12 -12
- package/dist/index53.js +4 -4
- package/dist/index54.js +1 -1
- package/dist/index55.js +22 -22
- package/dist/index56.js +5 -5
- package/dist/index57.js +5 -5
- package/dist/index58.js +8 -8
- package/dist/index59.js +5 -5
- package/dist/index60.js +17 -17
- package/dist/index61.js +5 -5
- package/dist/index62.js +3 -3
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index72.js +6 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +8 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -8
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -6
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +4 -4
- package/dist/index85.js +1 -1
- package/dist/index86.js +1 -1
- package/dist/index93.js +1 -1
- package/dist/index94.js +6 -6
- package/dist/index96.js +4 -4
- package/dist/index98.js +1 -1
- package/package.json +1 -1
package/dist/index287.js
CHANGED
|
@@ -1,103 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function u(t) {
|
|
20
|
-
return l(t) ? {
|
|
21
|
-
...s(t, o)
|
|
22
|
-
} : m(t);
|
|
23
|
-
}
|
|
24
|
-
function i(t, n) {
|
|
25
|
-
return l(n) ? s(n, t) : U(t, n);
|
|
26
|
-
}
|
|
27
|
-
function m(t) {
|
|
28
|
-
const n = {
|
|
29
|
-
...t
|
|
30
|
-
};
|
|
31
|
-
for (const e in n) {
|
|
32
|
-
const r = n[e];
|
|
33
|
-
a(e, r) && (n[e] = v(r));
|
|
34
|
-
}
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function U(t, n) {
|
|
38
|
-
if (!n)
|
|
39
|
-
return t;
|
|
40
|
-
for (const e in n) {
|
|
41
|
-
const r = n[e];
|
|
42
|
-
switch (e) {
|
|
43
|
-
case "style": {
|
|
44
|
-
t[e] = y(t.style, r);
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
case "className": {
|
|
48
|
-
t[e] = M(t.className, r);
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
default:
|
|
52
|
-
a(e, r) ? t[e] = A(t[e], r) : t[e] = r;
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { useRefWithInit as c } from "./index283.js";
|
|
3
|
+
const n = a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], r = (
|
|
4
|
+
// React 17 doesn't have useInsertionEffect.
|
|
5
|
+
n && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
|
|
6
|
+
n !== a.useLayoutEffect ? n : (e) => e()
|
|
7
|
+
);
|
|
8
|
+
function f(e) {
|
|
9
|
+
const t = c(o).current;
|
|
10
|
+
return t.next = e, r(t.effect), t.trampoline;
|
|
11
|
+
}
|
|
12
|
+
function o() {
|
|
13
|
+
const e = {
|
|
14
|
+
next: void 0,
|
|
15
|
+
callback: l,
|
|
16
|
+
trampoline: (...t) => e.callback?.(...t),
|
|
17
|
+
effect: () => {
|
|
18
|
+
e.callback = e.next;
|
|
53
19
|
}
|
|
54
|
-
}
|
|
55
|
-
return
|
|
56
|
-
}
|
|
57
|
-
function a(t, n) {
|
|
58
|
-
const e = t.charCodeAt(0), r = t.charCodeAt(1), c = t.charCodeAt(2);
|
|
59
|
-
return e === 111 && r === 110 && c >= 65 && c <= 90 && (typeof n == "function" || typeof n > "u");
|
|
60
|
-
}
|
|
61
|
-
function l(t) {
|
|
62
|
-
return typeof t == "function";
|
|
63
|
-
}
|
|
64
|
-
function s(t, n) {
|
|
65
|
-
return l(t) ? t(n) : t ?? o;
|
|
66
|
-
}
|
|
67
|
-
function A(t, n) {
|
|
68
|
-
return n ? t ? (...e) => {
|
|
69
|
-
const r = e[0];
|
|
70
|
-
if (I(r)) {
|
|
71
|
-
const f = r;
|
|
72
|
-
E(f);
|
|
73
|
-
const b = n(...e);
|
|
74
|
-
return f.baseUIHandlerPrevented || t?.(...e), b;
|
|
75
|
-
}
|
|
76
|
-
const c = n(...e);
|
|
77
|
-
return t?.(...e), c;
|
|
78
|
-
} : v(n) : t;
|
|
79
|
-
}
|
|
80
|
-
function v(t) {
|
|
81
|
-
return t && ((...n) => {
|
|
82
|
-
const e = n[0];
|
|
83
|
-
return I(e) && E(e), t(...n);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function E(t) {
|
|
87
|
-
return t.preventBaseUIHandler = () => {
|
|
88
|
-
t.baseUIHandlerPrevented = !0;
|
|
89
|
-
}, t;
|
|
90
|
-
}
|
|
91
|
-
function M(t, n) {
|
|
92
|
-
return n ? t ? n + " " + t : n : t;
|
|
20
|
+
};
|
|
21
|
+
return e;
|
|
93
22
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
23
|
+
function l() {
|
|
24
|
+
if (process.env.NODE_ENV !== "production")
|
|
25
|
+
throw (
|
|
26
|
+
/* minify-error-disabled */
|
|
27
|
+
new Error("Base UI: Cannot call an event handler while rendering.")
|
|
28
|
+
);
|
|
96
29
|
}
|
|
97
30
|
export {
|
|
98
|
-
|
|
99
|
-
M as mergeClassNames,
|
|
100
|
-
j as mergeProps,
|
|
101
|
-
w as mergePropsN
|
|
31
|
+
f as useStableCallback
|
|
102
32
|
};
|
|
103
33
|
//# sourceMappingURL=index287.js.map
|
package/dist/index287.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index287.js","sources":["../../../node_modules/@base-ui/react/esm/merge-props/mergeProps.js"],"sourcesContent":["import { mergeObjects } from '@base-ui/utils/mergeObjects';\nconst EMPTY_PROPS = {};\n\n/* eslint-disable id-denylist */\n/**\n * Merges multiple sets of React props. It follows the Object.assign pattern where the rightmost object's fields overwrite\n * the conflicting ones from others. This doesn't apply to event handlers, `className` and `style` props.\n *\n * Event handlers are merged and called in right-to-left order (rightmost handler executes first, leftmost last).\n * For React synthetic events, the rightmost handler can prevent prior (left-positioned) handlers from executing\n * by calling `event.preventBaseUIHandler()`. For non-synthetic events (custom events with primitive/object values),\n * all handlers always execute without prevention capability.\n *\n * The `className` prop is merged by concatenating classes in right-to-left order (rightmost class appears first in the string).\n * The `style` prop is merged with rightmost styles overwriting the prior ones.\n *\n * Props can either be provided as objects or as functions that take the previous props as an argument.\n * The function will receive the merged props up to that point (going from left to right):\n * so in the case of `(obj1, obj2, fn, obj3)`, `fn` will receive the merged props of `obj1` and `obj2`.\n * The function is responsible for chaining event handlers if needed (that is, we don't run the merge logic).\n *\n * Event handlers returned by the functions are not automatically prevented when `preventBaseUIHandler` is called.\n * They must check `event.baseUIHandlerPrevented` themselves and bail out if it's true.\n *\n * @important **`ref` is not merged.**\n * @param a Props object to merge.\n * @param b Props object to merge. The function will overwrite conflicting props from `a`.\n * @param c Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param d Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @param e Props object to merge. The function will overwrite conflicting props from previous parameters.\n * @returns The merged props.\n * @public\n */\n\nexport function mergeProps(a, b, c, d, e) {\n if (!c && !d && !e && !a) {\n return createInitialMergedProps(b);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(a);\n if (b) {\n merged = mergeInto(merged, b);\n }\n if (c) {\n merged = mergeInto(merged, c);\n }\n if (d) {\n merged = mergeInto(merged, d);\n }\n if (e) {\n merged = mergeInto(merged, e);\n }\n return merged;\n}\n/* eslint-enable id-denylist */\n\n/**\n * Merges an arbitrary number of React props using the same logic as {@link mergeProps}.\n * This function accepts an array of props instead of individual arguments.\n *\n * This has slightly lower performance than {@link mergeProps} due to accepting an array\n * instead of a fixed number of arguments. Prefer {@link mergeProps} when merging 5 or\n * fewer prop sets for better performance.\n *\n * @param props Array of props to merge.\n * @returns The merged props.\n * @see mergeProps\n * @public\n */\nexport function mergePropsN(props) {\n if (props.length === 0) {\n return EMPTY_PROPS;\n }\n if (props.length === 1) {\n return createInitialMergedProps(props[0]);\n }\n\n // We need to mutably own `merged`.\n let merged = createInitialMergedProps(props[0]);\n for (let i = 1; i < props.length; i += 1) {\n merged = mergeInto(merged, props[i]);\n }\n return merged;\n}\nfunction createInitialMergedProps(inputProps) {\n if (isPropsGetter(inputProps)) {\n // Getter-returned handlers intentionally keep their existing semantics.\n return {\n ...resolvePropsGetter(inputProps, EMPTY_PROPS)\n };\n }\n return copyInitialProps(inputProps);\n}\nfunction mergeInto(merged, inputProps) {\n if (isPropsGetter(inputProps)) {\n return resolvePropsGetter(inputProps, merged);\n }\n return mutablyMergeInto(merged, inputProps);\n}\nfunction copyInitialProps(inputProps) {\n const copiedProps = {\n ...inputProps\n };\n\n // `copiedProps` is our fresh own-object copy, so iterating with `for...in` is safe here.\n // eslint-disable-next-line guard-for-in\n for (const propName in copiedProps) {\n const propValue = copiedProps[propName];\n if (isEventHandler(propName, propValue)) {\n copiedProps[propName] = wrapEventHandler(propValue);\n }\n }\n return copiedProps;\n}\n\n/**\n * Merges two sets of props. In case of conflicts, the external props take precedence.\n */\nfunction mutablyMergeInto(mergedProps, externalProps) {\n if (!externalProps) {\n return mergedProps;\n }\n\n // eslint-disable-next-line guard-for-in\n for (const propName in externalProps) {\n const externalPropValue = externalProps[propName];\n switch (propName) {\n case 'style':\n {\n mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);\n break;\n }\n case 'className':\n {\n mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);\n break;\n }\n default:\n {\n if (isEventHandler(propName, externalPropValue)) {\n mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);\n } else {\n mergedProps[propName] = externalPropValue;\n }\n }\n }\n }\n return mergedProps;\n}\nfunction isEventHandler(key, value) {\n // This approach is more efficient than using a regex.\n const code0 = key.charCodeAt(0);\n const code1 = key.charCodeAt(1);\n const code2 = key.charCodeAt(2);\n return code0 === 111 /* o */ && code1 === 110 /* n */ && code2 >= 65 /* A */ && code2 <= 90 /* Z */ && (typeof value === 'function' || typeof value === 'undefined');\n}\nfunction isPropsGetter(inputProps) {\n return typeof inputProps === 'function';\n}\nfunction resolvePropsGetter(inputProps, previousProps) {\n if (isPropsGetter(inputProps)) {\n return inputProps(previousProps);\n }\n return inputProps ?? EMPTY_PROPS;\n}\nfunction mergeEventHandlers(ourHandler, theirHandler) {\n if (!theirHandler) {\n return ourHandler;\n }\n if (!ourHandler) {\n return wrapEventHandler(theirHandler);\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n const baseUIEvent = event;\n makeEventPreventable(baseUIEvent);\n const result = theirHandler(...args);\n if (!baseUIEvent.baseUIHandlerPrevented) {\n ourHandler?.(...args);\n }\n return result;\n }\n const result = theirHandler(...args);\n ourHandler?.(...args);\n return result;\n };\n}\nfunction wrapEventHandler(handler) {\n if (!handler) {\n return handler;\n }\n return (...args) => {\n const event = args[0];\n if (isSyntheticEvent(event)) {\n makeEventPreventable(event);\n }\n return handler(...args);\n };\n}\nexport function makeEventPreventable(event) {\n event.preventBaseUIHandler = () => {\n event.baseUIHandlerPrevented = true;\n };\n return event;\n}\nexport function mergeClassNames(ourClassName, theirClassName) {\n if (theirClassName) {\n if (ourClassName) {\n // eslint-disable-next-line prefer-template\n return theirClassName + ' ' + ourClassName;\n }\n return theirClassName;\n }\n return ourClassName;\n}\nfunction isSyntheticEvent(event) {\n return event != null && typeof event === 'object' && 'nativeEvent' in event;\n}"],"names":["EMPTY_PROPS","mergeProps","a","b","c","d","e","createInitialMergedProps","merged","mergeInto","mergePropsN","props","i","inputProps","isPropsGetter","resolvePropsGetter","copyInitialProps","mutablyMergeInto","copiedProps","propName","propValue","isEventHandler","wrapEventHandler","mergedProps","externalProps","externalPropValue","mergeObjects","mergeClassNames","mergeEventHandlers","key","value","code0","code1","code2","previousProps","ourHandler","theirHandler","args","event","isSyntheticEvent","baseUIEvent","makeEventPreventable","result","handler","ourClassName","theirClassName"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index287.js","sources":["../../../node_modules/@base-ui/utils/esm/useStableCallback.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.js\";\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nconst useInsertionEffect = React[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)];\nconst useSafeInsertionEffect =\n// React 17 doesn't have useInsertionEffect.\nuseInsertionEffect &&\n// Preact replaces useInsertionEffect with useLayoutEffect and fires too late.\nuseInsertionEffect !== React.useLayoutEffect ? useInsertionEffect : fn => fn();\n/**\n * Stabilizes the function passed so it's always the same between renders.\n *\n * The function becomes non-reactive to any values it captures.\n * It can safely be passed as a dependency of `React.useMemo` and `React.useEffect` without re-triggering them if its captured values change.\n *\n * The function must only be called inside effects and event handlers, never during render (which throws an error).\n *\n * This hook is a more permissive version of React 19.2's `React.useEffectEvent` in that it can be passed through contexts and called in event handler props, not just effects.\n */\nexport function useStableCallback(callback) {\n const stable = useRefWithInit(createStableCallback).current;\n stable.next = callback;\n useSafeInsertionEffect(stable.effect);\n return stable.trampoline;\n}\nfunction createStableCallback() {\n const stable = {\n next: undefined,\n callback: assertNotCalled,\n trampoline: (...args) => stable.callback?.(...args),\n effect: () => {\n stable.callback = stable.next;\n }\n };\n return stable;\n}\nfunction assertNotCalled() {\n if (process.env.NODE_ENV !== 'production') {\n throw /* minify-error-disabled */new Error('Base UI: Cannot call an event handler while rendering.');\n }\n}"],"names":["useInsertionEffect","React","useSafeInsertionEffect","fn","useStableCallback","callback","stable","useRefWithInit","createStableCallback","assertNotCalled","args"],"mappings":";;AAMA,MAAMA,IAAqBC,EAAM,qBAAqB,KAAK,OAAM,EAAG,QAAQ,CAAC,CAAC,GAAG,MAAM,GAAG,EAAE,CAAC,GACvFC;AAAA;AAAA,EAENF;AAAA,EAEAA,MAAuBC,EAAM,kBAAkBD,IAAqB,CAAAG,MAAMA,EAAE;AAAA;AAWrE,SAASC,EAAkBC,GAAU;AAC1C,QAAMC,IAASC,EAAeC,CAAoB,EAAE;AACpD,SAAAF,EAAO,OAAOD,GACdH,EAAuBI,EAAO,MAAM,GAC7BA,EAAO;AAChB;AACA,SAASE,IAAuB;AAC9B,QAAMF,IAAS;AAAA,IACb,MAAM;AAAA,IACN,UAAUG;AAAA,IACV,YAAY,IAAIC,MAASJ,EAAO,WAAW,GAAGI,CAAI;AAAA,IAClD,QAAQ,MAAM;AACZ,MAAAJ,EAAO,WAAWA,EAAO;AAAA,IAC3B;AAAA,EACJ;AACE,SAAOA;AACT;AACA,SAASG,IAAkB;AACzB,MAAI,QAAQ,IAAI,aAAa;AAC3B;AAAA;AAAA,MAAiC,IAAI,MAAM,wDAAwD;AAAA;AAEvG;","x_google_ignoreList":[0]}
|
package/dist/index288.js
CHANGED
|
@@ -1,87 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.state = t, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Registers a listener that will be called whenever the store's state changes.
|
|
17
|
-
*
|
|
18
|
-
* @param fn The listener function to be called on state changes.
|
|
19
|
-
* @returns A function to unsubscribe the listener.
|
|
20
|
-
*/
|
|
21
|
-
subscribe = (t) => (this.listeners.add(t), () => {
|
|
22
|
-
this.listeners.delete(t);
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* Returns the current state of the store.
|
|
26
|
-
*/
|
|
27
|
-
getSnapshot = () => this.state;
|
|
28
|
-
/**
|
|
29
|
-
* Updates the entire store's state and notifies all registered listeners.
|
|
30
|
-
*
|
|
31
|
-
* @param newState The new state to set for the store.
|
|
32
|
-
*/
|
|
33
|
-
setState(t) {
|
|
34
|
-
if (this.state === t)
|
|
35
|
-
return;
|
|
36
|
-
this.state = t, this.updateTick += 1;
|
|
37
|
-
const s = this.updateTick;
|
|
38
|
-
for (const e of this.listeners) {
|
|
39
|
-
if (s !== this.updateTick)
|
|
40
|
-
return;
|
|
41
|
-
e(t);
|
|
1
|
+
import { useIsoLayoutEffect as r } from "./index286.js";
|
|
2
|
+
import { useRefWithInit as n } from "./index283.js";
|
|
3
|
+
function s(e) {
|
|
4
|
+
const t = n(f, e).current;
|
|
5
|
+
return t.next = e, r(t.effect), t;
|
|
6
|
+
}
|
|
7
|
+
function f(e) {
|
|
8
|
+
const t = {
|
|
9
|
+
current: e,
|
|
10
|
+
next: e,
|
|
11
|
+
effect: () => {
|
|
12
|
+
t.current = t.next;
|
|
42
13
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
* Merges the provided changes into the current state and notifies listeners if there are changes.
|
|
46
|
-
*
|
|
47
|
-
* @param changes An object containing the changes to apply to the current state.
|
|
48
|
-
*/
|
|
49
|
-
update(t) {
|
|
50
|
-
for (const s in t)
|
|
51
|
-
if (!Object.is(this.state[s], t[s])) {
|
|
52
|
-
this.setState({
|
|
53
|
-
...this.state,
|
|
54
|
-
...t
|
|
55
|
-
});
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
|
|
61
|
-
*
|
|
62
|
-
* @param key The key in the store's state to update.
|
|
63
|
-
* @param value The new value to set for the specified key.
|
|
64
|
-
*/
|
|
65
|
-
set(t, s) {
|
|
66
|
-
Object.is(this.state[t], s) || this.setState({
|
|
67
|
-
...this.state,
|
|
68
|
-
[t]: s
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Gives the state a new reference and updates all registered listeners.
|
|
73
|
-
*/
|
|
74
|
-
notifyAll() {
|
|
75
|
-
const t = {
|
|
76
|
-
...this.state
|
|
77
|
-
};
|
|
78
|
-
this.setState(t);
|
|
79
|
-
}
|
|
80
|
-
use(t, s, e, i) {
|
|
81
|
-
return r(this, t, s, e, i);
|
|
82
|
-
}
|
|
14
|
+
};
|
|
15
|
+
return t;
|
|
83
16
|
}
|
|
84
17
|
export {
|
|
85
|
-
|
|
18
|
+
s as useValueAsRef
|
|
86
19
|
};
|
|
87
20
|
//# sourceMappingURL=index288.js.map
|
package/dist/index288.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index288.js","sources":["../../../node_modules/@base-ui/utils/esm/
|
|
1
|
+
{"version":3,"file":"index288.js","sources":["../../../node_modules/@base-ui/utils/esm/useValueAsRef.js"],"sourcesContent":["'use client';\n\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.js\";\nimport { useRefWithInit } from \"./useRefWithInit.js\";\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}"],"names":["useValueAsRef","value","latest","useRefWithInit","createLatestRef","useIsoLayoutEffect"],"mappings":";;AAUO,SAASA,EAAcC,GAAO;AACnC,QAAMC,IAASC,EAAeC,GAAiBH,CAAK,EAAE;AACtD,SAAAC,EAAO,OAAOD,GAGdI,EAAmBH,EAAO,MAAM,GACzBA;AACT;AACA,SAASE,EAAgBH,GAAO;AAC9B,QAAMC,IAAS;AAAA,IACb,SAASD;AAAA,IACT,MAAMA;AAAA,IACN,QAAQ,MAAM;AACZ,MAAAC,EAAO,UAAUA,EAAO;AAAA,IAC1B;AAAA,EACJ;AACE,SAAOA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index289.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
function e() {
|
|
2
|
+
}
|
|
3
|
+
const t = Object.freeze([]), c = Object.freeze({});
|
|
2
4
|
export {
|
|
3
|
-
|
|
4
|
-
c as
|
|
5
|
-
|
|
6
|
-
i as focusOut,
|
|
7
|
-
g as imperativeAction,
|
|
8
|
-
n as itemPress,
|
|
9
|
-
a as listNavigation,
|
|
10
|
-
e as none,
|
|
11
|
-
t as outsidePress,
|
|
12
|
-
o as triggerHover,
|
|
13
|
-
s as triggerPress,
|
|
14
|
-
l as windowResize
|
|
5
|
+
t as EMPTY_ARRAY,
|
|
6
|
+
c as EMPTY_OBJECT,
|
|
7
|
+
e as NOOP
|
|
15
8
|
};
|
|
16
9
|
//# sourceMappingURL=index289.js.map
|
package/dist/index289.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index289.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index289.js","sources":["../../../node_modules/@base-ui/utils/esm/empty.js"],"sourcesContent":["export function NOOP() {}\nexport const EMPTY_ARRAY = Object.freeze([]);\nexport const EMPTY_OBJECT = Object.freeze({});"],"names":["NOOP","EMPTY_ARRAY","EMPTY_OBJECT"],"mappings":"AAAO,SAASA,IAAO;AAAC;AACZ,MAACC,IAAc,OAAO,OAAO,CAAA,CAAE,GAC9BC,IAAe,OAAO,OAAO,CAAA,CAAE;","x_google_ignoreList":[0]}
|
package/dist/index290.js
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import o from "./index191.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const n = /* @__PURE__ */ e.createContext(null);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "SelectRootContext");
|
|
5
|
+
const c = /* @__PURE__ */ e.createContext(null);
|
|
6
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "SelectFloatingContext");
|
|
7
|
+
function s() {
|
|
8
|
+
const t = e.useContext(n);
|
|
9
|
+
if (t === null)
|
|
10
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : o(60));
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function i() {
|
|
14
|
+
const t = e.useContext(c);
|
|
15
|
+
if (t === null)
|
|
16
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : o(61));
|
|
17
|
+
return t;
|
|
3
18
|
}
|
|
4
19
|
export {
|
|
5
|
-
|
|
20
|
+
c as SelectFloatingContext,
|
|
21
|
+
n as SelectRootContext,
|
|
22
|
+
i as useSelectFloatingContext,
|
|
23
|
+
s as useSelectRootContext
|
|
6
24
|
};
|
|
7
25
|
//# sourceMappingURL=index290.js.map
|
package/dist/index290.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index290.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index290.js","sources":["../../../node_modules/@base-ui/react/esm/select/root/SelectRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectRootContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectRootContext.displayName = \"SelectRootContext\";\nexport const SelectFloatingContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") SelectFloatingContext.displayName = \"SelectFloatingContext\";\nexport function useSelectRootContext() {\n const context = React.useContext(SelectRootContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(60));\n }\n return context;\n}\nexport function useSelectFloatingContext() {\n const context = React.useContext(SelectFloatingContext);\n if (context === null) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.' : _formatErrorMessage(61));\n }\n return context;\n}"],"names":["SelectRootContext","React","SelectFloatingContext","useSelectRootContext","context","_formatErrorMessage","useSelectFloatingContext"],"mappings":";;AAIY,MAACA,IAAiC,gBAAAC,EAAM,cAAc,IAAI;AAClE,QAAQ,IAAI,aAAa,iBAAcD,EAAkB,cAAc;AAC/D,MAACE,IAAqC,gBAAAD,EAAM,cAAc,IAAI;AACtE,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,cAAc;AACxE,SAASC,IAAuB;AACrC,QAAMC,IAAUH,EAAM,WAAWD,CAAiB;AAClD,MAAII,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,6FAA6FC,EAAoB,EAAE,CAAC;AAE9K,SAAOD;AACT;AACO,SAASE,IAA2B;AACzC,QAAMF,IAAUH,EAAM,WAAWC,CAAqB;AACtD,MAAIE,MAAY;AACd,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,iGAAiGC,EAAoB,EAAE,CAAC;AAElL,SAAOD;AACT;","x_google_ignoreList":[0]}
|
package/dist/index291.js
CHANGED
|
@@ -1,33 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import d from "./index191.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { NOOP as e, EMPTY_OBJECT as a } from "./index289.js";
|
|
4
|
+
import { DEFAULT_FIELD_ROOT_STATE as l, DEFAULT_FIELD_STATE_ATTRIBUTES as i, DEFAULT_VALIDITY_STATE as s } from "./index312.js";
|
|
5
|
+
const r = /* @__PURE__ */ n.createContext({
|
|
6
|
+
invalid: void 0,
|
|
7
|
+
name: void 0,
|
|
8
|
+
validityData: {
|
|
9
|
+
state: s,
|
|
10
|
+
errors: [],
|
|
11
|
+
error: "",
|
|
12
|
+
value: "",
|
|
13
|
+
initialValue: null
|
|
14
|
+
},
|
|
15
|
+
setValidityData: e,
|
|
16
|
+
disabled: void 0,
|
|
17
|
+
touched: i.touched,
|
|
18
|
+
setTouched: e,
|
|
19
|
+
dirty: i.dirty,
|
|
20
|
+
setDirty: e,
|
|
21
|
+
filled: i.filled,
|
|
22
|
+
setFilled: e,
|
|
23
|
+
focused: i.focused,
|
|
24
|
+
setFocused: e,
|
|
25
|
+
validate: () => null,
|
|
26
|
+
validationMode: "onSubmit",
|
|
27
|
+
validationDebounceTime: 0,
|
|
28
|
+
shouldValidateOnChange: () => !1,
|
|
29
|
+
state: l,
|
|
30
|
+
markedDirtyRef: {
|
|
31
|
+
current: !1
|
|
32
|
+
},
|
|
33
|
+
registerFieldControl: e,
|
|
34
|
+
validation: {
|
|
35
|
+
getValidationProps: (t = a) => t,
|
|
36
|
+
getInputValidationProps: (t = a) => t,
|
|
37
|
+
inputRef: {
|
|
38
|
+
current: null
|
|
39
|
+
},
|
|
40
|
+
commit: async () => {
|
|
41
|
+
}
|
|
7
42
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, s);
|
|
16
|
-
}
|
|
17
|
-
isStarted() {
|
|
18
|
-
return this.currentId !== t;
|
|
19
|
-
}
|
|
20
|
-
clear = () => {
|
|
21
|
-
this.currentId !== t && (clearTimeout(this.currentId), this.currentId = t);
|
|
22
|
-
};
|
|
23
|
-
disposeEffect = () => this.clear;
|
|
24
|
-
}
|
|
25
|
-
function a() {
|
|
26
|
-
const e = c(r.create).current;
|
|
27
|
-
return u(e.disposeEffect), e;
|
|
43
|
+
});
|
|
44
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "FieldRootContext");
|
|
45
|
+
function m(t = !0) {
|
|
46
|
+
const o = n.useContext(r);
|
|
47
|
+
if (o.setValidityData === e && !t)
|
|
48
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : d(28));
|
|
49
|
+
return o;
|
|
28
50
|
}
|
|
29
51
|
export {
|
|
30
|
-
r as
|
|
31
|
-
|
|
52
|
+
r as FieldRootContext,
|
|
53
|
+
m as useFieldRootContext
|
|
32
54
|
};
|
|
33
55
|
//# sourceMappingURL=index291.js.map
|
package/dist/index291.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index291.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index291.js","sources":["../../../node_modules/@base-ui/react/esm/internals/field-root-context/FieldRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { NOOP } from \"../noop.js\";\nimport { DEFAULT_FIELD_ROOT_STATE, DEFAULT_FIELD_STATE_ATTRIBUTES, DEFAULT_VALIDITY_STATE } from \"../field-constants/constants.js\";\nexport const FieldRootContext = /*#__PURE__*/React.createContext({\n invalid: undefined,\n name: undefined,\n validityData: {\n state: DEFAULT_VALIDITY_STATE,\n errors: [],\n error: '',\n value: '',\n initialValue: null\n },\n setValidityData: NOOP,\n disabled: undefined,\n touched: DEFAULT_FIELD_STATE_ATTRIBUTES.touched,\n setTouched: NOOP,\n dirty: DEFAULT_FIELD_STATE_ATTRIBUTES.dirty,\n setDirty: NOOP,\n filled: DEFAULT_FIELD_STATE_ATTRIBUTES.filled,\n setFilled: NOOP,\n focused: DEFAULT_FIELD_STATE_ATTRIBUTES.focused,\n setFocused: NOOP,\n validate: () => null,\n validationMode: 'onSubmit',\n validationDebounceTime: 0,\n shouldValidateOnChange: () => false,\n state: DEFAULT_FIELD_ROOT_STATE,\n markedDirtyRef: {\n current: false\n },\n registerFieldControl: NOOP,\n validation: {\n getValidationProps: (props = EMPTY_OBJECT) => props,\n getInputValidationProps: (props = EMPTY_OBJECT) => props,\n inputRef: {\n current: null\n },\n commit: async () => {}\n }\n});\nif (process.env.NODE_ENV !== \"production\") FieldRootContext.displayName = \"FieldRootContext\";\nexport function useFieldRootContext(optional = true) {\n const context = React.useContext(FieldRootContext);\n if (context.setValidityData === NOOP && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.' : _formatErrorMessage(28));\n }\n return context;\n}"],"names":["FieldRootContext","React","DEFAULT_VALIDITY_STATE","NOOP","DEFAULT_FIELD_STATE_ATTRIBUTES","DEFAULT_FIELD_ROOT_STATE","props","EMPTY_OBJECT","useFieldRootContext","optional","context","_formatErrorMessage"],"mappings":";;;;AAOY,MAACA,IAAgC,gBAAAC,EAAM,cAAc;AAAA,EAC/D,SAAS;AAAA,EACT,MAAM;AAAA,EACN,cAAc;AAAA,IACZ,OAAOC;AAAA,IACP,QAAQ,CAAA;AAAA,IACR,OAAO;AAAA,IACP,OAAO;AAAA,IACP,cAAc;AAAA,EAClB;AAAA,EACE,iBAAiBC;AAAA,EACjB,UAAU;AAAA,EACV,SAASC,EAA+B;AAAA,EACxC,YAAYD;AAAA,EACZ,OAAOC,EAA+B;AAAA,EACtC,UAAUD;AAAA,EACV,QAAQC,EAA+B;AAAA,EACvC,WAAWD;AAAA,EACX,SAASC,EAA+B;AAAA,EACxC,YAAYD;AAAA,EACZ,UAAU,MAAM;AAAA,EAChB,gBAAgB;AAAA,EAChB,wBAAwB;AAAA,EACxB,wBAAwB,MAAM;AAAA,EAC9B,OAAOE;AAAA,EACP,gBAAgB;AAAA,IACd,SAAS;AAAA,EACb;AAAA,EACE,sBAAsBF;AAAA,EACtB,YAAY;AAAA,IACV,oBAAoB,CAACG,IAAQC,MAAiBD;AAAA,IAC9C,yBAAyB,CAACA,IAAQC,MAAiBD;AAAA,IACnD,UAAU;AAAA,MACR,SAAS;AAAA,IACf;AAAA,IACI,QAAQ,YAAY;AAAA,IAAC;AAAA,EACzB;AACA,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcN,EAAiB,cAAc;AACnE,SAASQ,EAAoBC,IAAW,IAAM;AACnD,QAAMC,IAAUT,EAAM,WAAWD,CAAgB;AACjD,MAAIU,EAAQ,oBAAoBP,KAAQ,CAACM;AACvC,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,0FAA0FE,EAAoB,EAAE,CAAC;AAE3K,SAAOD;AACT;","x_google_ignoreList":[0]}
|
package/dist/index292.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { useIsoLayoutEffect as l } from "./index286.js";
|
|
3
|
+
import { useFieldRootContext as d } from "./index291.js";
|
|
4
|
+
function p(o, c) {
|
|
5
|
+
const {
|
|
6
|
+
enabled: n = !0,
|
|
7
|
+
getValue: u,
|
|
8
|
+
id: i,
|
|
9
|
+
value: s
|
|
10
|
+
} = c, {
|
|
11
|
+
registerFieldControl: e
|
|
12
|
+
} = d(), t = f.useRef(null);
|
|
13
|
+
t.current || (t.current = /* @__PURE__ */ Symbol()), l(() => {
|
|
14
|
+
const r = t.current;
|
|
15
|
+
if (!(!r || !n))
|
|
16
|
+
return e(r, {
|
|
17
|
+
controlRef: o,
|
|
18
|
+
getValue: u,
|
|
19
|
+
id: i,
|
|
20
|
+
value: s
|
|
21
|
+
}), () => {
|
|
22
|
+
e(r, void 0);
|
|
23
|
+
};
|
|
24
|
+
}, [o, n, u, i, e, s]);
|
|
15
25
|
}
|
|
16
26
|
export {
|
|
17
|
-
|
|
18
|
-
r as useLabelableContext
|
|
27
|
+
p as useRegisterFieldControl
|
|
19
28
|
};
|
|
20
29
|
//# sourceMappingURL=index292.js.map
|
package/dist/index292.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index292.js","sources":["../../../node_modules/@base-ui/react/esm/internals/
|
|
1
|
+
{"version":3,"file":"index292.js","sources":["../../../node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useFieldRootContext } from \"../field-root-context/FieldRootContext.js\";\nexport function useRegisterFieldControl(controlRef, params) {\n const {\n enabled = true,\n getValue,\n id,\n value\n } = params;\n const {\n registerFieldControl\n } = useFieldRootContext();\n const sourceRef = React.useRef(null);\n if (!sourceRef.current) {\n sourceRef.current = Symbol();\n }\n useIsoLayoutEffect(() => {\n const source = sourceRef.current;\n if (!source || !enabled) {\n return undefined;\n }\n registerFieldControl(source, {\n controlRef,\n getValue,\n id,\n value\n });\n return () => {\n registerFieldControl(source, undefined);\n };\n }, [controlRef, enabled, getValue, id, registerFieldControl, value]);\n}"],"names":["useRegisterFieldControl","controlRef","params","enabled","getValue","id","value","registerFieldControl","useFieldRootContext","sourceRef","React","useIsoLayoutEffect","source"],"mappings":";;;AAKO,SAASA,EAAwBC,GAAYC,GAAQ;AAC1D,QAAM;AAAA,IACJ,SAAAC,IAAU;AAAA,IACV,UAAAC;AAAA,IACA,IAAAC;AAAA,IACA,OAAAC;AAAA,EACJ,IAAMJ,GACE;AAAA,IACJ,sBAAAK;AAAA,EACJ,IAAMC,EAAmB,GACjBC,IAAYC,EAAM,OAAO,IAAI;AACnC,EAAKD,EAAU,YACbA,EAAU,UAAU,uBAAM,IAE5BE,EAAmB,MAAM;AACvB,UAAMC,IAASH,EAAU;AACzB,QAAI,GAACG,KAAU,CAACT;AAGhB,aAAAI,EAAqBK,GAAQ;AAAA,QAC3B,YAAAX;AAAA,QACA,UAAAG;AAAA,QACA,IAAAC;AAAA,QACA,OAAAC;AAAA,MACN,CAAK,GACM,MAAM;AACX,QAAAC,EAAqBK,GAAQ,MAAS;AAAA,MACxC;AAAA,EACF,GAAG,CAACX,GAAYE,GAASC,GAAUC,GAAIE,GAAsBD,CAAK,CAAC;AACrE;","x_google_ignoreList":[0]}
|
package/dist/index293.js
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { useIsoLayoutEffect as b } from "./index286.js";
|
|
3
|
+
import { useStableCallback as R } from "./index287.js";
|
|
4
|
+
import { useRefWithInit as E } from "./index283.js";
|
|
5
|
+
import { isElement as x } from "./index334.js";
|
|
6
|
+
import { useBaseUiId as C } from "./index178.js";
|
|
7
|
+
import { useLabelableContext as g } from "./index311.js";
|
|
8
|
+
import { NOOP as p } from "./index289.js";
|
|
9
|
+
function F(I = {}) {
|
|
10
|
+
const {
|
|
11
|
+
id: e,
|
|
12
|
+
implicit: l = !1,
|
|
13
|
+
controlRef: s
|
|
14
|
+
} = I, {
|
|
15
|
+
controlId: c,
|
|
16
|
+
registerControlId: t
|
|
17
|
+
} = g(), o = C(e), d = l ? c : void 0, u = E(() => /* @__PURE__ */ Symbol("labelable-control")), f = i.useRef(!1), a = i.useRef(e != null), n = R(() => {
|
|
18
|
+
!f.current || t === p || (f.current = !1, t(u.current, void 0));
|
|
19
|
+
});
|
|
20
|
+
return b(() => {
|
|
21
|
+
if (t === p)
|
|
22
|
+
return;
|
|
23
|
+
let r;
|
|
24
|
+
if (l) {
|
|
25
|
+
const m = s?.current;
|
|
26
|
+
x(m) && m.closest("label") != null ? r = e ?? null : r = d ?? o;
|
|
27
|
+
} else if (e != null)
|
|
28
|
+
a.current = !0, r = e;
|
|
29
|
+
else if (a.current)
|
|
30
|
+
r = o;
|
|
31
|
+
else {
|
|
32
|
+
n();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (r === void 0) {
|
|
36
|
+
n();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
f.current = !0, t(u.current, r);
|
|
40
|
+
}, [e, s, d, t, l, o, u, n]), i.useEffect(() => n, [n]), c ?? o;
|
|
41
|
+
}
|
|
34
42
|
export {
|
|
35
|
-
|
|
36
|
-
e as CommonTriggerDataAttributes,
|
|
37
|
-
g as popupStateMapping,
|
|
38
|
-
a as pressableTriggerOpenStateMapping,
|
|
39
|
-
c as triggerOpenStateMapping
|
|
43
|
+
F as useLabelableId
|
|
40
44
|
};
|
|
41
45
|
//# sourceMappingURL=index293.js.map
|