From 43bec768387bbb34b08b12660603c6664b09cb51 Mon Sep 17 00:00:00 2001 From: Mambuco Date: Thu, 22 Feb 2024 20:57:51 +0100 Subject: [PATCH] [WIP] Adding DynamicProvider --- src/components/core/Provider/Provider.tsx | 21 +++++++++++++++++++++ src/components/core/Provider/index.ts | 1 + src/components/core/index.ts | 1 + src/components/index.ts | 1 + src/components/typography/Button/index.ts | 0 src/index.ts | 1 + 6 files changed, 25 insertions(+) create mode 100644 src/components/core/Provider/Provider.tsx create mode 100644 src/components/core/Provider/index.ts create mode 100644 src/components/typography/Button/index.ts 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';