@satoshibits/react-json-schema-builder 1.0.1 → 1.0.3
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/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 +6 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js +2 -2
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +2 -2
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +2 -2
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +2 -2
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs27.js +1 -6
- 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 -22
- 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 +6 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +6 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +6 -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 -6
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -6
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -6
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -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 +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- 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 +6 -1
- 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 +6 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +6 -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.cjs63.js +1 -1
- package/dist/index.cjs63.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 +11 -63
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +27 -68
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +4 -8
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +23 -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 +21 -20
- 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 +13 -6
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +10 -7
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +7 -10
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +12 -6
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +4 -13
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +19 -10
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +22 -18
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +13 -23
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +207 -206
- 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 -24
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +33 -602
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +832 -17
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +10 -15
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +10 -2477
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +10 -41
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +115 -32
- 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 +106 -108
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +48 -824
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +24 -10
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +45 -10
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +86 -10
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +56 -110
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +122 -55
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +62 -23
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +7 -44
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +4 -85
- 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 +19 -58
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +9 -123
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +38 -63
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +18 -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 +4 -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 +46 -18
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +26 -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 +65 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +7 -254
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +123 -20
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +13 -25
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +132 -5
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +10 -65
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +212 -26
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js +13 -6
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +32 -24
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +7 -32
- 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 +29 -3
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +4 -46
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +5 -7
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +26 -123
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +50 -15
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +8 -133
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +24 -10
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +65 -213
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +12 -13
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +204 -7
- 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 +22 -4
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +391 -26
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +24 -49
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +28 -8
- 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/context.d.ts +1 -0
- package/dist/packages/builder/context.d.ts.map +1 -1
- package/dist/packages/builder/schema-builder.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -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.es66.js
CHANGED
|
@@ -1,33 +1,219 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { useFloating as fe, offset as me, shift as he, flip as ge, size as ue, arrow as we, hide as Pe, limitShift as xe } from "./index.es79.js";
|
|
3
|
+
import { Root as ye } from "./index.es80.js";
|
|
4
|
+
import { useComposedRefs as I } from "./index.es59.js";
|
|
5
|
+
import { createContextScope as Ae } from "./index.es60.js";
|
|
6
|
+
import { Primitive as Y } from "./index.es68.js";
|
|
7
|
+
import { useCallbackRef as ve } from "./index.es69.js";
|
|
8
|
+
import { useLayoutEffect as z } from "./index.es71.js";
|
|
9
|
+
import { useSize as Ce } from "./index.es76.js";
|
|
10
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
11
|
+
import { autoUpdate as Se } from "./index.es81.js";
|
|
12
|
+
var b = "Popper", [M, ke] = Ae(b), [be, X] = M(b), D = (e) => {
|
|
13
|
+
const { __scopePopper: a, children: o } = e, [i, n] = s.useState(null);
|
|
14
|
+
return /* @__PURE__ */ f(be, { scope: a, anchor: i, onAnchorChange: n, children: o });
|
|
15
|
+
};
|
|
16
|
+
D.displayName = b;
|
|
17
|
+
var F = "PopperAnchor", k = s.forwardRef(
|
|
18
|
+
(e, a) => {
|
|
19
|
+
const { __scopePopper: o, virtualRef: i, ...n } = e, t = X(F, o), r = s.useRef(null), g = I(a, r);
|
|
20
|
+
return s.useEffect(() => {
|
|
21
|
+
t.onAnchorChange(i?.current || r.current);
|
|
22
|
+
}), i ? null : /* @__PURE__ */ f(Y.div, { ...n, ref: g });
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
k.displayName = F;
|
|
26
|
+
var O = "PopperContent", [Oe, Re] = M(O), B = s.forwardRef(
|
|
27
|
+
(e, a) => {
|
|
28
|
+
const {
|
|
29
|
+
__scopePopper: o,
|
|
30
|
+
side: i = "bottom",
|
|
31
|
+
sideOffset: n = 0,
|
|
32
|
+
align: t = "center",
|
|
33
|
+
alignOffset: r = 0,
|
|
34
|
+
arrowPadding: g = 0,
|
|
35
|
+
avoidCollisions: p = !0,
|
|
36
|
+
collisionBoundary: c = [],
|
|
37
|
+
collisionPadding: u = 0,
|
|
38
|
+
sticky: m = "partial",
|
|
39
|
+
hideWhenDetached: P = !1,
|
|
40
|
+
updatePositionStrategy: x = "optimized",
|
|
41
|
+
onPlaced: l,
|
|
42
|
+
...d
|
|
43
|
+
} = e, Z = X(O, o), [C, U] = s.useState(null), q = I(a, (w) => U(w)), [S, G] = s.useState(null), R = Ce(S), J = R?.width ?? 0, E = R?.height ?? 0, K = i + (t !== "center" ? "-" + t : ""), Q = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, N = Array.isArray(c) ? c : [c], V = N.length > 0, y = {
|
|
44
|
+
padding: Q,
|
|
45
|
+
boundary: N.filter(Ne),
|
|
46
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
47
|
+
altBoundary: V
|
|
48
|
+
}, { refs: ee, floatingStyles: _, placement: te, isPositioned: A, middlewareData: h } = fe({
|
|
49
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
50
|
+
strategy: "fixed",
|
|
51
|
+
placement: K,
|
|
52
|
+
whileElementsMounted: (...w) => Se(...w, {
|
|
53
|
+
animationFrame: x === "always"
|
|
54
|
+
}),
|
|
55
|
+
elements: {
|
|
56
|
+
reference: Z.anchor
|
|
57
|
+
},
|
|
58
|
+
middleware: [
|
|
59
|
+
me({ mainAxis: n + E, alignmentAxis: r }),
|
|
60
|
+
p && he({
|
|
61
|
+
mainAxis: !0,
|
|
62
|
+
crossAxis: !1,
|
|
63
|
+
limiter: m === "partial" ? xe() : void 0,
|
|
64
|
+
...y
|
|
65
|
+
}),
|
|
66
|
+
p && ge({ ...y }),
|
|
67
|
+
ue({
|
|
68
|
+
...y,
|
|
69
|
+
apply: ({ elements: w, rects: W, availableWidth: pe, availableHeight: ce }) => {
|
|
70
|
+
const { width: de, height: le } = W.reference, v = w.floating.style;
|
|
71
|
+
v.setProperty("--radix-popper-available-width", `${pe}px`), v.setProperty("--radix-popper-available-height", `${ce}px`), v.setProperty("--radix-popper-anchor-width", `${de}px`), v.setProperty("--radix-popper-anchor-height", `${le}px`);
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
S && we({ element: S, padding: g }),
|
|
75
|
+
_e({ arrowWidth: J, arrowHeight: E }),
|
|
76
|
+
P && Pe({ strategy: "referenceHidden", ...y })
|
|
77
|
+
]
|
|
78
|
+
}), [$, re] = L(te), H = ve(l);
|
|
79
|
+
z(() => {
|
|
80
|
+
A && H?.();
|
|
81
|
+
}, [A, H]);
|
|
82
|
+
const oe = h.arrow?.x, ne = h.arrow?.y, ae = h.arrow?.centerOffset !== 0, [ie, se] = s.useState();
|
|
83
|
+
return z(() => {
|
|
84
|
+
C && se(window.getComputedStyle(C).zIndex);
|
|
85
|
+
}, [C]), /* @__PURE__ */ f(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
ref: ee.setFloating,
|
|
89
|
+
"data-radix-popper-content-wrapper": "",
|
|
90
|
+
style: {
|
|
91
|
+
..._,
|
|
92
|
+
transform: A ? _.transform : "translate(0, -200%)",
|
|
93
|
+
// keep off the page when measuring
|
|
94
|
+
minWidth: "max-content",
|
|
95
|
+
zIndex: ie,
|
|
96
|
+
"--radix-popper-transform-origin": [
|
|
97
|
+
h.transformOrigin?.x,
|
|
98
|
+
h.transformOrigin?.y
|
|
99
|
+
].join(" "),
|
|
100
|
+
// hide the content if using the hide middleware and should be hidden
|
|
101
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
102
|
+
// as if the PopperContent isn't there at all
|
|
103
|
+
...h.hide?.referenceHidden && {
|
|
104
|
+
visibility: "hidden",
|
|
105
|
+
pointerEvents: "none"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
dir: e.dir,
|
|
109
|
+
children: /* @__PURE__ */ f(
|
|
110
|
+
Oe,
|
|
111
|
+
{
|
|
112
|
+
scope: o,
|
|
113
|
+
placedSide: $,
|
|
114
|
+
onArrowChange: G,
|
|
115
|
+
arrowX: oe,
|
|
116
|
+
arrowY: ne,
|
|
117
|
+
shouldHideArrow: ae,
|
|
118
|
+
children: /* @__PURE__ */ f(
|
|
119
|
+
Y.div,
|
|
120
|
+
{
|
|
121
|
+
"data-side": $,
|
|
122
|
+
"data-align": re,
|
|
123
|
+
...d,
|
|
124
|
+
ref: q,
|
|
125
|
+
style: {
|
|
126
|
+
...d.style,
|
|
127
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
128
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
129
|
+
animation: A ? void 0 : "none"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
);
|
|
7
137
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
138
|
+
);
|
|
139
|
+
B.displayName = O;
|
|
140
|
+
var T = "PopperArrow", Ee = {
|
|
141
|
+
top: "bottom",
|
|
142
|
+
right: "left",
|
|
143
|
+
bottom: "top",
|
|
144
|
+
left: "right"
|
|
145
|
+
}, j = s.forwardRef(function(a, o) {
|
|
146
|
+
const { __scopePopper: i, ...n } = a, t = Re(T, i), r = Ee[t.placedSide];
|
|
147
|
+
return (
|
|
148
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
149
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
150
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
151
|
+
/* @__PURE__ */ f(
|
|
152
|
+
"span",
|
|
153
|
+
{
|
|
154
|
+
ref: t.onArrowChange,
|
|
155
|
+
style: {
|
|
156
|
+
position: "absolute",
|
|
157
|
+
left: t.arrowX,
|
|
158
|
+
top: t.arrowY,
|
|
159
|
+
[r]: 0,
|
|
160
|
+
transformOrigin: {
|
|
161
|
+
top: "",
|
|
162
|
+
right: "0 0",
|
|
163
|
+
bottom: "center 0",
|
|
164
|
+
left: "100% 0"
|
|
165
|
+
}[t.placedSide],
|
|
166
|
+
transform: {
|
|
167
|
+
top: "translateY(100%)",
|
|
168
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
169
|
+
bottom: "rotate(180deg)",
|
|
170
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
171
|
+
}[t.placedSide],
|
|
172
|
+
visibility: t.shouldHideArrow ? "hidden" : void 0
|
|
173
|
+
},
|
|
174
|
+
children: /* @__PURE__ */ f(
|
|
175
|
+
ye,
|
|
176
|
+
{
|
|
177
|
+
...n,
|
|
178
|
+
ref: o,
|
|
179
|
+
style: {
|
|
180
|
+
...n.style,
|
|
181
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
182
|
+
display: "block"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
)
|
|
18
188
|
);
|
|
19
|
-
|
|
189
|
+
});
|
|
190
|
+
j.displayName = T;
|
|
191
|
+
function Ne(e) {
|
|
192
|
+
return e !== null;
|
|
20
193
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
194
|
+
var _e = (e) => ({
|
|
195
|
+
name: "transformOrigin",
|
|
196
|
+
options: e,
|
|
197
|
+
fn(a) {
|
|
198
|
+
const { placement: o, rects: i, middlewareData: n } = a, r = n.arrow?.centerOffset !== 0, g = r ? 0 : e.arrowWidth, p = r ? 0 : e.arrowHeight, [c, u] = L(o), m = { start: "0%", center: "50%", end: "100%" }[u], P = (n.arrow?.x ?? 0) + g / 2, x = (n.arrow?.y ?? 0) + p / 2;
|
|
199
|
+
let l = "", d = "";
|
|
200
|
+
return c === "bottom" ? (l = r ? m : `${P}px`, d = `${-p}px`) : c === "top" ? (l = r ? m : `${P}px`, d = `${i.floating.height + p}px`) : c === "right" ? (l = `${-p}px`, d = r ? m : `${x}px`) : c === "left" && (l = `${i.floating.width + p}px`, d = r ? m : `${x}px`), { data: { x: l, y: d } };
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
function L(e) {
|
|
204
|
+
const [a, o = "center"] = e.split("-");
|
|
205
|
+
return [a, o];
|
|
29
206
|
}
|
|
207
|
+
var Be = D, Te = k, je = B, Le = j;
|
|
30
208
|
export {
|
|
31
|
-
|
|
209
|
+
Te as Anchor,
|
|
210
|
+
Le as Arrow,
|
|
211
|
+
je as Content,
|
|
212
|
+
D as Popper,
|
|
213
|
+
k as PopperAnchor,
|
|
214
|
+
j as PopperArrow,
|
|
215
|
+
B as PopperContent,
|
|
216
|
+
Be as Root,
|
|
217
|
+
ke as createPopperScope
|
|
32
218
|
};
|
|
33
219
|
//# sourceMappingURL=index.es66.js.map
|
package/dist/index.es66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es66.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/useControllableState.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":";;AAGA,SAASA,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW,MAAM;AAAA,EACnB;AACA,GAAG;AACD,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAqB,EAAE,aAAAJ,GAAa,UAAAC,GAAU,GACxFI,IAAeN,MAAS,QACxBO,IAAQD,IAAeN,IAAOG,GAC9BK,IAAeC,EAAeP,CAAQ,GACtCQ,IAAWC,EAAM;AAAA,IACrB,CAACC,MAAc;AACb,UAAIN,GAAc;AAEhB,cAAMO,IAAS,OAAOD,KAAc,aADrBA,EACyCZ,CAAI,IAAIY;AAChE,QAAIC,MAAWb,KAAMQ,EAAaK,CAAM;AAAA,MAChD;AACQ,QAAAT,EAAoBQ,CAAS;AAAA,IAEhC;AAAA,IACD,CAACN,GAAcN,GAAMI,GAAqBI,CAAY;AAAA,EACvD;AACD,SAAO,CAACD,GAAOG,CAAQ;AACzB;AACA,SAASL,EAAqB;AAAA,EAC5B,aAAAJ;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMY,IAAoBH,EAAM,SAASV,CAAW,GAC9C,CAACM,CAAK,IAAIO,GACVC,IAAeJ,EAAM,OAAOJ,CAAK,GACjCC,IAAeC,EAAeP,CAAQ;AAC5C,SAAAS,EAAM,UAAU,MAAM;AACpB,IAAII,EAAa,YAAYR,MAC3BC,EAAaD,CAAK,GAClBQ,EAAa,UAAUR;AAAA,EAE1B,GAAE,CAACA,GAAOQ,GAAcP,CAAY,CAAC,GAC/BM;AACT;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es66.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-popper@1.2.2_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_59afb87696a0dce9b123b45a0cbbb3e0/node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","arrowY","cannotCenterArrow","contentZIndex","setContentZIndex","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":";;;;;;;;;;;AAyBA,IAAIA,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,GAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAAS,CAACC,MAAU;AACtB,QAAM,EAAE,eAAAC,GAAe,UAAAC,EAAQ,IAAKF,GAC9B,CAACG,GAAQC,CAAS,IAAIC,EAAM,SAAS,IAAI;AAC/C,SAAuB,gBAAAC,EAAIT,IAAgB,EAAE,OAAOI,GAAe,QAAAE,GAAQ,gBAAgBC,GAAW,UAAAF,GAAU;AAClH;AACAH,EAAO,cAAcN;AACrB,IAAIc,IAAc,gBACdC,IAAeH,EAAM;AAAA,EACvB,CA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AAe,WACxByB,IAAI,GAAGlC,EAAM,SAAS,QAAQrB,CAAW,MACzCwD,IAAIL,IAAgBC,IAAe,GAAGE,CAAY,OAE7C,EAAE,MAAM,EAAE,GAAAC,GAAG,GAAAC,EAAC,EAAI;AAAA,EAC7B;AACA;AACA,SAASxB,EAA6BvB,GAAW;AAC/C,QAAM,CAAC9B,GAAME,IAAQ,QAAQ,IAAI4B,EAAU,MAAM,GAAG;AACpD,SAAO,CAAC9B,GAAME,CAAK;AACrB;AACG,IAAC4E,KAAQpG,GACRqG,KAAS5F,GACT6F,KAAUjF,GACVkF,KAAQjB;","x_google_ignoreList":[0]}
|
package/dist/index.es67.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import n from "react-dom";
|
|
3
|
+
import { Primitive as s } from "./index.es68.js";
|
|
4
|
+
import { useLayoutEffect as c } from "./index.es71.js";
|
|
5
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
+
var l = "Portal", p = o.forwardRef((r, e) => {
|
|
7
|
+
const { container: a, ...f } = r, [i, m] = o.useState(!1);
|
|
8
|
+
c(() => m(!0), []);
|
|
9
|
+
const t = a || i && globalThis?.document?.body;
|
|
10
|
+
return t ? n.createPortal(/* @__PURE__ */ u(s.div, { ...f, ref: e }), t) : null;
|
|
11
|
+
});
|
|
12
|
+
p.displayName = l;
|
|
6
13
|
export {
|
|
7
|
-
|
|
14
|
+
p as Portal
|
|
8
15
|
};
|
|
9
16
|
//# sourceMappingURL=index.es67.js.map
|
package/dist/index.es67.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es67.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es67.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-portal@1.1.4_@types+react-dom@18.3.5_@types+react@18.3.18__@types+react_f09ca44b075894bef1f22048f2189343/node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PORTAL_NAME","Portal","React","props","forwardedRef","containerProp","portalProps","mounted","setMounted","useLayoutEffect","container","ReactDOM","jsx","Primitive"],"mappings":";;;;;AAQA,IAAIA,IAAc,UACdC,IAASC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,QAAM,EAAE,WAAWC,GAAe,GAAGC,EAAa,IAAGH,GAC/C,CAACI,GAASC,CAAU,IAAIN,EAAM,SAAS,EAAK;AAClDO,EAAAA,EAAgB,MAAMD,EAAW,EAAI,GAAG,CAAA,CAAE;AAC1C,QAAME,IAAYL,KAAiBE,KAAW,YAAY,UAAU;AACpE,SAAOG,IAAYC,EAAS,aAA6B,gBAAAC,EAAIC,EAAU,KAAK,EAAE,GAAGP,GAAa,KAAKF,EAAc,CAAA,GAAGM,CAAS,IAAI;AACnI,CAAC;AACDT,EAAO,cAAcD;","x_google_ignoreList":[0]}
|
package/dist/index.es68.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import * as f from "react-dom";
|
|
3
|
+
import { Slot as p } from "./index.es33.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
var c = [
|
|
6
|
+
"a",
|
|
7
|
+
"button",
|
|
8
|
+
"div",
|
|
9
|
+
"form",
|
|
10
|
+
"h2",
|
|
11
|
+
"h3",
|
|
12
|
+
"img",
|
|
13
|
+
"input",
|
|
14
|
+
"label",
|
|
15
|
+
"li",
|
|
16
|
+
"nav",
|
|
17
|
+
"ol",
|
|
18
|
+
"p",
|
|
19
|
+
"span",
|
|
20
|
+
"svg",
|
|
21
|
+
"ul"
|
|
22
|
+
], v = c.reduce((r, i) => {
|
|
23
|
+
const t = s.forwardRef((o, e) => {
|
|
24
|
+
const { asChild: m, ...a } = o, n = m ? p : i;
|
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(n, { ...a, ref: e });
|
|
26
|
+
});
|
|
27
|
+
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
|
28
|
+
}, {});
|
|
29
|
+
function h(r, i) {
|
|
30
|
+
r && f.flushSync(() => r.dispatchEvent(i));
|
|
24
31
|
}
|
|
25
32
|
export {
|
|
26
|
-
|
|
33
|
+
v as Primitive,
|
|
34
|
+
h as dispatchDiscreteCustomEvent
|
|
27
35
|
};
|
|
28
36
|
//# sourceMappingURL=index.es68.js.map
|
package/dist/index.es68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es68.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es68.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-primitive@2.0.2_@types+react-dom@18.3.5_@types+react@18.3.18__@types+re_57431883aeb2c82f4228eaee26b876b0/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","Slot","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUG,IAAOR;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,OAAO,IAAI,UAAU,CAAC,IAAI,KAEZ,gBAAAS,EAAIF,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC7E,CAAG;AACD,SAAAH,EAAK,cAAc,aAAaD,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGC,EAAM;AACvC,GAAG,CAAE,CAAA;AACL,SAASS,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
|
package/dist/index.es69.js
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"button",
|
|
8
|
-
"div",
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"span",
|
|
20
|
-
"svg",
|
|
21
|
-
"ul"
|
|
22
|
-
], v = c.reduce((r, i) => {
|
|
23
|
-
const t = n.forwardRef((o, e) => {
|
|
24
|
-
const { asChild: s, ...m } = o, a = s ? f : i;
|
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(a, { ...m, ref: e });
|
|
26
|
-
});
|
|
27
|
-
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
|
28
|
-
}, {});
|
|
29
|
-
function h(r, i) {
|
|
30
|
-
r && p.flushSync(() => r.dispatchEvent(i));
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function c(r) {
|
|
3
|
+
const t = e.useRef(r);
|
|
4
|
+
return e.useEffect(() => {
|
|
5
|
+
t.current = r;
|
|
6
|
+
}), e.useMemo(() => (...u) => t.current?.(...u), []);
|
|
31
7
|
}
|
|
32
8
|
export {
|
|
33
|
-
|
|
34
|
-
h as dispatchDiscreteCustomEvent
|
|
9
|
+
c as useCallbackRef
|
|
35
10
|
};
|
|
36
11
|
//# sourceMappingURL=index.es69.js.map
|
package/dist/index.es69.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es69.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-
|
|
1
|
+
{"version":3,"file":"index.es69.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EAC1B,CAAG,GACME,EAAM,QAAQ,MAAM,IAAIC,MAASF,EAAY,UAAU,GAAGE,CAAI,GAAG,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index.es7.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Input as
|
|
3
|
-
import { InputErrorWrapper as
|
|
4
|
-
import { Label as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { useConstraints as
|
|
7
|
-
import { Button as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
constraintName:
|
|
11
|
-
value:
|
|
12
|
-
onConstraintChange:
|
|
13
|
-
disabled:
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Input as l } from "./index.es27.js";
|
|
3
|
+
import { InputErrorWrapper as u } from "./index.es28.js";
|
|
4
|
+
import { Label as f } from "./index.es14.js";
|
|
5
|
+
import { cn as b } from "./index.es21.js";
|
|
6
|
+
import { useConstraints as h } from "./index.es4.js";
|
|
7
|
+
import { Button as g } from "./index.es10.js";
|
|
8
|
+
import x from "./index.es29.js";
|
|
9
|
+
const o = ({
|
|
10
|
+
constraintName: i,
|
|
11
|
+
value: s,
|
|
12
|
+
onConstraintChange: m,
|
|
13
|
+
disabled: c,
|
|
14
14
|
error: t,
|
|
15
15
|
onRemoveConstraint: a
|
|
16
16
|
}) => {
|
|
17
|
-
const { getConstraintDefinition:
|
|
18
|
-
return
|
|
19
|
-
|
|
17
|
+
const { getConstraintDefinition: p } = h(), e = p(i);
|
|
18
|
+
return e ? /* @__PURE__ */ r(
|
|
19
|
+
u,
|
|
20
20
|
{
|
|
21
21
|
errorCode: t?.code,
|
|
22
22
|
errorDescription: t?.message,
|
|
23
23
|
showError: !!t,
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
24
|
+
children: /* @__PURE__ */ n("div", { children: [
|
|
25
|
+
/* @__PURE__ */ r(f, { className: "mb-2", htmlFor: e.name, children: e.name }),
|
|
26
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
l,
|
|
29
29
|
{
|
|
30
|
-
id:
|
|
30
|
+
id: e.name,
|
|
31
31
|
type: "number",
|
|
32
|
-
value:
|
|
33
|
-
onChange: (
|
|
34
|
-
disabled:
|
|
32
|
+
value: s,
|
|
33
|
+
onChange: (d) => m(Number(d.target.value)),
|
|
34
|
+
disabled: c,
|
|
35
35
|
min: 0,
|
|
36
|
-
className:
|
|
36
|
+
className: b({ "border-destructive": t })
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
|
+
g,
|
|
41
41
|
{
|
|
42
42
|
type: "button",
|
|
43
43
|
variant: "ghost",
|
|
44
44
|
size: "icon",
|
|
45
45
|
onClick: () => a(),
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
children: /* @__PURE__ */ r(x, { className: "size-4" })
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
] }),
|
|
50
|
-
|
|
50
|
+
e.description && /* @__PURE__ */ r("div", { className: "mt-2 text-sm text-gray-500", children: e.description })
|
|
51
51
|
] })
|
|
52
52
|
}
|
|
53
53
|
) : null;
|
|
54
|
-
},
|
|
54
|
+
}, z = o, E = o;
|
|
55
55
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
E as ObjectMaxPropertiesRenderer,
|
|
57
|
+
z as ObjectMinPropertiesRenderer
|
|
58
58
|
};
|
|
59
59
|
//# sourceMappingURL=index.es7.js.map
|
package/dist/index.es7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es7.js","sources":["../src/packages/plugins/object.tsx"],"sourcesContent":["import { Input } from \"@/components/ui/input\";\nimport { InputErrorWrapper } from \"@/components/input-error\";\nimport { Label } from \"@/components/ui/label\";\nimport { cn } from \"@/lib/utils\";\nimport {\n BaseJSONSchemaPlugin,\n ConstraintRendererProps,\n useConstraints,\n} from \"@/packages/constraints/context\";\nimport { Button } from \"@/components/ui/button\";\nimport { X } from \"lucide-react\";\n\n// Number constraint renderer for minProperties and maxProperties\nconst ObjectNumberConstraintRenderer = ({\n constraintName,\n value,\n onConstraintChange,\n disabled,\n error,\n onRemoveConstraint,\n}: ConstraintRendererProps<number> & { disabled?: boolean }) => {\n const { getConstraintDefinition } = useConstraints();\n const constraintDef = getConstraintDefinition(constraintName);\n\n if (!constraintDef) {\n return null;\n }\n\n return (\n <InputErrorWrapper\n errorCode={error?.code}\n errorDescription={error?.message}\n showError={!!error}\n >\n <div>\n <Label className=\"mb-2\" htmlFor={constraintDef.name}>\n {constraintDef.name}\n </Label>\n <div className=\"flex items-center gap-2\">\n <Input\n id={constraintDef.name}\n type=\"number\"\n value={value}\n onChange={(e) => onConstraintChange(Number(e.target.value))}\n disabled={disabled}\n min={0}\n className={cn({ \"border-destructive\": error })}\n />\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => onRemoveConstraint()}\n >\n <X className=\"size-4\" />\n </Button>\n </div>\n {constraintDef.description && (\n <div className=\"mt-2 text-sm text-gray-500\">\n {constraintDef.description}\n </div>\n )}\n </div>\n </InputErrorWrapper>\n );\n};\n\n// Export the renderers\nexport const ObjectMinPropertiesRenderer = ObjectNumberConstraintRenderer;\nexport const ObjectMaxPropertiesRenderer = ObjectNumberConstraintRenderer;\n\nconst plugin: BaseJSONSchemaPlugin = {\n id: \"object-constraints\",\n hooks: {\n registerConstraints() {\n return [\n {\n name: \"minProperties\",\n label: \"Min Properties\",\n appliesTo: [\"object\"],\n schema: {\n type: \"integer\",\n title: \"Minimum Properties Constraint\",\n description:\n \"The minimum number of properties the object must have\",\n examples: [1, 2, 5],\n minimum: 0,\n },\n description:\n \"Specifies the minimum number of properties in the object\",\n defaultValue: 0,\n },\n {\n name: \"maxProperties\",\n label: \"Max Properties\",\n appliesTo: [\"object\"],\n schema: {\n type: \"integer\",\n title: \"Maximum Properties Constraint\",\n description: \"The maximum number of properties the object can have\",\n examples: [5, 10, 20],\n minimum: 0,\n },\n description:\n \"Specifies the maximum number of properties in the object\",\n defaultValue: 10,\n },\n ];\n },\n registerRenderers() {\n return {\n minProperties: ObjectMinPropertiesRenderer,\n maxProperties: ObjectMaxPropertiesRenderer,\n };\n },\n },\n};\n\nexport default plugin;\n"],"names":["ObjectNumberConstraintRenderer","constraintName","value","onConstraintChange","disabled","error","onRemoveConstraint","getConstraintDefinition","useConstraints","constraintDef","jsx","InputErrorWrapper","Label","jsxs","Input","e","cn","Button","X","ObjectMinPropertiesRenderer","ObjectMaxPropertiesRenderer"],"mappings":";;;;;;;;AAaA,MAAMA,IAAiC,CAAC;AAAA,EACtC,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,oBAAAC;AACF,MAAgE;AACxD,QAAA,EAAE,yBAAAC,EAAwB,IAAIC,EAAe,GAC7CC,IAAgBF,EAAwBN,CAAc;AAE5D,SAAKQ,
|
|
1
|
+
{"version":3,"file":"index.es7.js","sources":["../src/packages/plugins/object.tsx"],"sourcesContent":["import { Input } from \"@/components/ui/input\";\nimport { InputErrorWrapper } from \"@/components/input-error\";\nimport { Label } from \"@/components/ui/label\";\nimport { cn } from \"@/lib/utils\";\nimport {\n BaseJSONSchemaPlugin,\n ConstraintRendererProps,\n useConstraints,\n} from \"@/packages/constraints/context\";\nimport { Button } from \"@/components/ui/button\";\nimport { X } from \"lucide-react\";\n\n// Number constraint renderer for minProperties and maxProperties\nconst ObjectNumberConstraintRenderer = ({\n constraintName,\n value,\n onConstraintChange,\n disabled,\n error,\n onRemoveConstraint,\n}: ConstraintRendererProps<number> & { disabled?: boolean }) => {\n const { getConstraintDefinition } = useConstraints();\n const constraintDef = getConstraintDefinition(constraintName);\n\n if (!constraintDef) {\n return null;\n }\n\n return (\n <InputErrorWrapper\n errorCode={error?.code}\n errorDescription={error?.message}\n showError={!!error}\n >\n <div>\n <Label className=\"mb-2\" htmlFor={constraintDef.name}>\n {constraintDef.name}\n </Label>\n <div className=\"flex items-center gap-2\">\n <Input\n id={constraintDef.name}\n type=\"number\"\n value={value}\n onChange={(e) => onConstraintChange(Number(e.target.value))}\n disabled={disabled}\n min={0}\n className={cn({ \"border-destructive\": error })}\n />\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => onRemoveConstraint()}\n >\n <X className=\"size-4\" />\n </Button>\n </div>\n {constraintDef.description && (\n <div className=\"mt-2 text-sm text-gray-500\">\n {constraintDef.description}\n </div>\n )}\n </div>\n </InputErrorWrapper>\n );\n};\n\n// Export the renderers\nexport const ObjectMinPropertiesRenderer = ObjectNumberConstraintRenderer;\nexport const ObjectMaxPropertiesRenderer = ObjectNumberConstraintRenderer;\n\nconst plugin: BaseJSONSchemaPlugin = {\n id: \"object-constraints\",\n hooks: {\n registerConstraints() {\n return [\n {\n name: \"minProperties\",\n label: \"Min Properties\",\n appliesTo: [\"object\"],\n schema: {\n type: \"integer\",\n title: \"Minimum Properties Constraint\",\n description:\n \"The minimum number of properties the object must have\",\n examples: [1, 2, 5],\n minimum: 0,\n },\n description:\n \"Specifies the minimum number of properties in the object\",\n defaultValue: 0,\n },\n {\n name: \"maxProperties\",\n label: \"Max Properties\",\n appliesTo: [\"object\"],\n schema: {\n type: \"integer\",\n title: \"Maximum Properties Constraint\",\n description: \"The maximum number of properties the object can have\",\n examples: [5, 10, 20],\n minimum: 0,\n },\n description:\n \"Specifies the maximum number of properties in the object\",\n defaultValue: 10,\n },\n ];\n },\n registerRenderers() {\n return {\n minProperties: ObjectMinPropertiesRenderer,\n maxProperties: ObjectMaxPropertiesRenderer,\n };\n },\n },\n};\n\nexport default plugin;\n"],"names":["ObjectNumberConstraintRenderer","constraintName","value","onConstraintChange","disabled","error","onRemoveConstraint","getConstraintDefinition","useConstraints","constraintDef","jsx","InputErrorWrapper","Label","jsxs","Input","e","cn","Button","X","ObjectMinPropertiesRenderer","ObjectMaxPropertiesRenderer"],"mappings":";;;;;;;;AAaA,MAAMA,IAAiC,CAAC;AAAA,EACtC,gBAAAC;AAAA,EACA,OAAAC;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