Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strict Mode #243

Closed
wants to merge 36 commits into from
Closed

Strict Mode #243

wants to merge 36 commits into from

Conversation

aabenoja
Copy link
Contributor

@aabenoja aabenoja commented Dec 5, 2018

jrios and others added 30 commits November 16, 2018 13:36
Update the required peer dependency to be greater than 16.7
Use the `useState` function in order to manage state within the Incrementer component. Change from a class implementation to a function implementation.
Update the DropdownButton component to use hooks to manage state of whether or not the dropdown is open.
Use createRef to manage refs.
Update TabPanel component to use hooks to manage state.
Change the ToggleButton component to a function component that uses the useState function to manage its state.
The DatePickerTextbox was moved directly into the DatePicker component. Use React.createRef in order to manage refs instead of a function.
Use hooks where currently applicable
* Removing build script that generates the lib directory
* Changing babel config to use modules: 'auto' only for jest
Latest preset (2.3.1) uses the recently introduced
babelrc configs as defaults. .babelrc.js has been
updated accordingly
Use Rollup For esmodule build
withTheme requires components that need access to the theme to receive
it as a prop. This is unnecessary as theme is provided via context and
creates confusion and bloat as to where theme is supposed to be derived
from.
aabenoja and others added 5 commits November 26, 2018 14:09
Create three different types of notifications.

1. Notification - the default notification type
2. LightNotification - notifications with light backgrounds
3. MessageNotification - notifications with no backgrounds

These components have a smaller public API in order to reduce the complexity of the Notification component.

Calls to action have been removed and will be added to the Patterns section as their own standalone component.
Add CallToAction and LightCallToAction components to the patterns section.

The Action component is a wrapper to append some styling and the isPrimary prop is used to drive the styleType that gets passed to the Button component inside each CallToAction component.
New notifications and Calls To Action
@aabenoja
Copy link
Contributor Author

Will revisit once styled-components v5 is released, as their current work to migrate to hooks addresses the findDOMNode errors.

@aabenoja aabenoja closed this Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants