Skip to content
Permalink
Browse files

fix(tokens): correct the box shadow tokens category and type (#95)

* fix: correct box-shadow type and category

* chore: lock file

* fix(website): fix token page to display newly named shadow group

* fix: stop cloning objects
  • Loading branch information...
SiTaggart committed Sep 13, 2019
1 parent f1293d4 commit fe0f946ede76de93f470c5e91100f0e58ec3acd4
@@ -1,6 +1,6 @@
global:
type: box-shadow
category: shadow
type: shadow
category: box-shadow
imports:
- ../aliases/box-shadow.yml
- ../aliases/offset.yml
@@ -8,44 +8,31 @@ import {
fontSizes,
fontWeights,
lineHeights,
shadows,
boxShadows,
sizings,
spacings,
textColors,
zIndices,
} from '@twilio-paste/design-tokens';

const breakpoints = [sizings.size40, sizings.size100, sizings.size120];
const space = {...spacings};
const maxWidths = {
...sizings,
};
const minWidths = {
...sizings,
};
const widths = {
...sizings,
};
const heights = {
...sizings,
};
export const DefaultTheme = {
colors,
shadows,
space,
backgroundColors,
borderColors,
borderWidths,
breakpoints,
fontSizes,
colors,
fonts,
fontSizes,
fontWeights,
heights: sizings,
lineHeights,
textColors,
backgroundColors,
borderColors,
maxWidths,
minWidths,
widths,
heights,
maxWidths: sizings,
minWidths: sizings,
radii,
borderWidths,
shadows: boxShadows,
space: spacings,
textColors,
widths: sizings,
zIndices,
};
@@ -8,27 +8,14 @@ import {
fontSizes,
fontWeights,
lineHeights,
shadows,
boxShadows,
sizings,
spacings,
textColors,
zIndices,
} from '@twilio-paste/design-tokens/dist/themes/sendgrid/tokens.es6';

const breakpoints = [sizings.size40, sizings.size100, sizings.size120];
const space = {...spacings};
const maxWidths = {
...sizings,
};
const minWidths = {
...sizings,
};
const widths = {
...sizings,
};
const heights = {
...sizings,
};
export const SendGridTheme = {
backgroundColors,
borderColors,
@@ -38,14 +25,14 @@ export const SendGridTheme = {
fonts,
fontSizes,
fontWeights,
heights,
heights: sizings,
lineHeights,
maxWidths,
minWidths,
maxWidths: sizings,
minWidths: sizings,
radii,
shadows,
space,
shadows: boxShadows,
space: spacings,
textColors,
widths,
widths: sizings,
zIndices,
};
@@ -126,7 +126,7 @@ export const TokenExample: React.FC<TokenExampleProps> = ({token}) => {
return <TextBox fontWeight={tokenName as keyof ThemeShape['fontWeights']} />;
case 'radius':
return <RadiiBox borderRadius={tokenName as keyof ThemeShape['radii']} />;
case 'shadow':
case 'box-shadow':
return <ShadowBox shadow={token.value} />;
case 'spacing':
return <SpacingBox padding={tokenName as keyof ThemeShape['space']} />;
@@ -3160,10 +3160,10 @@
"@svgr/plugin-svgo" "^4.3.1"
loader-utils "^1.2.3"

"@twilio-labs/svg-to-react@^1.0.1":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@twilio-labs/svg-to-react/-/svg-to-react-1.0.2.tgz#0a8d43e6d70bbd1beda8230e1fb43cca091c778f"
integrity sha512-fP2ISIlTQZdzVrONy6HbOtTuSZWId79O9+dTTeBNACx8sgINXtKiVpNi83DmTodQEVqkrfTi7XtgFahaXb6eZA==
"@twilio-labs/svg-to-react@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@twilio-labs/svg-to-react/-/svg-to-react-2.0.0.tgz#ca7db16fc0501afff63a6690d6111cb8642468c7"
integrity sha512-ugLlMUlppvp5wxg7hAENBu7Zt/iODU91b4Oem/TAVYE34NNT9fPU/aijBDaS6HSkJ58YajvLOmvjNUzxtiRLmw==
dependencies:
"@svgr/babel-plugin-add-jsx-attribute" "^4.2.0"
"@svgr/babel-plugin-remove-jsx-attribute" "^4.2.0"
@@ -5853,9 +5853,9 @@ buffer@^4.3.0:
isarray "^1.0.0"

buffer@^5.2.0, buffer@^5.2.1:
version "5.4.2"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.4.2.tgz#2012872776206182480eccb2c0fba5f672a2efef"
integrity sha512-iy9koArjAFCzGnx3ZvNA6Z0clIbbFgbdWQ0mKD3hO0krOrZh8UgA6qMKcZvwLJxS+D6iVR76+5/pV56yMNYTag==
version "5.4.3"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.4.3.tgz#3fbc9c69eb713d323e3fc1a895eee0710c072115"
integrity sha512-zvj65TkFeIt3i6aj5bIvJDzjjQQGs4o/sNoezg1F1kYap9Nu2jcUdpwzRSJTHMMzG0H7bZkn4rNQpImhuxWX2A==
dependencies:
base64-js "^1.0.2"
ieee754 "^1.1.4"
@@ -8258,9 +8258,9 @@ ejs@^2.6.1:
integrity sha512-kS/gEPzZs3Y1rRsbGX4UOSjtP/CeJP0CxSNZHYxGfVM/VgLcv0ZqM7C45YyTj2DI2g7+P9Dd24C+IMIg6D0nYQ==

electron-to-chromium@^1.3.191, electron-to-chromium@^1.3.247, electron-to-chromium@^1.3.47:
version "1.3.255"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.255.tgz#9f4b4f9ffd559dd7a81fef962186fc918d118b66"
integrity sha512-SZ6NlaNw3h4WR5kA1BK8XltdJCax02P+lW+z78RYoLDqmpyYuDQ5bS+/O6MCJ/j761qoZIFox2qYYt+UwqGA5w==
version "1.3.256"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.256.tgz#7f680d5f04df8e2bd9cb9758026d70f5ff1808a9"
integrity sha512-GHY1r2mO56BRMng6rkxxJvsWKtqy9k/IlSBrAV/VKwZKpTydVUJnOwajTNnl5uutJpthHgZy+HeofK5K6PqEgQ==

elliptic@^6.0.0:
version "6.5.1"
@@ -8291,9 +8291,9 @@ emojis-list@^2.0.0:
integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k=

emotion-theming@^10.0.10, emotion-theming@^10.0.9:
version "10.0.17"
resolved "https://registry.yarnpkg.com/emotion-theming/-/emotion-theming-10.0.17.tgz#dc1fe33c24dc7377633535dff4885cfa4d6ad48b"
integrity sha512-EocpFv+YjZPve20spmnj0Xtnkm/aJec8J8d69XJWtn5Kqqq7jK5S/amMtXSGNm5sjAwoGfJBMZ1p0jMgB3wIPA==
version "10.0.18"
resolved "https://registry.yarnpkg.com/emotion-theming/-/emotion-theming-10.0.18.tgz#7d636eb465cb190590e17d815b8d318be512ef7d"
integrity sha512-zFAax4setUIKDj+cmbl3nxXDBRIMsPmiRNpg+qDmX9wTHW2TPWpETMGaDWB67LwK63rfSIkeTH7stFFnyKd2pQ==
dependencies:
"@babel/runtime" "^7.5.5"
"@emotion/weak-memoize" "0.2.3"
jimp "^0.6.4"

prebuild-install@^5.3.0:
version "5.3.1"
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.1.tgz#7d220b978e03b0e067e0d8cffd13e84b3515131d"
integrity sha512-lRLBU0JPXBbpC/ER9PtVYYk1y9Rme1WiMA3WKEQ4v78A5kTsqQtrEyYlbghvXCA6Uhr/769SkhibQznjDBRZpg==
version "5.3.2"
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-5.3.2.tgz#6392e9541ac0b879ef0f22b3d65037417eb2035e"
integrity sha512-INDfXzTPnhT+WYQemqnAXlP7SvfiFMopMozSgXCZ+RDLb279gKfIuLk4o7PgEawLp3WrMgIYGBpkxpraROHsSA==
dependencies:
detect-libc "^1.0.3"
expand-template "^2.0.3"
react-side-effect "^1.1.0"

react-hot-loader@^4.12.12:
version "4.12.12"
resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.12.12.tgz#8b33f59efef8a34f64e01f0d9393230d4b4bc6d4"
integrity sha512-Tkd412j5yPKHoTRsJzZb+5UJNFKkPszm7QGKGYvt+jnzTkDS+qK0u3AYPlB0MmBlwzUKVHICqq5KH9Srzda7XA==
version "4.12.13"
resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.12.13.tgz#78dcb55f49f88ce3d4316c7c86a8c01fdd196cd2"
integrity sha512-4Byk3aVQhcmTnVCBvDHOEOUnMFMj81r2yRKZQSfLOG2yd/4hm/A3oK15AnCZilQExqSFSsHcK64lIIU+dU2zQQ==
dependencies:
fast-levenshtein "^2.0.6"
global "^4.3.0"
rollup-pluginutils "^2.8.1"

rollup-plugin-terser@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.1.1.tgz#e9d2545ec8d467f96ba99b9216d2285aad8d5b66"
integrity sha512-McIMCDEY8EU6Y839C09UopeRR56wXHGdvKKjlfiZG/GrP6wvZQ62u2ko/Xh1MNH2M9WDL+obAAHySljIZYCuPQ==
version "5.1.2"
resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.1.2.tgz#3e41256205cb75f196fc70d4634227d1002c255c"
integrity sha512-sWKBCOS+vUkRtHtEiJPAf+WnBqk/C402fBD9AVHxSIXMqjsY7MnYWKYEUqGixtr0c8+1DjzUEPlNgOYQPVrS1g==
dependencies:
"@babel/code-frame" "^7.0.0"
jest-worker "^24.6.0"

1 comment on commit fe0f946

@now

This comment has been minimized.

Please sign in to comment.
You can’t perform that action at this time.