@equal-experts/kuat-react 0.14.0-beta.2 → 0.15.0-beta.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.
Files changed (23) hide show
  1. package/agent-docs/AGENTS.md +1 -1
  2. package/agent-docs/README.md +1 -1
  3. package/agent-docs/external/kuat-agent-rules/reference/accessibility/accessibility.md +27 -1
  4. package/agent-docs/external/kuat-agent-rules/reference/design-language/colour-usage.md +107 -0
  5. package/agent-docs/external/kuat-agent-rules/reference/design-language/colours.md +86 -11
  6. package/agent-docs/external/kuat-agent-rules/reference/design-language/tokens/colors.tokens.json +193 -5
  7. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/patterns/README.md +6 -0
  8. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-marketing/website.md +14 -0
  9. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/README.md +1 -0
  10. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/accessibility.md +0 -29
  11. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/colour-modes.md +58 -0
  12. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-decision-tree.md +3 -32
  13. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-registry.md +1 -1
  14. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/content/product-content.md +0 -26
  15. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/README.md +14 -5
  16. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{forms.md → complete-a-form.md} +43 -53
  17. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{dashboards.md → dashboard.md} +42 -51
  18. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/documentation.md +41 -51
  19. package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/patterns/{authentication.md → sign-in.md} +42 -52
  20. package/agent-docs/manifest.json +3 -3
  21. package/agent-docs/rules/LOADING-consumer.md +1 -1
  22. package/dist/style.css +1 -1
  23. package/package.json +1 -1
@@ -1,42 +1,38 @@
1
- # Authentication Scenarios
1
+ # Help users to sign in
2
2
 
3
- Patterns for login, registration, password flows, and account verification.
3
+ **User goal:** Get into the product quickly and securely, and recover access without friction when a
4
+ password is forgotten.
4
5
 
5
- ---
6
+ > **Pattern:** *Help users to…* · single-medium (web-product) — concept and implementation together.
7
+ > Covers login, registration, password reset, and MFA / code entry.
6
8
 
7
- ## Principles
8
-
9
- ### User Goals
9
+ ## Context
10
10
 
11
- - **Get in quickly** - Authentication is a barrier to the actual task
12
- - **Feel secure** - Trust that credentials are protected
13
- - **Recover easily** - Forgot password shouldn't be frustrating
11
+ Authentication is a barrier to the user's real task. Users want to get in quickly, trust that their
12
+ credentials are protected, and recover easily when something goes wrong. It is the first impression of
13
+ the product's competence, so friction and unclear errors here cost disproportionately.
14
14
 
15
- ### UX Principles
15
+ ## Principles
16
16
 
17
- | Principle | Implementation |
17
+ | Principle | What it means |
18
18
  |-----------|----------------|
19
19
  | Minimise friction | Only ask for essential information |
20
20
  | Clear feedback | Immediate, helpful error messages |
21
21
  | Maintain trust | Security indicators, clear privacy info |
22
22
  | Support recovery | Easy password reset, account recovery |
23
23
 
24
- ### Success Metrics
24
+ Success shows up as: time to complete login/registration, password-reset completion rate, error and
25
+ recovery rates, and abandonment rate.
25
26
 
26
- - Time to complete login/registration
27
- - Password reset completion rate
28
- - Error rate and recovery success
29
- - Abandonment rate
27
+ ## Solution in web-product
30
28
 
31
- ---
32
-
33
- ## Layout
29
+ ### Layout
34
30
 
35
31
  **Base Layout:** Single Column
36
32
 
37
33
  Authentication pages should minimise distraction and focus users on the task.
38
34
 
39
- ### Page Structure
35
+ #### Page Structure
40
36
 
41
37
  ```
42
38
  ┌─────────────────────────────────────────┐
@@ -59,7 +55,7 @@ Authentication pages should minimise distraction and focus users on the task.
59
55
  └─────────────────────────────────────────┘
60
56
  ```
61
57
 
