Skip to content

Commit b4f511b

Browse files
committed
minor update readme, script format codebase
Update change log
1 parent cc22523 commit b4f511b

File tree

5 files changed

+28
-29
lines changed

5 files changed

+28
-29
lines changed

CHANGELOG.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,16 @@
6262

6363
# 0.2.0
6464

65-
- Add new props: `easing` and `speedPlus`.
66-
- Update readme.
67-
- Rename indicators:
68-
- `<CircularProgress />` - `<OrbitProgress />`
69-
- `<Seek />` - `<ThreeDot />`
70-
- `<GlidingBlink />` - `<BlinkBlur />`
71-
- `<Twist />` - `<TrophySpin />`
72-
- `<Pulse />` - `<LifeLine />`
73-
- Add `track-disc` variant to `<OrbitProgress />`.
74-
- Add variants on `<ThreeDot />`.
65+
- New props: `easing` and `speedPlus`.
66+
- Updated readme.
67+
- Renamed indicators:
68+
- ~~`<CircularProgress />`~~ - `<OrbitProgress />`
69+
- ~~`<Seek />`~~ - `<ThreeDot />`
70+
- ~~`<GlidingBlink />`~~ - `<BlinkBlur />`
71+
- ~~`<Twist />`~~ - `<TrophySpin />`
72+
- ~~`<Pulse />`~~ - `<LifeLine />`
73+
- New `track-disc` variant to `<OrbitProgress />`.
74+
- Variants prop on `<ThreeDot />`.
7575
- Refactor `<BlinkBlur />`.
76+
- Light build option.
77+
- Less files lib.

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# react-loading-indicators
22

3-
A library of well done and highly usable _loading indicators_ to inform users that the system is working.
3+
A library of usable and wonderful _loading indicators_ to communicate a behind scenes progress to system users.
44

55
Built with Typescript. Compatible with **react version >=16.8.0**(since hooks).
66

7-
## A demo speaks for itself
7+
## A demo for your insights
88

9-
A glimpse of what is wrapped🎁.<br />
10-
See [DEMO](https://react-loading-indicators.netlify.app/).
9+
A glimpse of what is wrapped 🎁.<br />
10+
See [DEMO](https://react-loading-indicators.netlify.app/) page.
1111

1212
## Installation
1313

@@ -50,7 +50,7 @@ npm install react-loading-indicators
5050
import React from "react";
5151
import { Atom } from "react-loading-indicators";
5252
/*
53-
| OR specifically pull it 😊️
53+
| OR directly pull it 😎
5454
| import Atom from "react-loading-indicators/Atom";
5555
*/
5656

@@ -68,14 +68,14 @@ export default Loading;
6868
</Suspense>
6969
```
7070

71-
<strong><small>Side note:</small></strong> You can use <a href="https://dev.to/smitterhane/swap-out-useeffect-with-suspense-for-data-fetching-in-react-2leb">suspense for data fetching</a> other than lazy loading.
71+
<strong><small>Side note:</small></strong> You can use <a href="https://dev.to/smitterhane/swap-out-useeffect-with-suspense-for-data-fetching-in-react-2leb#2-data-fetching-usecase">suspense for data fetching</a> other than lazy loading.
7272

7373
</details>
7474

7575
### Lighter build
7676

77-
This library is fairly small. However, you might be aiming at making the bundle size of your project to be as small as possible.<br />
78-
You can only include a specific loading indicator you want to use:
77+
This library is fairly small. However, you might be turbo-charged to make bundle size of your project as small as possible.<br />
78+
You can directly include a loading indicator you want to ensure it is the only thing included from the library:
7979

8080
```jsx
8181
import React from "react";
@@ -109,7 +109,7 @@ Each of these components will accept the following _optional props_.
109109
- `style` - Applies CSS styles to the loading indicator
110110
- `text` - Displays message in the loading indicator.
111111
- `textColor` - Sets the color of text message in the loading indicator.
112-
- `speedPlus` - Controls speed of animation. _Negative_ values slows down. _Positive_ numbers speeds up animation.
112+
- `speedPlus` - Controls speed of animation. _Negative_ values slows down. _Positive_ numbers speeds up animation. `0` is normal speed.
113113
- `easing` - Controls the smoothness of the animation, altered with values such as `linear`, `ease-in`.
114114

115115
Some components accept a `variant` prop, Specifically `<OrbitProgress />` and `<ThreeDot />`. This lets you choose a variation of a loading indicator that you want.
@@ -118,11 +118,13 @@ Some components accept a `variant` prop, Specifically `<OrbitProgress />` and `<
118118
| :-----: | :------: |
119119
| variant | `string` |
120120

121-
See [DEMO](https://react-loading-indicators.netlify.app/) to know list of variants a loading indicator supports.
121+
`<OrbitProgress />` has the following variants: **`dotted`**, **`bubble-dotted`**, **`disc`**, **`split-disc`**, **`track-disc`**. Defaults to `disc`.<br />
122+
`<ThreeDot />` has the following variants: **`pulsate`**, **`windmill`**, **`bob`**, **`brick-stack`**. Defaults to `pulsate`.<br />
123+
See [DEMO](https://react-loading-indicators.netlify.app/) to visualize.
122124

123125
### How to resize
124126

125-
You can resize loader to fit into your needs with the `size` prop that accepts predefined string input.<br>
127+
You can resize a spinner to fit into your needs with the `size` prop that accepts predefined string input.<br>
126128
If this is not enough, you can give a loading indicator a `fontSize` property via the `style` prop. The style prop is an object that allows you to add your own css. Including `fontSize` in the style object will _evenly_ alter the animation's size, e.g
127129

128130
```jsx

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-loading-indicators",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "Simply elegant light-weight loading indicators for react applications",
55
"scripts": {
66
"prebuild": "rm -rf dist",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
import { CommonProps } from "../../common.types";
2-
export interface SplitDiscProps extends CommonProps {
3-
}
2+
export interface SplitDiscProps extends CommonProps {}

src/indicators/ThreeDot/ThreeDot.types.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,5 @@ export interface ThreeDotProps extends CommonProps {
33
/**
44
* Variant of a ThreeDot loading indicator. Defaults to `Pulsate`.
55
*/
6-
variant?:
7-
| "pulsate"
8-
| "windmill"
9-
| "bob"
10-
| "brick-stack";
6+
variant?: "pulsate" | "windmill" | "bob" | "brick-stack";
117
}

0 commit comments

Comments
 (0)