Skip to content
Permalink
Browse files

fix: change @paste scope to @twilio-paste (#2)

  • Loading branch information...
TheSisb committed Jul 24, 2019
1 parent ec6f106 commit 1d8d2ff4af5e6e64b0f1cc16c4e0722fc026cc13
Showing with 88 additions and 88 deletions.
  1. +3 −3 .jest/resolver.js
  2. +1 −1 .storybook/withThemePovider.js
  3. +6 −6 package.json
  4. +1 −1 packages/paste-core/components/accordion/package.json
  5. +2 −2 packages/paste-core/components/anchor/README.md
  6. +1 −1 packages/paste-core/components/anchor/package.json
  7. +2 −2 packages/paste-core/components/button/README.md
  8. +3 −3 packages/paste-core/components/button/package.json
  9. +1 −1 packages/paste-core/components/button/src/index.tsx
  10. +1 −1 packages/paste-core/components/button/stories/index.stories.tsx
  11. +1 −1 packages/paste-core/components/card/package.json
  12. +3 −3 packages/paste-core/components/heading/package.json
  13. +1 −1 packages/paste-core/components/heading/src/index.tsx
  14. +1 −1 packages/paste-core/components/input/package.json
  15. +3 −3 packages/paste-core/components/spinner/package.json
  16. +1 −1 packages/paste-core/components/spinner/src/index.tsx
  17. +3 −3 packages/paste-core/utilities/box/package.json
  18. +1 −1 packages/paste-core/utilities/box/src/index.tsx
  19. +2 −2 packages/paste-core/utilities/box/stories/index.stories.tsx
  20. +1 −1 packages/paste-core/utilities/media-object/package.json
  21. +2 −2 packages/paste-core/utilities/media-object/stories/index.stories.tsx
  22. +3 −3 packages/paste-core/utilities/text/package.json
  23. +1 −1 packages/paste-core/utilities/text/src/index.tsx
  24. +1 −1 packages/paste-core/utilities/text/stories/index.stories.tsx
  25. +1 −1 packages/paste-core/utilities/truncate/package.json
  26. +2 −2 packages/paste-core/utilities/truncate/stories/index.stories.tsx
  27. +1 −1 packages/paste-design-tokens/package.json
  28. +1 −1 packages/paste-design-tokens/utils/formatGroupTokensWithTemplate/index.ts
  29. +4 −4 packages/paste-icons/README.md
  30. +1 −1 packages/paste-icons/__IconList.tsx
  31. +3 −3 packages/paste-icons/package.json
  32. +1 −1 packages/paste-icons/tools/listTemplate.js
  33. +3 −3 packages/paste-theme-tokens/package.json
  34. +1 −1 packages/paste-theme-tokens/src/default/index.ts
  35. +1 −1 packages/paste-theme-tokens/src/sendgrid/index.ts
  36. +4 −4 packages/paste-theme/README.md
  37. +1 −1 packages/paste-theme/__tests__/withTheme.spec.tsx
  38. +2 −2 packages/paste-theme/package.json
  39. +1 −1 packages/paste-theme/src/themeConsumer.tsx
  40. +1 −1 packages/paste-theme/src/themeProvider.tsx
  41. +2 −2 packages/paste-theme/src/useTheme.ts
  42. +1 −1 packages/paste-theme/stories/index.stories.tsx
  43. +3 −3 packages/paste-website/package.json
  44. +5 −5 packages/paste-website/src/components/default-site-wrapper/index.tsx
  45. +1 −1 packages/paste-website/src/components/mdx/mdx-provider/index.tsx
  46. +1 −1 tools/utils/getRepoPackages.js
  47. +1 −1 tools/utils/updatePackageReferences.js
  48. +1 −1 types/index.d.ts
@@ -8,8 +8,8 @@ const cachedPackages = require('../tools/.cache/packages.json');
*
* Shape:
* {
* '@paste/button': {
* name: '@paste/button',
* '@twilio-paste/button': {
* name: '@twilio-paste/button',
version: '0.1.2',
private: false,
location: '/Users/username/paste/packages/paste-core/components/button/dist/index.js'
@@ -43,7 +43,7 @@ const keyedPackages = cachedPackages.reduce((acc, currentPackage) => {
* @param {*} details
*/
function customResolver(package, details) {
if (package.includes('@paste/')) {
if (package.includes('@twilio-paste/')) {
return keyedPackages[package].location;
}

@@ -1,5 +1,5 @@
import * as React from 'react';
import {Theme} from '@paste/theme';
import {Theme} from '@twilio-paste/theme';

const withThemeProvider = storyFn => <Theme.Provider customBreakpoints={[]}>{storyFn()}</Theme.Provider>;

@@ -14,16 +14,16 @@
"prestart": "yarn prebuild",
"start": "yarn build:icons && concurrently \"yarn:start:*\"",
"start:storybook": "start-storybook",
"start:tokens": "yarn workspace @paste/design-tokens build:dev",
"start:icons": "yarn workspace @paste/icons watch",
"start:website": "yarn workspace @paste/website develop",
"start:tokens": "yarn workspace @twilio-paste/design-tokens build:dev",
"start:icons": "yarn workspace @twilio-paste/icons watch",
"start:website": "yarn workspace @twilio-paste/website develop",
"prebuild": "node ./tools/build/pre-build.js",
"build": "lerna run build",
"build:dev": "yarn prebuild && yarn build:tokens && lerna run build:dev",
"build:tokens": "yarn workspace @paste/design-tokens tokens",
"build:icons": "yarn workspace @paste/icons build",
"build:tokens": "yarn workspace @twilio-paste/design-tokens tokens",
"build:icons": "yarn workspace @twilio-paste/icons build",
"build:docs": "build-storybook -c .storybook -o docs",
"build:website": "yarn workspace @paste/website build",
"build:website": "yarn workspace @twilio-paste/website build",
"pre-push": "yarn build && yarn lint && yarn test && yarn prettier",
"release": "yarn lerna publish --skip-npm",
"clean": "node ./tools/build/clean-repo.js && lerna clean --yes && lerna run clean && yarn bootstrap",
@@ -1,5 +1,5 @@
{
"name": "@paste/accordion",
"name": "@twilio-paste/accordion",
"status": "backlog",
"version": "0.0.0"
}
@@ -3,13 +3,13 @@
## Installation

```
yarn add @paste/anchor
yarn add @twilio-paste/anchor
```

## Usage

```js
import {Anchor} from '@paste/anchor';
import {Anchor} from '@twilio-paste/anchor';
<Anchor href="/app">
Link Text
@@ -1,5 +1,5 @@
{
"name": "@paste/anchor",
"name": "@twilio-paste/anchor",
"version": "0.1.3",
"description": "Twilio's Anchor component",
"author": "Twilio Inc.",
@@ -3,13 +3,13 @@
## Installation

```
yarn add @paste/button
yarn add @twilio-paste/button
```

## Usage

```js
import {Button} from '@paste/button';
import {Button} from '@twilio-paste/button';
<Button variant="secondary" size="small" onClick={() => {}}>
Submit
@@ -1,5 +1,5 @@
{
"name": "@paste/button",
"name": "@twilio-paste/button",
"version": "0.1.6",
"description": "Twilio's Button component",
"author": "Twilio Inc.",
@@ -24,13 +24,13 @@
"peerDependencies": {
"@emotion/core": "^10.0.10",
"@emotion/styled": "^10.0.10",
"@paste/spinner": "^0.1.2",
"@twilio-paste/spinner": "^0.1.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-system": "^4.1.0"
},
"devDependencies": {
"@paste/spinner": "^0.1.4",
"@twilio-paste/spinner": "^0.1.4",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
@@ -1,5 +1,5 @@
import * as React from 'react';
import {Spinner} from '@paste/spinner';
import {Spinner} from '@twilio-paste/spinner';
import {ButtonWrapper, ButtonChildren, SpinnerWrapper} from './styles';
import {ButtonProps, ButtonStates} from './types';

@@ -2,7 +2,7 @@ import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {action} from '@storybook/addon-actions';
import {withKnobs, select, text, boolean} from '@storybook/addon-knobs';
import {LogoIcon} from '@paste/icons/src/react/LogoIcon';
import {LogoIcon} from '@twilio-paste/icons/src/react/LogoIcon';
import {Button} from '../src';
import {ButtonVariants, ButtonSizes, ButtonTabIndexes} from '../src/types';

@@ -1,5 +1,5 @@
{
"name": "@paste/card",
"name": "@twilio-paste/card",
"version": "0.1.2",
"description": "",
"author": "Twilio Inc.",
@@ -1,5 +1,5 @@
{
"name": "@paste/heading",
"name": "@twilio-paste/heading",
"version": "0.3.2",
"description": "",
"author": "Twilio Inc.",
@@ -24,13 +24,13 @@
"peerDependencies": {
"@emotion/core": "^10.0.10",
"@emotion/styled": "^10.0.10",
"@paste/text": "^0.3.1",
"@twilio-paste/text": "^0.3.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-system": "^4.1.0"
},
"devDependencies": {
"@paste/text": "^0.3.1",
"@twilio-paste/text": "^0.3.1",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
@@ -1,5 +1,5 @@
import * as React from 'react';
import {Text} from '@paste/text';
import {Text} from '@twilio-paste/text';

export type asTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'label';
export type HeadingStyle =
@@ -1,5 +1,5 @@
{
"name": "@paste/input",
"name": "@twilio-paste/input",
"version": "0.1.2",
"description": "",
"author": "Twilio Inc.",
@@ -1,5 +1,5 @@
{
"name": "@paste/spinner",
"name": "@twilio-paste/spinner",
"version": "0.1.4",
"description": "Twilio's Spinner component",
"author": "Twilio Inc.",
@@ -24,14 +24,14 @@
"peerDependencies": {
"@emotion/core": "^10.0.10",
"@emotion/styled": "^10.0.10",
"@paste/icons": "^0.2.1",
"@twilio-paste/icons": "^0.2.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-uid": "^2.2.0",
"styled-system": "^4.1.0"
},
"devDependencies": {
"@paste/icons": "^0.2.3",
"@twilio-paste/icons": "^0.2.3",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
@@ -1,7 +1,7 @@
import * as React from 'react';
import {keyframes, css} from '@emotion/core';
import styled from '@emotion/styled';
import {SpinnerIcon, SpinnerIconProps} from '@paste/icons/react/SpinnerIcon';
import {SpinnerIcon, SpinnerIconProps} from '@twilio-paste/icons/react/SpinnerIcon';

const rotate = keyframes`
0% {
@@ -1,5 +1,5 @@
{
"name": "@paste/box",
"name": "@twilio-paste/box",
"version": "0.2.4",
"description": "",
"author": "Twilio Inc.",
@@ -23,13 +23,13 @@
},
"peerDependencies": {
"@emotion/styled": "^10.0.10",
"@paste/theme-tokens": "^0.2.2",
"@twilio-paste/theme-tokens": "^0.2.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-system": "^4.1.0"
},
"devDependencies": {
"@paste/theme-tokens": "^0.4.0",
"@twilio-paste/theme-tokens": "^0.4.0",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
@@ -14,7 +14,7 @@ import {
width,
WidthProps,
} from 'styled-system';
import {ThemeShape} from '@paste/theme-tokens';
import {ThemeShape} from '@twilio-paste/theme-tokens';
import {SpacingThemeProps} from '../../../../../types';

export interface BoxProps extends HeightProps, MaxWidthProps, MinWidthProps, WidthProps, SpacingThemeProps {
@@ -1,8 +1,8 @@
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, select} from '@storybook/addon-knobs';
import {DefaultTheme, ThemeShape} from '@paste/theme-tokens';
import {Text} from '@paste/text';
import {DefaultTheme, ThemeShape} from '@twilio-paste/theme-tokens';
import {Text} from '@twilio-paste/text';
import {Box} from '../src';

const backgroundColorOptions = Object.keys(DefaultTheme.backgroundColors);
@@ -1,5 +1,5 @@
{
"name": "@paste/media-object",
"name": "@twilio-paste/media-object",
"version": "0.2.3",
"description": "",
"author": "Twilio Inc.",
@@ -1,8 +1,8 @@
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, boolean, select} from '@storybook/addon-knobs';
import {Text} from '@paste/text';
import {Box} from '@paste/box';
import {Text} from '@twilio-paste/text';
import {Box} from '@twilio-paste/box';
import {Media} from '../src';

storiesOf('Utilities|Media Object', module)
@@ -1,5 +1,5 @@
{
"name": "@paste/text",
"name": "@twilio-paste/text",
"version": "0.3.1",
"description": "",
"author": "Twilio Inc.",
@@ -23,13 +23,13 @@
},
"peerDependencies": {
"@emotion/styled": "^10.0.10",
"@paste/theme-tokens": "^0.2.2",
"@twilio-paste/theme-tokens": "^0.2.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"styled-system": "^4.1.0"
},
"devDependencies": {
"@paste/theme-tokens": "^0.4.0",
"@twilio-paste/theme-tokens": "^0.4.0",
"csstype": "^2.6.5",
"rollup": "^1.16.2",
"rollup-plugin-babel": "^4.3.3",
@@ -11,7 +11,7 @@ import {
textAlign,
TextAlignProps,
} from 'styled-system';
import {ThemeShape} from '@paste/theme-tokens';
import {ThemeShape} from '@twilio-paste/theme-tokens';

interface TextProps extends TextAlignProps, SpaceProps {
as?: string;
@@ -1,7 +1,7 @@
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, text, select} from '@storybook/addon-knobs';
import {DefaultTheme, ThemeShape} from '@paste/theme-tokens';
import {DefaultTheme, ThemeShape} from '@twilio-paste/theme-tokens';
import {ResponsiveValue} from 'styled-system';
import * as CSS from 'csstype';
import {Text} from '../src';
@@ -1,5 +1,5 @@
{
"name": "@paste/truncate",
"name": "@twilio-paste/truncate",
"version": "0.1.2",
"description": "",
"author": "Twilio Inc.",
@@ -1,7 +1,7 @@
import * as React from 'react';
import {storiesOf} from '@storybook/react';
import {Box} from '@paste/box';
import {Text} from '@paste/text';
import {Box} from '@twilio-paste/box';
import {Text} from '@twilio-paste/text';
import {Truncate} from '../src';

storiesOf('Utilities|Truncate', module).add('Default', () => {
@@ -1,5 +1,5 @@
{
"name": "@paste/design-tokens",
"name": "@twilio-paste/design-tokens",
"version": "2.2.0",
"description": "Design Tokens for the Paste Design System",
"main": "dist/tokens.common.js",
@@ -38,7 +38,7 @@ const getPluralCatName = (name: string): string => {
const pluralName = pluralCategoryMap.get(name);
if (pluralName === undefined) {
throw new Error(
"[@paste/design-tokens formatGroupTokensWithTemplate]: This category doesn't have a plural equivelant, please add one"
"[@twilio-paste/design-tokens formatGroupTokensWithTemplate]: This category doesn't have a plural equivelant, please add one"
);
}
return pluralName;
@@ -3,15 +3,15 @@
## Installation

```
yarn add @paste/icons
yarn add @twilio-paste/icons
```

## Usage

```js
import AssetsIcon from '@paste/icons/react/AssetsIcon';
import AssetsIcon from '@twilio-paste/icons/react/AssetsIcon';
// For the SVG:
// import AssetsSvg from '@paste/icons/svg/assets.svg';
// import AssetsSvg from '@twilio-paste/icons/svg/assets.svg';
// Note: make sure you have the webpack loader for loading svgs.
<AssetsIcon title={string} decorative={boolean} size={number} color={token} />;
@@ -46,7 +46,7 @@ Wrap these icons with a component that animates its children or pass in a classN

- Clone or `git pull` the master branch
- Move any number of svg files into `./svg/`
- From the icons folder, run `yarn run convert-new`. Conversely, from the root of paste you can run `yarn workspace @paste/icons convert-new`
- From the icons folder, run `yarn run convert-new`. Conversely, from the root of paste you can run `yarn workspace @twilio-paste/icons convert-new`
- Check the `./react` folder and make sure you like how your components turned out
- Run `yarn list-icons` to update the story
- Submit a PR!
@@ -1,6 +1,6 @@

import * as React from 'react';
import {Text} from '@paste/text';
import {Text} from '@twilio-paste/text';
import {Grid, StoryIcon} from './__StoryStyles';

import {AccountProfileIcon} from './src/react/AccountProfileIcon';

0 comments on commit 1d8d2ff

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