@alis-build/design-system 0.50.1 → 0.51.0
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/alisx.css +29 -0
- package/classes.json +11 -0
- package/components/AppCodeField.md +63 -0
- package/components/AppSignIn.md +37 -4
- package/components/README.md +1 -0
- package/package.json +1 -1
- package/rules/quick-start.md +1 -0
- package/words.json +11 -0
package/alisx.css
CHANGED
|
@@ -687,6 +687,27 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
687
687
|
.app-field.is-disabled .app-field__box{border-color:var(--field-edge)}
|
|
688
688
|
.app-form{display:flex;flex-direction:column;gap:var(--space-24);max-width:var(--measure-prose)}
|
|
689
689
|
|
|
690
|
+
/* ── Code field · one input for a code from an email or a device, its characters drawn as cells ── */
|
|
691
|
+
.app-code-field{display:flex;flex-direction:column;align-items:center;gap:var(--space-8);min-width:0;color:var(--on-surface)}
|
|
692
|
+
.app-code-field__box{position:relative;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-8) var(--space-16)}
|
|
693
|
+
.app-code-field__group{display:flex;gap:var(--space-8)}
|
|
694
|
+
.app-code-field__cell{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:48px;border:1px solid var(--field-edge);border-radius:var(--radius-sm);background:var(--surface);color:var(--on-surface);font-family:var(--font-mono);font-size:20px;line-height:28px}
|
|
695
|
+
.app-code-field__box:hover .app-code-field__cell{border-color:var(--field-edge-hover)}
|
|
696
|
+
.app-code-field__cell.is-active{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
|
|
697
|
+
.app-code-field__cell.is-active:empty::after{content:"";width:2px;height:24px;border-radius:1px;background:var(--on-surface)}
|
|
698
|
+
@media (prefers-reduced-motion:no-preference){.app-code-field__cell.is-active:empty::after{animation:app-dot var(--loop-blink)}}
|
|
699
|
+
.app-code-field.is-error .app-code-field__cell{border-color:var(--error);box-shadow:inset 0 0 0 1px var(--error)}
|
|
700
|
+
.app-code-field__support{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-4);margin:0;text-align:center;color:var(--on-surface-variant)}
|
|
701
|
+
.app-code-field__support a{color:var(--primary);text-decoration:underline;text-underline-offset:.15em}
|
|
702
|
+
.app-code-field.is-error .app-code-field__support{color:var(--error)}
|
|
703
|
+
/* Drawn: the input lies unseen over the cells and takes every key, paste and autofill */
|
|
704
|
+
.app-code-field.is-drawn .app-code-field__input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;font-size:16px;caret-color:transparent;cursor:text}
|
|
705
|
+
/* Not drawn (no script yet, or none): one plain box */
|
|
706
|
+
.app-code-field:not(.is-drawn) .app-code-field__input{box-sizing:border-box;width:min(100%,240px);height:48px;padding:0 var(--space-16);border:1px solid var(--field-edge);border-radius:var(--radius-sm);background:var(--surface);color:var(--on-surface);font-family:var(--font-mono);font-size:20px;letter-spacing:.3em;text-align:center;outline:none}
|
|
707
|
+
.app-code-field:not(.is-drawn) .app-code-field__input:hover{border-color:var(--field-edge-hover)}
|
|
708
|
+
.app-code-field:not(.is-drawn) .app-code-field__input:focus{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
|
|
709
|
+
.app-code-field.is-error:not(.is-drawn) .app-code-field__input{border-color:var(--error);box-shadow:inset 0 0 0 1px var(--error)}
|
|
710
|
+
|
|
690
711
|
/* ── App shell · navigation pane, content, optional detail pane, all on the ground ── */
|
|
691
712
|
.app-shell{display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);min-height:100vh;background:var(--background);color:var(--on-surface);font-family:var(--font-sans)}
|
|
692
713
|
.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr) var(--detail-width)}
|
|
@@ -787,9 +808,17 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
787
808
|
.app-signin__lead>h1,.app-signin__lead>h2,.app-signin__lead>p{margin:0}
|
|
788
809
|
.app-signin__card--steps .app-signin__lead{align-items:flex-start;text-align:start}
|
|
789
810
|
.app-signin__logo{display:block;max-width:200px;max-height:40px;margin-bottom:var(--space-8)}
|
|
811
|
+
/* An invitation leads with who sent it: the name gives way, the verb never does */
|
|
812
|
+
.app-signin__inviter{display:flex;align-items:center;max-width:100%;margin:0 0 var(--space-8)}
|
|
813
|
+
.app-signin__inviter>.app-avatar{margin-right:var(--space-8)}
|
|
814
|
+
.app-signin__inviter-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
|
|
815
|
+
.app-signin__inviter-verb{flex:none;white-space:pre}
|
|
790
816
|
/* With nothing to fill in, the empty-state block sits at its own height so the foot stays under it */
|
|
791
817
|
.app-signin>.app-empty{flex:none;min-height:0;padding:0}
|
|
792
818
|
.app-signin__action{width:100%}
|
|
819
|
+
/* Says what Resend code did; until then it holds no room but stays a live region */
|
|
820
|
+
.app-signin__status{margin:0;text-align:center;color:var(--on-surface-variant)}
|
|
821
|
+
.app-signin__status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
|
|
793
822
|
.app-signin__foot{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-4) var(--space-8);margin:0;color:var(--on-surface-variant)}
|
|
794
823
|
.app-signin__foot a{color:inherit;text-decoration:none}
|
|
795
824
|
.app-signin__foot a:hover,.app-signin__foot a:focus-visible{text-decoration:underline;text-underline-offset:2px}
|
package/classes.json
CHANGED
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
"app-chip__close",
|
|
99
99
|
"app-code",
|
|
100
100
|
"app-code--command",
|
|
101
|
+
"app-code-field",
|
|
102
|
+
"app-code-field__box",
|
|
103
|
+
"app-code-field__cell",
|
|
104
|
+
"app-code-field__group",
|
|
105
|
+
"app-code-field__input",
|
|
106
|
+
"app-code-field__support",
|
|
101
107
|
"app-code__body",
|
|
102
108
|
"app-code__caret",
|
|
103
109
|
"app-code__foot",
|
|
@@ -292,8 +298,12 @@
|
|
|
292
298
|
"app-signin__card",
|
|
293
299
|
"app-signin__card--steps",
|
|
294
300
|
"app-signin__foot",
|
|
301
|
+
"app-signin__inviter",
|
|
302
|
+
"app-signin__inviter-name",
|
|
303
|
+
"app-signin__inviter-verb",
|
|
295
304
|
"app-signin__lead",
|
|
296
305
|
"app-signin__logo",
|
|
306
|
+
"app-signin__status",
|
|
297
307
|
"app-skel",
|
|
298
308
|
"app-skel__bar",
|
|
299
309
|
"app-skel__bar--block",
|
|
@@ -408,6 +418,7 @@
|
|
|
408
418
|
"is-disabled",
|
|
409
419
|
"is-done",
|
|
410
420
|
"is-dragged",
|
|
421
|
+
"is-drawn",
|
|
411
422
|
"is-empty",
|
|
412
423
|
"is-error",
|
|
413
424
|
"is-failed",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# AppCodeField
|
|
2
|
+
|
|
3
|
+
A code a person types to prove who they are: one emailed to them, or one their device shows. One input, its characters drawn as cells.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
- **Only for a code**: sent by email to sign in, open a shared page or join an interview, or shown on a device being signed in. Never for a number with meaning of its own (an amount, a phone number, a PIN a person chose): that is an [AppTextField](AppTextField.md).
|
|
8
|
+
- **One real input, the cells drawn over it.** The input lies unseen over the cells and takes every key, paste, the phone's autofill from Mail or Messages, a password manager and undo; a screen reader hears one field. Never one input per character. Without the script the input is one plain box, and the form still works.
|
|
9
|
+
- **A cell per character, in two groups**: six as 3 + 3, eight as 4 + 4. Each cell is 40 × 48 on every pointer, `radius-sm`, in `font-mono` at 20, with the field's edge: `field-edge`, `field-edge-hover` under the pointer, 2px `primary` on the cell the next character goes in. Cells sit 8 apart, groups 16; on a phone eight cells wrap to two rows of four.
|
|
10
|
+
- **Labelled "Code", centred above**; the supporting line centred below. On the email-code step of [AppSignIn](AppSignIn.md) the supporting line is the way back a step: "Wrong address? Use a different email", the last three words a link.
|
|
11
|
+
- **It never sends itself.** The last character lands and nothing moves; Enter or the card's filled action sends it, as on every form ([page.md](../rules/page.md) § Forms). Never a disabled action while cells are empty.
|
|
12
|
+
- **Errors at the field when they send**, in `error` with the `error` icon, replacing the supporting line; every cell takes the error edge. Say what to do: "Enter all 6 digits.", "That code doesn't match. Check the email and try again.", "That code has expired. Resend code to get a new one." A wrong code stays in the cells, selected, so typing replaces it.
|
|
13
|
+
- **Digits or letters, never both**: an emailed code is digits (`inputmode="numeric"`, `autocomplete="one-time-code"`); a device code is letters, shown as capitals, with autocomplete off.
|
|
14
|
+
- **The words**: Code, Send code, Resend code, Use a different email ([words.json](../words.json)). Never OTP, PIN, passcode or verification code.
|
|
15
|
+
|
|
16
|
+
## Markup
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<!-- As served, and as it stays without a script: one plain box -->
|
|
20
|
+
<div class="app-code-field">
|
|
21
|
+
<label for="code" class="text-label">Code</label>
|
|
22
|
+
<div class="app-code-field__box">
|
|
23
|
+
<input id="code" class="app-code-field__input" name="code" maxlength="6" inputmode="numeric" pattern="[0-9]*" autocomplete="one-time-code" aria-describedby="code-s">
|
|
24
|
+
</div>
|
|
25
|
+
<p id="code-s" class="app-code-field__support text-supporting">Wrong address? <a href="/signin">Use a different email</a></p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<!-- Drawn: the script adds is-drawn and the cells after the input; the next cell is is-active -->
|
|
29
|
+
<div class="app-code-field is-drawn">
|
|
30
|
+
<label for="code-d" class="text-label">Code</label>
|
|
31
|
+
<div class="app-code-field__box">
|
|
32
|
+
<input id="code-d" class="app-code-field__input" name="code" maxlength="6" inputmode="numeric" pattern="[0-9]*" autocomplete="one-time-code" value="4821" aria-describedby="code-d-s">
|
|
33
|
+
<div class="app-code-field__group" aria-hidden="true"><span class="app-code-field__cell">4</span><span class="app-code-field__cell">8</span><span class="app-code-field__cell">2</span></div>
|
|
34
|
+
<div class="app-code-field__group" aria-hidden="true"><span class="app-code-field__cell">1</span><span class="app-code-field__cell is-active"></span><span class="app-code-field__cell"></span></div>
|
|
35
|
+
</div>
|
|
36
|
+
<p id="code-d-s" class="app-code-field__support text-supporting">Wrong address? <a href="/signin">Use a different email</a></p>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<!-- Error, after they send -->
|
|
40
|
+
<div class="app-code-field is-drawn is-error">
|
|
41
|
+
<label for="code-e" class="text-label">Code</label>
|
|
42
|
+
<div class="app-code-field__box">
|
|
43
|
+
<input id="code-e" class="app-code-field__input" name="code" maxlength="6" inputmode="numeric" pattern="[0-9]*" autocomplete="one-time-code" value="482914" aria-invalid="true" aria-describedby="code-e-s">
|
|
44
|
+
<div class="app-code-field__group" aria-hidden="true"><span class="app-code-field__cell">4</span><span class="app-code-field__cell">8</span><span class="app-code-field__cell">2</span></div>
|
|
45
|
+
<div class="app-code-field__group" aria-hidden="true"><span class="app-code-field__cell">9</span><span class="app-code-field__cell">1</span><span class="app-code-field__cell">4</span></div>
|
|
46
|
+
</div>
|
|
47
|
+
<p id="code-e-s" class="app-code-field__support text-supporting"><span class="app-icon" aria-hidden="true">error</span>That code doesn't match. Check the email and try again.</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<!-- A device code: eight letters, as capitals -->
|
|
51
|
+
<input id="device" class="app-code-field__input" name="user_code" maxlength="8" inputmode="text" autocapitalize="characters" autocomplete="off" spellcheck="false">
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Behaviour you must supply
|
|
55
|
+
|
|
56
|
+
- **Draw the cells** once the script runs: add `is-drawn` to `.app-code-field` and two `.app-code-field__group`s of cells after the input, `aria-hidden="true"`, as many cells as `maxlength`.
|
|
57
|
+
- **On every input**, keep only the allowed characters (digits; or letters, upper-cased) up to `maxlength`, write each into its cell, and clear `is-error`. Paste and autofill arrive as one input event; nothing else is needed for them.
|
|
58
|
+
- **`is-active`** is on the cell the next character goes in (the last cell once full) while the input has focus, on none when it hasn't. The caret stays at the end: on focus and click, move the selection there. When the whole code is selected, every filled cell is `is-active`, and typing replaces it.
|
|
59
|
+
- **On send**: fewer characters than `maxlength`, or a code the server refuses, sets `is-error`, `aria-invalid="true"` and the error line, focuses the input and selects the code. Work in progress shows on the button pressed.
|
|
60
|
+
|
|
61
|
+
## Classes
|
|
62
|
+
|
|
63
|
+
`.app-code-field`, `.is-drawn`, `.is-error`, `.app-code-field__box`, `.app-code-field__input`, `.app-code-field__group`, `.app-code-field__cell`, `.is-active`, `.app-code-field__support`.
|
package/components/AppSignIn.md
CHANGED
|
@@ -7,13 +7,15 @@ Signing in, signing up and onboarding: one card on the plain ground.
|
|
|
7
7
|
- **Every screen before the product**: Alis Identity signing someone in to any app, AlisX's sign-up and its onboarding steps, an invitation being accepted. Not the home that greets you, which is an entry screen ([page.md](../rules/page.md) § Empty and entry screens), and not an empty state.
|
|
8
8
|
- **The plain ground, never the drafting field or a petrol band.** Alis Identity signs people in to other companies' apps, and there the app's logo is the only brand on the page ([branding.md](../rules/branding.md)). AlisX's own sign-up and onboarding take the same frame, so going from sign-in into onboarding never changes the ground.
|
|
9
9
|
- **One instrument card, 440 wide**: white, its edge, no shadow ([AppCard](AppCard.md)). On a phone it fills the width inside the gutter.
|
|
10
|
-
- **The lead, centred at the top of the card**: the logo of the app being signed in to, then the question in `text-page-title`, then one `text-body` line. For AlisX the logo is the Alis mark at 32 ([AlisMark](AlisMark.md)); a client's logo is at most 40 tall and 200 wide, keeps its aspect ratio, and falls back to its name in `text-object-title`. Never `text-welcome-title`: this is a card.
|
|
11
|
-
- **One question per card and one filled action**, the card's full width, last. A second way on ("Create an account", "
|
|
10
|
+
- **The lead, centred at the top of the card**: the logo of the app being signed in to, then the question in `text-page-title`, then one `text-body` line. **An invitation leads with who sent it** instead of a logo: their [AppAvatar](AppAvatar.md) at 36, in the logo's place, beside "Ruan Spies invited you" on one line in `text-body`, the name at 600. A long name ends in an ellipsis, with the whole name as its `title`; "invited you" never shortens. Then the title of what they were invited to. For AlisX the logo is the Alis mark at 32 ([AlisMark](AlisMark.md)); a client's logo is at most 40 tall and 200 wide, keeps its aspect ratio, and falls back to its name in `text-object-title`. Never `text-welcome-title`: this is a card.
|
|
11
|
+
- **One question per card and one filled action**, the card's full width, last. A second way on ("Create an account", "Resend code") is a text button, full width, under it; one at most. A way back a step ("Use a different email") is a link in the field's supporting line, never a second button. Signing in with a provider ("Continue with Google") is an outlined button, its words alone until the marks are listed ([known-gaps.md](../rules/known-gaps.md)).
|
|
12
12
|
- **Fields as on every form** ([page.md](../rules/page.md) § Forms): labelled above, errors at the field when they try to continue, the action never disabled. A form's groups inside the card are headed in `text-section-title` ([type.md](../rules/type.md)).
|
|
13
|
+
- **Signing in with a code from an email is two cards.** First the address: "Email address", a supporting line that says a code will be sent, and **Send code**. Then the code: "Check your email", one line naming the address and how long the code lasts ("A code was sent to sam@acme.com. It expires in 10 minutes."), an [AppCodeField](AppCodeField.md) whose supporting line is "Wrong address? Use a different email", the filled action named for where it goes ("Sign in", "Open the page", "Open the interview"), and **Resend code** as the second way on. Where telling a stranger whether an address was invited would leak it, the line says "If sam@acme.com was invited, a code is on its way." The code never sends itself.
|
|
14
|
+
- **Resend code** sends a new code without leaving the card and says so in the status line under it (`.app-signin__status`, a live region that takes no room while empty): "New code sent. The earlier one still works." Never a countdown in front of it; if the server's limit is reached, that line says when another can be sent.
|
|
13
15
|
- **Help · Privacy · Terms under the card**, in `text-meta` and `on-surface-variant`, centred: the links of whoever's app it is.
|
|
14
16
|
- **Onboarding in steps** ([page.md](../rules/page.md) § A form in steps): from the first stepped card, [AppStepper](AppStepper.md) leads the card and the logo goes, because the person has just seen it. A stepped card reads like any form in steps: the title and its line start-aligned, and the action row at the foot with Back leading and the filled action last, at its own width.
|
|
15
17
|
- **A screen with nothing to fill in** (an error, "You're signed in", a request sent) has no card: the logo over an [AppEmptyState](AppEmptyState.md) block, without the drafting field, with the foot under it. Its words are in [errors.md](../rules/errors.md).
|
|
16
|
-
- **The words**: an account, its Admins, free credits, the spend limit, Request to join ([words.json](../words.json)).
|
|
18
|
+
- **The words**: an account, its Admins, free credits, the spend limit, Request to join, a code, Send code, Resend code ([words.json](../words.json)).
|
|
17
19
|
|
|
18
20
|
## Markup
|
|
19
21
|
|
|
@@ -63,6 +65,37 @@ Signing in, signing up and onboarding: one card on the plain ground.
|
|
|
63
65
|
<nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
|
|
64
66
|
</main>
|
|
65
67
|
|
|
68
|
+
<!-- A code from an email: the second card -->
|
|
69
|
+
<main class="app-signin">
|
|
70
|
+
<form class="app-card app-card--instrument app-form app-signin__card" novalidate>
|
|
71
|
+
<div class="app-signin__lead">
|
|
72
|
+
<img class="app-signin__logo" src="…/acme.svg" alt="Acme">
|
|
73
|
+
<h1 class="text-page-title">Check your email</h1>
|
|
74
|
+
<p class="text-body">A code was sent to sam@acme.com. It expires in 10 minutes.</p>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="app-code-field">
|
|
77
|
+
<label for="signin-code" class="text-label">Code</label>
|
|
78
|
+
<div class="app-code-field__box">
|
|
79
|
+
<input id="signin-code" class="app-code-field__input" name="code" maxlength="6" inputmode="numeric" pattern="[0-9]*" autocomplete="one-time-code" aria-describedby="signin-code-s">
|
|
80
|
+
</div>
|
|
81
|
+
<p id="signin-code-s" class="app-code-field__support text-supporting">Wrong address? <a href="/signin">Use a different email</a></p>
|
|
82
|
+
</div>
|
|
83
|
+
<button type="submit" class="app-btn app-state app-target app-btn--filled app-signin__action">Sign in</button>
|
|
84
|
+
<button type="button" class="app-btn app-state app-target app-signin__action">Resend code</button>
|
|
85
|
+
<p class="app-signin__status text-supporting" role="status"></p><!-- after a resend: New code sent. The earlier one still works. -->
|
|
86
|
+
</form>
|
|
87
|
+
<nav class="app-signin__foot text-meta" aria-label="Help and legal"><!-- as above --></nav>
|
|
88
|
+
</main>
|
|
89
|
+
|
|
90
|
+
<!-- An invitation: who sent it, in the logo's place -->
|
|
91
|
+
<div class="app-signin__lead">
|
|
92
|
+
<p class="app-signin__inviter text-body">
|
|
93
|
+
<span class="app-avatar" aria-hidden="true">RS</span>
|
|
94
|
+
<span class="app-signin__inviter-name" title="Ruan Spies">Ruan Spies</span><span class="app-signin__inviter-verb"> invited you</span>
|
|
95
|
+
</p>
|
|
96
|
+
<h1 class="text-page-title">Skills discovery interview</h1>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
66
99
|
<!-- Nothing to fill in: no card -->
|
|
67
100
|
<main class="app-signin">
|
|
68
101
|
<div class="app-empty">
|
|
@@ -82,4 +115,4 @@ Signing in, signing up and onboarding: one card on the plain ground.
|
|
|
82
115
|
|
|
83
116
|
## Classes
|
|
84
117
|
|
|
85
|
-
`.app-signin`, `.app-signin__card`, `.app-signin__card--steps`, `.app-signin__lead`, `.app-signin__logo`, `.app-signin__action`, `.app-signin__foot`.
|
|
118
|
+
`.app-signin`, `.app-signin__card`, `.app-signin__card--steps`, `.app-signin__lead`, `.app-signin__logo`, `.app-signin__inviter`, `.app-signin__inviter-name`, `.app-signin__inviter-verb`, `.app-signin__action`, `.app-signin__status`, `.app-signin__foot`.
|
package/components/README.md
CHANGED
|
@@ -22,6 +22,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
22
22
|
| AppButton | Text in ink by default, outlined for a surface's lead, filled for the one action that commits | [AppButton.md](AppButton.md) |
|
|
23
23
|
| AppIconButton | A glyph that performs one action; or a toggle | [AppIconButton.md](AppIconButton.md) |
|
|
24
24
|
| AppTextField | A labelled input; the field set and the form | [AppTextField.md](AppTextField.md) |
|
|
25
|
+
| AppCodeField | A code from an email or a device: one input, its characters drawn as cells | [AppCodeField.md](AppCodeField.md) |
|
|
25
26
|
| AppSelect | One choice from a list, native select | [AppSelect.md](AppSelect.md) |
|
|
26
27
|
| AppCombobox | One or several from a long list: the select's box, with a search in its menu | [AppCombobox.md](AppCombobox.md) |
|
|
27
28
|
| AppSwitch | An on/off setting | [AppSwitch.md](AppSwitch.md) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/quick-start.md
CHANGED
|
@@ -56,6 +56,7 @@ AppShell
|
|
|
56
56
|
| A form | `.app-form` of fields, one filled action last (see § Forms) |
|
|
57
57
|
| A form in named steps | `AppStepper` at the top of the form's card; Back on the leading edge, one filled forward action ([page.md](page.md) § A form in steps) |
|
|
58
58
|
| Text | `AppTextField` (with `action` for one that collects several values, shown as input `AppChip`s below) |
|
|
59
|
+
| A code from an email or a device | `AppCodeField`: one input drawn as cells; it never sends itself |
|
|
59
60
|
| One choice from a list | `AppSelect`; past about ten options, or to choose several, `AppCombobox` |
|
|
60
61
|
| An on/off setting | `AppSwitch` |
|
|
61
62
|
| Several of a list, or something to agree to | `AppCheckbox`; one of a few short options is its radio ([page.md](page.md) § Which control) |
|
package/words.json
CHANGED
|
@@ -414,6 +414,14 @@
|
|
|
414
414
|
"avoid": ["codeblock (`alis docs codeblocks` is a topic name and stays)", "block (alone)"],
|
|
415
415
|
"code": "blocks/*"
|
|
416
416
|
},
|
|
417
|
+
{
|
|
418
|
+
"name": "code",
|
|
419
|
+
"plural": "codes",
|
|
420
|
+
"product": "all",
|
|
421
|
+
"means": "The short code a person types to prove who they are: one emailed to them to sign in, open a shared page or join an interview, or one a device shows while it is being signed in. The field is labelled Code (AppCodeField); its email says how long it lasts. Send code asks for one, Resend code sends another, and the earlier one still works.",
|
|
422
|
+
"retired": ["Email me a code", "Send a new code", "Email code", "Code from the email", "verification code"],
|
|
423
|
+
"avoid": ["OTP", "PIN", "passcode", "one-time password", "security code"]
|
|
424
|
+
},
|
|
417
425
|
{
|
|
418
426
|
"name": "Define, Build, Deploy",
|
|
419
427
|
"product": "build",
|
|
@@ -524,6 +532,9 @@
|
|
|
524
532
|
{ "name": "Request access", "means": "Asks whoever can grant it for a role here, with an optional note (rules/access.md). Afterwards the control reads \"Request sent\" until they decide; a refusal reads \"Declined by …\" with Request again." },
|
|
525
533
|
{ "name": "Request to join", "means": "Asks an account's Admins to let you in, from the account rows sign-up shows for your email's domain. Afterwards it reads \"Request sent\" until an Admin decides, as Request access does." },
|
|
526
534
|
{ "name": "Talk", "means": "Starts a live voice conversation from an empty composer (AppComposer § The trailing button): one word, never \"Talk instead\", \"Talk to Alis\" or \"Voice mode\" on the button. Dictate and Record are the mic's." },
|
|
535
|
+
{ "name": "Send code", "means": "Emails a code to the address just given: the first card of signing in with a code (AppSignIn). Never \"Email me a code\"." },
|
|
536
|
+
{ "name": "Resend code", "means": "Emails another code without leaving the card; the earlier one still works, and a status line says so. Never \"Send a new code\", and never behind a countdown." },
|
|
537
|
+
{ "name": "Use a different email", "means": "Goes back from the code to the address, as a link in the code field's supporting line: \"Wrong address? Use a different email\"." },
|
|
527
538
|
{ "name": "Ask Alis", "means": "Opens the docked composer from a page that isn't a conversation: the composer put away, or a selection quoted in its tray (AppComposer § Docked as a way in). Never \"Ask AI\", \"Chat\" or \"Open Alis\"." }
|
|
528
539
|
]
|
|
529
540
|
}
|