Skip to content

Commit af07def

Browse files
committed
feat: stepped form docs
1 parent 9db0856 commit af07def

5 files changed

Lines changed: 397 additions & 47 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@astrojs/ts-plugin": "^1.10.4",
2626
"@astrojs/vue": "^5.1.0",
2727
"@floating-ui/vue": "^1.1.6",
28-
"@formwerk/core": "https://pkg.pr.new/formwerkjs/formwerk/@formwerk/core@fc7d3b2",
28+
"@formwerk/core": "^0.11.0",
2929
"@iconify-json/vscode-icons": "^1.2.22",
3030
"@stackblitz/sdk": "^1.11.0",
3131
"@types/byte-size": "^8.1.2",

pnpm-lock.yaml

Lines changed: 15 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/MdxRepl.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const store = useStore({
139139
'@standard-schema/utils':
140140
'https://unpkg.com/@standard-schema/utils@0.3.0/dist/index.js',
141141
vue: `https://unpkg.com/vue@${version}/dist/vue.esm-browser.prod.js`,
142-
'@formwerk/core': `http://127.0.0.1:8080/dist/core.mjs`,
142+
'@formwerk/core': `https://unpkg.com/@formwerk/core@${fwVersion}/dist/core.mjs`,
143143
'@internationalized/date': `https://esm.sh/@internationalized/date`,
144144
zod: 'https://unpkg.com/@awaddev/zod@3.23.8-standard-schema/lib/index.mjs',
145145
'@vueuse/core': 'https://unpkg.com/@vueuse/core?module',

src/components/Repl/srcdoc.html

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
body {
2020
margin: 0;
2121
box-sizing: border-box;
22-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
23-
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
22+
font-family:
23+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
24+
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
2425
height: var(--height);
2526
width: 100%;
2627
background: linear-gradient(to right, rgb(16 185 129), rgb(5 150 105));
@@ -50,21 +51,31 @@
5051
0 8px 10px -6px rgb(0 0 0 / 0.1);
5152
}
5253

53-
button {
54-
cursor: pointer;
54+
button + button {
55+
margin-left: 0.5rem;
5556
}
5657

57-
button[type='submit'] {
58+
form > button {
59+
cursor: pointer;
5860
border-radius: 0.25rem;
59-
background-color: rgb(5, 150, 105);
61+
background-color: rgb(209 213 219);
6062
padding: 0.5rem 1rem;
6163
font-weight: 500;
62-
color: white;
64+
color: #000;
6365
border: none;
6466
margin-top: 1rem;
6567

6668
&:hover {
67-
background-color: rgb(6 95 70);
69+
background-color: rgb(156 163 175);
70+
}
71+
72+
&[type='submit'] {
73+
background-color: rgb(5, 150, 105);
74+
color: white;
75+
76+
&:hover {
77+
background-color: rgb(6 95 70);
78+
}
6879
}
6980
}
7081
</style>

0 commit comments

Comments
 (0)