Skip to content

Commit

Permalink
feat: Props now imported through @bluebase/components
Browse files Browse the repository at this point in the history
  • Loading branch information
artalat committed Apr 8, 2019
1 parent 93d24da commit b498537
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 63 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@bluebase/components": "^2.6.0",
"@bluebase/core": "^4.0.0-aplha.13",
"@bluebase/storybook-addon": "^3.0.0",
"@blueeast/bluerain-cli-essentials": "^4.0.0-beta.2",
Expand Down
21 changes: 1 addition & 20 deletions src/components/BlueBaseFilter/BlueBaseFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
import { BlueBase } from '../../BlueBase';
import { BlueBaseContext } from '../../Context';
import { BlueBaseFilterProps } from '@bluebase/components';
import Loadable from 'react-loadable';
import React from 'react';
import { ReactLoadableLoading } from '../ReactLoadableLoading';

export interface BlueBaseFilterProps<T = any> {

/** Event name */
filter: string;

/** Initial value to filter */
value: T;

/** Filter arguments */
args?: { [key: string]: any };

/** Children as function (render prop pattern). Final value is passed as param to this function. */
children: ((value: any) => React.ReactNode);

/**
* Used to locate this view in end-to-end tests.
*/
testID?: string,
}

/**
* # 🚇 BlueBaseFilter
*
Expand Down
35 changes: 0 additions & 35 deletions src/components/types.ts

This file was deleted.

10 changes: 7 additions & 3 deletions src/getComponent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ActivityIndicatorProps, ButtonProps, ImageProps, TextProps, ViewProps } from './native';
import {
BlueBaseContentProps,
ActivityIndicatorProps,
BlueBaseFilterProps,
ButtonProps,
ComponentStateProps,
DataObserverProps,
DynamicIconProps,
Expand All @@ -11,6 +11,7 @@ import {
HeaderProps,
HeaderTitleProps,
HoverObserverProps,
ImageProps,
LinkProps,
LoadingStateProps,
NavigationActionsProps,
Expand All @@ -19,10 +20,13 @@ import {
PluginIconProps,
RedirectProps,
StatefulComponentProps,
TextProps,
ViewProps,
WaitObserverProps,
} from './components';
} from '@bluebase/components';
import { BlueBase } from './BlueBase';
import { BlueBaseConsumer } from './Context';
import { BlueBaseContentProps } from './components';
import React from 'react';


Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './BlueBase';
export { BlueBaseApp } from './components/';
export * from './components/types';
export * from './Context';
export { getComponent } from './getComponent';
export * from './registries';
Expand Down
4 changes: 0 additions & 4 deletions src/native/Button/__stories__/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ storiesOf('Button', module)
<View style={{ padding: 8 }}>
<Button color="secondary">Secondary</Button>
</View>
<View style={{ padding: 8 }}>
<Button color="link">Link</Button>
</View>

</View>
))

Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,14 @@
lodash "^4.17.11"
to-fast-properties "^2.0.0"

"@bluebase/components@^2.6.0":
version "2.6.0"
resolved "https://registry.yarnpkg.com/@bluebase/components/-/components-2.6.0.tgz#8384a5b23debe7957e4a9886b737ab59b815c385"
integrity sha512-9mkPAWdpqxXvzQT88ZfBa7E1QVOQE45wLloZ+MujWz6ijbhR7CQ4tUWM1IJaCzyI+k3biTzaklG87He+7a85AA==
dependencies:
deepmerge "^3.2.0"
tslib "^1.9.3"

"@bluebase/core@^4.0.0-aplha.13":
version "4.0.0-aplha.13"
resolved "https://registry.yarnpkg.com/@bluebase/core/-/core-4.0.0-aplha.13.tgz#37422944ca7eb7904fd8366ac9c1ca18effe75d4"
Expand Down

0 comments on commit b498537

Please sign in to comment.