Skip to content

Commit

Permalink
chore: reorganize editors package
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 28, 2020
1 parent 8c11dcc commit e5b3838
Show file tree
Hide file tree
Showing 44 changed files with 9 additions and 16 deletions.
1 change: 1 addition & 0 deletions integrations/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"license": "MIT",
"dependencies": {
"@component-controls/block-components": "^0.6.0",
"@component-controls/components": "^0.6.0",
"@component-controls/editors": "^0.6.0",
"@component-controls/loader": "^0.6.0",
"@component-controls/specification": "^0.6.0",
Expand Down
7 changes: 2 additions & 5 deletions integrations/storybook/src/preview/PropsTable.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import { styled } from '@storybook/theming';
import {
FlexContainer,
PropertyEditor,
getPropertyEditor,
} from '@component-controls/editors';
import { FlexContainer } from '@component-controls/components';
import { PropertyEditor, getPropertyEditor } from '@component-controls/editors';
import { PropDef } from '../shared/smartControls';

const TitleIcon = styled.div({
Expand Down
1 change: 1 addition & 0 deletions ui/components/src/FlexContainer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './FlexContainer';
4 changes: 0 additions & 4 deletions ui/components/src/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ const match = (
fallback: number | string = 0,
) => (actual.split('-')[0] === requested ? value : fallback);

export interface FlexContainerProps {
align?: string;
}

export const Wrapper = styled.div<{
placement: string;
borderColor: string;
Expand Down
1 change: 1 addition & 0 deletions ui/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './ActionBar';
export * from './FlexContainer';
export * from './Popover';
export * from './Tabs';
export * from './Toggle';
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { ComponentControlBoolean } from '@component-controls/specification';
import { Toggle } from '@component-controls/components';
import { FlexContainer } from '../../components/FlexContainer/FlexContainer';
import { Toggle, FlexContainer } from '@component-controls/components';
import { PropertyControlProps, PropertyEditor } from '../types';

export interface BooleanEditorProps extends PropertyControlProps {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
ComponentControlObject,
} from '@component-controls/specification';
import { mergeControlValues, getControlValues } from '@component-controls/core';
import { Popover } from '@component-controls/components';
import { Popover, FlexContainer } from '@component-controls/components';
import { PropertyControlProps, PropertyEditor } from '../types';
import { FlexContainer } from '../../components/FlexContainer/FlexContainer';

import { PropertyEditors } from '../PropertyEditors';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions ui/editors/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './editors/prop-factory';
export * from './editors/types';
export { FlexContainer } from './components/FlexContainer/FlexContainer';
export * from './prop-factory';
export * from './types';
File renamed without changes.
File renamed without changes.

0 comments on commit e5b3838

Please sign in to comment.