62
- ### Specifications
58
+ #### Specifications
63
59
 
64
60
  | Element | Value |
65
61
  |---------|-------|
@@ -71,23 +67,21 @@ Authentication pages should minimise distraction and focus users on the task.
71
67
  | Minimum viewport height | 100vh |
72
68
  | Logo placement | Centered above card, or inside card header |
73
69
 
74
- ### Header
70
+ #### Header
75
71
 
76
72
  - **Minimal navigation** - Logo only, no full navigation
77
73
  - Logo links to marketing site or app home
78
74
  - No distracting elements
79
75
 
80
- ### Footer
76
+ #### Footer
81
77
 
82
78
  - Minimal: legal links only (Privacy Policy, Terms)
83
79
  - Copyright notice optional
84
80
  - No marketing content
85
81
 
86
- ---
87
-
88
- ## Design
82
+ ### Design
89
83
 
90
- ### Color Tokens
84
+ #### Color Tokens
91
85
 
92
86
  | Element | Token |
93
87
  |---------|-------|
@@ -98,7 +92,7 @@ Authentication pages should minimise distraction and focus users on the task.
98
92
  | Error text | `text-destructive` |
99
93
  | Link text | `text-primary` |
100
94
 
101
- ### Typography
95
+ #### Typography
102
96
 
103
97
  | Element | Style |
104
98
  |---------|-------|
@@ -109,7 +103,7 @@ Authentication pages should minimise distraction and focus users on the task.
109
103
  | Error messages | `text-sm text-destructive` |
110
104
  | Links | `text-sm text-primary underline` |
111
105
 
112
- ### Spacing
106
+ #### Spacing
113
107
 
114
108
  | Element | Spacing |
115
109
  |---------|---------|
@@ -119,11 +113,9 @@ Authentication pages should minimise distraction and focus users on the task.
119
113
  | Form to button | 24px |
120
114
  | Button to secondary link | 16px |
121
115
 
122
- ---
116
+ ### Content
123
117
 
124
- ## Content
125
-
126
- ### Login Page
118
+ #### Login Page
127
119
 
128
120
  **Required Elements:**
129
121
 
@@ -146,7 +138,7 @@ Authentication pages should minimise distraction and focus users on the task.
146
138
  | Forgot link | "Forgot your password?" |
147
139
  | Register link | "Don't have an account? Sign up" |
148
140
 
149
- ### Registration Page
141
+ #### Registration Page
150
142
 
151
143
  **Required Elements:**
152
144
 
@@ -166,7 +158,7 @@ Authentication pages should minimise distraction and focus users on the task.
166
158
  - Unmet: `text-muted-foreground`
167
159
  - Met: `text-green-600` with checkmark
168
160
 
169
- ### Password Reset Flow
161
+ #### Password Reset Flow
170
162
 
171
163
  **Step 1: Request Reset**
172
164
 
@@ -181,16 +173,14 @@ Authentication pages should minimise distraction and focus users on the task.
181
173
  - Password requirements visible
182
174
  - "Reset password" button
183
175
 
184
- ### MFA / Code Entry
176
+ #### MFA / Code Entry
185
177
 
186
178
  - 6-digit code input (individual boxes or single field)
187
179
  - "Resend code" link with countdown timer
188
180
  - "Use different method" secondary action
189
181
  - Clear instructions on where code was sent
190
182
 
191
- ---
192
-
193
- ## Accessibility
183
+ ### Accessibility
194
184
 
195
185
  **Base requirements:** See [accessibility foundations](../../../accessibility/accessibility.md) and [web accessibility](../accessibility.md)
196
186
 
@@ -205,7 +195,7 @@ Authentication pages should minimise distraction and focus users on the task.
205
195
  | Password toggle | Toggle button is keyboard accessible |
206
196
  | Error announcement | Screen reader announces errors on submit |
207
197
 
208
- ### Form Validation
198
+ #### Form Validation
209
199
 
