Skip to content

Commit

Permalink
feat: Include mantine styles & use example
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Anton committed Jun 11, 2024
1 parent 1fbaed4 commit acbfd1f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/web/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { initializeApp } from './initializeApp';
import reportWebVitals from './reportWebVitals';
import { LAUNCH_DARKLY_CLIENT_SIDE_ID } from '@novu/shared-web';

// TODO: would like to figure out a better solution, but this unblocks for now
import '@novu/novui/components.css';
import '@novu/novui/styles.css';

(async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Button } from '@novu/novui';
import { PageContainer } from '../../layout';
import { WorkflowsTable } from './table';

export const WorkflowsListPage = () => {
return (
<PageContainer title="Workflows">
<Button onClick={() => alert('hello!')}>Hello!</Button>
<WorkflowsTable />
</PageContainer>
);
Expand Down
4 changes: 1 addition & 3 deletions libs/novui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { css } from '../styled-system/css';
import { MantineThemeProvider } from '@mantine/core';
import { NovuiProvider } from '../src/components';

import '@mantine/core/styles.css';
// Bring in the Panda-generated stylesheets
import '../src/index.css';
import '../styles.css';

export const parameters: Parameters = {
layout: 'fullscreen',
Expand Down
3 changes: 2 additions & 1 deletion libs/novui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"require": "./styled-system/jsx/index.js",
"import": "./styled-system/jsx/index.js"
},
"./styles.css": "./styled-system/styles.css"
"./styles.css": "./styled-system/styles.css",
"./components.css": "./node_modules/@mantine/core/styles.css"
},
"scripts": {
"prepare:lib": "pnpm prepare:panda && pnpm prepare:audit",
Expand Down
1 change: 1 addition & 0 deletions libs/novui/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './NovuiProvider';
export * from './table';
export * from './Test';
export * from './button';

0 comments on commit acbfd1f

Please sign in to comment.