@fusion.dev/helix-templates 0.228.0 → 0.229.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/angular/angular.json +1 -1
- package/templates/angular/src/app/landing.html +14 -14
- package/templates/angular/src/app/overview.html +5 -5
- package/templates/angular/src/app/signup-form.html +8 -8
- package/templates/angular/src/app/site-header.html +1 -1
- package/templates/angular/src/app.css +17 -3
- package/templates/react-nextjs/app/app.css +17 -3
- package/templates/react-nextjs/app/landing.tsx +14 -14
- package/templates/react-nextjs/app/overview.tsx +5 -5
- package/templates/react-nextjs/app/signup-form.tsx +8 -8
- package/templates/react-nextjs/app/site-header.tsx +1 -1
- package/templates/react-vite/src/app.css +17 -3
- package/templates/react-vite/src/landing.tsx +14 -14
- package/templates/react-vite/src/overview.tsx +5 -5
- package/templates/react-vite/src/signup-form.tsx +8 -8
- package/templates/react-vite/src/site-header.tsx +1 -1
- package/templates/solid-vite/src/app.css +17 -3
- package/templates/solid-vite/src/landing.tsx +14 -14
- package/templates/solid-vite/src/overview.tsx +5 -5
- package/templates/solid-vite/src/signup-form.tsx +8 -8
- package/templates/solid-vite/src/site-header.tsx +1 -1
- package/templates/svelte-vite/src/Landing.svelte +14 -14
- package/templates/svelte-vite/src/Overview.svelte +5 -5
- package/templates/svelte-vite/src/SignupForm.svelte +8 -8
- package/templates/svelte-vite/src/SiteHeader.svelte +1 -1
- package/templates/svelte-vite/src/app.css +17 -3
- package/templates/vue-vite/src/LandingPage.vue +14 -14
- package/templates/vue-vite/src/OverviewPage.vue +5 -5
- package/templates/vue-vite/src/SignupForm.vue +8 -8
- package/templates/vue-vite/src/SiteHeader.vue +1 -1
- package/templates/vue-vite/src/app.css +17 -3
|
@@ -57,9 +57,9 @@ const dismiss = (id: number) => {
|
|
|
57
57
|
<template>
|
|
58
58
|
<div class="stack">
|
|
59
59
|
<header class="hero">
|
|
60
|
-
<helix-text emphasis="muted"
|
|
61
|
-
<helix-text as="h1"
|
|
62
|
-
<helix-text as="p" class="lede" emphasis="muted"
|
|
60
|
+
<helix-text emphasis="muted" scale="label">Form</helix-text>
|
|
61
|
+
<helix-text as="h1" scale="heading">Join the roster</helix-text>
|
|
62
|
+
<helix-text as="p" class="lede" emphasis="muted" scale="body">
|
|
63
63
|
Five controls, and a <helix-code><form></helix-code> reads every one of them the way
|
|
64
64
|
it reads an <helix-code>input</helix-code>.
|
|
65
65
|
</helix-text>
|
|
@@ -112,13 +112,13 @@ const dismiss = (id: number) => {
|
|
|
112
112
|
The form posts nothing. Submit it, and a message shows exactly what a server would
|
|
113
113
|
receive.
|
|
114
114
|
</helix-callout>
|
|
115
|
-
<helix-text as="h2"
|
|
116
|
-
<helix-text as="p" emphasis="muted"
|
|
115
|
+
<helix-text as="h2" scale="title">What the form shows</helix-text>
|
|
116
|
+
<helix-text as="p" emphasis="muted" scale="body">
|
|
117
117
|
Every control is a form-associated custom element, so the submit reads them all with
|
|
118
118
|
<helix-code>new FormData(form)</helix-code>. Reset the form and they all go back,
|
|
119
119
|
the way an <helix-code>input</helix-code> does.
|
|
120
120
|
</helix-text>
|
|
121
|
-
<helix-text as="p" emphasis="muted"
|
|
121
|
+
<helix-text as="p" emphasis="muted" scale="body">
|
|
122
122
|
Leave the email wrong and the browser shows its own message, in your language. Handle is
|
|
123
123
|
the controlled field: the page refuses each change and writes back a cleaned value.
|
|
124
124
|
</helix-text>
|
|
@@ -140,8 +140,8 @@ const dismiss = (id: number) => {
|
|
|
140
140
|
@helix-dismiss="dismiss(message.id)"
|
|
141
141
|
>
|
|
142
142
|
<helix-flex direction="column" gap="2xs">
|
|
143
|
-
<helix-text
|
|
144
|
-
<helix-text
|
|
143
|
+
<helix-text scale="body-strong">Read by the form</helix-text>
|
|
144
|
+
<helix-text scale="code">{{ message.text }}</helix-text>
|
|
145
145
|
</helix-flex>
|
|
146
146
|
</helix-toast-item>
|
|
147
147
|
</helix-toast>
|
|
@@ -43,7 +43,7 @@ const cycle = () => {
|
|
|
43
43
|
destination in the bar saying the same thing. It names the library the
|
|
44
44
|
starter is built on, and it is the place for your own name or logo. -->
|
|
45
45
|
<a class="wordmark" data-link="quiet" href="#/" slot="start">
|
|
46
|
-
<helix-text
|
|
46
|
+
<helix-text scale="body-strong">Helix</helix-text>
|
|
47
47
|
</a>
|
|
48
48
|
|
|
49
49
|
<!-- The links are yours. Navigation owns the marker that travels between
|
|
@@ -43,10 +43,15 @@
|
|
|
43
43
|
*
|
|
44
44
|
* `flex-grow` gives the spare height to the page, and the footer keeps its own.
|
|
45
45
|
*/
|
|
46
|
+
:root {
|
|
47
|
+
--page-measure: 56rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
.page {
|
|
47
51
|
flex-grow: 1;
|
|
52
|
+
inline-size: 100%;
|
|
48
53
|
margin-inline: auto;
|
|
49
|
-
max-inline-size:
|
|
54
|
+
max-inline-size: var(--page-measure);
|
|
50
55
|
padding-block: var(--helix-space-2xl) var(--helix-space-3xl);
|
|
51
56
|
padding-inline: var(--helix-space-lg);
|
|
52
57
|
}
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
*/
|
|
61
66
|
helix-app-header {
|
|
62
67
|
--app-header-border-color: var(--helix-color-border);
|
|
63
|
-
--app-header-max-inline-size:
|
|
68
|
+
--app-header-max-inline-size: var(--page-measure);
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
/* The wordmark, a word for now, in the foreground: a quiet link is muted until
|
|
@@ -296,7 +301,7 @@ helix-app-header {
|
|
|
296
301
|
gap: var(--helix-space-md);
|
|
297
302
|
justify-content: space-between;
|
|
298
303
|
margin-inline: auto;
|
|
299
|
-
max-inline-size:
|
|
304
|
+
max-inline-size: var(--page-measure);
|
|
300
305
|
padding-block: var(--helix-space-lg);
|
|
301
306
|
padding-inline: var(--helix-space-lg);
|
|
302
307
|
}
|
|
@@ -326,6 +331,10 @@ helix-app-header {
|
|
|
326
331
|
.footer-row {
|
|
327
332
|
padding-inline: var(--helix-space-md);
|
|
328
333
|
}
|
|
334
|
+
|
|
335
|
+
helix-app-header {
|
|
336
|
+
--app-header-padding: var(--helix-space-md);
|
|
337
|
+
}
|
|
329
338
|
}
|
|
330
339
|
|
|
331
340
|
/*
|
|
@@ -354,3 +363,8 @@ helix-data-table::part(select-selected) {
|
|
|
354
363
|
helix-data-table::part(cell-selected) {
|
|
355
364
|
font-weight: var(--helix-weight-semibold);
|
|
356
365
|
}
|
|
366
|
+
|
|
367
|
+
/* A path in a sentence stays whole. */
|
|
368
|
+
helix-code {
|
|
369
|
+
white-space: nowrap;
|
|
370
|
+
}
|