Skip to content

Commit

Permalink
chore: improve the example project to check if everything is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaAmar committed Oct 29, 2024
1 parent 8d635b4 commit f097658
Show file tree
Hide file tree
Showing 11 changed files with 2,440 additions and 285 deletions.
5 changes: 5 additions & 0 deletions examples/remix/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'

import styles from '@pillar-ui/core/main.css'
import { LinksFunction } from '@remix-run/node'

export const links: LinksFunction = () => [{ rel: 'stylesheet', href: styles }]

export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
Expand Down
12 changes: 8 additions & 4 deletions examples/remix/app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { Button } from '@pillar-ui/core'
import { Avatar, Button, Flex, Paper } from '@pillar-ui/core'

const Home = () => {
return (
<div>
<Button>Hello</Button>
</div>
<Paper p="5">
<Flex gap="4" items="center">
<Avatar title="Hel" />
<Button color="d">Reset</Button>
<Button>Add</Button>
</Flex>
</Paper>
)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@pillar-ui/core": "^0.10.8",
"@pillar-ui/core": "^0.10.11",
"@remix-run/node": "^2.13.1",
"@remix-run/react": "^2.13.1",
"@remix-run/serve": "^2.13.1",
Expand Down
12 changes: 6 additions & 6 deletions examples/remix/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1327,14 +1327,14 @@ __metadata:
languageName: node
linkType: hard

"@pillar-ui/core@npm:^0.10.8":
version: 0.10.8
resolution: "@pillar-ui/core@npm:0.10.8"
"@pillar-ui/core@npm:^0.10.11":
version: 0.10.11
resolution: "@pillar-ui/core@npm:0.10.11"
peerDependencies:
"@pillar-ui/hooks": 0.7.4
"@pillar-ui/hooks": ">=0.7 <1"
react: ^18.0.0
react-dom: ^18.0.0
checksum: 10c0/fc7a8d507da2905021238b0daad8c9fe10d0cc7040466ca986e9e77856a71a6dc90dfc02abfbba411134e4ffb5117e18816a7533b56ef20dd2bc6215bbd2aa0c
checksum: 10c0/263825d8a5d830bfb4fc81f139e54569b0437ad73cf28568b7ae99a68264553a96abfb86aac2c0d23938966d2c94f57ef0311d5ca947b2d2c259f3ba3e112b63
languageName: node
linkType: hard

Expand Down Expand Up @@ -7576,7 +7576,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "remix@workspace:."
dependencies:
"@pillar-ui/core": "npm:^0.10.8"
"@pillar-ui/core": "npm:^0.10.11"
"@remix-run/dev": "npm:^2.13.1"
"@remix-run/node": "npm:^2.13.1"
"@remix-run/react": "npm:^2.13.1"
Expand Down
Binary file modified examples/with-cra/.yarn/install-state.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/with-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@pillar-ui/core": "^0.10.9",
"@chakra-ui/react": "^3.0.2",
"@emotion/react": "^11.13.3",
"@pillar-ui/core": "^0.10.11",
"@pillar-ui/icons": "^0.8.2",
"@pillar-ui/utils": "^0.8.5",
"@testing-library/jest-dom": "^5.17.0",
Expand Down
1 change: 1 addition & 0 deletions examples/with-cra/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react'
import { Button, Paper } from '@pillar-ui/core'
import '@pillar-ui/core/main.css'
// import { Provider } from '@/components/ui/provider'

function App() {
const [count, setCount] = useState(0)
Expand Down
Loading

0 comments on commit f097658

Please sign in to comment.