Skip to content

Commit

Permalink
feat(pie-monorepo): DSW-2056 added pie-webc integration to next 10 ex…
Browse files Browse the repository at this point in the history
…ample app
  • Loading branch information
kevinrodrigues committed Jul 18, 2024
1 parent 49b18e6 commit 6e6ab4e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-tomatoes-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wc-next10": minor
---

[Added] pie-webc integration to next10 example app
3 changes: 1 addition & 2 deletions apps/examples/wc-next10/ButtonSizes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { sizes } from '@justeattakeaway/pie-button';
import { PieButton } from '@justeattakeaway/pie-button/dist/react';
import { PieButton, sizes } from '@justeattakeaway/pie-webc/react/button';

export default function ButtonSizes () {
return (
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/wc-next10/Counter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { PieButton } from '@justeattakeaway/pie-button/dist/react';
import { PieButton } from '@justeattakeaway/pie-webc/react/button';

export default function Counter () {
const [count, setCount] = useState(0);
Expand Down
3 changes: 1 addition & 2 deletions apps/examples/wc-next10/VariantSwitch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState, useRef } from 'react';
import { variants } from '@justeattakeaway/pie-button';
import { PieButton } from '@justeattakeaway/pie-button/dist/react';
import { PieButton, variants } from '@justeattakeaway/pie-webc/react/button';

export default function VariantSwitch () {
const variantIndex = useRef(0);
Expand Down
1 change: 1 addition & 0 deletions apps/examples/wc-next10/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');

const transpileModules = [
'@justeattakeaway/pie-button',
'@justeattakeaway/pie-webc',
'@justeattakeaway/pie-cookie-banner',
'@lit/react',
'lit'
Expand Down
3 changes: 1 addition & 2 deletions apps/examples/wc-next10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"lint:examples": "eslint ."
},
"dependencies": {
"@justeattakeaway/pie-button": "0.47.8",
"@justeattakeaway/pie-cookie-banner": "0.21.0",
"@justeattakeaway/pie-css": "0.12.1",
"@justeattakeaway/pie-webc": "0.5.13",
"@lit/react": "1.0.2",
"next": "10.2.3",
"next-transpile-modules": "4.1.0",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38846,6 +38846,7 @@ __metadata:
"@justeattakeaway/pie-button": 0.47.8
"@justeattakeaway/pie-cookie-banner": 0.21.0
"@justeattakeaway/pie-css": 0.12.1
"@justeattakeaway/pie-webc": 0.5.13
"@lit/react": 1.0.2
babel-loader: 8
eslint: 8.37.0
Expand Down

0 comments on commit 6e6ab4e

Please sign in to comment.