diff --git a/src/components/core/Provider/Provider.tsx b/src/components/core/Provider/Provider.tsx new file mode 100644 index 0000000..d8837b9 --- /dev/null +++ b/src/components/core/Provider/Provider.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Theme } from '../../../types/index'; + +type DynamicProviderProps = { theme: Theme }; + +export class DynamicProvider extends React.Component { + theme: Theme + + constructor(props: DynamicProviderProps) { + super({ }); + this.theme = props.theme; + } + + render() { + return ( +
+ +
+ ); + } +}; \ No newline at end of file diff --git a/src/components/core/Provider/index.ts b/src/components/core/Provider/index.ts new file mode 100644 index 0000000..cba46c8 --- /dev/null +++ b/src/components/core/Provider/index.ts @@ -0,0 +1 @@ +export { DynamicProvider } from './Provider'; \ No newline at end of file diff --git a/src/components/core/index.ts b/src/components/core/index.ts index de24b17..8ca169f 100644 --- a/src/components/core/index.ts +++ b/src/components/core/index.ts @@ -1 +1,2 @@ +export { DynamicProvider } from './Provider/index'; export { ThemeBuilder } from './Theme/index'; \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 76d41d9..44a0241 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,3 +1,4 @@ export { + DynamicProvider, ThemeBuilder, } from './core/index'; \ No newline at end of file diff --git a/src/components/typography/Button/index.ts b/src/components/typography/Button/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/index.ts b/src/index.ts index f9b6760..de0597e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ export { + DynamicProvider, ThemeBuilder, } from './components/index';