Skip to content

Commit

Permalink
fixed local development problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Srdjan committed Mar 1, 2023
1 parent b50df6a commit 18d90e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ MultiStep component accepts following props (all optional, except Steps array):

| PROPERTY | DESCRIPTION | TYPE | DEFAULT | isRequired|
|----------------|--------------------------------------------------------------|-------------|------------|-----------|
| showNavigation | controls if the navigation buttons are visable |boolean |true |false |
| showNavigation | controls if the navigation buttons are visible |boolean |true |false |
| showTitles | control either the steps title are visible or not |boolean |true |false |
| prevButton | configure the prev navigation button |NavButton |null |false |
| nextButton | configure the naxt the navigation button |NavButton |null |false |
| nextButton | configure the next the navigation button |NavButton |null |false |
| stepCustomStyle| control style of step |CSSProperties|null |false |
| direction | control the steps nav direction |column |row |false |
| activeStep | it takes a number representing representing starting step |number |0 |false |
Expand All @@ -60,12 +60,12 @@ MultiStep component accepts following props (all optional, except Steps array):
#### There are two ways to configure Multistep component, preferred way is with `Inlined` child components. Using this approach, enables the new feature that allows controlling the navigation based on the current step's form validation:

```javascript
<Multistep activeStep={1} showNavigation={true}>
<MultiStep activeStep={1} showNavigation={true}>
<StepOne title='StepOne'/>
<StepTwo title='StepTwo'/>
<StepThree title='StepThree'/>
<StepFour title='StepFour'/>
</Multistep>
</MultiStep>
```

#### The old way via `Steps`, a prop in the form of an array of components, is still supported for backwards compatibility. But, (:warning:) this way has being `deprecated` (:warning:), and it will be removed in the future:
Expand Down Expand Up @@ -112,7 +112,7 @@ This can be seen in the `example` app, but here are the relevant parts, required
```sh
//--step 1
git clone https://github.com/srdjan/react-multistep.git //clone the repo
cd react-multistep //navigate to the project folder
cd react-multistep/example //navigate to the project folder
```

2) Next, install dependencies and build the component:
Expand All @@ -122,7 +122,7 @@ npm install
npm run build
```

3) On a succesful build, navigate to the example folder and try it:
3) On a successful build, to try the example app, navigate to the example folder and try it:

```sh
cd ../example
Expand Down
2 changes: 1 addition & 1 deletion example/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'
import MultiStep from 'MultiStep'
import MultiStep from 'react-multistep'
import StepOne from './stepOne'
import StepTwo from './stepTwo'
import StepThree from './stepThree'
Expand Down
2 changes: 1 addition & 1 deletion example/appOld.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'
import MultiStep from './index'
import MultiStep from 'react-multistep'
import StepOne from './stepOne'
import StepTwo from './stepTwo'
import StepThree from './stepThree'
Expand Down
5 changes: 3 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"scripts": {
"debug": "esbuild app.js --bundle --format=cjs --outfile=./bundle.js --loader:.js=jsx --sourcemap --preserve-symlinks",
"build": "esbuild app.js --bundle --format=cjs --outfile=./bundle.js --loader:.js=jsx",
"inst:comp": "mkdir -p node_modules/react-multistep && cp -f ../build/** node_modules/react-multistep/",
"build": "npm run inst:comp && esbuild app.js --bundle --format=cjs --outfile=./bundle.js --loader:.js=jsx",
"start": "npx serve"
},
"alias": {
Expand All @@ -16,6 +17,6 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"esbuild": "0.17.4"
"esbuild": "0.17.10"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-multistep",
"version": "5.5.4",
"version": "5.5.5",
"description": "Responsive ReactJS multistep form component",
"main": "dist/index.js",
"files": [
Expand Down

0 comments on commit 18d90e4

Please sign in to comment.