@satoshibits/react-json-schema-builder 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -0
- package/dist/components/depounced-input.d.ts +5 -0
- package/dist/components/depounced-input.d.ts.map +1 -0
- package/dist/components/input-error.d.ts +11 -0
- package/dist/components/input-error.d.ts.map +1 -0
- package/dist/components/multi-input.d.ts +10 -0
- package/dist/components/multi-input.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +14 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/form.d.ts +25 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/dev.d.ts +3 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.cjs10.js +2 -0
- package/dist/index.cjs10.js.map +1 -0
- package/dist/index.cjs100.js +2 -0
- package/dist/index.cjs100.js.map +1 -0
- package/dist/index.cjs101.js +39 -0
- package/dist/index.cjs101.js.map +1 -0
- package/dist/index.cjs102.js +2 -0
- package/dist/index.cjs102.js.map +1 -0
- package/dist/index.cjs103.js +2 -0
- package/dist/index.cjs103.js.map +1 -0
- package/dist/index.cjs104.js +2 -0
- package/dist/index.cjs104.js.map +1 -0
- package/dist/index.cjs105.js +2 -0
- package/dist/index.cjs105.js.map +1 -0
- package/dist/index.cjs106.js +2 -0
- package/dist/index.cjs106.js.map +1 -0
- package/dist/index.cjs107.js +2 -0
- package/dist/index.cjs107.js.map +1 -0
- package/dist/index.cjs108.js +2 -0
- package/dist/index.cjs108.js.map +1 -0
- package/dist/index.cjs109.js +2 -0
- package/dist/index.cjs109.js.map +1 -0
- package/dist/index.cjs11.js +2 -0
- package/dist/index.cjs11.js.map +1 -0
- package/dist/index.cjs110.js +2 -0
- package/dist/index.cjs110.js.map +1 -0
- package/dist/index.cjs12.js +2 -0
- package/dist/index.cjs12.js.map +1 -0
- package/dist/index.cjs13.js +2 -0
- package/dist/index.cjs13.js.map +1 -0
- package/dist/index.cjs14.js +2 -0
- package/dist/index.cjs14.js.map +1 -0
- package/dist/index.cjs15.js +2 -0
- package/dist/index.cjs15.js.map +1 -0
- package/dist/index.cjs16.js +2 -0
- package/dist/index.cjs16.js.map +1 -0
- package/dist/index.cjs17.js +2 -0
- package/dist/index.cjs17.js.map +1 -0
- package/dist/index.cjs18.js +2 -0
- package/dist/index.cjs18.js.map +1 -0
- package/dist/index.cjs19.js +2 -0
- package/dist/index.cjs19.js.map +1 -0
- package/dist/index.cjs2.js +2 -0
- package/dist/index.cjs2.js.map +1 -0
- package/dist/index.cjs20.js +2 -0
- package/dist/index.cjs20.js.map +1 -0
- package/dist/index.cjs21.js +2 -0
- package/dist/index.cjs21.js.map +1 -0
- package/dist/index.cjs22.js +7 -0
- package/dist/index.cjs22.js.map +1 -0
- package/dist/index.cjs23.js +7 -0
- package/dist/index.cjs23.js.map +1 -0
- package/dist/index.cjs24.js +7 -0
- package/dist/index.cjs24.js.map +1 -0
- package/dist/index.cjs25.js +7 -0
- package/dist/index.cjs25.js.map +1 -0
- package/dist/index.cjs26.js +7 -0
- package/dist/index.cjs26.js.map +1 -0
- package/dist/index.cjs27.js +2 -0
- package/dist/index.cjs27.js.map +1 -0
- package/dist/index.cjs28.js +2 -0
- package/dist/index.cjs28.js.map +1 -0
- package/dist/index.cjs29.js +2 -0
- package/dist/index.cjs29.js.map +1 -0
- package/dist/index.cjs3.js +2 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.cjs30.js +7 -0
- package/dist/index.cjs30.js.map +1 -0
- package/dist/index.cjs31.js +2 -0
- package/dist/index.cjs31.js.map +1 -0
- package/dist/index.cjs32.js +2 -0
- package/dist/index.cjs32.js.map +1 -0
- package/dist/index.cjs33.js +10 -0
- package/dist/index.cjs33.js.map +1 -0
- package/dist/index.cjs34.js +24 -0
- package/dist/index.cjs34.js.map +1 -0
- package/dist/index.cjs35.js +2 -0
- package/dist/index.cjs35.js.map +1 -0
- package/dist/index.cjs36.js +2 -0
- package/dist/index.cjs36.js.map +1 -0
- package/dist/index.cjs37.js +2 -0
- package/dist/index.cjs37.js.map +1 -0
- package/dist/index.cjs38.js +2 -0
- package/dist/index.cjs38.js.map +1 -0
- package/dist/index.cjs39.js +2 -0
- package/dist/index.cjs39.js.map +1 -0
- package/dist/index.cjs4.js +2 -0
- package/dist/index.cjs4.js.map +1 -0
- package/dist/index.cjs40.js +2 -0
- package/dist/index.cjs40.js.map +1 -0
- package/dist/index.cjs41.js +2 -0
- package/dist/index.cjs41.js.map +1 -0
- package/dist/index.cjs42.js +2 -0
- package/dist/index.cjs42.js.map +1 -0
- package/dist/index.cjs43.js +2 -0
- package/dist/index.cjs43.js.map +1 -0
- package/dist/index.cjs44.js +2 -0
- package/dist/index.cjs44.js.map +1 -0
- package/dist/index.cjs45.js +2 -0
- package/dist/index.cjs45.js.map +1 -0
- package/dist/index.cjs46.js +2 -0
- package/dist/index.cjs46.js.map +1 -0
- package/dist/index.cjs47.js +2 -0
- package/dist/index.cjs47.js.map +1 -0
- package/dist/index.cjs48.js +7 -0
- package/dist/index.cjs48.js.map +1 -0
- package/dist/index.cjs49.js +7 -0
- package/dist/index.cjs49.js.map +1 -0
- package/dist/index.cjs5.js +2 -0
- package/dist/index.cjs5.js.map +1 -0
- package/dist/index.cjs50.js +7 -0
- package/dist/index.cjs50.js.map +1 -0
- package/dist/index.cjs51.js +8 -0
- package/dist/index.cjs51.js.map +1 -0
- package/dist/index.cjs52.js +2 -0
- package/dist/index.cjs52.js.map +1 -0
- package/dist/index.cjs53.js +2 -0
- package/dist/index.cjs53.js.map +1 -0
- package/dist/index.cjs54.js +2 -0
- package/dist/index.cjs54.js.map +1 -0
- package/dist/index.cjs55.js +7 -0
- package/dist/index.cjs55.js.map +1 -0
- package/dist/index.cjs56.js +7 -0
- package/dist/index.cjs56.js.map +1 -0
- package/dist/index.cjs57.js +7 -0
- package/dist/index.cjs57.js.map +1 -0
- package/dist/index.cjs58.js +7 -0
- package/dist/index.cjs58.js.map +1 -0
- package/dist/index.cjs59.js +2 -0
- package/dist/index.cjs59.js.map +1 -0
- package/dist/index.cjs6.js +2 -0
- package/dist/index.cjs6.js.map +1 -0
- package/dist/index.cjs60.js +2 -0
- package/dist/index.cjs60.js.map +1 -0
- package/dist/index.cjs61.js +6 -0
- package/dist/index.cjs61.js.map +1 -0
- package/dist/index.cjs62.js +2 -0
- package/dist/index.cjs62.js.map +1 -0
- package/dist/index.cjs63.js +2 -0
- package/dist/index.cjs63.js.map +1 -0
- package/dist/index.cjs64.js +2 -0
- package/dist/index.cjs64.js.map +1 -0
- package/dist/index.cjs65.js +2 -0
- package/dist/index.cjs65.js.map +1 -0
- package/dist/index.cjs66.js +2 -0
- package/dist/index.cjs66.js.map +1 -0
- package/dist/index.cjs67.js +2 -0
- package/dist/index.cjs67.js.map +1 -0
- package/dist/index.cjs68.js +2 -0
- package/dist/index.cjs68.js.map +1 -0
- package/dist/index.cjs69.js +2 -0
- package/dist/index.cjs69.js.map +1 -0
- package/dist/index.cjs7.js +2 -0
- package/dist/index.cjs7.js.map +1 -0
- package/dist/index.cjs70.js +2 -0
- package/dist/index.cjs70.js.map +1 -0
- package/dist/index.cjs71.js +2 -0
- package/dist/index.cjs71.js.map +1 -0
- package/dist/index.cjs72.js +2 -0
- package/dist/index.cjs72.js.map +1 -0
- package/dist/index.cjs73.js +2 -0
- package/dist/index.cjs73.js.map +1 -0
- package/dist/index.cjs74.js +2 -0
- package/dist/index.cjs74.js.map +1 -0
- package/dist/index.cjs75.js +2 -0
- package/dist/index.cjs75.js.map +1 -0
- package/dist/index.cjs76.js +2 -0
- package/dist/index.cjs76.js.map +1 -0
- package/dist/index.cjs77.js +2 -0
- package/dist/index.cjs77.js.map +1 -0
- package/dist/index.cjs78.js +2 -0
- package/dist/index.cjs78.js.map +1 -0
- package/dist/index.cjs79.js +2 -0
- package/dist/index.cjs79.js.map +1 -0
- package/dist/index.cjs8.js +2 -0
- package/dist/index.cjs8.js.map +1 -0
- package/dist/index.cjs80.js +2 -0
- package/dist/index.cjs80.js.map +1 -0
- package/dist/index.cjs81.js +2 -0
- package/dist/index.cjs81.js.map +1 -0
- package/dist/index.cjs82.js +2 -0
- package/dist/index.cjs82.js.map +1 -0
- package/dist/index.cjs83.js +2 -0
- package/dist/index.cjs83.js.map +1 -0
- package/dist/index.cjs84.js +2 -0
- package/dist/index.cjs84.js.map +1 -0
- package/dist/index.cjs85.js +2 -0
- package/dist/index.cjs85.js.map +1 -0
- package/dist/index.cjs86.js +2 -0
- package/dist/index.cjs86.js.map +1 -0
- package/dist/index.cjs87.js +2 -0
- package/dist/index.cjs87.js.map +1 -0
- package/dist/index.cjs88.js +2 -0
- package/dist/index.cjs88.js.map +1 -0
- package/dist/index.cjs89.js +2 -0
- package/dist/index.cjs89.js.map +1 -0
- package/dist/index.cjs9.js +2 -0
- package/dist/index.cjs9.js.map +1 -0
- package/dist/index.cjs90.js +2 -0
- package/dist/index.cjs90.js.map +1 -0
- package/dist/index.cjs91.js +2 -0
- package/dist/index.cjs91.js.map +1 -0
- package/dist/index.cjs92.js +2 -0
- package/dist/index.cjs92.js.map +1 -0
- package/dist/index.cjs93.js +2 -0
- package/dist/index.cjs93.js.map +1 -0
- package/dist/index.cjs94.js +2 -0
- package/dist/index.cjs94.js.map +1 -0
- package/dist/index.cjs95.js +5 -0
- package/dist/index.cjs95.js.map +1 -0
- package/dist/index.cjs96.js +2 -0
- package/dist/index.cjs96.js.map +1 -0
- package/dist/index.cjs97.js +2 -0
- package/dist/index.cjs97.js.map +1 -0
- package/dist/index.cjs98.js +2 -0
- package/dist/index.cjs98.js.map +1 -0
- package/dist/index.cjs99.js +2 -0
- package/dist/index.cjs99.js.map +1 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.es.js +31 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.es10.js +26 -0
- package/dist/index.es10.js.map +1 -0
- package/dist/index.es100.js +68 -0
- package/dist/index.es100.js.map +1 -0
- package/dist/index.es101.js +72 -0
- package/dist/index.es101.js.map +1 -0
- package/dist/index.es102.js +12 -0
- package/dist/index.es102.js.map +1 -0
- package/dist/index.es103.js +17 -0
- package/dist/index.es103.js.map +1 -0
- package/dist/index.es104.js +65 -0
- package/dist/index.es104.js.map +1 -0
- package/dist/index.es105.js +7 -0
- package/dist/index.es105.js.map +1 -0
- package/dist/index.es106.js +26 -0
- package/dist/index.es106.js.map +1 -0
- package/dist/index.es107.js +26 -0
- package/dist/index.es107.js.map +1 -0
- package/dist/index.es108.js +16 -0
- package/dist/index.es108.js.map +1 -0
- package/dist/index.es109.js +31 -0
- package/dist/index.es109.js.map +1 -0
- package/dist/index.es11.js +51 -0
- package/dist/index.es11.js.map +1 -0
- package/dist/index.es110.js +8 -0
- package/dist/index.es110.js.map +1 -0
- package/dist/index.es12.js +70 -0
- package/dist/index.es12.js.map +1 -0
- package/dist/index.es13.js +32 -0
- package/dist/index.es13.js.map +1 -0
- package/dist/index.es14.js +137 -0
- package/dist/index.es14.js.map +1 -0
- package/dist/index.es15.js +23 -0
- package/dist/index.es15.js.map +1 -0
- package/dist/index.es16.js +138 -0
- package/dist/index.es16.js.map +1 -0
- package/dist/index.es17.js +141 -0
- package/dist/index.es17.js.map +1 -0
- package/dist/index.es18.js +67 -0
- package/dist/index.es18.js.map +1 -0
- package/dist/index.es19.js +14 -0
- package/dist/index.es19.js.map +1 -0
- package/dist/index.es2.js +108 -0
- package/dist/index.es2.js.map +1 -0
- package/dist/index.es20.js +26 -0
- package/dist/index.es20.js.map +1 -0
- package/dist/index.es21.js +428 -0
- package/dist/index.es21.js.map +1 -0
- package/dist/index.es22.js +16 -0
- package/dist/index.es22.js.map +1 -0
- package/dist/index.es23.js +19 -0
- package/dist/index.es23.js.map +1 -0
- package/dist/index.es24.js +16 -0
- package/dist/index.es24.js.map +1 -0
- package/dist/index.es25.js +22 -0
- package/dist/index.es25.js.map +1 -0
- package/dist/index.es26.js +13 -0
- package/dist/index.es26.js.map +1 -0
- package/dist/index.es27.js +22 -0
- package/dist/index.es27.js.map +1 -0
- package/dist/index.es28.js +26 -0
- package/dist/index.es28.js.map +1 -0
- package/dist/index.es29.js +9 -0
- package/dist/index.es29.js.map +1 -0
- package/dist/index.es3.js +337 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/index.es30.js +16 -0
- package/dist/index.es30.js.map +1 -0
- package/dist/index.es31.js +11 -0
- package/dist/index.es31.js.map +1 -0
- package/dist/index.es32.js +5 -0
- package/dist/index.es32.js.map +1 -0
- package/dist/index.es33.js +36 -0
- package/dist/index.es33.js.map +1 -0
- package/dist/index.es34.js +409 -0
- package/dist/index.es34.js.map +1 -0
- package/dist/index.es35.js +20 -0
- package/dist/index.es35.js.map +1 -0
- package/dist/index.es36.js +18 -0
- package/dist/index.es36.js.map +1 -0
- package/dist/index.es37.js +2480 -0
- package/dist/index.es37.js.map +1 -0
- package/dist/index.es38.js +44 -0
- package/dist/index.es38.js.map +1 -0
- package/dist/index.es39.js +36 -0
- package/dist/index.es39.js.map +1 -0
- package/dist/index.es4.js +80 -0
- package/dist/index.es4.js.map +1 -0
- package/dist/index.es40.js +119 -0
- package/dist/index.es40.js.map +1 -0
- package/dist/index.es41.js +117 -0
- package/dist/index.es41.js.map +1 -0
- package/dist/index.es42.js +59 -0
- package/dist/index.es42.js.map +1 -0
- package/dist/index.es43.js +27 -0
- package/dist/index.es43.js.map +1 -0
- package/dist/index.es44.js +48 -0
- package/dist/index.es44.js.map +1 -0
- package/dist/index.es45.js +89 -0
- package/dist/index.es45.js.map +1 -0
- package/dist/index.es46.js +63 -0
- package/dist/index.es46.js.map +1 -0
- package/dist/index.es47.js +835 -0
- package/dist/index.es47.js.map +1 -0
- package/dist/index.es48.js +13 -0
- package/dist/index.es48.js.map +1 -0
- package/dist/index.es49.js +13 -0
- package/dist/index.es49.js.map +1 -0
- package/dist/index.es5.js +106 -0
- package/dist/index.es5.js.map +1 -0
- package/dist/index.es50.js +13 -0
- package/dist/index.es50.js.map +1 -0
- package/dist/index.es51.js +126 -0
- package/dist/index.es51.js.map +1 -0
- package/dist/index.es52.js +66 -0
- package/dist/index.es52.js.map +1 -0
- package/dist/index.es53.js +5 -0
- package/dist/index.es53.js.map +1 -0
- package/dist/index.es54.js +5 -0
- package/dist/index.es54.js.map +1 -0
- package/dist/index.es55.js +24 -0
- package/dist/index.es55.js.map +1 -0
- package/dist/index.es56.js +12 -0
- package/dist/index.es56.js.map +1 -0
- package/dist/index.es57.js +41 -0
- package/dist/index.es57.js.map +1 -0
- package/dist/index.es58.js +21 -0
- package/dist/index.es58.js.map +1 -0
- package/dist/index.es59.js +11 -0
- package/dist/index.es59.js.map +1 -0
- package/dist/index.es6.js +61 -0
- package/dist/index.es6.js.map +1 -0
- package/dist/index.es60.js +8 -0
- package/dist/index.es60.js.map +1 -0
- package/dist/index.es61.js +258 -0
- package/dist/index.es61.js.map +1 -0
- package/dist/index.es62.js +25 -0
- package/dist/index.es62.js.map +1 -0
- package/dist/index.es63.js +7 -0
- package/dist/index.es63.js.map +1 -0
- package/dist/index.es64.js +10 -0
- package/dist/index.es64.js.map +1 -0
- package/dist/index.es65.js +49 -0
- package/dist/index.es65.js.map +1 -0
- package/dist/index.es66.js +30 -0
- package/dist/index.es66.js.map +1 -0
- package/dist/index.es67.js +69 -0
- package/dist/index.es67.js.map +1 -0
- package/dist/index.es68.js +11 -0
- package/dist/index.es68.js.map +1 -0
- package/dist/index.es69.js +128 -0
- package/dist/index.es69.js.map +1 -0
- package/dist/index.es7.js +59 -0
- package/dist/index.es7.js.map +1 -0
- package/dist/index.es70.js +18 -0
- package/dist/index.es70.js.map +1 -0
- package/dist/index.es71.js +137 -0
- package/dist/index.es71.js.map +1 -0
- package/dist/index.es72.js +14 -0
- package/dist/index.es72.js.map +1 -0
- package/dist/index.es73.js +219 -0
- package/dist/index.es73.js.map +1 -0
- package/dist/index.es74.js +16 -0
- package/dist/index.es74.js.map +1 -0
- package/dist/index.es75.js +36 -0
- package/dist/index.es75.js.map +1 -0
- package/dist/index.es76.js +11 -0
- package/dist/index.es76.js.map +1 -0
- package/dist/index.es77.js +33 -0
- package/dist/index.es77.js.map +1 -0
- package/dist/index.es78.js +7 -0
- package/dist/index.es78.js.map +1 -0
- package/dist/index.es79.js +9 -0
- package/dist/index.es79.js.map +1 -0
- package/dist/index.es8.js +170 -0
- package/dist/index.es8.js.map +1 -0
- package/dist/index.es80.js +31 -0
- package/dist/index.es80.js.map +1 -0
- package/dist/index.es81.js +53 -0
- package/dist/index.es81.js.map +1 -0
- package/dist/index.es82.js +12 -0
- package/dist/index.es82.js.map +1 -0
- package/dist/index.es83.js +28 -0
- package/dist/index.es83.js.map +1 -0
- package/dist/index.es84.js +71 -0
- package/dist/index.es84.js.map +1 -0
- package/dist/index.es85.js +15 -0
- package/dist/index.es85.js.map +1 -0
- package/dist/index.es86.js +208 -0
- package/dist/index.es86.js.map +1 -0
- package/dist/index.es87.js +25 -0
- package/dist/index.es87.js.map +1 -0
- package/dist/index.es88.js +396 -0
- package/dist/index.es88.js.map +1 -0
- package/dist/index.es89.js +28 -0
- package/dist/index.es89.js.map +1 -0
- package/dist/index.es9.js +6 -0
- package/dist/index.es9.js.map +1 -0
- package/dist/index.es90.js +32 -0
- package/dist/index.es90.js.map +1 -0
- package/dist/index.es91.js +8 -0
- package/dist/index.es91.js.map +1 -0
- package/dist/index.es92.js +8 -0
- package/dist/index.es92.js.map +1 -0
- package/dist/index.es93.js +6 -0
- package/dist/index.es93.js.map +1 -0
- package/dist/index.es94.js +27 -0
- package/dist/index.es94.js.map +1 -0
- package/dist/index.es95.js +113 -0
- package/dist/index.es95.js.map +1 -0
- package/dist/index.es96.js +19 -0
- package/dist/index.es96.js.map +1 -0
- package/dist/index.es97.js +526 -0
- package/dist/index.es97.js.map +1 -0
- package/dist/index.es98.js +130 -0
- package/dist/index.es98.js.map +1 -0
- package/dist/index.es99.js +132 -0
- package/dist/index.es99.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/packages/builder/add-dialog.d.ts +88 -0
- package/dist/packages/builder/add-dialog.d.ts.map +1 -0
- package/dist/packages/builder/context.d.ts +55 -0
- package/dist/packages/builder/context.d.ts.map +1 -0
- package/dist/packages/builder/context.test.d.ts +2 -0
- package/dist/packages/builder/context.test.d.ts.map +1 -0
- package/dist/packages/builder/edit-dialog.d.ts +15 -0
- package/dist/packages/builder/edit-dialog.d.ts.map +1 -0
- package/dist/packages/builder/schema-builder.d.ts +36 -0
- package/dist/packages/builder/schema-builder.d.ts.map +1 -0
- package/dist/packages/builder/schema-builder.test.d.ts +2 -0
- package/dist/packages/builder/schema-builder.test.d.ts.map +1 -0
- package/dist/packages/builder/shared-types.d.ts +6 -0
- package/dist/packages/builder/shared-types.d.ts.map +1 -0
- package/dist/packages/builder/utils.d.ts +19 -0
- package/dist/packages/builder/utils.d.ts.map +1 -0
- package/dist/packages/constraints/constraint-add.d.ts +10 -0
- package/dist/packages/constraints/constraint-add.d.ts.map +1 -0
- package/dist/packages/constraints/context.d.ts +63 -0
- package/dist/packages/constraints/context.d.ts.map +1 -0
- package/dist/packages/constraints/context.test.d.ts +2 -0
- package/dist/packages/constraints/context.test.d.ts.map +1 -0
- package/dist/packages/plugins/array.d.ts +13 -0
- package/dist/packages/plugins/array.d.ts.map +1 -0
- package/dist/packages/plugins/number.d.ts +19 -0
- package/dist/packages/plugins/number.d.ts.map +1 -0
- package/dist/packages/plugins/object.d.ts +10 -0
- package/dist/packages/plugins/object.d.ts.map +1 -0
- package/dist/packages/plugins/string.d.ts +16 -0
- package/dist/packages/plugins/string.d.ts.map +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/style.css +1559 -0
- package/package.json +119 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useState as u } from "react";
|
|
2
|
+
function n(c, r) {
|
|
3
|
+
var e = u(function() {
|
|
4
|
+
return {
|
|
5
|
+
// value
|
|
6
|
+
value: c,
|
|
7
|
+
// last callback
|
|
8
|
+
callback: r,
|
|
9
|
+
// "memoized" public interface
|
|
10
|
+
facade: {
|
|
11
|
+
get current() {
|
|
12
|
+
return e.value;
|
|
13
|
+
},
|
|
14
|
+
set current(a) {
|
|
15
|
+
var t = e.value;
|
|
16
|
+
t !== a && (e.value = a, e.callback(a, t));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
})[0];
|
|
21
|
+
return e.callback = r, e.facade;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
n as useCallbackRef
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.es106.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es106.js","sources":["../../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.18_react@19.0.0/node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACd;AAAA,QACD,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAE/B;AAAA,MACJ;AAAA,IACT;AAAA,EAAO,CAAE,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var a = {
|
|
2
|
+
left: 0,
|
|
3
|
+
top: 0,
|
|
4
|
+
right: 0,
|
|
5
|
+
gap: 0
|
|
6
|
+
}, e = function(t) {
|
|
7
|
+
return parseInt(t || "", 10) || 0;
|
|
8
|
+
}, o = function(t) {
|
|
9
|
+
var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
|
|
10
|
+
return [e(i), e(r), e(d)];
|
|
11
|
+
}, f = function(t) {
|
|
12
|
+
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
13
|
+
return a;
|
|
14
|
+
var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
|
|
15
|
+
return {
|
|
16
|
+
left: n[0],
|
|
17
|
+
top: n[1],
|
|
18
|
+
right: n[2],
|
|
19
|
+
gap: Math.max(0, r - i + n[2] - n[0])
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
f as getGapWidth,
|
|
24
|
+
a as zeroGap
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.es107.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es107.js","sources":["../../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.18_react@19.0.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js"],"sourcesContent":["export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n"],"names":["zeroGap","parse","x","getOffset","gapMode","cs","left","top","right","getGapWidth","offsets","documentWidth","windowWidth"],"mappings":"AAAU,IAACA,IAAU;AAAA,EACjB,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,KAAK;AACT,GACIC,IAAQ,SAAUC,GAAG;AAAE,SAAO,SAASA,KAAK,IAAI,EAAE,KAAK;AAAI,GAC3DC,IAAY,SAAUC,GAAS;AAC/B,MAAIC,IAAK,OAAO,iBAAiB,SAAS,IAAI,GAC1CC,IAAOD,EAAGD,MAAY,YAAY,gBAAgB,YAAY,GAC9DG,IAAMF,EAAGD,MAAY,YAAY,eAAe,WAAW,GAC3DI,IAAQH,EAAGD,MAAY,YAAY,iBAAiB,aAAa;AACrE,SAAO,CAACH,EAAMK,CAAI,GAAGL,EAAMM,CAAG,GAAGN,EAAMO,CAAK,CAAC;AACjD,GACWC,IAAc,SAAUL,GAAS;AAExC,MADIA,MAAY,WAAUA,IAAU,WAChC,OAAO,SAAW;AAClB,WAAOJ;AAEX,MAAIU,IAAUP,EAAUC,CAAO,GAC3BO,IAAgB,SAAS,gBAAgB,aACzCC,IAAc,OAAO;AACzB,SAAO;AAAA,IACH,MAAMF,EAAQ,CAAC;AAAA,IACf,KAAKA,EAAQ,CAAC;AAAA,IACd,OAAOA,EAAQ,CAAC;AAAA,IAChB,KAAK,KAAK,IAAI,GAAGE,IAAcD,IAAgBD,EAAQ,CAAC,IAAIA,EAAQ,CAAC,CAAC;AAAA,EACzE;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { stylesheetSingleton as r } from "./index.es109.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = r();
|
|
5
|
+
return function(e, n) {
|
|
6
|
+
o.useEffect(function() {
|
|
7
|
+
return t.add(e), function() {
|
|
8
|
+
t.remove();
|
|
9
|
+
};
|
|
10
|
+
}, [e && n]);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as styleHookSingleton
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.es108.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es108.js","sources":["../../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.18_react@19.0.0/node_modules/react-style-singleton/dist/es2015/hook.js"],"sourcesContent":["import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n"],"names":["styleHookSingleton","sheet","stylesheetSingleton","styles","isDynamic","React"],"mappings":";;AAWU,IAACA,IAAqB,WAAY;AACxC,MAAIC,IAAQC,EAAqB;AACjC,SAAO,SAAUC,GAAQC,GAAW;AAChC,IAAAC,EAAM,UAAU,WAAY;AACxB,aAAAJ,EAAM,IAAIE,CAAM,GACT,WAAY;AACf,QAAAF,EAAM,OAAQ;AAAA,MACjB;AAAA,IACb,GAAW,CAACE,KAAUC,CAAS,CAAC;AAAA,EAC3B;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getNonce as o } from "./index.es110.js";
|
|
2
|
+
function r() {
|
|
3
|
+
if (!document)
|
|
4
|
+
return null;
|
|
5
|
+
var t = document.createElement("style");
|
|
6
|
+
t.type = "text/css";
|
|
7
|
+
var e = o();
|
|
8
|
+
return e && t.setAttribute("nonce", e), t;
|
|
9
|
+
}
|
|
10
|
+
function l(t, e) {
|
|
11
|
+
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
12
|
+
}
|
|
13
|
+
function a(t) {
|
|
14
|
+
var e = document.head || document.getElementsByTagName("head")[0];
|
|
15
|
+
e.appendChild(t);
|
|
16
|
+
}
|
|
17
|
+
var c = function() {
|
|
18
|
+
var t = 0, e = null;
|
|
19
|
+
return {
|
|
20
|
+
add: function(n) {
|
|
21
|
+
t == 0 && (e = r()) && (l(e, n), a(e)), t++;
|
|
22
|
+
},
|
|
23
|
+
remove: function() {
|
|
24
|
+
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
c as stylesheetSingleton
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.es109.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es109.js","sources":["../../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.18_react@19.0.0/node_modules/react-style-singleton/dist/es2015/singleton.js"],"sourcesContent":["import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n"],"names":["makeStyleTag","tag","nonce","getNonce","injectStyles","css","insertStyleTag","head","stylesheetSingleton","counter","stylesheet","style"],"mappings":";AACA,SAASA,IAAe;AACpB,MAAI,CAAC;AACD,WAAO;AACX,MAAIC,IAAM,SAAS,cAAc,OAAO;AACxC,EAAAA,EAAI,OAAO;AACX,MAAIC,IAAQC,EAAU;AACtB,SAAID,KACAD,EAAI,aAAa,SAASC,CAAK,GAE5BD;AACX;AACA,SAASG,EAAaH,GAAKI,GAAK;AAE5B,EAAIJ,EAAI,aAEJA,EAAI,WAAW,UAAUI,IAGzBJ,EAAI,YAAY,SAAS,eAAeI,CAAG,CAAC;AAEpD;AACA,SAASC,EAAeL,GAAK;AACzB,MAAIM,IAAO,SAAS,QAAQ,SAAS,qBAAqB,MAAM,EAAE,CAAC;AACnE,EAAAA,EAAK,YAAYN,CAAG;AACxB;AACU,IAACO,IAAsB,WAAY;AACzC,MAAIC,IAAU,GACVC,IAAa;AACjB,SAAO;AAAA,IACH,KAAK,SAAUC,GAAO;AAClB,MAAIF,KAAW,MACNC,IAAaV,SACdI,EAAaM,GAAYC,CAAK,GAC9BL,EAAeI,CAAU,IAGjCD;AAAA,IACH;AAAA,IACD,QAAQ,WAAY;AAChB,MAAAA,KACI,CAACA,KAAWC,MACZA,EAAW,cAAcA,EAAW,WAAW,YAAYA,CAAU,GACrEA,IAAa;AAAA,IAEpB;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { j as n } from "./index.es9.js";
|
|
2
|
+
import { Slot as a } from "./index.es38.js";
|
|
3
|
+
import { cva as d } from "./index.es39.js";
|
|
4
|
+
import { cn as u } from "./index.es29.js";
|
|
5
|
+
const c = d(
|
|
6
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
11
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
|
|
12
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
13
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
14
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
15
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
19
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
20
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
21
|
+
icon: "size-9"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
variant: "default",
|
|
26
|
+
size: "default"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
function b({
|
|
31
|
+
className: e,
|
|
32
|
+
variant: r,
|
|
33
|
+
size: t,
|
|
34
|
+
asChild: i = !1,
|
|
35
|
+
...o
|
|
36
|
+
}) {
|
|
37
|
+
const s = i ? a : "button";
|
|
38
|
+
return /* @__PURE__ */ n.jsx(
|
|
39
|
+
s,
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "button",
|
|
42
|
+
className: u(c({ variant: r, size: t, className: e })),
|
|
43
|
+
...o
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
b as Button,
|
|
49
|
+
c as buttonVariants
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=index.es11.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es11.js","sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40\",\n outline:\n \"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\nfunction Button({\n className,\n variant,\n size,\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants };\n"],"names":["buttonVariants","cva","Button","className","variant","size","asChild","props","Comp","Slot","jsx","cn"],"mappings":";;;;AAMA,MAAMA,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ;AAEA,SAASC,EAAO;AAAA,EACd,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,GAGK;AACG,QAAAC,IAAOF,IAAUG,IAAO;AAG5B,SAAAC,gBAAAA,EAAA;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWG,EAAGX,EAAe,EAAE,SAAAI,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,MACzD,GAAGI;AAAA,IAAA;AAAA,EACN;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es110.js","sources":["../../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { j as t } from "./index.es9.js";
|
|
2
|
+
import { Slot as n } from "./index.es38.js";
|
|
3
|
+
import { cn as a } from "./index.es29.js";
|
|
4
|
+
import m from "./index.es26.js";
|
|
5
|
+
function d({ ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
7
|
+
}
|
|
8
|
+
function b({ className: r, ...e }) {
|
|
9
|
+
return /* @__PURE__ */ t.jsx(
|
|
10
|
+
"ol",
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "breadcrumb-list",
|
|
13
|
+
className: a(
|
|
14
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
15
|
+
r
|
|
16
|
+
),
|
|
17
|
+
...e
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function x({ className: r, ...e }) {
|
|
22
|
+
return /* @__PURE__ */ t.jsx(
|
|
23
|
+
"li",
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "breadcrumb-item",
|
|
26
|
+
className: a("inline-flex items-center gap-1.5", r),
|
|
27
|
+
...e
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function f({
|
|
32
|
+
asChild: r,
|
|
33
|
+
className: e,
|
|
34
|
+
...o
|
|
35
|
+
}) {
|
|
36
|
+
const s = r ? n : "a";
|
|
37
|
+
return /* @__PURE__ */ t.jsx(
|
|
38
|
+
s,
|
|
39
|
+
{
|
|
40
|
+
"data-slot": "breadcrumb-link",
|
|
41
|
+
className: a("hover:text-foreground transition-colors", e),
|
|
42
|
+
...o
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function p({
|
|
47
|
+
children: r,
|
|
48
|
+
className: e,
|
|
49
|
+
...o
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ t.jsx(
|
|
52
|
+
"li",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "breadcrumb-separator",
|
|
55
|
+
role: "presentation",
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
className: a("[&>svg]:size-3.5", e),
|
|
58
|
+
...o,
|
|
59
|
+
children: r ?? /* @__PURE__ */ t.jsx(m, {})
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
d as Breadcrumb,
|
|
65
|
+
x as BreadcrumbItem,
|
|
66
|
+
f as BreadcrumbLink,
|
|
67
|
+
b as BreadcrumbList,
|
|
68
|
+
p as BreadcrumbSeparator
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.es12.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es12.js","sources":["../src/components/ui/breadcrumb.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn(\n \"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-item\"\n className={cn(\"inline-flex items-center gap-1.5\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"a\"\n\n return (\n <Comp\n data-slot=\"breadcrumb-link\"\n className={cn(\"hover:text-foreground transition-colors\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"text-foreground font-normal\", className)}\n {...props}\n />\n )\n}\n\nfunction BreadcrumbSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:size-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n )\n}\n\nfunction BreadcrumbEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n )\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n}\n"],"names":["Breadcrumb","props","BreadcrumbList","className","jsx","cn","BreadcrumbItem","BreadcrumbLink","asChild","Comp","Slot","BreadcrumbSeparator","children","ChevronRight"],"mappings":";;;;AAMA,SAASA,EAAW,EAAE,GAAGC,KAAsC;AAC7D,+BAAQ,OAAI,EAAA,cAAW,cAAa,aAAU,cAAc,GAAGA,GAAO;AACxE;AAEA,SAASC,EAAe,EAAE,WAAAC,GAAW,GAAGF,KAAqC;AAEzE,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MACF;AAAA,MACC,GAAGF;AAAA,IAAA;AAAA,EACN;AAEJ;AAEA,SAASK,EAAe,EAAE,WAAAH,GAAW,GAAGF,KAAqC;AAEzE,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAG,oCAAoCF,CAAS;AAAA,MAC1D,GAAGF;AAAA,IAAA;AAAA,EACN;AAEJ;AAEA,SAASM,EAAe;AAAA,EACtB,SAAAC;AAAA,EACA,WAAAL;AAAA,EACA,GAAGF;AACL,GAEG;AACK,QAAAQ,IAAOD,IAAUE,IAAO;AAG5B,SAAAN,gBAAAA,EAAA;AAAA,IAACK;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWJ,EAAG,2CAA2CF,CAAS;AAAA,MACjE,GAAGF;AAAA,IAAA;AAAA,EACN;AAEJ;AAeA,SAASU,EAAoB;AAAA,EAC3B,UAAAC;AAAA,EACA,WAAAT;AAAA,EACA,GAAGF;AACL,GAA+B;AAE3B,SAAAG,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAWC,EAAG,oBAAoBF,CAAS;AAAA,MAC1C,GAAGF;AAAA,MAEH,UAAAW,2BAAaC,GAAa,CAAA,CAAA;AAAA,IAAA;AAAA,EAC7B;AAEJ;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { j as t } from "./index.es9.js";
|
|
2
|
+
import { Root as s, Thumb as n } from "./index.es40.js";
|
|
3
|
+
import { cn as e } from "./index.es29.js";
|
|
4
|
+
function l({
|
|
5
|
+
className: r,
|
|
6
|
+
...a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t.jsx(
|
|
9
|
+
s,
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "switch",
|
|
12
|
+
className: e(
|
|
13
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
|
+
r
|
|
15
|
+
),
|
|
16
|
+
...a,
|
|
17
|
+
children: /* @__PURE__ */ t.jsx(
|
|
18
|
+
n,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "switch-thumb",
|
|
21
|
+
className: e(
|
|
22
|
+
"bg-background pointer-events-none block size-4 rounded-full ring-0 shadow-lg transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
l as Switch
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.es13.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es13.js","sources":["../src/components/ui/switch.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n \"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"bg-background pointer-events-none block size-4 rounded-full ring-0 shadow-lg transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\"\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n"],"names":["Switch","className","props","jsx","SwitchPrimitive.Root","cn","SwitchPrimitive.Thumb"],"mappings":";;;AAKA,SAASA,EAAO;AAAA,EACd,WAAAC;AAAA,EACA,GAAGC;AACL,GAAsD;AAElD,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,MAEJ,UAAAC,gBAAAA,EAAA;AAAA,QAACG;AAAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,WAAWD;AAAA,YACT;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IACF;AAAA,EACF;AAEJ;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { j as e } from "./index.es9.js";
|
|
2
|
+
import { Root as l, Trigger as i, Icon as d, Value as c, Portal as u, Content as m, Viewport as p, Item as f, ItemIndicator as x, ItemText as g, ScrollUpButton as v, ScrollDownButton as h } from "./index.es47.js";
|
|
3
|
+
import { cn as r } from "./index.es29.js";
|
|
4
|
+
import o from "./index.es48.js";
|
|
5
|
+
import j from "./index.es49.js";
|
|
6
|
+
import b from "./index.es50.js";
|
|
7
|
+
function k({
|
|
8
|
+
...t
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e.jsx(l, { "data-slot": "select", ...t });
|
|
11
|
+
}
|
|
12
|
+
function B({
|
|
13
|
+
...t
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ e.jsx(c, { "data-slot": "select-value", ...t });
|
|
16
|
+
}
|
|
17
|
+
function D({
|
|
18
|
+
className: t,
|
|
19
|
+
children: s,
|
|
20
|
+
...a
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e.jsxs(
|
|
23
|
+
i,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "select-trigger",
|
|
26
|
+
"data-testid": "select-trigger",
|
|
27
|
+
className: r(
|
|
28
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
29
|
+
t
|
|
30
|
+
),
|
|
31
|
+
...a,
|
|
32
|
+
children: [
|
|
33
|
+
s,
|
|
34
|
+
/* @__PURE__ */ e.jsx(d, { asChild: !0, children: /* @__PURE__ */ e.jsx(o, { className: "size-4 opacity-50" }) })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function R({
|
|
40
|
+
className: t,
|
|
41
|
+
children: s,
|
|
42
|
+
position: a = "popper",
|
|
43
|
+
...n
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsxs(
|
|
46
|
+
m,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "select-content",
|
|
49
|
+
className: r(
|
|
50
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
|
|
51
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
52
|
+
t
|
|
53
|
+
),
|
|
54
|
+
position: a,
|
|
55
|
+
...n,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ e.jsx(w, {}),
|
|
58
|
+
/* @__PURE__ */ e.jsx(
|
|
59
|
+
p,
|
|
60
|
+
{
|
|
61
|
+
className: r(
|
|
62
|
+
"p-1",
|
|
63
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
|
|
64
|
+
),
|
|
65
|
+
children: s
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ e.jsx(y, {})
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
) });
|
|
72
|
+
}
|
|
73
|
+
function T({
|
|
74
|
+
className: t,
|
|
75
|
+
children: s,
|
|
76
|
+
...a
|
|
77
|
+
}) {
|
|
78
|
+
return /* @__PURE__ */ e.jsxs(
|
|
79
|
+
f,
|
|
80
|
+
{
|
|
81
|
+
"data-slot": "select-item",
|
|
82
|
+
className: r(
|
|
83
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
84
|
+
t
|
|
85
|
+
),
|
|
86
|
+
...a,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(x, { children: /* @__PURE__ */ e.jsx(j, { className: "size-4" }) }) }),
|
|
89
|
+
/* @__PURE__ */ e.jsx(g, { children: s })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function w({
|
|
95
|
+
className: t,
|
|
96
|
+
...s
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ e.jsx(
|
|
99
|
+
v,
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "select-scroll-up-button",
|
|
102
|
+
className: r(
|
|
103
|
+
"flex cursor-default items-center justify-center py-1",
|
|
104
|
+
t
|
|
105
|
+
),
|
|
106
|
+
...s,
|
|
107
|
+
children: /* @__PURE__ */ e.jsx(b, { className: "size-4" })
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function y({
|
|
112
|
+
className: t,
|
|
113
|
+
...s
|
|
114
|
+
}) {
|
|
115
|
+
return /* @__PURE__ */ e.jsx(
|
|
116
|
+
h,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "select-scroll-down-button",
|
|
119
|
+
className: r(
|
|
120
|
+
"flex cursor-default items-center justify-center py-1",
|
|
121
|
+
t
|
|
122
|
+
),
|
|
123
|
+
...s,
|
|
124
|
+
children: /* @__PURE__ */ e.jsx(o, { className: "size-4" })
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
k as Select,
|
|
130
|
+
R as SelectContent,
|
|
131
|
+
T as SelectItem,
|
|
132
|
+
y as SelectScrollDownButton,
|
|
133
|
+
w as SelectScrollUpButton,
|
|
134
|
+
D as SelectTrigger,
|
|
135
|
+
B as SelectValue
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=index.es14.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es14.js","sources":["../src/components/ui/select.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />;\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />;\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />;\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger>) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-testid=\"select-trigger\"\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n );\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"px-2 py-1.5 text-sm font-medium\", className)}\n {...props}\n />\n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"bg-border pointer-events-none -mx-1 my-1 h-px\", className)}\n {...props}\n />\n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n );\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["Select","props","SelectPrimitive.Root","SelectValue","SelectPrimitive.Value","SelectTrigger","className","children","jsxs","SelectPrimitive.Trigger","cn","jsx","SelectPrimitive.Icon","ChevronDownIcon","SelectContent","position","SelectPrimitive.Portal","SelectPrimitive.Content","SelectScrollUpButton","SelectPrimitive.Viewport","SelectScrollDownButton","SelectItem","SelectPrimitive.Item","SelectPrimitive.ItemIndicator","CheckIcon","SelectPrimitive.ItemText","SelectPrimitive.ScrollUpButton","ChevronUpIcon","SelectPrimitive.ScrollDownButton"],"mappings":";;;;;;AAQA,SAASA,EAAO;AAAA,EACd,GAAGC;AACL,GAAsD;AACpD,+BAAQC,GAAA,EAAqB,aAAU,UAAU,GAAGD,GAAO;AAC7D;AAQA,SAASE,EAAY;AAAA,EACnB,GAAGF;AACL,GAAuD;AACrD,+BAAQG,GAAA,EAAsB,aAAU,gBAAgB,GAAGH,GAAO;AACpE;AAEA,SAASI,EAAc;AAAA,EACrB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGN;AACL,GAAyD;AAErD,SAAAO,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAY;AAAA,MACZ,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGL;AAAA,MAEH,UAAA;AAAA,QAAAM;AAAA,QACDI,gBAAAA,EAAAA,IAACC,GAAA,EAAqB,SAAO,IAC3B,UAACD,gBAAAA,EAAA,IAAAE,GAAA,EAAgB,WAAU,oBAAoB,CAAA,EACjD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;AAEA,SAASC,EAAc;AAAA,EACrB,WAAAR;AAAA,EACA,UAAAC;AAAA,EACA,UAAAQ,IAAW;AAAA,EACX,GAAGd;AACL,GAAyD;AAErD,SAAAU,gBAAAA,MAACK,GAAA,EACC,UAAAR,gBAAAA,EAAA;AAAA,IAACS;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWP;AAAA,QACT;AAAA,QACAK,MAAa,YACX;AAAA,QACFT;AAAA,MACF;AAAA,MACA,UAAAS;AAAA,MACC,GAAGd;AAAA,MAEJ,UAAA;AAAA,QAAAU,gBAAAA,EAAA,IAACO,GAAqB,EAAA;AAAA,QACtBP,gBAAAA,EAAA;AAAA,UAACQ;AAAAA,UAAA;AAAA,YACC,WAAWT;AAAA,cACT;AAAA,cACAK,MAAa,YACX;AAAA,YACJ;AAAA,YAEC,UAAAR;AAAA,UAAA;AAAA,QACH;AAAA,8BACCa,GAAuB,CAAA,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE5B;AAEJ;AAeA,SAASC,EAAW;AAAA,EAClB,WAAAf;AAAA,EACA,UAAAC;AAAA,EACA,GAAGN;AACL,GAAsD;AAElD,SAAAO,gBAAAA,EAAA;AAAA,IAACc;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWZ;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGL;AAAA,MAEJ,UAAA;AAAA,QAAAU,gBAAAA,EAAA,IAAC,QAAK,EAAA,WAAU,8DACd,UAAAA,gBAAAA,EAAAA,IAACY,GAAA,EACC,UAAAZ,gBAAAA,EAAAA,IAACa,GAAU,EAAA,WAAU,SAAS,CAAA,EAChC,CAAA,GACF;AAAA,QACCb,gBAAAA,MAAAc,GAAA,EAA0B,UAAAlB,EAAS,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACtC;AAEJ;AAeA,SAASW,EAAqB;AAAA,EAC5B,WAAAZ;AAAA,EACA,GAAGL;AACL,GAAgE;AAE5D,SAAAU,gBAAAA,EAAA;AAAA,IAACe;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWhB;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGL;AAAA,MAEJ,UAAAU,gBAAAA,EAAAA,IAACgB,GAAc,EAAA,WAAU,SAAS,CAAA;AAAA,IAAA;AAAA,EACpC;AAEJ;AAEA,SAASP,EAAuB;AAAA,EAC9B,WAAAd;AAAA,EACA,GAAGL;AACL,GAAkE;AAE9D,SAAAU,gBAAAA,EAAA;AAAA,IAACiB;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWlB;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGL;AAAA,MAEJ,UAAAU,gBAAAA,EAAAA,IAACE,GAAgB,EAAA,WAAU,SAAS,CAAA;AAAA,IAAA;AAAA,EACtC;AAEJ;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { j as o } from "./index.es9.js";
|
|
2
|
+
import { Root as a } from "./index.es35.js";
|
|
3
|
+
import { cn as r } from "./index.es29.js";
|
|
4
|
+
function d({
|
|
5
|
+
className: e,
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ o.jsx(
|
|
9
|
+
a,
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "label",
|
|
12
|
+
className: r(
|
|
13
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
14
|
+
e
|
|
15
|
+
),
|
|
16
|
+
...t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
d as Label
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.es15.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es15.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"names":["Label","className","props","jsx","LabelPrimitive.Root","cn"],"mappings":";;;AAOA,SAASA,EAAM;AAAA,EACb,WAAAC;AAAA,EACA,GAAGC;AACL,GAAqD;AAEjD,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { j as e } from "./index.es9.js";
|
|
2
|
+
import { useMemo as S, useEffect as F } from "react";
|
|
3
|
+
import { Button as R } from "./index.es11.js";
|
|
4
|
+
import { Dialog as b, DialogContent as V, DialogHeader as A, DialogTitle as $, DialogDescription as E, DialogFooter as N } from "./index.es41.js";
|
|
5
|
+
import { Label as w } from "./index.es15.js";
|
|
6
|
+
import { a as u } from "./index.es10.js";
|
|
7
|
+
import { useConstraints as I } from "./index.es4.js";
|
|
8
|
+
import L from "./index.es42.js";
|
|
9
|
+
import { Separator as _ } from "./index.es43.js";
|
|
10
|
+
import { AddFormSchema as k } from "./index.es21.js";
|
|
11
|
+
import { useForm as z } from "react-hook-form";
|
|
12
|
+
import { zodResolver as B } from "./index.es44.js";
|
|
13
|
+
import { Form as H } from "./index.es45.js";
|
|
14
|
+
const M = k.pick({
|
|
15
|
+
constraints: !0,
|
|
16
|
+
property: !0
|
|
17
|
+
});
|
|
18
|
+
function tt({
|
|
19
|
+
open: p,
|
|
20
|
+
onOpenChange: d,
|
|
21
|
+
onSubmit: f,
|
|
22
|
+
property: i,
|
|
23
|
+
propertyKey: h
|
|
24
|
+
}) {
|
|
25
|
+
const r = z({
|
|
26
|
+
resolver: B(M),
|
|
27
|
+
defaultValues: {
|
|
28
|
+
property: i
|
|
29
|
+
}
|
|
30
|
+
}), m = r.watch("constraints"), {
|
|
31
|
+
getConstraintDefinitionsForType: g,
|
|
32
|
+
getRendererForConstraint: C,
|
|
33
|
+
validateConstraintValue: j
|
|
34
|
+
} = I(), y = (t) => {
|
|
35
|
+
const { constraints: n } = t, a = {
|
|
36
|
+
...n?.reduce((s, o) => ({
|
|
37
|
+
...s,
|
|
38
|
+
[o.name]: o.value
|
|
39
|
+
}), {})
|
|
40
|
+
};
|
|
41
|
+
f([h, a]), r.reset();
|
|
42
|
+
}, v = (t, n) => {
|
|
43
|
+
const a = u(m), s = a?.[t];
|
|
44
|
+
if (!s) {
|
|
45
|
+
r.setError(`constraints.${t}`, {
|
|
46
|
+
message: "The constraint was not found",
|
|
47
|
+
type: "constraint_not_found"
|
|
48
|
+
});
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const o = j(
|
|
52
|
+
s.name,
|
|
53
|
+
n
|
|
54
|
+
);
|
|
55
|
+
if (o.status === "error") {
|
|
56
|
+
let c = o.message;
|
|
57
|
+
o.code === "invalid" && (c = `${c}: ${o.error?.map((D) => D.message).join(", ")}`), r.setError(`constraints.${t}`, {
|
|
58
|
+
type: o.code,
|
|
59
|
+
message: c
|
|
60
|
+
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
s.value = n, r.setValue("constraints", a), r.clearErrors(`constraints.${t}`);
|
|
64
|
+
}, x = (t) => {
|
|
65
|
+
if (!m) return;
|
|
66
|
+
const a = u(m).filter((s) => s.name !== t);
|
|
67
|
+
r.setValue("constraints", a);
|
|
68
|
+
}, l = S(() => g(
|
|
69
|
+
typeof i?.type == "string" ? i.type : ""
|
|
70
|
+
), [i.type]);
|
|
71
|
+
return F(() => {
|
|
72
|
+
const t = [];
|
|
73
|
+
for (const n of l)
|
|
74
|
+
n.name in i && t.push({
|
|
75
|
+
name: n.name,
|
|
76
|
+
value: i[n.name]
|
|
77
|
+
});
|
|
78
|
+
r.setValue("constraints", t);
|
|
79
|
+
}, [l]), /* @__PURE__ */ e.jsx(b, { open: p, onOpenChange: d, children: /* @__PURE__ */ e.jsxs(V, { children: [
|
|
80
|
+
/* @__PURE__ */ e.jsxs(A, { children: [
|
|
81
|
+
/* @__PURE__ */ e.jsx($, { children: "Edit" }),
|
|
82
|
+
/* @__PURE__ */ e.jsx(E, { children: "Constraints and other properties" })
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ e.jsx(H, { ...r, children: /* @__PURE__ */ e.jsxs(
|
|
85
|
+
"form",
|
|
86
|
+
{
|
|
87
|
+
onSubmit: r.handleSubmit(y),
|
|
88
|
+
className: "space-y-4",
|
|
89
|
+
"data-testid": "edit-property-form",
|
|
90
|
+
children: [
|
|
91
|
+
l.length ? /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
92
|
+
/* @__PURE__ */ e.jsx(w, { children: "Constraints" }),
|
|
93
|
+
/* @__PURE__ */ e.jsx(
|
|
94
|
+
L,
|
|
95
|
+
{
|
|
96
|
+
addedConstraints: m ?? [],
|
|
97
|
+
availableDefinitions: l,
|
|
98
|
+
onAdd: (t) => {
|
|
99
|
+
r.setValue("constraints", t);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ e.jsx(_, {}),
|
|
104
|
+
m?.map((t, n) => {
|
|
105
|
+
const a = C(t.name);
|
|
106
|
+
if (!a) return null;
|
|
107
|
+
const s = r.formState.errors.constraints?.[n];
|
|
108
|
+
let o;
|
|
109
|
+
return s && (o = {
|
|
110
|
+
code: s?.type ?? "INVALID",
|
|
111
|
+
message: s.message ?? "An error occurred"
|
|
112
|
+
}), /* @__PURE__ */ e.jsx(
|
|
113
|
+
a,
|
|
114
|
+
{
|
|
115
|
+
constraintName: t.name,
|
|
116
|
+
value: t.value,
|
|
117
|
+
onConstraintChange: (c) => {
|
|
118
|
+
v(n, c);
|
|
119
|
+
},
|
|
120
|
+
onRemoveConstraint: () => {
|
|
121
|
+
x(t.name);
|
|
122
|
+
},
|
|
123
|
+
error: o
|
|
124
|
+
},
|
|
125
|
+
t.name
|
|
126
|
+
);
|
|
127
|
+
})
|
|
128
|
+
] }) : null,
|
|
129
|
+
/* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsx(R, { type: "submit", children: "Save" }) })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
) })
|
|
133
|
+
] }) });
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
tt as EditPropertyDialog
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=index.es16.js.map
|