-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi folks, long time no see 👋 ,
MyCase is using react-gears, and looking to upgrade to v7 for Bootstrap 5 support (currently on react-gears v5).
One problem we noticed is there was a breaking change to the /lib/component/ exports, I think due to reorganizing the code and directories. Current code that uses:
import ButtonGroup '@appfolio/react-gears/lib/components/ButtonGroup';
now needs:
import ButtonGroup '@appfolio/react-gears/lib/components/Button/ButtonGroup';
but even after changing throws TypeScript errors, e.g.:
Could not find a declaration file for module '@appfolio/react-gears/lib/components/Button/ButtonGroup'
The original point of /lib/component exports was to allow for selective imports in non-tree shaking environments, using the pattern /lib/component/{Component Name}. MyCase has many hundreds of imports like this, and would be very helpful if lib exports did not change for this upgrade.
If this was accidental, would you be up for looking at changing this or can we help with a PR?