Skip to content

Commit

Permalink
Merge pull request #94 from damianricobelli/damian/update-package-json
Browse files Browse the repository at this point in the history
chore: update package json
  • Loading branch information
damianricobelli authored Jan 9, 2025
2 parents 1edb849 + 1fa5efb commit 7278441
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 34 deletions.
7 changes: 7 additions & 0 deletions .changeset/odd-singers-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"docs": patch
"@stepperize/react": patch
"@stepperize/vue": major
---

chore: update package json
51 changes: 28 additions & 23 deletions apps/docs/.source/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"publishConfig": {
"access": "public"
},
"description": "The library for building step-by-step workflows for web and mobile apps",
"description": "The library for building step-by-step workflows for React and React Native apps",
"author": "damianricobelli",
"license": "MIT",
"repository": {
Expand All @@ -15,9 +15,7 @@
},
"homepage": "https://stepperize.vercel.app",
"sideEffects": false,
"files": [
"dist"
],
"files": ["dist"],
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down
80 changes: 80 additions & 0 deletions packages/vue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<p align="center">
<img src="https://stepperize.vercel.app/banner.png" alt="Stepperize Logo" />
</p>

[![Build Size](https://img.shields.io/bundlephobia/minzip/@stepperize/vue@latest?label=bundle%20size&style=flat&colorA=000000&colorB=000000)](https://bundlephobia.com/result?p=@stepperize/vue@latest)
[![Version](https://img.shields.io/npm/v/@stepperize/vue?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@stepperize/vue)
[![Downloads](https://img.shields.io/npm/dt/@stepperize/vue.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@stepperize/vue)

A library for creating step-by-step workflows in your apps

- 🚀 Fast and efficient
- 🔥 Powerful and flexible
- 📦 Lightweight (< 1kB gzipped)
- 🪄 Fully typesafe
- 🔗 Composable architecture
- 🎨 Unstyled for maximum customization

## Installation

```bash
npm install @stepperize/vue
```

## Quick Start

1. Import the constructor:

```tsx
import { defineStepper } from "@stepperize/vue";
```

2. Define your steps:

```tsx
const { Scoped, useStepper, steps } = defineStepper(
{ id: "step-1", title: "Step 1", description: "Description for step 1" },
{ id: "step-2", title: "Step 2", description: "Description for step 2" },
{ id: "step-3", title: "Step 3", description: "Description for step 3" },
{ id: "step-4", title: "Step 4", description: "Description for step 4" }
);
```

3. Use the hook in your components:

```tsx
function StepperComponent() {
const { currentStep, nextStep, prevStep } = useStepper();

return (
<div>
<h2>{currentStep.title}</h2>
<p>{currentStep.description}</p>
<button onClick={prevStep}>Previous</button>
<button onClick={nextStep}>Next</button>
</div>
);
}
```

## How It Works

Stepperize allows you to define a series of steps with unique IDs. When you create your steps using `defineStepper`, you get:

- A `Scoped` component for context management
- A `useStepper` hook for step control
- An array of `steps` for rendering

The only required field for each step is the `id`. You can add any additional properties you need, and they'll be fully typesafe when using the hook.

## Documentation

For more detailed information on usage, configuration, and advanced features, visit our [full documentation](https://stepperize.vercel.app).

## Contributing

We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for more details.

## License

Stepperize is [MIT licensed](LICENSE).
Loading

0 comments on commit 7278441

Please sign in to comment.