@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.es49.js
CHANGED
|
@@ -1,89 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { FormProvider as u, Controller as x, useFormContext as F, useFormState as I } from "react-hook-form";
|
|
5
|
-
import { cn as a } from "./index.es22.js";
|
|
6
|
-
import { Label as g } from "./index.es15.js";
|
|
7
|
-
const b = u, c = s.createContext(
|
|
8
|
-
{}
|
|
9
|
-
), S = ({
|
|
10
|
-
...e
|
|
11
|
-
}) => /* @__PURE__ */ m.jsx(c.Provider, { value: { name: e.name }, children: /* @__PURE__ */ m.jsx(x, { ...e }) }), d = () => {
|
|
12
|
-
const e = s.useContext(c), t = s.useContext(l), { getFieldState: r } = F(), o = I({ name: e.name }), n = r(e.name, o);
|
|
13
|
-
if (!e)
|
|
14
|
-
throw new Error("useFormField should be used within <FormField>");
|
|
15
|
-
const { id: i } = t;
|
|
16
|
-
return {
|
|
17
|
-
id: i,
|
|
18
|
-
name: e.name,
|
|
19
|
-
formItemId: `${i}-form-item`,
|
|
20
|
-
formDescriptionId: `${i}-form-item-description`,
|
|
21
|
-
formMessageId: `${i}-form-item-message`,
|
|
22
|
-
...n
|
|
23
|
-
};
|
|
24
|
-
}, l = s.createContext(
|
|
25
|
-
{}
|
|
26
|
-
);
|
|
27
|
-
function $({ className: e, ...t }) {
|
|
28
|
-
const r = s.useId();
|
|
29
|
-
return /* @__PURE__ */ m.jsx(l.Provider, { value: { id: r }, children: /* @__PURE__ */ m.jsx(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "form-item",
|
|
33
|
-
className: a("grid gap-2", e),
|
|
34
|
-
...t
|
|
35
|
-
}
|
|
36
|
-
) });
|
|
37
|
-
}
|
|
38
|
-
function M({
|
|
39
|
-
className: e,
|
|
40
|
-
...t
|
|
41
|
-
}) {
|
|
42
|
-
const { error: r, formItemId: o } = d();
|
|
43
|
-
return /* @__PURE__ */ m.jsx(
|
|
44
|
-
g,
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "form-label",
|
|
47
|
-
"data-error": !!r,
|
|
48
|
-
className: a("data-[error=true]:text-destructive-foreground", e),
|
|
49
|
-
htmlFor: o,
|
|
50
|
-
...t
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function w({ ...e }) {
|
|
55
|
-
const { error: t, formItemId: r, formDescriptionId: o, formMessageId: n } = d();
|
|
56
|
-
return /* @__PURE__ */ m.jsx(
|
|
57
|
-
f,
|
|
58
|
-
{
|
|
59
|
-
"data-slot": "form-control",
|
|
60
|
-
id: r,
|
|
61
|
-
"aria-describedby": t ? `${o} ${n}` : `${o}`,
|
|
62
|
-
"aria-invalid": !!t,
|
|
63
|
-
...e
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
function N({ className: e, ...t }) {
|
|
68
|
-
const { error: r, formMessageId: o } = d(), n = r ? String(r?.message ?? "") : t.children;
|
|
69
|
-
return n ? /* @__PURE__ */ m.jsx(
|
|
70
|
-
"p",
|
|
71
|
-
{
|
|
72
|
-
"data-slot": "form-message",
|
|
73
|
-
id: o,
|
|
74
|
-
className: a("text-destructive-foreground text-sm", e),
|
|
75
|
-
...t,
|
|
76
|
-
children: n
|
|
77
|
-
}
|
|
78
|
-
) : null;
|
|
1
|
+
function i(r, t, a) {
|
|
2
|
+
let e = (s) => r(s, ...t);
|
|
3
|
+
return a === void 0 ? e : Object.assign(e, { lazy: a, lazyArgs: t });
|
|
79
4
|
}
|
|
80
5
|
export {
|
|
81
|
-
|
|
82
|
-
w as FormControl,
|
|
83
|
-
S as FormField,
|
|
84
|
-
$ as FormItem,
|
|
85
|
-
M as FormLabel,
|
|
86
|
-
N as FormMessage,
|
|
87
|
-
d as useFormField
|
|
6
|
+
i as a
|
|
88
7
|
};
|
|
89
8
|
//# sourceMappingURL=index.es49.js.map
|
package/dist/index.es49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es49.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es49.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.es5.js
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
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 { Switch as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
constraintName:
|
|
12
|
-
value:
|
|
13
|
-
onConstraintChange:
|
|
14
|
-
disabled:
|
|
1
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Input as C } from "./index.es27.js";
|
|
3
|
+
import { InputErrorWrapper as l } from "./index.es28.js";
|
|
4
|
+
import { Label as p } from "./index.es14.js";
|
|
5
|
+
import { cn as h } from "./index.es21.js";
|
|
6
|
+
import { useConstraints as u } from "./index.es4.js";
|
|
7
|
+
import { Button as f } from "./index.es10.js";
|
|
8
|
+
import { Switch as N } from "./index.es12.js";
|
|
9
|
+
import g from "./index.es29.js";
|
|
10
|
+
const v = ({
|
|
11
|
+
constraintName: i,
|
|
12
|
+
value: s,
|
|
13
|
+
onConstraintChange: o,
|
|
14
|
+
disabled: a,
|
|
15
15
|
error: t,
|
|
16
|
-
onRemoveConstraint:
|
|
16
|
+
onRemoveConstraint: c
|
|
17
17
|
}) => {
|
|
18
|
-
const { getConstraintDefinition:
|
|
19
|
-
return
|
|
20
|
-
|
|
18
|
+
const { getConstraintDefinition: m } = u(), e = m(i);
|
|
19
|
+
return e ? /* @__PURE__ */ r(
|
|
20
|
+
l,
|
|
21
21
|
{
|
|
22
22
|
errorCode: t?.code,
|
|
23
23
|
errorDescription: t?.message,
|
|
24
24
|
showError: !!t,
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
25
|
+
children: /* @__PURE__ */ n("div", { children: [
|
|
26
|
+
/* @__PURE__ */ r(p, { className: "mb-2", htmlFor: e.name, children: e.name }),
|
|
27
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
C,
|
|
30
30
|
{
|
|
31
|
-
id:
|
|
31
|
+
id: e.name,
|
|
32
32
|
type: "number",
|
|
33
|
-
value:
|
|
34
|
-
onChange: (
|
|
35
|
-
disabled:
|
|
33
|
+
value: s,
|
|
34
|
+
onChange: (d) => o(Number(d.target.value)),
|
|
35
|
+
disabled: a,
|
|
36
36
|
min: 0,
|
|
37
|
-
className:
|
|
37
|
+
className: h({ "border-destructive": t })
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
f,
|
|
42
42
|
{
|
|
43
43
|
type: "button",
|
|
44
44
|
variant: "ghost",
|
|
45
45
|
size: "icon",
|
|
46
|
-
onClick: () =>
|
|
47
|
-
children: /* @__PURE__ */
|
|
46
|
+
onClick: () => c(),
|
|
47
|
+
children: /* @__PURE__ */ r(g, { className: "size-4" })
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
] }),
|
|
51
|
-
|
|
51
|
+
e.description && /* @__PURE__ */ r("div", { className: "mt-2 text-sm text-gray-500", children: e.description })
|
|
52
52
|
] })
|
|
53
53
|
}
|
|
54
54
|
) : null;
|
|
55
|
-
},
|
|
56
|
-
constraintName:
|
|
57
|
-
value:
|
|
58
|
-
onConstraintChange:
|
|
59
|
-
disabled:
|
|
55
|
+
}, b = ({
|
|
56
|
+
constraintName: i,
|
|
57
|
+
value: s,
|
|
58
|
+
onConstraintChange: o,
|
|
59
|
+
disabled: a,
|
|
60
60
|
error: t,
|
|
61
|
-
onRemoveConstraint:
|
|
61
|
+
onRemoveConstraint: c
|
|
62
62
|
}) => {
|
|
63
|
-
const { getConstraintDefinition:
|
|
64
|
-
return
|
|
65
|
-
|
|
63
|
+
const { getConstraintDefinition: m } = u(), e = m(i);
|
|
64
|
+
return e ? /* @__PURE__ */ r(
|
|
65
|
+
l,
|
|
66
66
|
{
|
|
67
67
|
errorCode: t?.code,
|
|
68
68
|
errorDescription: t?.message,
|
|
69
69
|
showError: !!t,
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
70
|
+
children: /* @__PURE__ */ n("div", { children: [
|
|
71
|
+
/* @__PURE__ */ n("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
72
|
+
/* @__PURE__ */ r(p, { htmlFor: e.name, children: e.name }),
|
|
73
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
74
|
+
/* @__PURE__ */ r(
|
|
75
|
+
N,
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
78
|
-
checked:
|
|
79
|
-
onCheckedChange: (
|
|
80
|
-
disabled:
|
|
81
|
-
className:
|
|
77
|
+
id: e.name,
|
|
78
|
+
checked: s,
|
|
79
|
+
onCheckedChange: (d) => o(d),
|
|
80
|
+
disabled: a,
|
|
81
|
+
className: h({ "border-destructive": t })
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
84
|
+
/* @__PURE__ */ r(
|
|
85
|
+
f,
|
|
86
86
|
{
|
|
87
87
|
type: "button",
|
|
88
88
|
variant: "ghost",
|
|
89
89
|
size: "icon",
|
|
90
|
-
onClick: () =>
|
|
91
|
-
children: /* @__PURE__ */
|
|
90
|
+
onClick: () => c(),
|
|
91
|
+
children: /* @__PURE__ */ r(g, { className: "size-4" })
|
|
92
92
|
}
|
|
93
93
|
)
|
|
94
94
|
] })
|
|
95
95
|
] }),
|
|
96
|
-
|
|
96
|
+
e.description && /* @__PURE__ */ r("div", { className: "mt-2 text-sm text-gray-500", children: e.description })
|
|
97
97
|
] })
|
|
98
98
|
}
|
|
99
99
|
) : null;
|
|
100
|
-
},
|
|
100
|
+
}, j = v, E = v, B = b;
|
|
101
101
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
E as ArrayMaxItemsRenderer,
|
|
103
|
+
j as ArrayMinItemsRenderer,
|
|
104
|
+
B as ArrayUniqueItemsRenderer
|
|
105
105
|
};
|
|
106
106
|
//# sourceMappingURL=index.es5.js.map
|
package/dist/index.es5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es5.js","sources":["../src/packages/plugins/array.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\";\nimport { Switch } from \"@/components/ui/switch\";\n\n// Generic numeric constraint renderer for arrays (minItems, maxItems)\nconst ArrayNumberConstraintRenderer = ({\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// Boolean constraint renderer for uniqueItems\nconst ArrayBooleanConstraintRenderer = ({\n constraintName,\n value,\n onConstraintChange,\n disabled,\n error,\n onRemoveConstraint,\n}: ConstraintRendererProps<boolean> & { 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 <div className=\"mb-2 flex items-center justify-between\">\n <Label htmlFor={constraintDef.name}>{constraintDef.name}</Label>\n <div className=\"flex items-center gap-2\">\n <Switch\n id={constraintDef.name}\n checked={value}\n onCheckedChange={(checked) => onConstraintChange(checked)}\n disabled={disabled}\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 </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 ArrayMinItemsRenderer = ArrayNumberConstraintRenderer;\nexport const ArrayMaxItemsRenderer = ArrayNumberConstraintRenderer;\nexport const ArrayUniqueItemsRenderer = ArrayBooleanConstraintRenderer;\n\nconst plugin: BaseJSONSchemaPlugin = {\n id: \"array-constraints\",\n hooks: {\n registerConstraints() {\n return [\n {\n name: \"minItems\",\n label: \"Min Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"integer\",\n title: \"Minimum Items Constraint\",\n description: \"The minimum number of items the array must contain\",\n examples: [1, 2, 5],\n minimum: 0,\n },\n description: \"Specifies the minimum number of items in the array\",\n defaultValue: 0,\n },\n {\n name: \"maxItems\",\n label: \"Max Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"integer\",\n title: \"Maximum Items Constraint\",\n description: \"The maximum number of items the array can contain\",\n examples: [10, 20, 100],\n minimum: 0,\n },\n description: \"Specifies the maximum number of items in the array\",\n defaultValue: 10,\n },\n {\n name: \"uniqueItems\",\n label: \"Unique Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"boolean\",\n title: \"Unique Items Constraint\",\n description: \"Whether array items must be unique\",\n },\n description: \"When true, all items in the array must be unique\",\n defaultValue: false,\n },\n ];\n },\n registerRenderers() {\n return {\n minItems: ArrayMinItemsRenderer,\n maxItems: ArrayMaxItemsRenderer,\n uniqueItems: ArrayUniqueItemsRenderer,\n };\n },\n },\n};\n\nexport default plugin;\n"],"names":["ArrayNumberConstraintRenderer","constraintName","value","onConstraintChange","disabled","error","onRemoveConstraint","getConstraintDefinition","useConstraints","constraintDef","jsx","InputErrorWrapper","Label","jsxs","Input","e","cn","Button","X","ArrayBooleanConstraintRenderer","Switch","checked","ArrayMinItemsRenderer","ArrayMaxItemsRenderer","ArrayUniqueItemsRenderer"],"mappings":";;;;;;;;;AAcA,MAAMA,IAAgC,CAAC;AAAA,EACrC,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.es5.js","sources":["../src/packages/plugins/array.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\";\nimport { Switch } from \"@/components/ui/switch\";\n\n// Generic numeric constraint renderer for arrays (minItems, maxItems)\nconst ArrayNumberConstraintRenderer = ({\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// Boolean constraint renderer for uniqueItems\nconst ArrayBooleanConstraintRenderer = ({\n constraintName,\n value,\n onConstraintChange,\n disabled,\n error,\n onRemoveConstraint,\n}: ConstraintRendererProps<boolean> & { 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 <div className=\"mb-2 flex items-center justify-between\">\n <Label htmlFor={constraintDef.name}>{constraintDef.name}</Label>\n <div className=\"flex items-center gap-2\">\n <Switch\n id={constraintDef.name}\n checked={value}\n onCheckedChange={(checked) => onConstraintChange(checked)}\n disabled={disabled}\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 </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 ArrayMinItemsRenderer = ArrayNumberConstraintRenderer;\nexport const ArrayMaxItemsRenderer = ArrayNumberConstraintRenderer;\nexport const ArrayUniqueItemsRenderer = ArrayBooleanConstraintRenderer;\n\nconst plugin: BaseJSONSchemaPlugin = {\n id: \"array-constraints\",\n hooks: {\n registerConstraints() {\n return [\n {\n name: \"minItems\",\n label: \"Min Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"integer\",\n title: \"Minimum Items Constraint\",\n description: \"The minimum number of items the array must contain\",\n examples: [1, 2, 5],\n minimum: 0,\n },\n description: \"Specifies the minimum number of items in the array\",\n defaultValue: 0,\n },\n {\n name: \"maxItems\",\n label: \"Max Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"integer\",\n title: \"Maximum Items Constraint\",\n description: \"The maximum number of items the array can contain\",\n examples: [10, 20, 100],\n minimum: 0,\n },\n description: \"Specifies the maximum number of items in the array\",\n defaultValue: 10,\n },\n {\n name: \"uniqueItems\",\n label: \"Unique Items\",\n appliesTo: [\"array\"],\n schema: {\n type: \"boolean\",\n title: \"Unique Items Constraint\",\n description: \"Whether array items must be unique\",\n },\n description: \"When true, all items in the array must be unique\",\n defaultValue: false,\n },\n ];\n },\n registerRenderers() {\n return {\n minItems: ArrayMinItemsRenderer,\n maxItems: ArrayMaxItemsRenderer,\n uniqueItems: ArrayUniqueItemsRenderer,\n };\n },\n },\n};\n\nexport default plugin;\n"],"names":["ArrayNumberConstraintRenderer","constraintName","value","onConstraintChange","disabled","error","onRemoveConstraint","getConstraintDefinition","useConstraints","constraintDef","jsx","InputErrorWrapper","Label","jsxs","Input","e","cn","Button","X","ArrayBooleanConstraintRenderer","Switch","checked","ArrayMinItemsRenderer","ArrayMaxItemsRenderer","ArrayUniqueItemsRenderer"],"mappings":"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"}
|
package/dist/index.es50.js
CHANGED
|
@@ -1,63 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
errorCode: n,
|
|
20
|
-
errorDescription: x,
|
|
21
|
-
showError: !!n,
|
|
22
|
-
className: "space-y-2",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ e.jsx(l, { children: "Add Input" }),
|
|
25
|
-
/* @__PURE__ */ e.jsx(
|
|
26
|
-
f,
|
|
27
|
-
{
|
|
28
|
-
...c,
|
|
29
|
-
onKeyDown: (r) => {
|
|
30
|
-
r.key === "Enter" && (r.preventDefault(), r.stopPropagation());
|
|
31
|
-
},
|
|
32
|
-
onKeyUp: (r) => {
|
|
33
|
-
if (r.key === "Enter") {
|
|
34
|
-
if (s && t.length >= s) {
|
|
35
|
-
u("Maximum reached"), d(
|
|
36
|
-
"You have reached the maximum number of values"
|
|
37
|
-
);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
m?.(r.currentTarget.value), r.currentTarget.value = "";
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
o ? o() : /* @__PURE__ */ e.jsx("div", { className: "space-x-2 flex", children: t.map((r, i) => /* @__PURE__ */ e.jsxs(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
className: "flex items-center text-xs border rounded p-1 w-max mt-2",
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ e.jsx("span", { children: r }),
|
|
51
|
-
/* @__PURE__ */ e.jsx("button", { onClick: () => p(i), children: /* @__PURE__ */ e.jsx(j, { size: 16 }) })
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
`${i}-${r}`
|
|
55
|
-
)) })
|
|
56
|
-
]
|
|
57
|
-
}
|
|
1
|
+
import { forwardRef as s, createElement as c } from "react";
|
|
2
|
+
import { mergeClasses as n, toKebabCase as f } from "./index.es51.js";
|
|
3
|
+
import l from "./index.es52.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v0.477.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const u = (e, r) => {
|
|
11
|
+
const o = s(
|
|
12
|
+
({ className: t, ...a }, m) => c(l, {
|
|
13
|
+
ref: m,
|
|
14
|
+
iconNode: r,
|
|
15
|
+
className: n(`lucide-${f(e)}`, t),
|
|
16
|
+
...a
|
|
17
|
+
})
|
|
58
18
|
);
|
|
19
|
+
return o.displayName = `${e}`, o;
|
|
59
20
|
};
|
|
60
21
|
export {
|
|
61
|
-
|
|
22
|
+
u as default
|
|
62
23
|
};
|
|
63
24
|
//# sourceMappingURL=index.es50.js.map
|
package/dist/index.es50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es50.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es50.js","sources":["../../../node_modules/.pnpm/lucide-react@0.477.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.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\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props\n })\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":["createLucideIcon","iconName","iconNode","Component","forwardRef","className","props","ref","createElement","Icon","mergeClasses","toKebabCase"],"mappings":";;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWK,MAACA,IAAmB,CAACC,GAAUC,MAAa;AAC/C,QAAMC,IAAYC;AAAA,IAChB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAO,GAAEC,MAAQC,EAAcC,GAAM;AAAA,MACpD,KAAAF;AAAA,MACA,UAAAL;AAAA,MACA,WAAWQ,EAAa,UAAUC,EAAYV,CAAQ,CAAC,IAAII,CAAS;AAAA,MACpE,GAAGC;AAAA,IACJ,CAAA;AAAA,EACF;AACD,SAAAH,EAAU,cAAc,GAAGF,CAAQ,IAC5BE;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es51.js
CHANGED
|
@@ -1,126 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var f = "AlertDialog", [W, oe] = T(f, [
|
|
9
|
-
A
|
|
10
|
-
]), s = A(), D = (e) => {
|
|
11
|
-
const { __scopeAlertDialog: o, ...r } = e, t = s(o);
|
|
12
|
-
return /* @__PURE__ */ i.jsx(O, { ...t, ...r, modal: !0 });
|
|
13
|
-
};
|
|
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;
|
|
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
|
+
const n = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (...e) => e.filter((o, r, t) => !!o && o.trim() !== "" && t.indexOf(o) === r).join(" ").trim();
|
|
106
8
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
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
|
|
9
|
+
i as mergeClasses,
|
|
10
|
+
n as toKebabCase
|
|
125
11
|
};
|
|
126
12
|
//# 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_5d3a1db41ab18a3dd4add3d1d0adc5b2/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":"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","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/shared/src/utils.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\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toKebabCase };\n//# sourceMappingURL=utils.js.map\n"],"names":["toKebabCase","string","mergeClasses","classes","className","index","array"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOK,MAACA,IAAc,CAACC,MAAWA,EAAO,QAAQ,sBAAsB,OAAO,EAAE,YAAW,GACnFC,IAAe,IAAIC,MAAYA,EAAQ,OAAO,CAACC,GAAWC,GAAOC,MAC9D,EAAQF,KAAcA,EAAU,KAAI,MAAO,MAAME,EAAM,QAAQF,CAAS,MAAMC,CACtF,EAAE,KAAK,GAAG,EAAE,KAAI;","x_google_ignoreList":[0]}
|