All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
- Fixed styling on Popups
- All components have now lost their
TE
prefix. This was originally done as a way to reduce naming collisions but ultimately was determined to be unnecessary. - All components class names have been updated to follow a naming convention of
tec-*
. This like the component name change has the goal of keeping the class names unique toreact-tec
but better match other css naming conventions. TERow
is notFormRow
as are the props typescript types.- Removed
react-power-select
and thusTESearchSelectInput
andTESearchSelectRow
have been removed. Users should migrate toSelect
andSelectRow
based onreact-select
.
- Updated devDependencies:
@babel/core
from7.12.10
to7.15.0
@storybook/addon-actions
from^6.1.18
to^6.3.7
@storybook/addon-essentials
from^6.1.18
to^6.3.7
@storybook/addon-links
from^6.1.18
to^6.3.7
@storybook/react
from^6.1.18
to^6.3.7
@testing-library/react
from11.2.5
to12.0.0
@types/jest
from^27.0.1
to^26.0.20
@types/react
from^17.0.0
to^17.0.19
@types/react-dom
from^17.0.0
to^17.0.9
@types/react-helmet
from^6.1.0
to^6.1.2
@types/react-router-dom
from^5.1.7
to^5.1.8
@types/styled-components
from^5.1.7
to^5.1.13
babel-jest
from^26.6.3
to^27.1.0
husky
from^5.1.0
to^7.0.2
jest-styled-components
from^7.0.3
to^7.0.5
react
from^17.0.1
to^17.0.2
react-dom
from^17.0.1
to^17.0.2
react-is
from^17.0.1
to^17.0.2
react-router
from^5.2.0
to^5.2.1
react-router-dom
from^5.2.0
to^5.2.1
styled-components
from^5.2.1
to^5.3.1
tslib
from2.0.3
to2.3.1
typescript
from^3.9.7
to^4.4.2
- Migrated from
tsdx
to@weiran.zsd/tsdx
due totsdx
no longer being maintained
- Updated Dependencies:
@popperjs/core
from^2.8.2
to^2.9.3
@testing-library/jest-dom
from^5.11.9
to^5.14.1
@types/color
from^3.0.1
to^3.0.2
@types/react-avatar-editor
from^10.3.5
to^10.3.6
@types/react-phone-number-input
from^3.0.6
to^3.0.11
@types/react-select
from^4.0.13
to^4.0.17
react-avatar-editor
from11.0.12
to12.0.0
react-datepicker
from^3.5.0
to^4.2.1
react-phone-number-input
from^3.1.16
to^3.1.26
react-popper
from^2.2.3
to^2.2.5
react-select
from^4.2.1
to^4.3.1
- Added devDependencies:
@typescript-eslint/eslint-plugin
at^4.30.0
@typescript-eslint/parser
at^4.30.0
@weiran.zsd/tsdx
at^0.16.1
eslint
at^7.32.0
eslint-config-prettier
at^8.3.0
eslint-config-react-app
at^6.0.0
eslint-plugin-flowtype
at^5.9.2
eslint-plugin-import
at^2.24.2
eslint-plugin-jsx-a11y
at^6.4.1
eslint-plugin-prettier
at^4.0.0
eslint-plugin-react
at^7.25.1
eslint-plugin-react-hooks
at^4.2.0
Updated react-select from ^4.1.0
-> ^4.2.1
and fixed typescript definitions of TESelect
and TESelectRow
Note some of the dependency updates contain significant changes.
@babel/core
from7.11.6
to7.12.10
@storybook/addon-actions
from^6.0.28
to^6.1.18
@storybook/addon-essentials
from^6.0.28
to^6.1.18
@storybook/addon-links
from^6.0.28
to^6.1.18
@storybook/react
from^6.0.28
to^6.1.18
@testing-library/react
from11.1.0
to11.2.5
@types/jest
from^26.0.15
to^26.0.20
@types/react
from^16.9.55
to^17.0.0
@types/react-dom
from^16.9.9
to^17.0.0
@types/react-router-dom
from^5.1.6
to^5.1.7
@types/styled-components
from^5.1.4
to^5.1.7
babel-loader
from^8.1.0
to^8.2.2
husky
from^4.2.5
to^5.1.0
@popperjs/core
from^2.5.4
to^2.8.2
@types/react-datepicker
from^3.1.1
to^3.1.5
@types/react-phone-number-input
from^3.0.5
to^3.0.6
@types/react-select
from^3.0.23
to^4.0.13
react-datepicker
from^3.3.0
to^3.5.0
react-icons
from^3.10.0
to^4.2.0
react-phone-number-input
from^3.1.3
to^3.1.16
react-select
from^3.1.0
to^4.1.0
- Memoized the functions returned from
useTEPopupFunctions
- Fixed typing issue in
TESubNavbar
- Fixed typing issue in
TESideNavLink
This was a really large update.
- Updated all packages to latest at this date
- Greatly improve types of many components
- Rebuilt docs with storybook
- Add many more tests to all components
- Updated dependencies:
@types/react-select
from^3.0.10
to^3.0.11
react-phone-number-input
from^3.0.21
to^3.0.22
- Updated dependencies:
@types/react-select
from^3.0.10
to^3.0.11
react-phone-number-input
from^3.0.21
to^3.0.22
- Fixed a bug with
TESelectRow
where theonChange
prop was not being passed to thereact-select
component.
- Updated devDependencies:
@types/jest
from^25.1.3
to^25.1.4
- Updated dependencies:
react-datepicker
from^2.13.0
to^2.14.0
react-phone-number-input
from^3.0.20
to^3.0.21
- Updated devDependencies:
@types/react
from^16.9.20
to^16.9.23
@types/styled-components
from^4.4.3
to^5.0.1
react
from^16.12.0
to^16.13.0
react-dom
from^16.12.0
to^16.13.0
testlib
from^1.10.0
to^1.11.1
typescript
from^3.7.5
to^3.8.3
- Updated dependencies:
react-datepicker
from^2.12.1
to^2.13.0
react-phone-number-input
from^3.0.18
to^3.0.20
- Fixed
id
bug withTEDatetimeInput
. It was being appled to both inputs when usingwithPortalButton
.
- Be aware that
react-phone-number-input
from^2.4.1
to^3.0.18
as a result you should be sure to update how you overwrite the styling on this component as well as other concerns. - Be aware that
styled-components
from^4.4.0
to^5.0.1
. This update requires you update to v5 however the changes had no noticeable impact on this library.
TEDatetimeInput
now has a new prop.withPortalButton
. The goal of this prop was to allow for both typing and the modal selection. I have found that the modal view works well on touch or smaller devices. This is something I may attempt to suggest into the core lib but for now it is just an abstraction. (#49)
- Updated devDependencies:
@types/jest
from^24.0.20
to^25.1.3
@types/react
from^16.9.11
to^16.9.21
@types/react-datepicker
from^2.9.4
to^2.11.0
@types/react-dom
from^16.9.4
to^16.9.5
@types/react-helmet
from^5.0.14
to^5.0.15
@types/styled-components
from^4.4.0
to^4.4.3
husky
from^3.1.0
to^4.2.3
rollup-plugin-peer-deps-external
from^2.2.0
to^2.2.2
styled-components
from^4.4.0
to^5.0.1
tsdx
from^0.11.0
to^0.12.3
typescript
from^3.6.4
to^3.7.5
@types/styled-components
from^3.6.4
to^4.4.3
- Updated dependencies:
@types/color
from^3.0.0
to^3.0.1
@types/react-select
from^3.0.8
to^3.0.10
react-datepicker
from^2.10.0
to^2.12.1
react-icons
from^^3.8.0
to^3.9.0
react-phone-number-input
from^2.4.1
to^3.0.18
react-popper
from^1.3.6
to^1.3.7
- A full review of component styling was reviewed when
disabled
. (#46) - Quick review of component styling in Safari. Made more consistent.
TEImageRow
EditorPopup wasn't closing when cancel was pressed. This resolves that.
- Updated
react-phone-number-input
from2.4.1
to2.5.0
- Fixed styling of
TEPhoneNumberInput
. Addresses (#43)
TEPhoneNumberInput
andTEPhoneNumberRow
have been added based on react-phone-number-input.TEMenuButton
has been added primarily relying on react-popper
- Many components now have the ability to pass down refs in addition the typing for them have been changed away from
any
to something meaningful.
TESelect
andTESelectRow
. These two components are based on react-select. The plan is to eventually replaceTESearchSelect
andTESearchSelectRow
with these as these libraries are more well maintained and have a more consistent API.
- Added mobile responsiveness to the docs site
- Updated
react-datepicker
fromv2.10.0
to2.10.1
- Fixed the broken links in the documentation
- Now export some helper functions
- Added
styled-components
,react-router
, andreact-router-dom
to devDependencies to allow for test writing but had to also userollup-plugin-peer-deps-external
to ensure they were not bundled during build. - Updated doc site to not
link
but instead use the deployed version in order not to have the devDependencies included.
- Small styling changes to TEFileManagerRow
This update is a complete rewrite of react-tec. Moving from Create React Library to tsdx. This means the lirbary is written in typescript and thus keeps the type definitions up to date. In this transition some things were refined and others bugs were fixed (conflicts with base html props). This shift will result in a more maintainable library using up to date libraries. Please see the mentionable changes below.
TERow
propsize
has been changed torowSize
. Thus all "Row"s (Ex.TEInputRow
) and "Groups" (Ex.TECheckboxGroup
) now userowSize
instead ofrow
.- "Groups" (Ex.
TECheckboxGroup
) proprowSize
that previously determined how many checkboxs would be in a row is nowinputRowSize
. TEInputRow
no longer can accepttype='textarea'
. There is now aTETextareaRow
.TEPrivateRoute
no longer acceptsisAuthenticated
,hasPermissions
,authPath
,accessDeniedPath
instead it accepts an arrayauthChecks
containingcheck
function andpath
string. This allow for full generalization of as many layers of checks required.TEHelmet
is no longer apart of this package. This was entirely a passthrough component and was unnessisary. Use react-helmet from now on.- Replaced
TEScrollToTop
with a utility hookuseScrollTop
. TEImageRow
imgSrc
prop is notimgSrcArray
just likeTEFileManagerRow
- All forms (
TEForm
,TEPopupForm
,TEMultiStepForm
, etc) all now provide the submit event to theonSubmit
function. This mean you will now need to addevent.preventDefault()
to youronSubmit
function.
- Full Typescript support
- Entirely Upgraded dependencies and libraries used to generate the module
- TEButton type bug fix
- Small warning bug fix
- Added
avatarEditorData
toTEImageRow
to allow adjusting React Avatar Editor (Resolving #11) - Fixed disabled styles on
TEDatetimeInput
(Resolving #17) - Added
hideClearButton
toTEFileInput
and hiding it inTEFileManager
(Resolving #17) - Fixed margin-bottom in
TESegementedGroup
(Resolving #20) - Fixed Disabled Styling on some inputs (Resolving #23)
- Added a classname to all top levels of components.
- Updated packages for docs site
- Updated react-datepicker from
2.8.0
to2.9.6
- Updated react-datepicker from
2.7.0
to2.8.0
- Updated react-power-select from
1.0.0-beta.15
to1.0.0-beta.16
- Updated TEFileManagerRow - Removed
fileSrc
in favor offileSrcArray
. The internal objects don't change just accepting an array instead of an object. - Updated TEFileManagerRow - When
src
is not present, do not display the download button. - Updated
styled-components
in docs from4.2.0
to4.3.2
.
- Full styled-component code reviewed. Cleaned formatting and fixed a few css bugs.
- Standardized navigation link colors to address #18
- Updated react-date-picker from 2.5.0 to 2.7.0
- added
background-color: white;
to TEButton
useTEPopups.hideConfirm
bug fix
className
bug fix for TEPaneTitle
- Addresses #5:
- Removed background color from
TEPanelWrapper
- Removed the
wrapperHeight
props as it was only used to extend the background color. - Added the background color from
TEPanelWrapper
toTEBodyContainer
. - Updated
TEBodyContainer
min-height
styling from100%
->100vh
- Removed background color from
useTEPopups
- This provides easy functions to call instead of remembering the dispatch keys inTEPopupContext
. Addresses #7.- Added a
Header
component prop toTESideNavbar
. This allows for a custom header component instead of simply passing a prop to the logo img src. Addresses #8 - Updated
TEPrivateRoute
'sisAuthenticated
andhasPermissions
props to be functions that receive all the props from React Router. This allows more dynamic handling of authentication. Addresses #13 - Added additional options to the
size
prop ofTEPanel
("three-quarter", "quarter", "condensed") Addresses #14
- Fixed redirect issues fixed with
TEPrivateRoute
- Accidently messed up versioning. This version was skipped.
- Upgraded Packages:
- react-datepicker
- react-helmet
- react-icons
- Updated documentation with codesandbox examples
- Fixed TESpinner Animation
- Added "fromPath" to the state in TEPrivateRoute when it redirects. This can then be used to direct a user back to where they were headed if necessary.
- All components and subcomponents now have a className. This should allow for much easier styling with complex components.
- Upgraded Packages
- TEPrivateRoute
- Moved react-router and react-router-dom to peer dependencies instead of dependencies.
All of these were basically just wrapper components
- TELink
- TENavLink
- TERoute
- TESwitch
- Documentation is up and functional (could be prettier)
- All components have been reviewed a number of times (could be reviewed at least one more time)