@actinc/dls
Advanced tools
Changelog
[v5.7.0] - Nov 01, 2021
ACT_ET
theme to produce cleaner text inputs and dropdowns
when using Material UI's
<TextField />
component.<FormInputGroups />
to use <TextField />
under the hood, since this is now the preferred way to add inputs to your app.Changelog
[v5.5.2] - Aug 06, 2021
useLocalStorage
hook, which replaces the NPM package
react-use-localstorage
.Changelog
[v5.5.1] - July 29, 2021
ReferenceError: regeneratorRuntime is not defined
exception in
AlertContext
.Changelog
[v5.5.0] - July 28, 2021
<SnackbarAlert />
component, which is an enhanced <Alert />
component that can transition on and off of the screen.AlertContext
(React Context) to queue and manage the display of
multiple SnackbarAlert
s at the same time. Downstream apps should use the
provided AlertContext
to programmatically trigger alerts, rather than
using SnackbarAlert
directly. Example below!
// APP SETUP:
import AlertContextProvider from '@actinc/dls/context/AlertContext/provider';
const Root: React.FC = (): React.ReactElement<any> => (
<AlertContextProvider
anchorOriginHorizontal="right" // optional
anchorOriginVertical="bottom" // optional
maxSnack={5} // optional
>
<MyApp />
</AlertContextProvider>
);
// COMPONENT USAGE:
import { AlertContext } from '@actinc/dls/context';
const MyComponent: React.FC = (): React.ReactElement<any> => {
const { actions } = React.useContext(AlertContext);
return (
<span
onClick={async (): Promise<void> => {
await actions.addAlert({
message: 'Some error message',
options: {
variant: 'error',
},
});
}}
>
Click Me
</span>
);
};
Changelog
[v5.4.0] - July 27, 2021
<DataGrid />
component on the ACT_ET
theme<DataTable />
component as a simpler alternative to
<DataGrid />
color: 'default' | 'primary' | 'secondary'
prop
primary
(blue header row). The new default color treatment is default
(grey header row).<Switch />
and <Badge />
components in
the ACT_ET
theme<AppBarNavigation />
component<TableCellHead />
<TableCellBody />
<TableContainer />
Changelog
[v5.3.0] - July 23, 2021
<IdleTimer />
utility
<DialogContinueSession />
molecule
<SessionTimer />
organism
IdleTimer
s with the DialogContinueSession
component
in order to fully and effectively manage the user's session.