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

chore: use @dhis2/d2-ui-analytics package for shared components #242

Merged
merged 10 commits into from
Apr 15, 2019
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"dependencies": {
"@dhis2/d2-i18n": "^1.0.3",
"@dhis2/d2-ui-analytics": "^0.0.8",
"@dhis2/d2-ui-core": "5.1.3",
"@dhis2/d2-ui-file-menu": "5.2.11",
"@dhis2/d2-ui-interpretations": "5.2.10",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default {
arrowDown: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default {
tableContainer: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import debounce from 'lodash-es/debounce';
import keyBy from 'lodash-es/keyBy';
import isEqual from 'lodash-es/isEqual';

import { ItemSelector } from 'analytics-shared';
import { ItemSelector } from '@dhis2/d2-ui-analytics';
import DataTypes from './DataTypesSelector';
import Groups from './Groups';
import FilterField from '../FilterField';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../../modules/colors';

export const styles = {
container: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../../modules/colors';

export const styles = {
container: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import i18n from '@dhis2/d2-i18n';
import keyBy from 'lodash-es/keyBy';
import { ItemSelector } from 'analytics-shared';
import { ItemSelector } from '@dhis2/d2-ui-analytics';

import FilterField from '../FilterField';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import i18n from '@dhis2/d2-i18n';
import PropTypes from 'prop-types';
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';
import { OrgUnitSelector, userOrgUnits } from '@dhis2/d2-ui-org-unit-dialog';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';

export const styles = {
container: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';

export const styles = {
searchIcon: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';

export const styles = {
text: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';

export const styles = {
toolTip: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export const styles = {
divContainer: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../../modules/colors';
import defaultLayoutStyle from './DefaultLayout.style';
import * as layoutStyle from '../../styles/style';

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Layout/styles/Chip.style.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';
import * as layoutStyle from './style';

export const styles = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Layout/styles/Tooltip.style.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export const styles = {
tooltip: {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/Layout/styles/style.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

// Layout
export const LAYOUT_HEIGHT = '78px';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default theme => ({
container: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default {
titleBar: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default {
flat: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

const error = {
fontWeight: 'bold',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { colors } from 'analytics-shared';
import { colors } from '../../../modules/colors';

export default {
button: {
Expand Down
34 changes: 0 additions & 34 deletions packages/shared/package.json

This file was deleted.

73 changes: 0 additions & 73 deletions packages/shared/src/components/ItemSelector/Item.js

This file was deleted.

14 changes: 0 additions & 14 deletions packages/shared/src/components/ItemSelector/ItemIcon.js

This file was deleted.

76 changes: 0 additions & 76 deletions packages/shared/src/components/ItemSelector/ItemSelector.css

This file was deleted.

Loading