Skip to content

Commit 576fa4e

Browse files
cab-mikeechrisbbreuerglennmichael123
authored
chore: wip
* feat:stepper component * chore: wip * chore: wip * chore: remove scss * fix: remove unused package * chore: wip * chore: wip * chore: wip * chore: wip * chore: wip * fix: bun conflict * fix: remove bun fille due to conflict * chore: wip * chore: wip * chore: wip * chore: readme enhancement * chore: wip * chore: release v0.61.21 * chore: wip * chore: wip * chore: release v0.61.22 * chore: release v0.61.23 * chore: wip * chore: wip * chore: release v0.61.24 * chore: wip * chore: wip --------- Co-authored-by: chrisbbreuer <chrisbreuer93@gmail.com> Co-authored-by: glennmichael123 <gtorregosa@gmail.com>
1 parent cf1f750 commit 576fa4e

File tree

8 files changed

+63
-22
lines changed

8 files changed

+63
-22
lines changed

storage/framework/core/components/stepper/README.md

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,52 @@
1-
# Stacks
1+
# Stacks Stepper
22

3-
The official bun-create template for the Stacks framework.
3+
The *Stepper* component is a versatile & customizable component for creating multi-step processes in your application. It allows users to navigate through a sequence of steps, providing a visual indicator of their progress. This is oftentimes used to build to welcome the user into your application.
44

55
## ☘️ Features
66

7-
- wip
7+
- Customizable steps
8+
- Linear and non-linear stepper modes
9+
- Step validation
10+
- Configurable labels and icons
11+
- Callback events for step changes
12+
- Lightweight
813

914
## 🤖 Usage
1015

1116
```bash
12-
bun create stacks my-project
17+
bun install -d @stacksjs/stepper
1318
```
1419

15-
Now, you can get started using Stacks:
20+
```ts
21+
22+
// App.vue
23+
import { Stepper } from '@stacksjs/stepper'
24+
25+
const steps = ref(5)
26+
const step = ref(1)
27+
28+
const stepper = ref(null)
29+
30+
<Stepper ref='stepper' :steps="steps" v-model='step' />
31+
32+
33+
<template v-if="step === 1">
34+
<div> </div>
35+
</template>
36+
37+
<template v-if="step === 2">
38+
<div> </div>
39+
</template>
1640

17-
```js
18-
// wip
1941
```
2042

21-
Learn more in the docs.
43+
To view the full documentation, please visit [stacksjs.org/docs/components/stepper](stacksjs.org/docs/components/stepper).
44+
45+
## 🧪 Testing
46+
47+
```bash
48+
bun test
49+
```
2250

2351
## 📈 Changelog
2452

@@ -36,7 +64,16 @@ For help, discussion about best practices, or any other conversation that would
3664

3765
For casual chit-chat with others using this package:
3866

39-
[Join the Stacks Discord](https://discord.gg/stacksjs)
67+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
68+
69+
## 🙏🏼 Credits
70+
71+
Many thanks to the following core technologies & people who have contributed to this package:
72+
73+
- [Collect.js](https://github.com/ecrmnn/collect.js)
74+
- [Laravel](https://laravel.com/)
75+
- [Chris Breuer](https://github.com/chrisbbreuer)
76+
- [All Contributors](../../contributors)
4077

4178
## 📄 License
4279

storage/framework/core/components/stepper/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@stacksjs/alias": "workspace:*",
6060
"@stacksjs/development": "workspace:*",
6161
"@types/clean-css": "^4.2.11",
62+
"unocss": "^0.60.4",
6263
"@vue/tsconfig": "^0.5.1",
6364
"clean-css": "^5.3.3",
6465
"unplugin-icons": "^0.19.0"

storage/framework/core/components/stepper/src/components/Stepper.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,5 @@ defineExpose({
235235
</step>
236236
</div>
237237
</template>
238+
239+
<style scoped></style>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import 'uno.css';
2+
import '@unocss/reset/tailwind.css';
3+
14
export { default as Stepper } from './Stepper.vue'
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
import type { App, Plugin } from 'vue'
21
import { Stepper } from './components'
32

4-
const plugin: Plugin = {
5-
install(app: App) {
6-
app.component('Stepper', Stepper)
7-
},
8-
}
9-
103
export { Stepper }
11-
12-
export default plugin

storage/framework/core/components/stepper/src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { createHead } from '@vueuse/head'
22
import { createApp } from 'vue'
33
import App from './App.vue'
44

5-
import '@unocss/reset/tailwind.css'
6-
import 'uno.css'
75
import highlight from './plugins/highlight'
86

97
const app = createApp(App)

storage/framework/core/components/stepper/vite.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Icons from 'unplugin-icons/vite'
88
import Components from 'unplugin-vue-components/vite'
99
import type { UserConfig } from 'vite'
1010
import { defineConfig } from 'vite'
11+
import presetWind from '@unocss/preset-wind'
12+
import { presetUno, presetAttributify, presetIcons } from 'unocss'
1113

1214
function minify(code: string) {
1315
const cleanCssInstance = new CleanCSS({})
@@ -20,7 +22,14 @@ export default defineConfig(({ command, mode }) => {
2022
Vue({
2123
include: /\.(stx|vue|md)($|\?)/,
2224
}),
23-
UnoCSS(),
25+
UnoCSS({
26+
presets: [
27+
presetUno(),
28+
presetAttributify(),
29+
presetIcons(),
30+
presetWind()
31+
]
32+
}),
2433
Components({
2534
extensions: ['stx', 'vue', 'md'],
2635
include: /\.(stx|vue|md)($|\?)/,

storage/framework/core/raycast/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"scripts": {
23-
"build": "ray build -e dist",
23+
"build": "echo 'wip'",
2424
"dev": "ray develop",
2525
"fix-lint": "ray lint --fix",
2626
"lint": "ray lint",

0 commit comments

Comments
 (0)