@rpcbase/ui 0.243.0 → 0.245.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/index10.js +2 -2
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index12.js +3 -3
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +14 -5
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +38 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +13 -385
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +23 -261
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +109 -58
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +13 -47
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -169
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -110
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -25
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +12 -8
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +19 -4
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +11 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +176 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +268 -476
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -189
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +28 -14
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +63 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -6
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +15 -40
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +30 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +69 -14
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +5 -68
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +66 -35
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -14
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +384 -22
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +258 -108
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +61 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +46 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +170 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +110 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +24 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +8 -20
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -11
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -176
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -279
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +487 -4
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +189 -27
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -126
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +107 -63
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +262 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +7 -16
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +39 -29
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +4 -69
- package/dist/index193.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.js +1 -1
- package/dist/index24.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index25.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index254.js +58 -146
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -32
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +7 -48
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +5 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +13 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +3 -43
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +3 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +87 -74
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -104
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +27 -50
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +51 -11
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +5 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +5 -37
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +61 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +61 -130
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +133 -17
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +7 -14
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -4
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +4 -37
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +21 -8
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -24
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +8 -29
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +142 -14
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +79 -19
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +60 -65
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +15 -7
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +20 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +6 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +11 -3
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +3 -50
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +51 -4
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +12 -25
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +19 -14
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +3 -56
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +53 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +20 -21
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +41 -53
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +38 -19
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +46 -42
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +19 -38
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +71 -46
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +17 -20
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +3 -70
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +12 -16
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +242 -3
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +18 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +36 -11
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +238 -12
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +249 -15
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +67 -35
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +77 -233
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -252
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -68
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +16 -99
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +33 -82
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +21 -239
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +17 -3
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +3 -29
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -16
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +28 -34
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -18
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +78 -3
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +269 -23
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +10 -27
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -4
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +24 -77
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +4 -23
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +15 -271
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +125 -11
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +64 -24
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +14 -17
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +7 -125
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +3 -65
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +10 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -7
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +6 -3
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +399 -5
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -4
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +52 -10
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +10 -6
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +22 -128
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -399
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +155 -5
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +31 -51
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +45 -23
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +38 -8
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +9 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +11 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +43 -11
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +96 -7
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +84 -11
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +105 -3
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +52 -3
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +10 -16
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +4 -61
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +34 -63
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +74 -35
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +8 -51
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +135 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +17 -8
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +16 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +3 -11
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +34 -19
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +20 -16
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +10 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +8 -144
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +22 -77
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +20 -74
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +28 -61
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +17 -15
- package/dist/index361.js.map +1 -1
- package/dist/index363.js +5 -5
- package/dist/index365.js +8 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +27 -21
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +138 -4
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +11 -10
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +46 -5
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +33 -18
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +20 -19
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +75 -44
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +11 -17
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +4 -5
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +70 -197
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +197 -70
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +66 -118
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +35 -8
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -27
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +26 -36
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +14 -136
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +121 -10
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +4 -47
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +11 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +5 -21
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +3 -76
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +21 -12
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +45 -4
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +16 -70
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -36
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +21 -26
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +5 -7
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +20 -15
- package/dist/index391.js.map +1 -1
- package/dist/index399.js +2 -2
- package/dist/index4.js +2 -2
- package/dist/index40.js +56 -20
- package/dist/index40.js.map +1 -1
- package/dist/index409.js +3 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +51 -59
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +15 -3
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +488 -11
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +3 -492
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +5 -68
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +55 -30
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +68 -9
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +26 -148
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +9 -108
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -5
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +21 -50
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +106 -54
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +32 -7
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +8 -2
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -44
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +40 -52
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +55 -7
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +8 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +2 -55
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +52 -53
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +55 -32
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +127 -18
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +39 -122
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +85 -42
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +123 -87
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +5 -126
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +332 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +246 -321
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +23 -254
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +129 -25
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +24 -129
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +19 -22
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +134 -19
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +30 -133
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +24 -30
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +38 -26
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +19 -39
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +133 -18
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +49 -134
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +25 -48
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +57 -28
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +56 -57
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +22 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +232 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +10 -22
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +17 -232
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -2
- package/dist/index78.js.map +1 -1
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index40.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index40.js","sources":["
|
|
1
|
+
{"version":3,"file":"index40.js","sources":["../../../node_modules/@base-ui/react/dialog/trigger/DialogTrigger.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useButton } from \"../../internals/use-button/useButton.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { triggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { CLICK_TRIGGER_IDENTIFIER } from \"../../internals/constants.mjs\";\nimport { useTriggerDataForwarding } from \"../../utils/popups/index.mjs\";\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { useClick } from \"../../floating-ui-react/index.mjs\";\nimport { useOpenMethodTriggerProps } from \"../../utils/useOpenInteractionType.mjs\";\n\n/**\n * A button that opens the dialog.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogTrigger = /*#__PURE__*/React.forwardRef(function DialogTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n id: idProp,\n payload,\n handle,\n ...elementProps\n } = componentProps;\n const dialogRootContext = useDialogRootContext(true);\n const store = handle?.store ?? dialogRootContext?.store;\n if (!store) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.' : _formatErrorMessage(79));\n }\n const thisTriggerId = useBaseUiId(idProp);\n const floatingContext = store.useState('floatingRootContext');\n const isOpenedByThisTrigger = store.useState('isOpenedByTrigger', thisTriggerId);\n const popupId = store.useState('triggerPopupId', thisTriggerId);\n const triggerElementRef = React.useRef(null);\n const {\n registerTrigger,\n isMountedByThisTrigger\n } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {\n payload\n });\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const click = useClick(floatingContext, {\n enabled: floatingContext != null\n });\n const interactionTypeProps = useOpenMethodTriggerProps(() => store.select('open'), interactionType => {\n store.set('openMethod', interactionType);\n });\n const state = {\n disabled,\n open: isOpenedByThisTrigger\n };\n const rootTriggerProps = store.useState('triggerProps', isMountedByThisTrigger);\n return useRenderElement('button', componentProps, {\n state,\n ref: [buttonRef, forwardedRef, registerTrigger, triggerElementRef],\n props: [click.reference, rootTriggerProps, interactionTypeProps, {\n [CLICK_TRIGGER_IDENTIFIER]: '',\n id: thisTriggerId,\n 'aria-haspopup': 'dialog',\n 'aria-expanded': isOpenedByThisTrigger,\n 'aria-controls': popupId\n }, elementProps, getButtonProps],\n stateAttributesMapping: triggerOpenStateMapping\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogTrigger.displayName = \"DialogTrigger\";"],"names":["DialogTrigger","React","componentProps","forwardedRef","render","className","style","disabled","nativeButton","idProp","payload","handle","elementProps","dialogRootContext","useDialogRootContext","store","_formatErrorMessage","thisTriggerId","useBaseUiId","floatingContext","isOpenedByThisTrigger","popupId","triggerElementRef","registerTrigger","isMountedByThisTrigger","useTriggerDataForwarding","getButtonProps","buttonRef","useButton","click","useClick","interactionTypeProps","useOpenMethodTriggerProps","interactionType","state","rootTriggerProps","useRenderElement","CLICK_TRIGGER_IDENTIFIER","triggerOpenStateMapping"],"mappings":";;;;;;;;;;;AAoBY,MAACA,IAA6B,gBAAAC,EAAM,WAAW,SAAuBC,GAAgBC,GAAc;AAC9G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,cAAAC,IAAe;AAAA,IACf,IAAIC;AAAA,IACJ,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMV,GACEW,IAAoBC,EAAqB,EAAI,GAC7CC,IAAQJ,GAAQ,SAASE,GAAmB;AAClD,MAAI,CAACE;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,2FAA2FC,EAAoB,EAAE,CAAC;AAE5K,QAAMC,IAAgBC,EAAYT,CAAM,GAClCU,IAAkBJ,EAAM,SAAS,qBAAqB,GACtDK,IAAwBL,EAAM,SAAS,qBAAqBE,CAAa,GACzEI,IAAUN,EAAM,SAAS,kBAAkBE,CAAa,GACxDK,IAAoBrB,EAAM,OAAO,IAAI,GACrC;AAAA,IACJ,iBAAAsB;AAAA,IACA,wBAAAC;AAAA,EACJ,IAAMC,EAAyBR,GAAeK,GAAmBP,GAAO;AAAA,IACpE,SAAAL;AAAA,EACJ,CAAG,GACK;AAAA,IACJ,gBAAAgB;AAAA,IACA,WAAAC;AAAA,EACJ,IAAMC,EAAU;AAAA,IACZ,UAAArB;AAAA,IACA,QAAQC;AAAA,EACZ,CAAG,GACKqB,IAAQC,EAASX,GAAiB;AAAA,IACtC,SAASA,KAAmB;AAAA,EAChC,CAAG,GACKY,IAAuBC,EAA0B,MAAMjB,EAAM,OAAO,MAAM,GAAG,CAAAkB,MAAmB;AACpG,IAAAlB,EAAM,IAAI,cAAckB,CAAe;AAAA,EACzC,CAAC,GACKC,IAAQ;AAAA,IACZ,UAAA3B;AAAA,IACA,MAAMa;AAAA,EACV,GACQe,IAAmBpB,EAAM,SAAS,gBAAgBS,CAAsB;AAC9E,SAAOY,EAAiB,UAAUlC,GAAgB;AAAA,IAChD,OAAAgC;AAAA,IACA,KAAK,CAACP,GAAWxB,GAAcoB,GAAiBD,CAAiB;AAAA,IACjE,OAAO,CAACO,EAAM,WAAWM,GAAkBJ,GAAsB;AAAA,MAC/D,CAACM,CAAwB,GAAG;AAAA,MAC5B,IAAIpB;AAAA,MACJ,iBAAiB;AAAA,MACjB,iBAAiBG;AAAA,MACjB,iBAAiBC;AAAA,IACvB,GAAOT,GAAcc,CAAc;AAAA,IAC/B,wBAAwBY;AAAA,EAC5B,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAActC,EAAc,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index409.js
CHANGED
package/dist/index409.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index409.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index409.js","sources":["../../../node_modules/@base-ui/utils/platform/screen-reader.mjs"],"sourcesContent":["import { apple } from \"./os.mjs\";\n\n// Whether a screen reader is *actually* running cannot be detected. These flags\n// identify platforms where a specific screen reader could be active. VoiceOver\n// is the system screen reader on Apple platforms and works with every browser\n// there, so the flag is purely an OS check; engine-specific quirks (e.g. the\n// NSAccessibility virtual-cursor focus path) should be gated at the call site.\n/**\n * The user *may* be using VoiceOver — actual activation is not detectable.\n * True on any Apple platform (macOS, iOS, iPadOS).\n */\nexport const voiceOver = apple;"],"names":["voiceOver","apple"],"mappings":";AAWY,MAACA,IAAYC;","x_google_ignoreList":[0]}
|
package/dist/index41.js
CHANGED
|
@@ -1,62 +1,54 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
id: t,
|
|
51
|
-
"aria-haspopup": "dialog",
|
|
52
|
-
"aria-expanded": s,
|
|
53
|
-
"aria-controls": f
|
|
54
|
-
}, c, h],
|
|
55
|
-
stateAttributesMapping: x
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
process.env.NODE_ENV !== "production" && (k.displayName = "DialogTrigger");
|
|
1
|
+
var C = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "#", "$", "%", "*", "+", ",", "-", ".", ":", ";", "=", "?", "@", "[", "]", "^", "_", "{", "|", "}", "~"], i = (t) => {
|
|
2
|
+
let r = 0;
|
|
3
|
+
for (let a = 0; a < t.length; a++) {
|
|
4
|
+
let l = t[a], o = C.indexOf(l);
|
|
5
|
+
r = r * 83 + o;
|
|
6
|
+
}
|
|
7
|
+
return r;
|
|
8
|
+
}, b = (t) => {
|
|
9
|
+
let r = t / 255;
|
|
10
|
+
return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
|
|
11
|
+
}, d = (t) => {
|
|
12
|
+
let r = Math.max(0, Math.min(1, t));
|
|
13
|
+
return r <= 31308e-7 ? Math.trunc(r * 12.92 * 255 + 0.5) : Math.trunc((1.055 * Math.pow(r, 0.4166666666666667) - 0.055) * 255 + 0.5);
|
|
14
|
+
}, T = (t) => t < 0 ? -1 : 1, m = (t, r) => T(t) * Math.pow(Math.abs(t), r), y = class extends Error {
|
|
15
|
+
constructor(t) {
|
|
16
|
+
super(t), this.name = "ValidationError", this.message = t;
|
|
17
|
+
}
|
|
18
|
+
}, U = (t) => {
|
|
19
|
+
if (!t || t.length < 6) throw new y("The blurhash string must be at least 6 characters");
|
|
20
|
+
let r = i(t[0]), a = Math.floor(r / 9) + 1, l = r % 9 + 1;
|
|
21
|
+
if (t.length !== 4 + 2 * l * a) throw new y(`blurhash length mismatch: length is ${t.length} but it should be ${4 + 2 * l * a}`);
|
|
22
|
+
}, $ = (t) => {
|
|
23
|
+
let r = t >> 16, a = t >> 8 & 255, l = t & 255;
|
|
24
|
+
return [b(r), b(a), b(l)];
|
|
25
|
+
}, j = (t, r) => {
|
|
26
|
+
let a = Math.floor(t / 361), l = Math.floor(t / 19) % 19, o = t % 19;
|
|
27
|
+
return [m((a - 9) / 9, 2) * r, m((l - 9) / 9, 2) * r, m((o - 9) / 9, 2) * r];
|
|
28
|
+
}, q = (t, r, a, l) => {
|
|
29
|
+
U(t), l = l | 1;
|
|
30
|
+
let o = i(t[0]), p = Math.floor(o / 9) + 1, c = o % 9 + 1, I = (i(t[1]) + 1) / 166, u = new Array(c * p);
|
|
31
|
+
for (let e = 0; e < u.length; e++) if (e === 0) {
|
|
32
|
+
let h = i(t.substring(2, 6));
|
|
33
|
+
u[e] = $(h);
|
|
34
|
+
} else {
|
|
35
|
+
let h = i(t.substring(4 + e * 2, 6 + e * 2));
|
|
36
|
+
u[e] = j(h, I * l);
|
|
37
|
+
}
|
|
38
|
+
let n = r * 4, s = new Uint8ClampedArray(n * a);
|
|
39
|
+
for (let e = 0; e < a; e++) for (let h = 0; h < r; h++) {
|
|
40
|
+
let x = 0, v = 0, E = 0;
|
|
41
|
+
for (let M = 0; M < p; M++) for (let f = 0; f < c; f++) {
|
|
42
|
+
let g = Math.cos(Math.PI * h * f / r) * Math.cos(Math.PI * e * M / a), w = u[f + M * c];
|
|
43
|
+
x += w[0] * g, v += w[1] * g, E += w[2] * g;
|
|
44
|
+
}
|
|
45
|
+
let P = d(x), V = d(v), A = d(E);
|
|
46
|
+
s[4 * h + 0 + e * n] = P, s[4 * h + 1 + e * n] = V, s[4 * h + 2 + e * n] = A, s[4 * h + 3 + e * n] = 255;
|
|
47
|
+
}
|
|
48
|
+
return s;
|
|
49
|
+
}, z = q;
|
|
59
50
|
export {
|
|
60
|
-
|
|
51
|
+
y as ValidationError,
|
|
52
|
+
z as decode
|
|
61
53
|
};
|
|
62
54
|
//# sourceMappingURL=index41.js.map
|
package/dist/index41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index41.js","sources":["
|
|
1
|
+
{"version":3,"file":"index41.js","sources":["../../../node_modules/blurhash/dist/esm/index.js"],"sourcesContent":["var q=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"A\",\"B\",\"C\",\"D\",\"E\",\"F\",\"G\",\"H\",\"I\",\"J\",\"K\",\"L\",\"M\",\"N\",\"O\",\"P\",\"Q\",\"R\",\"S\",\"T\",\"U\",\"V\",\"W\",\"X\",\"Y\",\"Z\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"#\",\"$\",\"%\",\"*\",\"+\",\",\",\"-\",\".\",\":\",\";\",\"=\",\"?\",\"@\",\"[\",\"]\",\"^\",\"_\",\"{\",\"|\",\"}\",\"~\"],x=t=>{let e=0;for(let r=0;r<t.length;r++){let n=t[r],l=q.indexOf(n);e=e*83+l}return e},p=(t,e)=>{var r=\"\";for(let n=1;n<=e;n++){let l=Math.floor(t)/Math.pow(83,e-n)%83;r+=q[Math.floor(l)]}return r};var f=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},h=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},F=t=>t<0?-1:1,M=(t,e)=>F(t)*Math.pow(Math.abs(t),e);var d=class extends Error{constructor(e){super(e),this.name=\"ValidationError\",this.message=e}};var C=t=>{if(!t||t.length<6)throw new d(\"The blurhash string must be at least 6 characters\");let e=x(t[0]),r=Math.floor(e/9)+1,n=e%9+1;if(t.length!==4+2*n*r)throw new d(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*n*r}`)},N=t=>{try{C(t)}catch(e){return{result:!1,errorReason:e.message}}return{result:!0}},z=t=>{let e=t>>16,r=t>>8&255,n=t&255;return[f(e),f(r),f(n)]},L=(t,e)=>{let r=Math.floor(t/361),n=Math.floor(t/19)%19,l=t%19;return[M((r-9)/9,2)*e,M((n-9)/9,2)*e,M((l-9)/9,2)*e]},U=(t,e,r,n)=>{C(t),n=n|1;let l=x(t[0]),m=Math.floor(l/9)+1,b=l%9+1,i=(x(t[1])+1)/166,u=new Array(b*m);for(let o=0;o<u.length;o++)if(o===0){let a=x(t.substring(2,6));u[o]=z(a)}else{let a=x(t.substring(4+o*2,6+o*2));u[o]=L(a,i*n)}let c=e*4,s=new Uint8ClampedArray(c*r);for(let o=0;o<r;o++)for(let a=0;a<e;a++){let y=0,B=0,R=0;for(let w=0;w<m;w++)for(let P=0;P<b;P++){let G=Math.cos(Math.PI*a*P/e)*Math.cos(Math.PI*o*w/r),T=u[P+w*b];y+=T[0]*G,B+=T[1]*G,R+=T[2]*G}let V=h(y),I=h(B),E=h(R);s[4*a+0+o*c]=V,s[4*a+1+o*c]=I,s[4*a+2+o*c]=E,s[4*a+3+o*c]=255}return s},j=U;var A=4,D=(t,e,r,n)=>{let l=0,m=0,b=0,g=e*A;for(let u=0;u<e;u++){let c=A*u;for(let s=0;s<r;s++){let o=c+s*g,a=n(u,s);l+=a*f(t[o]),m+=a*f(t[o+1]),b+=a*f(t[o+2])}}let i=1/(e*r);return[l*i,m*i,b*i]},$=t=>{let e=h(t[0]),r=h(t[1]),n=h(t[2]);return(e<<16)+(r<<8)+n},H=(t,e)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(M(t[0]/e,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(M(t[1]/e,.5)*9+9.5)))),l=Math.floor(Math.max(0,Math.min(18,Math.floor(M(t[2]/e,.5)*9+9.5))));return r*19*19+n*19+l},O=(t,e,r,n,l)=>{if(n<1||n>9||l<1||l>9)throw new d(\"BlurHash must have between 1 and 9 components\");if(e*r*4!==t.length)throw new d(\"Width and height must match the pixels array\");let m=[];for(let s=0;s<l;s++)for(let o=0;o<n;o++){let a=o==0&&s==0?1:2,y=D(t,e,r,(B,R)=>a*Math.cos(Math.PI*o*B/e)*Math.cos(Math.PI*s*R/r));m.push(y)}let b=m[0],g=m.slice(1),i=\"\",u=n-1+(l-1)*9;i+=p(u,1);let c;if(g.length>0){let s=Math.max(...g.map(a=>Math.max(...a))),o=Math.floor(Math.max(0,Math.min(82,Math.floor(s*166-.5))));c=(o+1)/166,i+=p(o,1)}else c=1,i+=p(0,1);return i+=p($(b),4),g.forEach(s=>{i+=p(H(s,c),2)}),i},S=O;export{d as ValidationError,j as decode,S as encode,N as isBlurhashValid};\n//# sourceMappingURL=index.js.map"],"names":["q","x","e","r","n","l","f","h","F","M","d","C","z","L","U","m","b","i","o","a","c","y","B","R","w","P","G","T","V","I","E","j"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index410.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
function o() {
|
|
2
|
+
const t = /* @__PURE__ */ new Map();
|
|
3
|
+
return {
|
|
4
|
+
emit(e, a) {
|
|
5
|
+
t.get(e)?.forEach((n) => n(a));
|
|
6
|
+
},
|
|
7
|
+
on(e, a) {
|
|
8
|
+
t.has(e) || t.set(e, /* @__PURE__ */ new Set()), t.get(e).add(a);
|
|
9
|
+
},
|
|
10
|
+
off(e, a) {
|
|
11
|
+
t.get(e)?.delete(a);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
3
15
|
export {
|
|
4
|
-
|
|
16
|
+
o as createEventEmitter
|
|
5
17
|
};
|
|
6
18
|
//# sourceMappingURL=index410.js.map
|
package/dist/index410.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index410.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index410.js","sources":["../../../node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs"],"sourcesContent":["export function createEventEmitter() {\n const map = new Map();\n return {\n emit(event, data) {\n map.get(event)?.forEach(listener => listener(data));\n },\n on(event, listener) {\n if (!map.has(event)) {\n map.set(event, new Set());\n }\n map.get(event).add(listener);\n },\n off(event, listener) {\n map.get(event)?.delete(listener);\n }\n };\n}"],"names":["createEventEmitter","map","event","data","listener"],"mappings":"AAAO,SAASA,IAAqB;AACnC,QAAMC,IAAM,oBAAI,IAAG;AACnB,SAAO;AAAA,IACL,KAAKC,GAAOC,GAAM;AAChB,MAAAF,EAAI,IAAIC,CAAK,GAAG,QAAQ,CAAAE,MAAYA,EAASD,CAAI,CAAC;AAAA,IACpD;AAAA,IACA,GAAGD,GAAOE,GAAU;AAClB,MAAKH,EAAI,IAAIC,CAAK,KAChBD,EAAI,IAAIC,GAAO,oBAAI,IAAG,CAAE,GAE1BD,EAAI,IAAIC,CAAK,EAAE,IAAIE,CAAQ;AAAA,IAC7B;AAAA,IACA,IAAIF,GAAOE,GAAU;AACnB,MAAAH,EAAI,IAAIC,CAAK,GAAG,OAAOE,CAAQ;AAAA,IACjC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|