Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI Kit] fix: Typing packages for peer deps #48

Merged
merged 2 commits into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/pancake-uikit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
"devDependencies": {
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.5",
"@types/lodash": "^4.14.168",
"@types/styled-system": "^5.1.10",
"jest-styled-components": "^7.0.3",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand All @@ -43,6 +41,8 @@
"styled-components": "^5.2.3"
},
"dependencies": {
"@types/lodash": "^4.14.168",
"@types/styled-system": "^5.1.10",
"lodash": "^4.17.20",
"react-transition-group": "^4.4.1",
"styled-system": "^5.1.5"
Expand Down
12 changes: 6 additions & 6 deletions packages/pancake-uikit/src/__tests__/components/alert.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-eCssSg sc-jSgupP sc-pFZIQ jnvqfy cjuMmG iHQmOP"
class="sc-eCImvq sc-jRQAMF sc-pVTma bvbNmj hCaNlo kiiDNf"
>
<div
class="sc-gKsewC fosoJN"
class="sc-gKckTs bRlQtq"
>
<svg
class="sc-bdfBwQ gcQKnf"
class="sc-bdvvaa ekSmlT"
color="currentColor"
viewBox="0 0 24 24"
width="24px"
Expand All @@ -26,16 +26,16 @@ it("renders correctly", () => {
</svg>
</div>
<div
class="sc-iBPRYJ hdYjNd"
class="sc-iCfLBT fSnOLT"
>
<div
class="sc-gsTCUz TrMyr"
class="sc-gsDJrp bRnxSN"
color="text"
>
Alert title
</div>
<p
class="sc-gsTCUz fgiAxh"
class="sc-gsDJrp iTStsT"
color="text"
>
Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-gsTCUz sc-hKgILt jLyPtw wBnBi"
class="sc-gsDJrp sc-hKwCoD cXGWwC csIqRJ"
>
<input
class="sc-dlfnbm sc-eCssSg iIlYpN jebGQw"
class="sc-dkPtyc sc-eCImvq eEGAVJ jnjkdV"
placeholder="0.0"
scale="md"
type="text"
value="14"
/>
<div
class="sc-bdfBwQ hRRNWZ"
class="sc-bdvvaa ctIsWd"
color="textSubtle"
font-size="12px"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<ul
class="sc-dlfnbm lhEQuh"
class="sc-dkPtyc iziLLx"
/>
</DocumentFragment>
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<button
class="sc-bdfBwQ cUYMra"
class="sc-bdvvaa cJbNWK"
scale="md"
>
Submit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ ixBoaC"
class="sc-bdvvaa kiJEPi"
>
<button
class="sc-gsTCUz cEeBEu"
class="sc-gsDJrp kAseA"
scale="md"
>
Item 1
</button>
<button
class="sc-gsTCUz iPLbld sc-dlfnbm iHweuo"
class="sc-gsDJrp kwFeVn sc-dkPtyc cqNYfE"
scale="md"
>
Item 2
Expand Down
8 changes: 4 additions & 4 deletions packages/pancake-uikit/src/__tests__/components/card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ gppsKf"
class="sc-bdvvaa QgjRP"
>
<div
class="sc-dlfnbm eoWuoy"
class="sc-dkPtyc dPqJYu"
>
Header
</div>
<div
class="sc-gsTCUz iMfsSF"
class="sc-gsDJrp bNXekX"
>
Body
</div>
<div
class="sc-hKgILt gKiPqy"
class="sc-hKwCoD kCvFCJ"
>
Footer
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ it("renders correctly", () => {
<DocumentFragment>
<input
checked=""
class="sc-bdfBwQ fSgGwx"
class="sc-bdvvaa gvNXrl"
scale="md"
type="checkbox"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-gsTCUz cXEafq"
class="sc-gsDJrp bEdmoQ"
>
<div>
target
</div>
<div
class="sc-bdfBwQ iLGqGB"
class="sc-bdvvaa idSXnN"
/>
</div>
</DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ it("renders correctly", () => {
<DocumentFragment>
<div>
<div
class="sc-gsTCUz jYheWP"
class="sc-gsDJrp cSNsup"
>
<svg
class="sc-bdfBwQ cuuOmQ"
class="sc-bdvvaa jFbviQ"
color="text"
height="32"
viewBox="0 0 32 32"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-gsTCUz iwJkGQ ckYhbt"
class="sc-bdvvaa sc-gsDJrp gaVyZU hzWwMj"
>
flex
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<h2
class="sc-bdfBwQ sc-gsTCUz gWEhOj euWWbB"
class="sc-bdvvaa sc-gsDJrp XbzBn ktrawH"
color="text"
>
Title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<input
class="sc-bdfBwQ dtjLGO"
class="sc-bdvvaa bIrlQa"
scale="md"
type="text"
value="input"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders base layout correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ dvyXkL"
class="sc-bdvvaa flIpwv"
>
basic layout
</div>
Expand All @@ -20,7 +20,7 @@ it("renders card layout correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-gsTCUz dvyXkL iqaxyV"
class="sc-bdvvaa sc-gsDJrp flIpwv dwTUZT"
>
cards layout
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/pancake-uikit/src/__tests__/components/link.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders link correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<a
class="sc-bdfBwQ sc-gsTCUz eiaRqE djpNeP"
class="sc-bdvvaa sc-gsDJrp idxVps iZzBHB"
color="primary"
href="https://pancakeswap.finance"
>
Expand All @@ -22,15 +22,15 @@ it("renders link external link correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<a
class="sc-bdfBwQ sc-gsTCUz eiaRqE djpNeP"
class="sc-bdvvaa sc-gsDJrp idxVps iZzBHB"
color="primary"
href="https://pancakeswap.finance"
rel="noreferrer noopener"
target="_blank"
>
Link
<svg
class="sc-dlfnbm dJUqYR"
class="sc-dkPtyc jAAMdt"
color="primary"
viewBox="0 0 24 24"
width="20px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<span
class="sc-bdfBwQ gfxPDG"
class="sc-bdvvaa bEkNna"
>
<div />
<span
class="sc-gsTCUz ewuwAp"
class="sc-gsDJrp kWJlGX"
/>
</span>
</DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ SmJzf"
class="sc-bdvvaa fdGbZD"
role="presentation"
/>
</DocumentFragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-gsTCUz cECZDH"
class="sc-gsDJrp gBicJL"
>
<div
class="sc-bdfBwQ dfCzcs"
class="sc-bdvvaa hcMUIc"
style="width: 50%;"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<input
class="sc-bdfBwQ dsNrbs"
class="sc-bdvvaa kebDJQ"
name="radio"
scale="md"
type="radio"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-gsTCUz lnQWmK jeKmSf"
class="sc-bdvvaa sc-gsDJrp BylXW mZvVh"
/>
</DocumentFragment>
`);
Expand All @@ -18,7 +18,7 @@ it("renders correctly avatar", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-gsTCUz dNWWAj jeKmSf"
class="sc-bdvvaa sc-gsDJrp bPoEGX mZvVh"
height="50"
width="50"
/>
Expand All @@ -31,7 +31,7 @@ it("renders correctly waves animation", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-dlfnbm cIASSD hYUQGT"
class="sc-bdvvaa sc-dkPtyc gjYeAf bAuuOX"
height="50"
width="50"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-gsTCUz khJLZs"
class="sc-gsDJrp dmkRxm"
>
<svg
class="sc-bdfBwQ cuuOmQ sc-dlfnbm mabrO"
class="sc-bdvvaa jFbviQ sc-dkPtyc cafWiq"
color="text"
viewBox="0 0 128 128"
width="64px"
Expand Down Expand Up @@ -44,7 +44,7 @@ it("renders correctly", () => {
</svg>
</svg>
<svg
class="sc-bdfBwQ cuuOmQ sc-hKgILt jsGrON"
class="sc-bdvvaa jFbviQ sc-hKwCoD lkaLNa"
color="text"
viewBox="0 0 256 256"
width="128px"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<svg
class="sc-bdfBwQ cuuOmQ"
class="sc-bdvvaa jFbviQ"
color="text"
viewBox="0 0 24 24"
width="20px"
Expand Down
12 changes: 6 additions & 6 deletions packages/pancake-uikit/src/__tests__/components/tabmenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ sc-gsTCUz sc-dlfnbm iwJkGQ ckYhbt hfSAvK"
class="sc-bdvvaa sc-gsDJrp sc-dkPtyc gaVyZU hzWwMj ipUbgm"
>
<div
class="sc-bdfBwQ sc-gsTCUz sc-hKgILt iwJkGQ ckYhbt kGuCa-d"
class="sc-bdvvaa sc-gsDJrp sc-hKwCoD gaVyZU hzWwMj joasFC"
>
<button
class="sc-eCssSg ixipzp"
class="sc-eCImvq gfevKM"
color="card"
>
<div
class="sc-jSgupP dTcSYX"
class="sc-jRQAMF kpBUCd"
color="card"
font-weight="600"
>
Item 1
</div>
</button>
<button
class="sc-eCssSg bTcWnb"
class="sc-eCImvq hWcBJK"
color="textSubtle"
>
<div
class="sc-jSgupP fEsPNW"
class="sc-jRQAMF ftBIrs"
color="textSubtle"
font-weight="600"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it("renders correctly", () => {
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<div
class="sc-bdfBwQ hDWTGh"
class="sc-bdvvaa WLkLZ"
scale="md"
>
Core
Expand Down
Loading