-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1513 from tokens-studio/release-133
Release 133
- Loading branch information
Showing
30 changed files
with
406 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION=figma-tokens@132 | ||
VERSION=figma-tokens@133 | ||
sentry-cli releases -p figma-tokens files "$VERSION" upload-sourcemaps --ext ts --ext tsx --ext map --ext js --ignore-file .sentryignore . | ||
sentry-cli releases set-commits "$VERSION" --auto | ||
sentry-cli releases finalize "$VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { styled } from '@/stitches.config'; | ||
|
||
const StyledLink = styled('a', { | ||
color: '$fgAccent', | ||
textDecoration: 'none', | ||
':hover': { | ||
textDecoration: 'underline', | ||
}, | ||
}); | ||
|
||
type Props = { | ||
href: string | ||
children: React.ReactNode | ||
}; | ||
|
||
export default function Link({ href, children }: Props) { | ||
return ( | ||
<StyledLink href={href} target="_blank" rel="noreferrer">{children}</StyledLink> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
import { useUIDSeed } from 'react-uid'; | ||
import { SingleBorderToken } from '@/types/tokens'; | ||
import { styled } from '@/stitches.config'; | ||
import Box from './Box'; | ||
|
||
type Props = { | ||
value: SingleBorderToken['value'] | ||
}; | ||
|
||
const StyledPropertyItem = styled('div', { | ||
color: '$textSubtle', | ||
marginBottom: '$2', | ||
}); | ||
|
||
const StyledValueItem = styled('div', { | ||
marginBottom: '$2', | ||
}); | ||
|
||
const properties = { | ||
color: 'Border Color', | ||
width: 'Border Width', | ||
style: 'Border Style', | ||
}; | ||
|
||
export const ResolvedBorderValueDisplay: React.FC<Props> = ({ value }) => { | ||
const seed = useUIDSeed(); | ||
|
||
return ( | ||
<Box css={{ | ||
display: 'flex', backgroundColor: '$bgSubtle', padding: '$4', fontSize: '$xsmall', | ||
}} | ||
> | ||
<Box css={{ display: 'grid', marginRight: '$6' }}> | ||
{Object.values(properties).map((value) => ( | ||
<StyledPropertyItem key={seed(value)}>{value}</StyledPropertyItem> | ||
))} | ||
|
||
</Box> | ||
<Box> | ||
{Object.keys(properties).map((key) => ( | ||
<StyledValueItem key={seed(key)}> | ||
{value[key as keyof typeof value]} | ||
| ||
</StyledValueItem> | ||
))} | ||
</Box> | ||
</Box> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.