Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions init.js

This file was deleted.

6,851 changes: 2,937 additions & 3,914 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@
"build/*",
"*.js",
"!rollup.config.js",
"!webpack.config.base.js",
"src/components/DateRangePicker/initialize.js"
"!webpack.config.base.js"
],
"dependencies": {
"google-map-react": "1.1.4",
"lodash": "^4.17.0",
"moment": "^2.18.1",
"numeral": "^2.0.6",
"react-dates": "https://github.com/bonlineza/react-dates#v16.0.1-showBeforeTodayDifferently-lib",
"react-dom-factories": "^1.0.2",
"react-dropzone": "^4.2.1",
"react-pdf-js": "git+https://github.com/robguy21/react-pdf-js.git#2b53bf3cca9b8cbbe8cb2ee967cbdd13a0056449",
"react-pdf-js": "github:robguy21/react-pdf-js#2b53bf3cca9b8cbbe8cb2ee967cbdd13a0056449",
"react-selectize": "^3.0.1",
"react-transition-group": "^1.1.2"
},
Expand Down
15 changes: 8 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,18 @@ const customBabelConfig = {
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'syntax-async-functions',
'@babel/plugin-transform-regenerator',
'flow-react-proptypes',
'@babel/transform-flow-strip-types',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
['babel-plugin-webpack-alias-7', { config: './webpack.config.base.js' }],
'css-modules-transform',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-regenerator',
'@babel/transform-flow-strip-types',
'@babel/plugin-syntax-dynamic-import',
['babel-plugin-webpack-alias-7', { config: './webpack.config.base.js' }],
'flow-react-proptypes',
'transform-react-remove-prop-types',
'syntax-async-functions',
// 'css-modules-transform',
],
exclude: /node_modules/,
};
Expand Down
12 changes: 6 additions & 6 deletions src/components/ButtonGroup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ type StateShape = {
* ButtonGroup is a wrapper that transforms given buttons into a small set of buttons with a dropdown menu based on the configuration given
*/
class ButtonGroup extends React.Component<PropsType, StateShape> {
isFirstFlag = false;

defaultProps: DefaultPropsType;

reactDropdown: HTMLElement;

static defaultProps = {
baseClass: 'button-group',
children: [],
Expand All @@ -47,12 +53,6 @@ class ButtonGroup extends React.Component<PropsType, StateShape> {
toggleButtonContents: <span>Menu</span>,
};

isFirstFlag = false;

defaultProps: DefaultPropsType;

reactDropdown: HTMLElement;

constructor(props: PropsType) {
super(props);
this.state = {
Expand Down
2 changes: 0 additions & 2 deletions src/components/DateRangePicker/.npmignore

This file was deleted.

94 changes: 0 additions & 94 deletions src/components/DateRangePicker/index.js

This file was deleted.

51 changes: 0 additions & 51 deletions src/components/DateRangePicker/index.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/DateRangePicker/initialize.js

This file was deleted.

23 changes: 11 additions & 12 deletions src/components/Filter/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import DateRangePicker from '../DateRangePicker/index';
import SimpleSelect from '../SimpleSelect/index';
import PredefinedFilter from './components/predefinedFilter';
import './scss/Filter.scss';
Expand Down Expand Up @@ -78,6 +77,16 @@ type StateType = {
* GroupSelection components commonly used to drill down data lists
*/
class Filter extends React.Component<PropsType> {
defaultProps: DefaultPropsType;

timer = null;

state: StateType;

reactDropdown: HTMLElement;

timerDp: any;

static defaultProps = {
baseClass: 'list-filter',
predefined: [],
Expand All @@ -94,19 +103,9 @@ class Filter extends React.Component<PropsType> {
addFilter: null,
groupSelectionCB: () => false,
PredefinedFilterComponent: PredefinedFilter,
DateRangePickerComponent: DateRangePicker,
DateRangePickerComponent: null,
};

defaultProps: DefaultPropsType;

timer = null;

state: StateType;

reactDropdown: HTMLElement;

timerDp: any;

static getDerivedStateFromProps(props, state) {
if (state.value !== props.forceValue && props.forceValue) {
return { isEmpty: !props.forceValue, value: props.forceValue };
Expand Down
4 changes: 2 additions & 2 deletions src/components/SimplePopup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type PropsShape = {
* this is highly recommended for all you Popup uses
*/
class SimplePopup extends React.Component<PropsShape> {
listener: any;

static defaultProps = {
isOpen: false,
baseClass: 'simple-popup',
Expand All @@ -64,8 +66,6 @@ class SimplePopup extends React.Component<PropsShape> {
cannotOutsideClickClose: false,
};

listener: any;

componentWillReceiveProps(nextProps: PropsShape) {
if (!this.props.isOpen && nextProps.isOpen) {
this.startListener();
Expand Down
3 changes: 2 additions & 1 deletion src/components/SimpleSelect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ type PropShapes = {
};

/**
* SimpleSelect is an implementation of 'reat-selectize' - providing a few defaults and a common interface
* SimpleSelect is an implementation of 'react-selectize' - providing a few defaults and a common interface
* @deprecated please replace this for a more up-to-date component
*/
const SimpleSelect = ({
onChange,
Expand Down
5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { SingleDatePicker } from 'react-dates';

import ActionBar from './components/ActionBar';
import AsideSlide from './components/AsideSlide';
import ButtonGroup from './components/ButtonGroup';
import DateRangePicker from './components/DateRangePicker';
import DropOptions from './components/DropOptions';
import DocumentUploader from './components/DocumentUploader';
import Filter from './components/Filter';
Expand Down Expand Up @@ -44,7 +41,6 @@ export {
AsideSlide,
ButtonGroup,
ButtonOrDiv,
DateRangePicker,
DropOptions,
DocumentUploader,
EllipsisLoader,
Expand All @@ -68,7 +64,6 @@ export {
SimpleListItem,
SimpleSelect,
SimplePopup,
SingleDatePicker,
SwitchView,
ToolTip,
wrapTooltip,
Expand Down
1 change: 0 additions & 1 deletion src/test-util/setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// setup file
import 'react-dates/initialize';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Expand Down
Loading