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

chore: upgrade @acid-info/lsd-react #218

Merged
merged 1 commit into from
Dec 6, 2023
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"dependencies": {
"@acid-info/lsd-react": "^0.1.0-alpha.18",
"@acid-info/lsd-react": "^0.1.0-alpha.22",
"@apollo/client": "^3.7.17",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
Expand Down
10 changes: 7 additions & 3 deletions src/components/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { ArrowDownIcon, ArrowUpIcon, Typography } from '@acid-info/lsd-react'
import {
ChevronDownIcon,
ChevronUpIcon,
Typography,
} from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import clsx from 'clsx'
import { useState } from 'react'
Expand Down Expand Up @@ -36,9 +40,9 @@ export default function Collapse({
</Label>
<Icon>
{open ? (
<ArrowUpIcon color="primary" />
<ChevronUpIcon color="primary" />
) : (
<ArrowDownIcon color="primary" />
<ChevronDownIcon color="primary" />
)}
</Icon>
</Header>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Podcasts/Podcasts.Lists.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArrowDownIcon, Button, Typography } from '@acid-info/lsd-react'
import { Button, ChevronDownIcon, Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import Image from 'next/image'
import Link from 'next/link'
Expand Down Expand Up @@ -54,7 +54,7 @@ export default function PodcastsLists({ shows }: Props) {
<ColoredText isEven={isEven} variant="body3">
Podcast page
</ColoredText>
<ArrowDownIcon color={isEven ? 'secondary' : 'primary'} />
<ChevronDownIcon color={isEven ? 'secondary' : 'primary'} />
</ShowButton>
</ShowCard>
</ShowCardContainer>
Expand Down
1 change: 1 addition & 0 deletions src/containers/LSDThemeProvider/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const useLSDTheme = () => {
},
},
palette: {},
spacing: [],
typography: {},
typographyGlobal: {
genericFontFamily: genericFontFamily,
Expand Down
16 changes: 5 additions & 11 deletions src/utils/lsd.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,14 @@ export class LsdUtils {
THEME_BREAKPOINTS.filter((b) => !exclude.find((b2) => b2 === b))

typography = (variant: TypographyVariants | 'subtitle3', important = false) =>
variant === 'subtitle3'
? `
font-size: 12px !important;
font-weight: 400 !important;
line-height: 16px !important;
`
: `
`
font-size: var(--lsd-${variant}-fontSize)${important ? '!important' : ''};
font-weight: var(--lsd-${variant}-fontWeight)${
important ? '!important' : ''
};
important ? '!important' : ''
};
line-height: var(--lsd-${variant}-lineHeight)${
important ? '!important' : ''
};
important ? '!important' : ''
};
`

breakpoint = (
Expand Down
31 changes: 26 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
# yarn lockfile v1


"@acid-info/lsd-react@^0.1.0-alpha.18":
version "0.1.0-alpha.18"
resolved "https://registry.yarnpkg.com/@acid-info/lsd-react/-/lsd-react-0.1.0-alpha.18.tgz#bc1e6ea46541108f89ff4d83fe57eaa92ebc2201"
integrity sha512-R9EUbFS3xkiSumOAG6SjNTN6pkToGEERBG8TqFKPASrQXtgQpEGE5j/NTdbovMQGy44uOmKq3QKciwtufYeK9g==
"@acid-info/lsd-react@^0.1.0-alpha.22":
version "0.1.0-alpha.22"
resolved "https://registry.yarnpkg.com/@acid-info/lsd-react/-/lsd-react-0.1.0-alpha.22.tgz#8ccd5bdf911bb6fa181e4964948ec19c1c0989f4"
integrity sha512-mUmptfKmAPl2qd26JjZO4p4GzQIuOhC3/pHZCuZVtkmJlGPVXXw36Fes7WXQW6WcswXiAtFEDp3DWxNwB7oCHg==
dependencies:
"@datepicker-react/hooks" "^2.8.4"
"@emotion/react" "^11.10.5"
"@emotion/styled" "^11.10.5"
clsx "^1.2.1"
lodash "^4.17.21"
react-hot-toast "^2.4.1"
react-use "^17.4.0"

"@ampproject/remapping@^2.2.0":
Expand Down Expand Up @@ -589,6 +591,13 @@
"@babel/helper-validator-identifier" "^7.19.1"
to-fast-properties "^2.0.0"

"@datepicker-react/hooks@^2.8.4":
version "2.8.4"
resolved "https://registry.yarnpkg.com/@datepicker-react/hooks/-/hooks-2.8.4.tgz#6e07aa98bf21b90b7c88fb35919cca6eb08f2c31"
integrity sha512-qaYJKK5sOSdqcL/OnCtyv3/Q6fRRljfeAyl5ISTPgEO0CM5xZzkGmTx40+6wvqjH5lEZH4ysS95nPyLwZS2tlw==
dependencies:
date-fns "^2.14.0"

"@discordjs/builders@^1.6.5":
version "1.6.5"
resolved "https://registry.yarnpkg.com/@discordjs/builders/-/builders-1.6.5.tgz#3e23912eaab1d542b61ca0fa7202e5aaef2b7200"
Expand Down Expand Up @@ -2470,7 +2479,7 @@ dataloader@^2.2.2:
resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.2.2.tgz#216dc509b5abe39d43a9b9d97e6e5e473dfbe3e0"
integrity sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==

date-fns@^2.30.0:
date-fns@^2.14.0, date-fns@^2.30.0:
version "2.30.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0"
integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==
Expand Down Expand Up @@ -3374,6 +3383,11 @@ globrex@^0.1.2:
resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098"
integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==

goober@^2.1.10:
version "2.1.13"
resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.13.tgz#e3c06d5578486212a76c9eba860cbc3232ff6d7c"
integrity sha512-jFj3BQeleOoy7t93E9rZ2de+ScC4lQICLwiAQmKMg9F6roKGaLSHoCDYKkWlSafg138jejvq/mTdvmnwDQgqoQ==

gopd@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c"
Expand Down Expand Up @@ -4807,6 +4821,13 @@ react-fast-compare@^3.0.1:
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.2.tgz#929a97a532304ce9fee4bcae44234f1ce2c21d49"
integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==

react-hot-toast@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/react-hot-toast/-/react-hot-toast-2.4.1.tgz#df04295eda8a7b12c4f968e54a61c8d36f4c0994"
integrity sha512-j8z+cQbWIM5LY37pR6uZR6D4LfseplqnuAO4co4u8917hBUvXlEqyP1ZzqVLcqoyUesZZv/ImreoCeHVDpE5pQ==
dependencies:
goober "^2.1.10"

react-imgix@^9.7.0:
version "9.7.0"
resolved "https://registry.yarnpkg.com/react-imgix/-/react-imgix-9.7.0.tgz#944f63693daf6524d07898aaf7d1cbbe59e5edca"
Expand Down
Loading