210
200
  Follow the standard validation pattern:
211
201
 
@@ -215,11 +205,9 @@ Follow the standard validation pattern:
215
205
  - **Error summary** - Show summary at top with links to fields
216
206
  - **Focus first error** - Move focus to first invalid field
217
207
 
218
- ---
219
-
220
- ## Implementation
208
+ ### Implementation
221
209
 
222
- ### Button Placement
210
+ #### Button Placement
223
211
 
224
212
  **Component guide:** `shadcn:button` — the `components/button.md` guide lives in the consumer package or overlay (see [component-registry.md](../component-registry.md)).
225
213
 
@@ -229,7 +217,7 @@ Follow the standard validation pattern:
229
217
  | Secondary link | Below button, centered | Text link |
230
218
  | Forgot password | Below password field, right | Text link |
231
219
 
232
- ### Error States
220
+ #### Error States
233
221
 
234
222
  | Error Type | Display Location |
235
223
  |------------|-----------------|
@@ -238,7 +226,7 @@ Follow the standard validation pattern:
238
226
  | Rate limiting | Alert above form with wait time |
239
227
  | Network error | Alert above form with retry option |
240
228
 
241
- ### Security Considerations
229
+ #### Security Considerations
242
230
 
243
231
  | Requirement | Implementation |
244
232
  |-------------|----------------|
@@ -247,7 +235,7 @@ Follow the standard validation pattern:
247
235
  | Password visibility | Toggle with clear state indication |
248
236
  | Session timeout | Warn before logging out |
249
237
 
250
- ### Responsive Behavior
238
+ #### Responsive Behavior
251
239
 
252
240
  | Breakpoint | Behavior |
253
241
  |------------|----------|
@@ -255,8 +243,6 @@ Follow the standard validation pattern:
255
243
  | Tablet | Centered card, 400px max |
256
244
  | Desktop | Centered card, 400px max |
257
245
 
258
- ---
259
-
260
246
  ## Best Practices
261
247
 
262
248
  ### Do's
@@ -294,10 +280,14 @@ Follow the standard validation pattern:
294
280
  | Email not verified | Offer to resend verification |
295
281
  | Session expired mid-flow | Preserve form data, prompt re-authentication |
296
282
 
297
- ---
283
+ ## Examples
284
+
285
+ The single centred auth card above (max 400px, logo centred, primary action full-width) is the canonical
286
+ mid-fidelity frame. The same frame serves login, registration, password reset, and MFA — the fields and
287
+ microcopy change, the layout does not.
298
288
 
299
- ## Related Documentation
289
+ ## Related
300
290
 
301
291
  - [Product Design](../design.md) - Layout patterns
302
292
  - [Web Accessibility](../accessibility.md) - Form validation pattern
303
- - [Forms Pattern](./forms.md) - General form patterns
293
+ - [Help users to complete a form](./complete-a-form.md) - General form patterns
@@ -1,8 +1,8 @@
1
1
  {
2
- "packageVersion": "0.14.0-beta.2",
2
+ "packageVersion": "0.15.0-beta.0",
3
3
  "rules": {
4
- "snapshotRef": "9b0e773d809beedff9cd663ecddc2b6be0b69897",
5
- "snapshotDate": "2026-07-01T10:17:15.975Z",
4
+ "snapshotRef": "24ebd2dee5cc5153859fd56beb166826f4d98e3a",
5
+ "snapshotDate": "2026-07-06T10:02:11.557Z",
6
6
  "sourceRepo": "equalexperts/kuat-agent-docs",
7
7
  "loadingPath": "agent-docs/rules/LOADING-consumer.md"
8
8
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Package:** @equal-experts/kuat-core (and mirrored in kuat-react / kuat-vue agent-docs)
4
4
 
5
- **Snapshot:** 9b0e773d809b
5
+ **Snapshot:** 24ebd2dee5cc
6
6
 
7
7
  ## Default load (web product / marketing UI)
8
8