Skip to content

Commit

Permalink
chore: use @dhis2/d2-ui-analytics package for shared components (#242)
Browse files Browse the repository at this point in the history
The internal "shared" package is removed. Instead, get ItemSelector from @dhis2/d2-ui-analytics, and move the colors file back to app since it is only used there, and not in the plugin.

This PR does not introduce any functional changes.
  • Loading branch information
jenniferarnesen committed Apr 15, 2019
1 parent 773be50 commit 6d1d25d
Show file tree
Hide file tree
Showing 45 changed files with 130 additions and 1,571 deletions.
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.12",
"@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
File renamed without changes.
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

0 comments on commit 6d1d25d

Please sign in to comment.