From dbb29de523d3a2ed0e5d90da833da24640159f89 Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Thu, 25 Jul 2024 22:28:48 +0330 Subject: [PATCH] docs: add Stepper examples (#681) --- apps/www/__registry__/index.ts | 42 ++++ .../src/content/docs/components/stepper.md | 16 +- .../registry/default/example/StepperDemo.vue | 1 + .../registry/default/example/StepperForm.vue | 238 ++++++++++++++++++ .../default/example/StepperHorizental.vue | 69 +++++ .../default/example/StepperVertical.vue | 71 ++++++ .../registry/default/ui/stepper/Stepper.vue | 5 +- .../default/ui/stepper/StepperDescription.vue | 4 +- .../default/ui/stepper/StepperItem.vue | 5 +- .../default/ui/stepper/StepperSeparator.vue | 2 +- .../registry/new-york/example/StepperDemo.vue | 1 + .../registry/new-york/example/StepperForm.vue | 238 ++++++++++++++++++ .../new-york/example/StepperHorizental.vue | 69 +++++ .../new-york/example/StepperVertical.vue | 71 ++++++ .../registry/new-york/ui/stepper/Stepper.vue | 5 +- .../ui/stepper/StepperDescription.vue | 4 +- .../new-york/ui/stepper/StepperIndicator.vue | 2 +- .../new-york/ui/stepper/StepperItem.vue | 5 +- .../new-york/ui/stepper/StepperSeparator.vue | 6 +- .../registry/styles/default/stepper.json | 10 +- .../registry/styles/new-york/stepper.json | 10 +- 21 files changed, 846 insertions(+), 28 deletions(-) create mode 100644 apps/www/src/lib/registry/default/example/StepperForm.vue create mode 100644 apps/www/src/lib/registry/default/example/StepperHorizental.vue create mode 100644 apps/www/src/lib/registry/default/example/StepperVertical.vue create mode 100644 apps/www/src/lib/registry/new-york/example/StepperForm.vue create mode 100644 apps/www/src/lib/registry/new-york/example/StepperHorizental.vue create mode 100644 apps/www/src/lib/registry/new-york/example/StepperVertical.vue diff --git a/apps/www/__registry__/index.ts b/apps/www/__registry__/index.ts index 41a34aa4..2cf972ad 100644 --- a/apps/www/__registry__/index.ts +++ b/apps/www/__registry__/index.ts @@ -997,6 +997,27 @@ export const Index = { component: () => import("../src/lib/registry/default/example/StepperDemo.vue").then((m) => m.default), files: ["../src/lib/registry/default/example/StepperDemo.vue"], }, + "StepperForm": { + name: "StepperForm", + type: "components:example", + registryDependencies: ["stepper","form","select","input","button","toast"], + component: () => import("../src/lib/registry/default/example/StepperForm.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/StepperForm.vue"], + }, + "StepperHorizental": { + name: "StepperHorizental", + type: "components:example", + registryDependencies: ["stepper","button"], + component: () => import("../src/lib/registry/default/example/StepperHorizental.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/StepperHorizental.vue"], + }, + "StepperVertical": { + name: "StepperVertical", + type: "components:example", + registryDependencies: ["stepper","button"], + component: () => import("../src/lib/registry/default/example/StepperVertical.vue").then((m) => m.default), + files: ["../src/lib/registry/default/example/StepperVertical.vue"], + }, "SwitchDemo": { name: "SwitchDemo", type: "components:example", @@ -2447,6 +2468,27 @@ export const Index = { component: () => import("../src/lib/registry/new-york/example/StepperDemo.vue").then((m) => m.default), files: ["../src/lib/registry/new-york/example/StepperDemo.vue"], }, + "StepperForm": { + name: "StepperForm", + type: "components:example", + registryDependencies: ["stepper","form","select","input","button","toast"], + component: () => import("../src/lib/registry/new-york/example/StepperForm.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/StepperForm.vue"], + }, + "StepperHorizental": { + name: "StepperHorizental", + type: "components:example", + registryDependencies: ["stepper","button"], + component: () => import("../src/lib/registry/new-york/example/StepperHorizental.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/StepperHorizental.vue"], + }, + "StepperVertical": { + name: "StepperVertical", + type: "components:example", + registryDependencies: ["stepper","button"], + component: () => import("../src/lib/registry/new-york/example/StepperVertical.vue").then((m) => m.default), + files: ["../src/lib/registry/new-york/example/StepperVertical.vue"], + }, "SwitchDemo": { name: "SwitchDemo", type: "components:example", diff --git a/apps/www/src/content/docs/components/stepper.md b/apps/www/src/content/docs/components/stepper.md index e0c75a8b..af94d38f 100644 --- a/apps/www/src/content/docs/components/stepper.md +++ b/apps/www/src/content/docs/components/stepper.md @@ -30,7 +30,7 @@ import { ``` + +## Examples + +### Horizental + + + +### Vertical + + + +### Form + + diff --git a/apps/www/src/lib/registry/default/example/StepperDemo.vue b/apps/www/src/lib/registry/default/example/StepperDemo.vue index fcfb2116..cdb2bb90 100644 --- a/apps/www/src/lib/registry/default/example/StepperDemo.vue +++ b/apps/www/src/lib/registry/default/example/StepperDemo.vue @@ -49,6 +49,7 @@ const steps = [{ diff --git a/apps/www/src/lib/registry/default/example/StepperForm.vue b/apps/www/src/lib/registry/default/example/StepperForm.vue new file mode 100644 index 00000000..d20a63e7 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/StepperForm.vue @@ -0,0 +1,238 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/StepperHorizental.vue b/apps/www/src/lib/registry/default/example/StepperHorizental.vue new file mode 100644 index 00000000..e450a6be --- /dev/null +++ b/apps/www/src/lib/registry/default/example/StepperHorizental.vue @@ -0,0 +1,69 @@ + + + diff --git a/apps/www/src/lib/registry/default/example/StepperVertical.vue b/apps/www/src/lib/registry/default/example/StepperVertical.vue new file mode 100644 index 00000000..eb055cf3 --- /dev/null +++ b/apps/www/src/lib/registry/default/example/StepperVertical.vue @@ -0,0 +1,71 @@ + + + diff --git a/apps/www/src/lib/registry/default/ui/stepper/Stepper.vue b/apps/www/src/lib/registry/default/ui/stepper/Stepper.vue index 6287623a..2b578c41 100644 --- a/apps/www/src/lib/registry/default/ui/stepper/Stepper.vue +++ b/apps/www/src/lib/registry/default/ui/stepper/Stepper.vue @@ -19,12 +19,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/apps/www/src/lib/registry/default/ui/stepper/StepperDescription.vue b/apps/www/src/lib/registry/default/ui/stepper/StepperDescription.vue index af9133eb..999ba1f5 100644 --- a/apps/www/src/lib/registry/default/ui/stepper/StepperDescription.vue +++ b/apps/www/src/lib/registry/default/ui/stepper/StepperDescription.vue @@ -17,7 +17,7 @@ const forwarded = useForwardProps(delegatedProps) diff --git a/apps/www/src/lib/registry/default/ui/stepper/StepperItem.vue b/apps/www/src/lib/registry/default/ui/stepper/StepperItem.vue index aebdb294..2c0fbee0 100644 --- a/apps/www/src/lib/registry/default/ui/stepper/StepperItem.vue +++ b/apps/www/src/lib/registry/default/ui/stepper/StepperItem.vue @@ -18,9 +18,10 @@ const forwarded = useForwardProps(delegatedProps) diff --git a/apps/www/src/lib/registry/default/ui/stepper/StepperSeparator.vue b/apps/www/src/lib/registry/default/ui/stepper/StepperSeparator.vue index 6246b026..879f7c70 100644 --- a/apps/www/src/lib/registry/default/ui/stepper/StepperSeparator.vue +++ b/apps/www/src/lib/registry/default/ui/stepper/StepperSeparator.vue @@ -20,7 +20,7 @@ const forwarded = useForwardProps(delegatedProps) diff --git a/apps/www/src/lib/registry/new-york/example/StepperForm.vue b/apps/www/src/lib/registry/new-york/example/StepperForm.vue new file mode 100644 index 00000000..30f63b74 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/StepperForm.vue @@ -0,0 +1,238 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/StepperHorizental.vue b/apps/www/src/lib/registry/new-york/example/StepperHorizental.vue new file mode 100644 index 00000000..58019036 --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/StepperHorizental.vue @@ -0,0 +1,69 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/example/StepperVertical.vue b/apps/www/src/lib/registry/new-york/example/StepperVertical.vue new file mode 100644 index 00000000..b95935de --- /dev/null +++ b/apps/www/src/lib/registry/new-york/example/StepperVertical.vue @@ -0,0 +1,71 @@ + + + diff --git a/apps/www/src/lib/registry/new-york/ui/stepper/Stepper.vue b/apps/www/src/lib/registry/new-york/ui/stepper/Stepper.vue index fcd120e6..2b578c41 100644 --- a/apps/www/src/lib/registry/new-york/ui/stepper/Stepper.vue +++ b/apps/www/src/lib/registry/new-york/ui/stepper/Stepper.vue @@ -19,12 +19,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits) diff --git a/apps/www/src/lib/registry/new-york/ui/stepper/StepperDescription.vue b/apps/www/src/lib/registry/new-york/ui/stepper/StepperDescription.vue index af9133eb..999ba1f5 100644 --- a/apps/www/src/lib/registry/new-york/ui/stepper/StepperDescription.vue +++ b/apps/www/src/lib/registry/new-york/ui/stepper/StepperDescription.vue @@ -17,7 +17,7 @@ const forwarded = useForwardProps(delegatedProps) diff --git a/apps/www/src/lib/registry/new-york/ui/stepper/StepperIndicator.vue b/apps/www/src/lib/registry/new-york/ui/stepper/StepperIndicator.vue index b60ed6ed..55733fa1 100644 --- a/apps/www/src/lib/registry/new-york/ui/stepper/StepperIndicator.vue +++ b/apps/www/src/lib/registry/new-york/ui/stepper/StepperIndicator.vue @@ -20,7 +20,7 @@ const forwarded = useForwardProps(delegatedProps) - + diff --git a/apps/www/src/lib/registry/new-york/ui/stepper/StepperSeparator.vue b/apps/www/src/lib/registry/new-york/ui/stepper/StepperSeparator.vue index 8391ceae..879f7c70 100644 --- a/apps/www/src/lib/registry/new-york/ui/stepper/StepperSeparator.vue +++ b/apps/www/src/lib/registry/new-york/ui/stepper/StepperSeparator.vue @@ -20,11 +20,11 @@ const forwarded = useForwardProps(delegatedProps) diff --git a/apps/www/src/public/registry/styles/default/stepper.json b/apps/www/src/public/registry/styles/default/stepper.json index 890847a9..d69bb432 100644 --- a/apps/www/src/public/registry/styles/default/stepper.json +++ b/apps/www/src/public/registry/styles/default/stepper.json @@ -7,23 +7,23 @@ "files": [ { "name": "Stepper.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperDescription.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperIndicator.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperSeparator.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperTitle.vue", diff --git a/apps/www/src/public/registry/styles/new-york/stepper.json b/apps/www/src/public/registry/styles/new-york/stepper.json index 36468484..4924703d 100644 --- a/apps/www/src/public/registry/styles/new-york/stepper.json +++ b/apps/www/src/public/registry/styles/new-york/stepper.json @@ -7,23 +7,23 @@ "files": [ { "name": "Stepper.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperDescription.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperIndicator.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperItem.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperSeparator.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "StepperTitle.vue",