Skip to content

Commit

Permalink
refactor: use manager instead of theme as main wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Dec 8, 2023
1 parent bf6fc75 commit 3728d99
Show file tree
Hide file tree
Showing 43 changed files with 151 additions and 124 deletions.
6 changes: 3 additions & 3 deletions packages/components/accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Accordion } from "@react-ck/accordion";

const myApp = () => (
<ThemeProvider>
<Manager>
<Accordion ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/banner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Banner } from "@react-ck/banner";

const myApp = () => (
<ThemeProvider>
<Manager>
<Banner ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/button/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Button } from "@react-ck/button";

const myApp = () => (
<ThemeProvider>
<Manager>
<Button ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Card } from "@react-ck/card";

const myApp = () => (
<ThemeProvider>
<Manager>
<Card ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/chip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Chip } from "@react-ck/chip";

const myApp = () => (
<ThemeProvider>
<Manager>
<Chip ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/collapse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Collapse } from "@react-ck/collapse";

const myApp = () => (
<ThemeProvider>
<Manager>
<Collapse ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/container/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Container } from "@react-ck/container";

const myApp = () => (
<ThemeProvider>
<Manager>
<Container ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/data-table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { DataTable } from "@react-ck/data-table";

const myApp = () => (
<ThemeProvider>
<Manager>
<DataTable ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/divider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Divider } from "@react-ck/divider";

const myApp = () => (
<ThemeProvider>
<Manager>
<Divider ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { GridContainer, GridColumn } from "@react-ck/grid";

const myApp = () => (
<ThemeProvider>
<Manager>
<GridContainer ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Icon } from "@react-ck/icon";

const myApp = () => (
<ThemeProvider>
<Manager>
<Icon ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Input } from "@react-ck/input";

const myApp = () => (
<ThemeProvider>
<Manager>
<Input ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { List } from "@react-ck/list";

const myApp = () => (
<ThemeProvider>
<Manager>
<List ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/overlay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Overlay } from "@react-ck/overlay";

const myApp = () => (
<ThemeProvider>
<Manager>
<Overlay ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/select/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Select } from "@react-ck/select";

const myApp = () => (
<ThemeProvider>
<Manager>
<Select ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/skeleton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Skeleton } from "@react-ck/skeleton";

const myApp = () => (
<ThemeProvider>
<Manager>
<Skeleton ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/spinner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Spinner } from "@react-ck/spinner";

const myApp = () => (
<ThemeProvider>
<Manager>
<Spinner ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Table } from "@react-ck/table";

const myApp = () => (
<ThemeProvider>
<Manager>
<Table ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Text } from "@react-ck/text";

const myApp = () => (
<ThemeProvider>
<Manager>
<Text ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/components/textarea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ You will also need to set up the theme provider, install it using npm or yarn: `
Wrap your app root with the theme provider and use this component:

```tsx
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { Textarea } from "@react-ck/textarea";

const myApp = () => (
<ThemeProvider>
<Manager>
<Textarea ... />
</ThemeProvider>
</Manager>
);
```

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/pages/src/icons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Title, IconGallery, IconItem } from "@storybook/blocks";
import { Icon } from "@react-ck/icon/src";
import icons from "@react-ck/icon/src/icons";
import { Input } from "@react-ck/input/src";
import { ThemeProvider } from "@react-ck/theme/src";
import { Manager } from "@react-ck/manager/src";

<Meta title="Generic/Icon/Gallery" />

Expand All @@ -14,7 +14,7 @@ export function Demo () {

return (

<ThemeProvider>
<Manager>
<Input autofocus placeholder="Search" onChange={function (e) {
setSearch(e.target.value);
}}
Expand All @@ -36,7 +36,7 @@ return (
)}
</IconGallery>

</ThemeProvider>
</Manager>

)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"@react-ck/table": "^1.0.0",
"@react-ck/text": "^1.0.0",
"@react-ck/textarea": "^1.0.0",
"@react-ck/theme": "^1.0.0"
"@react-ck/manager": "^1.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/docs/stories/src/accordion.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import type { Meta, StoryObj } from "@storybook/react";
import { ThemeProvider } from "@react-ck/theme";
import { Manager } from "@react-ck/manager";
import { faker } from "@faker-js/faker";
import { Text } from "@react-ck/text/src";
import { configureStory } from "@react-ck/story-config";
Expand All @@ -13,9 +13,9 @@ const meta: Meta<typeof Accordion> = {
...configureStory(Accordion, {
decorators: [
(Story) => (
<ThemeProvider>
<Manager>
<Story />
</ThemeProvider>
</Manager>
),
],
}),
Expand Down
Loading

0 comments on commit 3728d99

Please sign in to comment.