Skip to content

Commit cd34961

Browse files
committed
Change package names
1 parent 7b21940 commit cd34961

11 files changed

Lines changed: 27 additions & 26 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# tournaments-brackets
1+
# react-brackets
22

33
> Dynamic bracket component, usable for brackets such as single elimination and double elimination
44
5-
[![NPM](https://img.shields.io/npm/v/tournaments-brackets.svg)](https://www.npmjs.com/package/tournaments-brackets) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
5+
[![NPM](https://img.shields.io/npm/v/react-brackets.svg)](https://www.npmjs.com/package/react-brackets) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
66

77
## Install
88

99
via npm
1010

1111
```bash
1212

13-
npm install --save tournaments-brackets
13+
npm install --save react-brackets
1414

1515
```
1616

1717
via yarn
1818

1919
```bash
2020

21-
yarn add --save tournaments-brackets
21+
yarn add --save react-brackets
2222

2323
```
2424

@@ -27,7 +27,7 @@ yarn add --save tournaments-brackets
2727
The simplest usage of this component is
2828

2929
```jsx
30-
import { Bracket, RoundProps } from 'tournaments-brackets';
30+
import { Bracket, RoundProps } from 'react-brackets';
3131

3232
const rounds: RoundProps[] = [
3333
{
@@ -67,7 +67,7 @@ The core shape is similar to the above, since we can customize seeds and titles,
6767
modifying a title of the round is so simple,
6868

6969
```jsx
70-
import { Bracket, RoundProps } from 'tournaments-brackets';
70+
import { Bracket, RoundProps } from 'react-brackets';
7171
import React from 'react';
7272

7373
const Component = () => {
@@ -87,7 +87,7 @@ Customizing a seed on the other hand is a little bit more complicated, yet still
8787
because we need to let the bracket tree to have a consitent design
8888

8989
```jsx
90-
import { Bracket, RoundProps, Seed, SeedItem, SeedTeam } from 'tournaments-brackets';
90+
import { Bracket, RoundProps, Seed, SeedItem, SeedTeam } from 'react-brackets';
9191
import React from 'react';
9292

9393
const CustomSeed = (seed: any, breakpoint: number, roundIndex: number) => {
@@ -116,7 +116,7 @@ const Component = () => {
116116
How about if I want to use this component for double elimination losing bracket? the current Seed component only works on single elimination, the answer is fairly simple as well.
117117
118118
```jsx
119-
import { Bracket, RoundProps, Seed, SingleLineSeed, SeedItem, SeedTeam } from 'tournaments-brackets';
119+
import { Bracket, RoundProps, Seed, SingleLineSeed, SeedItem, SeedTeam } from 'react-brackets';
120120
import React from 'react';
121121

122122
const CustomSeed = (seed: any, breakpoint: number, roundIndex: number) => {

example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
This example was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
22

3-
It is linked to the tournaments-brackets package in the parent directory for development purposes.
3+
It is linked to the react-brackets package in the parent directory for development purposes.
44

55
You can run `yarn install` and then `yarn start` to test your package.

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tournaments-brackets-example",
2+
"name": "react-brackets-example",
33
"homepage": ".",
44
"version": "0.0.0",
55
"private": true,
@@ -20,7 +20,7 @@
2020
"react": "link:../node_modules/react",
2121
"react-dom": "link:../node_modules/react-dom",
2222
"react-scripts": "link:../node_modules/react-scripts",
23-
"tournaments-brackets": "link:..",
23+
"react-brackets": "link:..",
2424
"typescript": "link:../node_modules/typescript",
2525
"underscore": "^1.11.0"
2626
},

example/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
work correctly both with client-side routing and a non-root public URL.
2222
Learn how to configure a non-root public URL by running `npm run build`.
2323
-->
24-
<title>tournaments-brackets</title>
24+
<title>react-brackets</title>
2525
</head>
2626

2727
<body>

example/public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"short_name": "tournaments-brackets",
3-
"name": "tournaments-brackets",
2+
"short_name": "react-brackets",
3+
"name": "react-brackets",
44
"icons": [
55
{
66
"src": "favicon.ico",

example/src/components/double-elimination/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { RoundProps } from 'tournaments-brackets';
2+
import { RoundProps } from 'react-brackets';
33
import LosingBracket from './losing-bracket';
44
import WiningBracket from './wining-bracket';
55

example/src/components/double-elimination/losing-bracket.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Bracket, Seed, SingleLineSeed, SeedItem, SeedTeam, RoundProps } from 'tournaments-brackets';
2+
import { Bracket, Seed, SingleLineSeed, SeedItem, SeedTeam, RoundProps } from 'react-brackets';
33

44
interface LosingProps {
55
rounds: RoundProps[];

example/src/components/double-elimination/wining-bracket.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Bracket, Seed, SeedItem, SeedTeam, RoundProps } from 'tournaments-brackets';
2+
import { Bracket, Seed, SeedItem, SeedTeam, RoundProps } from 'react-brackets';
33

44
interface LosingProps {
55
rounds: RoundProps[];

example/src/components/loading/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Bracket, Seed, SeedItem, SeedTeam, SeedTime } from 'tournaments-brackets';
2+
import { Bracket, Seed, SeedItem, SeedTeam, SeedTime } from 'react-brackets';
33
import './loading.css';
44
const loadingData = [
55
{

example/src/components/single-elimination/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Bracket, Seed, SeedItem, SeedTeam, SeedTime, RoundProps } from 'tournaments-brackets';
2+
import { Bracket, Seed, SeedItem, SeedTeam, SeedTime, RoundProps } from 'react-brackets';
33

44
const rounds: RoundProps[] = [
55
{

0 commit comments

Comments
 (0)