@satoshibits/react-json-schema-builder 1.0.0 → 1.0.2
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/README.md +142 -37
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs101.js +1 -38
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs103.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +6 -1
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs3.js.map +1 -1
- package/dist/index.cjs30.js +1 -6
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -9
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -23
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs4.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +6 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +6 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +6 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +7 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +2 -2
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +2 -2
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs50.js +2 -2
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +6 -7
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +5 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -6
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -6
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -6
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +1 -6
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -5
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs86.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js +4 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs89.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs90.js.map +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs91.js.map +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs93.js.map +1 -1
- package/dist/index.cjs94.js +38 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js +1 -4
- package/dist/index.cjs95.js.map +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.cjs99.js.map +1 -1
- package/dist/index.es10.js +46 -22
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +22 -64
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +12 -68
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +26 -7
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +5 -14
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es11.js +57 -39
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es12.js +23 -61
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es13.js +126 -21
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +12 -126
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +132 -17
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +133 -130
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +43 -117
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +9 -62
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es19.js +23 -11
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +5 -5
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es20.js +422 -20
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +5 -424
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +1 -1
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +5 -5
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +12 -12
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +13 -6
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +239 -212
- package/dist/index.es3.js.map +1 -1
- package/dist/index.es30.js +17 -13
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +14 -7
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +2477 -2
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +39 -31
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +33 -406
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +115 -16
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +113 -14
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +52 -2473
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +23 -40
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +45 -33
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +5 -5
- package/dist/index.es4.js.map +1 -1
- package/dist/index.es40.js +79 -109
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +56 -110
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +824 -48
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +10 -24
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +10 -45
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +10 -86
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +120 -57
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +55 -824
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +15 -4
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +3 -4
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +62 -62
- package/dist/index.es5.js.map +1 -1
- package/dist/index.es50.js +32 -4
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +17 -122
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +7 -62
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +5 -2
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +255 -2
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +21 -20
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +27 -9
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +7 -38
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +66 -18
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +29 -7
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +37 -37
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +5 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +24 -254
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +32 -21
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es64.js +44 -5
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +7 -45
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +121 -23
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +12 -63
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +133 -7
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +10 -124
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es7.js +33 -33
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js +214 -13
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +12 -133
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +7 -10
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +3 -215
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +28 -13
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +49 -32
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +9 -8
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +65 -27
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +12 -4
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +204 -5
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es8.js +87 -87
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js +19 -25
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +389 -46
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +25 -9
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +29 -25
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +5 -68
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +5 -12
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +3 -205
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +23 -21
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +105 -388
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +14 -23
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es9.js +23 -3
- package/dist/index.es9.js.map +1 -1
- package/dist/index.es90.js +521 -27
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +127 -5
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +129 -5
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +65 -3
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js +69 -24
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +9 -110
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +14 -16
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +60 -521
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +3 -126
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +22 -128
- package/dist/index.es99.js.map +1 -1
- package/dist/packages/builder/schema-builder.d.ts +20 -1
- package/dist/packages/builder/schema-builder.d.ts.map +1 -1
- package/dist/style.css +0 -3
- package/package.json +5 -3
- package/dist/index.cjs104.js +0 -2
- package/dist/index.cjs104.js.map +0 -1
- package/dist/index.cjs105.js +0 -2
- package/dist/index.cjs105.js.map +0 -1
- package/dist/index.cjs106.js +0 -2
- package/dist/index.cjs106.js.map +0 -1
- package/dist/index.cjs107.js +0 -2
- package/dist/index.cjs107.js.map +0 -1
- package/dist/index.cjs108.js +0 -2
- package/dist/index.cjs108.js.map +0 -1
- package/dist/index.cjs109.js +0 -2
- package/dist/index.cjs109.js.map +0 -1
- package/dist/index.cjs110.js +0 -2
- package/dist/index.cjs110.js.map +0 -1
- package/dist/index.es104.js +0 -65
- package/dist/index.es104.js.map +0 -1
- package/dist/index.es105.js +0 -7
- package/dist/index.es105.js.map +0 -1
- package/dist/index.es106.js +0 -26
- package/dist/index.es106.js.map +0 -1
- package/dist/index.es107.js +0 -26
- package/dist/index.es107.js.map +0 -1
- package/dist/index.es108.js +0 -16
- package/dist/index.es108.js.map +0 -1
- package/dist/index.es109.js +0 -31
- package/dist/index.es109.js.map +0 -1
- package/dist/index.es110.js +0 -8
- package/dist/index.es110.js.map +0 -1
package/dist/index.es51.js
CHANGED
|
@@ -1,126 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license lucide-react v0.477.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
var t = {
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
width: 24,
|
|
10
|
+
height: 24,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: 2,
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round"
|
|
13
17
|
};
|
|
14
|
-
D.displayName = f;
|
|
15
|
-
var Y = "AlertDialogTrigger", q = l.forwardRef(
|
|
16
|
-
(e, o) => {
|
|
17
|
-
const { __scopeAlertDialog: r, ...t } = e, a = s(r);
|
|
18
|
-
return /* @__PURE__ */ i.jsx($, { ...a, ...t, ref: o });
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
q.displayName = Y;
|
|
22
|
-
var B = "AlertDialogPortal", m = (e) => {
|
|
23
|
-
const { __scopeAlertDialog: o, ...r } = e, t = s(o);
|
|
24
|
-
return /* @__PURE__ */ i.jsx(I, { ...t, ...r });
|
|
25
|
-
};
|
|
26
|
-
m.displayName = B;
|
|
27
|
-
var H = "AlertDialogOverlay", y = l.forwardRef(
|
|
28
|
-
(e, o) => {
|
|
29
|
-
const { __scopeAlertDialog: r, ...t } = e, a = s(r);
|
|
30
|
-
return /* @__PURE__ */ i.jsx(L, { ...a, ...t, ref: o });
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
y.displayName = H;
|
|
34
|
-
var n = "AlertDialogContent", [V, k] = W(n), _ = l.forwardRef(
|
|
35
|
-
(e, o) => {
|
|
36
|
-
const { __scopeAlertDialog: r, children: t, ...a } = e, d = s(r), p = l.useRef(null), S = u(o, p), g = l.useRef(null);
|
|
37
|
-
return /* @__PURE__ */ i.jsx(
|
|
38
|
-
j,
|
|
39
|
-
{
|
|
40
|
-
contentName: n,
|
|
41
|
-
titleName: N,
|
|
42
|
-
docsSlug: "alert-dialog",
|
|
43
|
-
children: /* @__PURE__ */ i.jsx(V, { scope: r, cancelRef: g, children: /* @__PURE__ */ i.jsxs(
|
|
44
|
-
b,
|
|
45
|
-
{
|
|
46
|
-
role: "alertdialog",
|
|
47
|
-
...d,
|
|
48
|
-
...a,
|
|
49
|
-
ref: S,
|
|
50
|
-
onOpenAutoFocus: F(a.onOpenAutoFocus, (c) => {
|
|
51
|
-
c.preventDefault(), g.current?.focus({ preventScroll: !0 });
|
|
52
|
-
}),
|
|
53
|
-
onPointerDownOutside: (c) => c.preventDefault(),
|
|
54
|
-
onInteractOutside: (c) => c.preventDefault(),
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ i.jsx(G, { children: t }),
|
|
57
|
-
/* @__PURE__ */ i.jsx(J, { contentRef: p })
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
) })
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
_.displayName = n;
|
|
66
|
-
var N = "AlertDialogTitle", R = l.forwardRef(
|
|
67
|
-
(e, o) => {
|
|
68
|
-
const { __scopeAlertDialog: r, ...t } = e, a = s(r);
|
|
69
|
-
return /* @__PURE__ */ i.jsx(w, { ...a, ...t, ref: o });
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
R.displayName = N;
|
|
73
|
-
var x = "AlertDialogDescription", E = l.forwardRef((e, o) => {
|
|
74
|
-
const { __scopeAlertDialog: r, ...t } = e, a = s(r);
|
|
75
|
-
return /* @__PURE__ */ i.jsx(M, { ...a, ...t, ref: o });
|
|
76
|
-
});
|
|
77
|
-
E.displayName = x;
|
|
78
|
-
var z = "AlertDialogAction", h = l.forwardRef(
|
|
79
|
-
(e, o) => {
|
|
80
|
-
const { __scopeAlertDialog: r, ...t } = e, a = s(r);
|
|
81
|
-
return /* @__PURE__ */ i.jsx(v, { ...a, ...t, ref: o });
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
h.displayName = z;
|
|
85
|
-
var C = "AlertDialogCancel", P = l.forwardRef(
|
|
86
|
-
(e, o) => {
|
|
87
|
-
const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = k(C, r), d = s(r), p = u(o, a);
|
|
88
|
-
return /* @__PURE__ */ i.jsx(v, { ...d, ...t, ref: p });
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
P.displayName = C;
|
|
92
|
-
var J = ({ contentRef: e }) => {
|
|
93
|
-
const o = `\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
94
|
-
|
|
95
|
-
You can add a description to the \`${n}\` by passing a \`${x}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
96
|
-
|
|
97
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
98
|
-
|
|
99
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
100
|
-
return l.useEffect(() => {
|
|
101
|
-
document.getElementById(
|
|
102
|
-
e.current?.getAttribute("aria-describedby")
|
|
103
|
-
) || console.warn(o);
|
|
104
|
-
}, [o, e]), null;
|
|
105
|
-
}, re = D, te = m, ae = y, ie = _, le = h, se = P, ne = R, ce = E;
|
|
106
18
|
export {
|
|
107
|
-
|
|
108
|
-
D as AlertDialog,
|
|
109
|
-
h as AlertDialogAction,
|
|
110
|
-
P as AlertDialogCancel,
|
|
111
|
-
_ as AlertDialogContent,
|
|
112
|
-
E as AlertDialogDescription,
|
|
113
|
-
y as AlertDialogOverlay,
|
|
114
|
-
m as AlertDialogPortal,
|
|
115
|
-
R as AlertDialogTitle,
|
|
116
|
-
q as AlertDialogTrigger,
|
|
117
|
-
se as Cancel,
|
|
118
|
-
ie as Content,
|
|
119
|
-
ce as Description,
|
|
120
|
-
ae as Overlay,
|
|
121
|
-
te as Portal,
|
|
122
|
-
re as Root,
|
|
123
|
-
ne as Title,
|
|
124
|
-
oe as createAlertDialogScope
|
|
19
|
+
t as default
|
|
125
20
|
};
|
|
126
21
|
//# sourceMappingURL=index.es51.js.map
|
package/dist/index.es51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es51.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-alert-dialog@1.1.6_@types+react-dom@18.3.5_@types+react@18.3.18__@types_9a42bc5019ce142eedb02e3dad52c0a3/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/alert-dialog/src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Slottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","Slottable","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Action","Cancel","Title2","Description2"],"mappings":";;;;;;;AAWA,IAAIA,IAAY,eACZ,CAACC,GAA0BC,EAAsB,IAAIC,EAAmBH,GAAW;AAAA,EACrFI;AACF,CAAC,GACGC,IAAiBD,EAAmB,GACpCE,IAAc,CAACC,MAAU;AAC3B,QAAM,EAAE,oBAAAC,GAAoB,GAAGC,EAAgB,IAAKF,GAC9CG,IAAcL,EAAeG,CAAkB;AACrD,SAAuBG,gBAAAA,EAAG,IAACC,GAAsB,EAAE,GAAGF,GAAa,GAAGD,GAAkB,OAAO,IAAM;AACvG;AACAH,EAAY,cAAcN;AAC1B,IAAIa,IAAe,sBACfC,IAAqBC,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGS,EAAY,IAAKV,GAC1CG,IAAcL,EAAeG,CAAkB;AACrD,WAAuBG,gBAAAA,EAAG,IAACO,GAAyB,EAAE,GAAGR,GAAa,GAAGO,GAAc,KAAKD,GAAc;AAAA,EAC9G;AACA;AACAF,EAAmB,cAAcD;AACjC,IAAIM,IAAc,qBACdC,IAAoB,CAACb,MAAU;AACjC,QAAM,EAAE,oBAAAC,GAAoB,GAAGa,EAAW,IAAKd,GACzCG,IAAcL,EAAeG,CAAkB;AACrD,SAAuBG,gBAAAA,EAAAA,IAAIW,GAAwB,EAAE,GAAGZ,GAAa,GAAGW,EAAW,CAAE;AACvF;AACAD,EAAkB,cAAcD;AAChC,IAAII,IAAe,sBACfC,IAAqBT,EAAM;AAAA,EAC7B,CAACR,GAAOS,MAAiB;AACvB,UAAM,EAAE,oBAAAR,GAAoB,GAAGiB,EAAY,IAAKlB,GAC1CG,IAAcL,EAAeG,CAAkB;AACrD,WAAuBG,gBAAAA,EAAG,IAACe,GAAyB,EAAE,GAAGhB,GAAa,GAAGe,G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;AAChC,IAAIZ,IAAqB,CAAC,EAAE,YAAAX,QAAiB;AAC3C,QAAM2B,IAAU,KAAKjC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBqB,CAAgB;AAAA;AAAA,4JAEsErB,CAAY;AAAA;AAAA;AAGtK,SAAAZ,EAAM,UAAU,MAAM;AAIpB,IAHuB,SAAS;AAAA,MAC9BkB,EAAW,SAAS,aAAa,kBAAkB;AAAA,IACpD,KACoB,QAAQ,KAAK2B,CAAO;AAAA,EAC7C,GAAK,CAACA,GAAS3B,CAAU,CAAC,GACjB;AACT,GACI4B,KAAQvD,GAERwD,KAAU1C,GACV2C,KAAWvC,GACXwC,KAAWlC,GACXmC,KAASZ,GACTa,KAAST,GACTU,KAAStB,GACTuB,KAAenB;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es51.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js"],"sourcesContent":["/**\n * @license lucide-react v0.477.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n"],"names":["defaultAttributes"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOG,IAACA,IAAoB;AAAA,EACtB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,eAAe;AAAA,EACf,gBAAgB;AAClB;","x_google_ignoreList":[0]}
|
package/dist/index.es52.js
CHANGED
|
@@ -1,66 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
r = +r || 0;
|
|
8
|
-
var F = !!(i = i || {}).leading, E = !("trailing" in i) || !!i.trailing, v = "maxWait" in i, M = "debounceOnServer" in i && !!i.debounceOnServer, x = v ? Math.max(+i.maxWait || 0, r) : null;
|
|
9
|
-
q(function() {
|
|
10
|
-
return m.current = !0, function() {
|
|
11
|
-
m.current = !1;
|
|
12
|
-
};
|
|
13
|
-
}, []);
|
|
14
|
-
var k = P(function() {
|
|
15
|
-
var y = function(e) {
|
|
16
|
-
var t = o.current, b = l.current;
|
|
17
|
-
return o.current = l.current = null, f.current = e, s.current = D.current.apply(b, t);
|
|
18
|
-
}, p = function(e, t) {
|
|
19
|
-
d && cancelAnimationFrame(n.current), n.current = d ? requestAnimationFrame(e) : setTimeout(e, t);
|
|
20
|
-
}, S = function(e) {
|
|
21
|
-
if (!m.current) return !1;
|
|
22
|
-
var t = e - c.current;
|
|
23
|
-
return !c.current || t >= r || t < 0 || v && e - f.current >= x;
|
|
24
|
-
}, T = function(e) {
|
|
25
|
-
return n.current = null, E && o.current ? y(e) : (o.current = l.current = null, s.current);
|
|
26
|
-
}, A = function e() {
|
|
27
|
-
var t = Date.now();
|
|
28
|
-
if (S(t)) return T(t);
|
|
29
|
-
if (m.current) {
|
|
30
|
-
var b = r - (t - c.current), C = v ? Math.min(b, x - (t - f.current)) : b;
|
|
31
|
-
p(e, C);
|
|
32
|
-
}
|
|
33
|
-
}, w = function() {
|
|
34
|
-
if (h || M) {
|
|
35
|
-
var e = Date.now(), t = S(e);
|
|
36
|
-
if (o.current = [].slice.call(arguments), l.current = g, c.current = e, t) {
|
|
37
|
-
if (!n.current && m.current) return f.current = c.current, p(A, r), F ? y(c.current) : s.current;
|
|
38
|
-
if (v) return p(A, r), y(c.current);
|
|
39
|
-
}
|
|
40
|
-
return n.current || p(A, r), s.current;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
return w.cancel = function() {
|
|
44
|
-
n.current && (d ? cancelAnimationFrame(n.current) : clearTimeout(n.current)), f.current = 0, o.current = c.current = l.current = n.current = null;
|
|
45
|
-
}, w.isPending = function() {
|
|
46
|
-
return !!n.current;
|
|
47
|
-
}, w.flush = function() {
|
|
48
|
-
return n.current ? T(Date.now()) : s.current;
|
|
49
|
-
}, w;
|
|
50
|
-
}, [F, v, r, x, E, d, h, M]);
|
|
51
|
-
return k;
|
|
52
|
-
}
|
|
53
|
-
function j(u, r) {
|
|
54
|
-
return u === r;
|
|
55
|
-
}
|
|
56
|
-
function B(u, r, i) {
|
|
57
|
-
var g = j, c = a(u), f = O({})[1], n = R(W(function(l) {
|
|
58
|
-
c.current = l, f({});
|
|
59
|
-
}, [f]), r, i), o = a(u);
|
|
60
|
-
return g(o.current, u) || (n(u), o.current = u), [c.current, n];
|
|
1
|
+
import { a as o } from "./index.es53.js";
|
|
2
|
+
function a(r, t, n) {
|
|
3
|
+
let e = r.length - t.length;
|
|
4
|
+
if (e === 0) return r(...t);
|
|
5
|
+
if (e === 1) return o(r, t, n);
|
|
6
|
+
throw new Error("Wrong number of arguments");
|
|
61
7
|
}
|
|
62
8
|
export {
|
|
63
|
-
|
|
64
|
-
R as useDebouncedCallback
|
|
9
|
+
a
|
|
65
10
|
};
|
|
66
11
|
//# sourceMappingURL=index.es52.js.map
|
package/dist/index.es52.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es52.js","sources":["../../../node_modules/.pnpm/
|
|
1
|
+
{"version":3,"file":"index.es52.js","sources":["../../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-WIMGWYZL.js"],"sourcesContent":["import{a as t}from\"./chunk-D6FCK2GA.js\";function u(r,n,o){let a=r.length-n.length;if(a===0)return r(...n);if(a===1)return t(r,n,o);throw new Error(\"Wrong number of arguments\")}export{u as a};\n"],"names":["u","n","o","a","t"],"mappings":";AAAwC,SAASA,EAAE,GAAEC,GAAEC,GAAE;AAAC,MAAIC,IAAE,EAAE,SAAOF,EAAE;AAAO,MAAGE,MAAI,EAAE,QAAO,EAAE,GAAGF,CAAC;AAAE,MAAGE,MAAI,EAAE,QAAOC,EAAE,GAAEH,GAAEC,CAAC;AAAE,QAAM,IAAI,MAAM,2BAA2B;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es53.js
CHANGED
package/dist/index.es53.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es53.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es53.js","sources":["../../../node_modules/.pnpm/remeda@2.20.2/node_modules/remeda/dist/chunk-D6FCK2GA.js"],"sourcesContent":["function u(o,n,a){let t=r=>o(r,...n);return a===void 0?t:Object.assign(t,{lazy:a,lazyArgs:n})}export{u as a};\n"],"names":["u","o","n","t","r"],"mappings":"AAAA,SAASA,EAAEC,GAAEC,GAAE,GAAE;AAAC,MAAIC,IAAE,CAAAC,MAAGH,EAAEG,GAAE,GAAGF,CAAC;AAAE,SAAO,MAAI,SAAOC,IAAE,OAAO,OAAOA,GAAE,EAAC,MAAK,GAAE,UAASD,EAAC,CAAC;AAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es54.js
CHANGED
|
@@ -1,5 +1,258 @@
|
|
|
1
|
-
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { composeEventHandlers as p } from "./index.es57.js";
|
|
3
|
+
import { useComposedRefs as R } from "./index.es56.js";
|
|
4
|
+
import { createContextScope as V, createContext as q } from "./index.es58.js";
|
|
5
|
+
import { useId as C } from "./index.es69.js";
|
|
6
|
+
import { useControllableState as K } from "./index.es59.js";
|
|
7
|
+
import { DismissableLayer as U } from "./index.es66.js";
|
|
8
|
+
import { FocusScope as Y } from "./index.es68.js";
|
|
9
|
+
import { Portal as Z } from "./index.es71.js";
|
|
10
|
+
import { Presence as _ } from "./index.es77.js";
|
|
11
|
+
import { Primitive as g } from "./index.es62.js";
|
|
12
|
+
import { useFocusGuards as z } from "./index.es67.js";
|
|
13
|
+
import J from "./index.es76.js";
|
|
14
|
+
import { hideOthers as Q } from "./index.es75.js";
|
|
15
|
+
import { Slot as X } from "./index.es33.js";
|
|
16
|
+
import { jsx as i, jsxs as y, Fragment as I } from "react/jsx-runtime";
|
|
17
|
+
var h = "Dialog", [O, Ne] = V(h), [ee, u] = O(h), x = (e) => {
|
|
18
|
+
const {
|
|
19
|
+
__scopeDialog: t,
|
|
20
|
+
children: n,
|
|
21
|
+
open: a,
|
|
22
|
+
defaultOpen: r,
|
|
23
|
+
onOpenChange: o,
|
|
24
|
+
modal: l = !0
|
|
25
|
+
} = e, c = s.useRef(null), f = s.useRef(null), [D = !1, v] = K({
|
|
26
|
+
prop: a,
|
|
27
|
+
defaultProp: r,
|
|
28
|
+
onChange: o
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ i(
|
|
31
|
+
ee,
|
|
32
|
+
{
|
|
33
|
+
scope: t,
|
|
34
|
+
triggerRef: c,
|
|
35
|
+
contentRef: f,
|
|
36
|
+
contentId: C(),
|
|
37
|
+
titleId: C(),
|
|
38
|
+
descriptionId: C(),
|
|
39
|
+
open: D,
|
|
40
|
+
onOpenChange: v,
|
|
41
|
+
onOpenToggle: s.useCallback(() => v((H) => !H), [v]),
|
|
42
|
+
modal: l,
|
|
43
|
+
children: n
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
x.displayName = h;
|
|
48
|
+
var A = "DialogTrigger", T = s.forwardRef(
|
|
49
|
+
(e, t) => {
|
|
50
|
+
const { __scopeDialog: n, ...a } = e, r = u(A, n), o = R(t, r.triggerRef);
|
|
51
|
+
return /* @__PURE__ */ i(
|
|
52
|
+
g.button,
|
|
53
|
+
{
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-haspopup": "dialog",
|
|
56
|
+
"aria-expanded": r.open,
|
|
57
|
+
"aria-controls": r.contentId,
|
|
58
|
+
"data-state": P(r.open),
|
|
59
|
+
...a,
|
|
60
|
+
ref: o,
|
|
61
|
+
onClick: p(e.onClick, r.onOpenToggle)
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
T.displayName = A;
|
|
67
|
+
var E = "DialogPortal", [oe, b] = O(E, {
|
|
68
|
+
forceMount: void 0
|
|
69
|
+
}), M = (e) => {
|
|
70
|
+
const { __scopeDialog: t, forceMount: n, children: a, container: r } = e, o = u(E, t);
|
|
71
|
+
return /* @__PURE__ */ i(oe, { scope: t, forceMount: n, children: s.Children.map(a, (l) => /* @__PURE__ */ i(_, { present: n || o.open, children: /* @__PURE__ */ i(Z, { asChild: !0, container: r, children: l }) })) });
|
|
72
|
+
};
|
|
73
|
+
M.displayName = E;
|
|
74
|
+
var m = "DialogOverlay", w = s.forwardRef(
|
|
75
|
+
(e, t) => {
|
|
76
|
+
const n = b(m, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
|
|
77
|
+
return o.modal ? /* @__PURE__ */ i(_, { present: a || o.open, children: /* @__PURE__ */ i(te, { ...r, ref: t }) }) : null;
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
w.displayName = m;
|
|
81
|
+
var te = s.forwardRef(
|
|
82
|
+
(e, t) => {
|
|
83
|
+
const { __scopeDialog: n, ...a } = e, r = u(m, n);
|
|
84
|
+
return (
|
|
85
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
86
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
87
|
+
/* @__PURE__ */ i(J, { as: X, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
88
|
+
g.div,
|
|
89
|
+
{
|
|
90
|
+
"data-state": P(r.open),
|
|
91
|
+
...a,
|
|
92
|
+
ref: t,
|
|
93
|
+
style: { pointerEvents: "auto", ...a.style }
|
|
94
|
+
}
|
|
95
|
+
) })
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
), d = "DialogContent", F = s.forwardRef(
|
|
99
|
+
(e, t) => {
|
|
100
|
+
const n = b(d, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
|
|
101
|
+
return /* @__PURE__ */ i(_, { present: a || o.open, children: o.modal ? /* @__PURE__ */ i(re, { ...r, ref: t }) : /* @__PURE__ */ i(ne, { ...r, ref: t }) });
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
F.displayName = d;
|
|
105
|
+
var re = s.forwardRef(
|
|
106
|
+
(e, t) => {
|
|
107
|
+
const n = u(d, e.__scopeDialog), a = s.useRef(null), r = R(t, n.contentRef, a);
|
|
108
|
+
return s.useEffect(() => {
|
|
109
|
+
const o = a.current;
|
|
110
|
+
if (o) return Q(o);
|
|
111
|
+
}, []), /* @__PURE__ */ i(
|
|
112
|
+
S,
|
|
113
|
+
{
|
|
114
|
+
...e,
|
|
115
|
+
ref: r,
|
|
116
|
+
trapFocus: n.open,
|
|
117
|
+
disableOutsidePointerEvents: !0,
|
|
118
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (o) => {
|
|
119
|
+
o.preventDefault(), n.triggerRef.current?.focus();
|
|
120
|
+
}),
|
|
121
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (o) => {
|
|
122
|
+
const l = o.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
|
|
123
|
+
(l.button === 2 || c) && o.preventDefault();
|
|
124
|
+
}),
|
|
125
|
+
onFocusOutside: p(
|
|
126
|
+
e.onFocusOutside,
|
|
127
|
+
(o) => o.preventDefault()
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
), ne = s.forwardRef(
|
|
133
|
+
(e, t) => {
|
|
134
|
+
const n = u(d, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
135
|
+
return /* @__PURE__ */ i(
|
|
136
|
+
S,
|
|
137
|
+
{
|
|
138
|
+
...e,
|
|
139
|
+
ref: t,
|
|
140
|
+
trapFocus: !1,
|
|
141
|
+
disableOutsidePointerEvents: !1,
|
|
142
|
+
onCloseAutoFocus: (o) => {
|
|
143
|
+
e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || n.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, r.current = !1;
|
|
144
|
+
},
|
|
145
|
+
onInteractOutside: (o) => {
|
|
146
|
+
e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
147
|
+
const l = o.target;
|
|
148
|
+
n.triggerRef.current?.contains(l) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
), S = s.forwardRef(
|
|
154
|
+
(e, t) => {
|
|
155
|
+
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = s.useRef(null), D = R(t, f);
|
|
156
|
+
return z(), /* @__PURE__ */ y(I, { children: [
|
|
157
|
+
/* @__PURE__ */ i(
|
|
158
|
+
Y,
|
|
159
|
+
{
|
|
160
|
+
asChild: !0,
|
|
161
|
+
loop: !0,
|
|
162
|
+
trapped: a,
|
|
163
|
+
onMountAutoFocus: r,
|
|
164
|
+
onUnmountAutoFocus: o,
|
|
165
|
+
children: /* @__PURE__ */ i(
|
|
166
|
+
U,
|
|
167
|
+
{
|
|
168
|
+
role: "dialog",
|
|
169
|
+
id: c.contentId,
|
|
170
|
+
"aria-describedby": c.descriptionId,
|
|
171
|
+
"aria-labelledby": c.titleId,
|
|
172
|
+
"data-state": P(c.open),
|
|
173
|
+
...l,
|
|
174
|
+
ref: D,
|
|
175
|
+
onDismiss: () => c.onOpenChange(!1)
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ y(I, { children: [
|
|
181
|
+
/* @__PURE__ */ i(ae, { titleId: c.titleId }),
|
|
182
|
+
/* @__PURE__ */ i(se, { contentRef: f, descriptionId: c.descriptionId })
|
|
183
|
+
] })
|
|
184
|
+
] });
|
|
185
|
+
}
|
|
186
|
+
), N = "DialogTitle", W = s.forwardRef(
|
|
187
|
+
(e, t) => {
|
|
188
|
+
const { __scopeDialog: n, ...a } = e, r = u(N, n);
|
|
189
|
+
return /* @__PURE__ */ i(g.h2, { id: r.titleId, ...a, ref: t });
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
W.displayName = N;
|
|
193
|
+
var k = "DialogDescription", G = s.forwardRef(
|
|
194
|
+
(e, t) => {
|
|
195
|
+
const { __scopeDialog: n, ...a } = e, r = u(k, n);
|
|
196
|
+
return /* @__PURE__ */ i(g.p, { id: r.descriptionId, ...a, ref: t });
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
G.displayName = k;
|
|
200
|
+
var L = "DialogClose", $ = s.forwardRef(
|
|
201
|
+
(e, t) => {
|
|
202
|
+
const { __scopeDialog: n, ...a } = e, r = u(L, n);
|
|
203
|
+
return /* @__PURE__ */ i(
|
|
204
|
+
g.button,
|
|
205
|
+
{
|
|
206
|
+
type: "button",
|
|
207
|
+
...a,
|
|
208
|
+
ref: t,
|
|
209
|
+
onClick: p(e.onClick, () => r.onOpenChange(!1))
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
$.displayName = L;
|
|
215
|
+
function P(e) {
|
|
216
|
+
return e ? "open" : "closed";
|
|
217
|
+
}
|
|
218
|
+
var B = "DialogTitleWarning", [Pe, j] = q(B, {
|
|
219
|
+
contentName: d,
|
|
220
|
+
titleName: N,
|
|
221
|
+
docsSlug: "dialog"
|
|
222
|
+
}), ae = ({ titleId: e }) => {
|
|
223
|
+
const t = j(B), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
224
|
+
|
|
225
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
226
|
+
|
|
227
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
228
|
+
return s.useEffect(() => {
|
|
229
|
+
e && (document.getElementById(e) || console.error(n));
|
|
230
|
+
}, [n, e]), null;
|
|
231
|
+
}, ie = "DialogDescriptionWarning", se = ({ contentRef: e, descriptionId: t }) => {
|
|
232
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${j(ie).contentName}}.`;
|
|
233
|
+
return s.useEffect(() => {
|
|
234
|
+
const r = e.current?.getAttribute("aria-describedby");
|
|
235
|
+
t && r && (document.getElementById(t) || console.warn(a));
|
|
236
|
+
}, [a, e, t]), null;
|
|
237
|
+
}, ye = x, Ie = T, Oe = M, xe = w, Ae = F, Te = W, be = G, Me = $;
|
|
2
238
|
export {
|
|
3
|
-
|
|
239
|
+
Me as Close,
|
|
240
|
+
Ae as Content,
|
|
241
|
+
be as Description,
|
|
242
|
+
x as Dialog,
|
|
243
|
+
$ as DialogClose,
|
|
244
|
+
F as DialogContent,
|
|
245
|
+
G as DialogDescription,
|
|
246
|
+
w as DialogOverlay,
|
|
247
|
+
M as DialogPortal,
|
|
248
|
+
W as DialogTitle,
|
|
249
|
+
T as DialogTrigger,
|
|
250
|
+
xe as Overlay,
|
|
251
|
+
Oe as Portal,
|
|
252
|
+
ye as Root,
|
|
253
|
+
Te as Title,
|
|
254
|
+
Ie as Trigger,
|
|
255
|
+
Pe as WarningProvider,
|
|
256
|
+
Ne as createDialogScope
|
|
4
257
|
};
|
|
5
258
|
//# sourceMappingURL=index.es54.js.map
|
package/dist/index.es54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es54.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index.es54.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.6_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_963ba7435ac590a8053d1db2d26ca164/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dialog/src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createDialogScope","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","RemoveScroll","Slot","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","Description","Close"],"mappings":";;;;;;;;;;;;;;;;AAmBA,IAAIA,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,EAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAAS,CAACC,MAAU;AACtB,QAAM;AAAA,IACJ,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,EACZ,IAAMN,GACEO,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAaD,EAAM,OAAO,IAAI,GAC9B,CAACE,IAAO,IAAOC,CAAO,IAAIC,EAAqB;AAAA,IACnD,MAAMT;AAAA,IACN,aAAaC;AAAA,IACb,UAAUC;AAAA,EACd,CAAG;AACD,SAAuB,gBAAAQ;AAAA,IACrBhB;AAAA,IACA;AAAA,MACE,OAAOI;AAAA,MACP,YAAAM;AAAA,MACA,YAAAE;AAAA,MACA,WAAWK,EAAO;AAAA,M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F,IAAU,6EADkBJ,EAAkBK,EAAwB,EAC2C,WAAW;AAClI,SAAA3E,EAAM,UAAU,MAAM;AACpB,UAAM6E,IAAgB5E,EAAW,SAAS,aAAa,kBAAkB;AACzE,IAAI2E,KAAiBC,MACI,SAAS,eAAeD,CAAa,KACvC,QAAQ,KAAKF,CAAO;AAAA,EAE5C,GAAE,CAACA,GAASzE,GAAY2E,CAAa,CAAC,GAChC;AACT,GACIE,KAAOvF,GACPwF,KAAUtE,GACVuE,KAAS3D,GACT4D,KAAUrD,GACVsD,KAAU/C,GACVgD,KAAQvB,GACRwB,KAAcrB,GACdsB,KAAQnB;","x_google_ignoreList":[0]}
|
package/dist/index.es55.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
iconNode: r,
|
|
15
|
-
className: n(`lucide-${f(e)}`, t),
|
|
16
|
-
...a
|
|
17
|
-
})
|
|
1
|
+
import * as p from "react";
|
|
2
|
+
import { Primitive as v } from "./index.es62.js";
|
|
3
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
+
var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
|
|
5
|
+
const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
|
6
|
+
return /* @__PURE__ */ m(
|
|
7
|
+
v.div,
|
|
8
|
+
{
|
|
9
|
+
"data-orientation": o,
|
|
10
|
+
...c,
|
|
11
|
+
...s,
|
|
12
|
+
ref: n
|
|
13
|
+
}
|
|
18
14
|
);
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
});
|
|
16
|
+
i.displayName = d;
|
|
17
|
+
function f(r) {
|
|
18
|
+
return l.includes(r);
|
|
19
|
+
}
|
|
20
|
+
var T = i;
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
T as Root,
|
|
23
|
+
i as Separator
|
|
23
24
|
};
|
|
24
25
|
//# sourceMappingURL=index.es55.js.map
|