Skip to content

Commit

Permalink
updated pnpm-lock to ensure ts up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Jan 4, 2023
1 parent 0896f7b commit cf4f96a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 32 deletions.
2 changes: 1 addition & 1 deletion components/src/components/atoms/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import styled, { css } from 'styled-components'

import { WithAlert, WithIcon } from '@/src/types'
import { WithAlert, WithIcon } from '../../../types'

import { Typography } from '../Typography'

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start": "next start"
},
"dependencies": {
"@ensdomains/thorin": "workspace:components",
"@ensdomains/thorin": "workspace:*",
"@reach/skip-nav": "^0.16.0",
"@sindresorhus/slugify": "^2.1.0",
"copy-to-clipboard": "^3.3.1",
Expand Down
24 changes: 14 additions & 10 deletions docs/src/components/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const Container = styled.div(
)

const TableHead = styled.th(
({ theme }) => css`
background-color: ${theme.colors.background};
() => css`
position: sticky;
top: 0;
`,
Expand All @@ -40,17 +39,17 @@ const TableHeadLabelContainer = styled.div<{
text-transform: capitalize;
background-color: ${theme.colors.greySurface};
border-color: ${theme.colors.greyBright};
${$i === 0 ? `border-left-radius: ${theme.radii['large']};` : ``}
${$i === 0 ? `border-top-left-radius: ${theme.radii.card};` : ``}
${$i === $headers.length - 1
? `border-right-radius: ${theme.radii['large']};`
? `border-top-right-radius: ${theme.radii.card};`
: ``}
padding: ${theme.space['2.5']} ${theme.space['4']};
`,
)

const Name = styled(Typography)(
({ theme }) => css`
color: ${theme.colors.text};
color: ${theme.colors.textPrimary};
font-size: ${theme.fontSizes['small']};
`,
)
Expand Down Expand Up @@ -79,14 +78,14 @@ const DefaultValue = styled(Typography)(

const Description = styled(Typography)(
({ theme }) => css`
color: ${theme.colors.textSecondary};
font-size: ${theme.fontSizes['small']};
color: ${theme.colors.greyPrimary};
font-size: ${theme.fontSizes.small};
`,
)

const NoProps = styled(Typography)(
({ theme }) => css`
color: ${theme.colors.textSecondary};
color: ${theme.colors.greyPrimary};
`,
)

Expand Down Expand Up @@ -164,7 +163,6 @@ export const PropsTable = ({ sourceLink, types }: Props) => {
))}
</tr>
</thead>

<tbody>
{props.map((x) => (
<tr
Expand All @@ -183,7 +181,13 @@ export const PropsTable = ({ sourceLink, types }: Props) => {
</DataCell>

<DataCell>
<RawName>{formatPropType(x.type)}</RawName>
<RawName
color="accent"
font="mono"
typography="Small/Normal"
>
{formatPropType(x.type)}
</RawName>
</DataCell>

<DataCell>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/snippets/atoms/Banner.snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { Snippet } from '../../../types'
export const snippets: Snippet[] = [
{
name: 'Basic',
code: <Banner />,
code: <Banner message="Content here" />,
},
]
3 changes: 1 addition & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
"@/*": ["../components/*"]
"~/*": ["./src/*"]
},
"incremental": true,
"target": "esnext",
Expand Down
20 changes: 3 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf4f96a

Please sign in to comment.