@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,19 +1,19 @@
1
- # Dashboard Scenarios
1
+ # Dashboard
2
2
 
3
- Patterns for data dashboards, analytics views, metrics displays, and reporting interfaces.
3
+ **User goal:** See the key metrics at a glance, understand trends over time, and move from data to a
4
+ confident decision — drilling into detail only when needed.
4
5
 
5
- ---
6
+ > **Pattern:** *Pages* · single-medium (web-product) — concept and implementation together.
7
+ > Covers analytics views, metrics displays, data tables, and reporting interfaces.
6
8
 
7
- ## Principles
8
-
9
- ### User Goals
9
+ ## Context
10
10
 
11
- - **Get insights quickly** - Key metrics visible at a glance
12
- - **Understand trends** - Patterns and changes over time
13
- - **Take action** - Clear paths from data to decisions
14
- - **Explore deeper** - Drill down into details when needed
11
+ A dashboard exists to turn data into decisions. Users arrive wanting insights quickly, with the most
12
+ important metrics visible at a glance, patterns and changes over time made legible, and clear paths from
13
+ what the numbers say to what to do next — while keeping the option to explore deeper when a question
14
+ demands it.
15
15
 
16
- ### UX Principles
16
+ ## Principles
17
17
 
18
18
  | Principle | Implementation |
19
19
  |-----------|----------------|
@@ -22,22 +22,18 @@ Patterns for data dashboards, analytics views, metrics displays, and reporting i
22
22
  | Consistent data | Same time periods, units, formats |
23
23
  | Actionable context | Explain what numbers mean |
24
24
 
25
- ### Success Metrics
25
+ Success shows up as: time to find key information, decision confidence, filter usage patterns, and
26
+ drill-down completion rates.
26
27
 
27
- - Time to find key information
28
- - Decision confidence
29
- - Filter usage patterns
30
- - Drill-down completion rates
28
+ ## Solution in web-product
31
29
 
32
- ---
33
-
34
- ## Layout
30
+ ### Layout
35
31
 
36
32
  **Base Layout:** Sidebar Navigation
37
33
 
38
34
  Dashboards benefit from persistent navigation and maximum content width.
39
35
 
40
- ### Metrics Dashboard Structure
36
+ #### Metrics Dashboard Structure
41
37
 
42
38
  ```
43
39
  ┌──────┬──────────────────────────────────┐
@@ -57,7 +53,7 @@ Dashboards benefit from persistent navigation and maximum content width.
57
53
  └──────┴──────────────────────────────────┘
58
54
  ```
59
55
 
60
- ### Data Table Dashboard Structure
56
+ #### Data Table Dashboard Structure
61
57
 
62
58
  ```
63
59
  ┌──────┬──────────────────────────────────┐
@@ -76,7 +72,7 @@ Dashboards benefit from persistent navigation and maximum content width.
76
72
  └──────┴──────────────────────────────────┘
77
73
  ```
78
74
 
79
- ### Specifications
75
+ #### Specifications
80
76
 
81
77
  | Element | Value |
82
78
  |---------|-------|
@@ -85,11 +81,9 @@ Dashboards benefit from persistent navigation and maximum content width.
85
81
  | KPI card grid | 4 columns desktop, 2 tablet, 1 mobile |
86
82
  | Grid gap | 16-24px |
87
83
 
88
- ---
89
-
90
- ## Design
84
+ ### Design
91
85
 
92
- ### Color Tokens
86
+ #### Color Tokens
93
87
 
94
88
  | Element | Token |
95
89
  |---------|-------|
@@ -101,7 +95,7 @@ Dashboards benefit from persistent navigation and maximum content width.
101
95
  | Negative trend | `text-destructive` |
102
96
  | Neutral | `text-muted-foreground` |
103
97
 
104
- ### KPI Card Pattern
98
+ #### KPI Card Pattern
105
99
 
106
100
  | Element | Specification |
107
101
  |---------|---------------|
@@ -111,7 +105,7 @@ Dashboards benefit from persistent navigation and maximum content width.
111
105
  | Value | `text-2xl font-bold` or `text-3xl font-bold` |
112
106
  | Trend | Small text with arrow icon |
113
107
 
114
- ### Chart Container Pattern
108
+ #### Chart Container Pattern
115
109
 
116
110
  | Element | Specification |
117
111
  |---------|---------------|
@@ -120,7 +114,7 @@ Dashboards benefit from persistent navigation and maximum content width.
120
114
  | Header | Title left, controls right |
121
115
  | Min height | 300px primary, 200px secondary |
122
116
 
123
- ### Typography Hierarchy
117
+ #### Typography Hierarchy
124
118
 
125
119
  | Element | Style |
126
120
  |---------|-------|
@@ -131,11 +125,9 @@ Dashboards benefit from persistent navigation and maximum content width.
131
125
  | Chart titles | `text-base font-medium` |
132
126
  | Table headers | `text-sm font-medium` |
133
127
 
134
- ---
128
+ ### Content
135
129
 
136
- ## Content
137
-
138
- ### KPI Cards
130
+ #### KPI Cards
139
131
 
140
132
  **Structure:**
141
133
 
@@ -152,7 +144,7 @@ Dashboards benefit from persistent navigation and maximum content width.
152
144
  | "Active Users" | "2,847" | "-3% vs last week" |
153
145
  | "Conversion Rate" | "4.2%" | "No change" |
154
146
 
155
- ### Chart Headers
147
+ #### Chart Headers
156
148
 
157
149
  ```
158
150
  ┌─────────────────────────────────────┐
@@ -168,7 +160,7 @@ Dashboards benefit from persistent navigation and maximum content width.
168
160
  - Period selector for time range
169
161
  - Overflow menu for export, settings
170
162
 
171
- ### Empty States
163
+ #### Empty States
172
164
 
173
165
  | Scenario | Message |
174
166
  |----------|---------|
@@ -177,16 +169,14 @@ Dashboards benefit from persistent navigation and maximum content width.
177
169
  | Loading error | "Unable to load data" + "Retry" button |
178
170
  | New user | "No activity yet" + guidance to get started |
179
171
 
180
- ### Loading States
172
+ #### Loading States
181
173
 
182
174
  - KPI cards: Skeleton with pulse animation
183
175
  - Charts: Skeleton rectangle with centered spinner
184
176
  - Tables: 5-10 skeleton rows
185
177
  - Show loading indicator, never stale data without indicator
186
178
 
187
- ---
188
-
189
- ## Accessibility
179
+ ### Accessibility
190
180
 
191
181
  **Base requirements:** See [accessibility foundations](../../../accessibility/accessibility.md) and [web accessibility](../accessibility.md)
192
182
 
@@ -200,18 +190,16 @@ Dashboards benefit from persistent navigation and maximum content width.
200
190
  | Focus order | KPIs first, then filters, then main content |
201
191
  | Live regions | Use `aria-live` for updating data |
202
192
 
203
- ### Data Visualisation
193
+ #### Data Visualisation
204
194
 
205
195
  - Provide text summaries of chart insights
206
196
  - Link to accessible data table from each chart
207
197
  - Use patterns/textures in addition to colors
208
198
  - Ensure legends are keyboard navigable
209
199
 
210
- ---
211
-
212
- ## Implementation
200
+ ### Implementation
213
201
 
214
- ### Filter Patterns
202
+ #### Filter Patterns
215
203
 
216
204
  **Filter Bar (above content):**
217
205
 
@@ -236,7 +224,7 @@ Use for complex filtering (10+ filter options):
236
224
  - Range sliders
237
225
  - "Apply" and "Clear" actions at bottom
238
226
 
239
- ### Data Table Patterns
227
+ #### Data Table Patterns
240
228
 
241
229
  | Element | Implementation |
242
230
  |---------|----------------|
@@ -246,7 +234,7 @@ Use for complex filtering (10+ filter options):
246
234
  | Pagination | Bottom of table with page size selector |
247
235
  | Empty state | Centered message in table body |
248
236
 
249
- ### State Management
237
+ #### State Management
250
238
 
251
239
  | State | Handling |
252
240
  |-------|----------|
@@ -256,7 +244,7 @@ Use for complex filtering (10+ filter options):
256
244
  | Stale | Show "Last updated" timestamp |
257
245
  | Refreshing | Show subtle loading indicator, keep data visible |
258
246
 
259
- ### Responsive Behavior
247
+ #### Responsive Behavior
260
248
 
261
249
  | Breakpoint | KPI Grid | Charts | Tables |
262
250
  |------------|----------|--------|--------|
@@ -264,8 +252,6 @@ Use for complex filtering (10+ filter options):
264
252
  | Tablet | 2 columns | Full width | Horizontal scroll |
265
253
  | Desktop | 4 columns | Grid layout | Full table |
266
254
 
267
- ---
268
-
269
255
  ## Best Practices
270
256
 
271
257
  ### Do's
@@ -305,9 +291,14 @@ Use for complex filtering (10+ filter options):
305
291
  | Real-time data | Show update indicator, timestamp |
306
292
  | Export large datasets | Async export with notification |
307
293
 
308
- ---
294
+ ## Examples
295
+
296
+ The sidebar-navigation frame above is the canonical mid-fidelity dashboard: a row of KPI cards across the
297
+ top (4 columns on desktop), a primary chart below, and secondary charts beneath that. The data-table
298
+ variant swaps the chart stack for a filters bar, a scrollable table, and pagination — same shell, different
299
+ content body.
309
300
 
310
- ## Related Documentation
301
+ ## Related
311
302
 
312
303
  - [Product Design](../design.md) - Sidebar Navigation layout
313
304
  - [Accessibility foundations](../../../accessibility/accessibility.md) - Color and contrast
@@ -1,19 +1,18 @@
1
- # Documentation Scenarios
1
+ # Documentation
2
2
 
3
- Patterns for documentation sites, knowledge bases, API references, and content-heavy pages.
3
+ **User goal:** Find information quickly, understand it, complete tasks with step-by-step guidance, and
4
+ stay oriented throughout.
4
5
 
5
- ---
6
+ > **Pattern:** *Pages* · single-medium (web-product) — concept and implementation together.
7
+ > Covers documentation sites, knowledge bases, API references, and content-heavy pages.
6
8
 
7
- ## Principles
8
-
9
- ### User Goals
9
+ ## Context
10
10
 
11
- - **Find information quickly** - Search and navigate efficiently
12
- - **Understand content** - Clear, well-structured explanations
13
- - **Complete tasks** - Step-by-step guidance that works
14
- - **Stay oriented** - Know where they are and where to go next
11
+ Documentation is where users go to find information, understand how something works, and complete tasks.
12
+ They want to search and navigate efficiently, read clear and well-structured explanations, follow
13
+ step-by-step guidance that works, and always know where they are and where to go next.
15
14
 
16
- ### UX Principles
15
+ ## Principles
17
16
 
18
17
  | Principle | Implementation |
19
18
  |-----------|----------------|
@@ -22,22 +21,18 @@ Patterns for documentation sites, knowledge bases, API references, and content-h
22
21
  | Multiple paths | Search, navigation, breadcrumbs |
23
22
  | Progressive detail | Overview first, details on demand |
24
23
 
25
- ### Success Metrics
24
+ Success shows up as: search effectiveness (found what they needed), time to find information, page bounce
25
+ rate, and task completion rate for tutorials.
26
26
 
27
- - Search effectiveness (found what they needed)
28
- - Time to find information
29
- - Page bounce rate
30
- - Task completion rate (for tutorials)
27
+ ## Solution in web-product
31
28
 
32
- ---
33
-
34
- ## Layout
29
+ ### Layout
35
30
 
36
31
  **Base Layout:** Sidebar Navigation + Split Layout
37
32
 
38
33
  Documentation uses a three-column layout on desktop:
39
34
 
40
- ### Docs Landing Page
35
+ #### Docs Landing Page
41
36
 
42
37
  Use Horizontal Navigation:
43
38
 
@@ -57,7 +52,7 @@ Use Horizontal Navigation:
57
52
  └─────────────────────────────────────┘
58
53
  ```
59
54
 
60
- ### Docs Content Page
55
+ #### Docs Content Page
61
56
 
62
57
  Use Sidebar + Split (three-column):
63
58
 
@@ -77,7 +72,7 @@ Use Sidebar + Split (three-column):
77
72
  └──────┴──────────────────────────────────┘
78
73
  ```
79
74
 
80
- ### Specifications
75
+ #### Specifications
81
76
 
82
77
  | Element | Value |
83
78
  |---------|-------|
@@ -86,11 +81,9 @@ Use Sidebar + Split (three-column):
86
81
  | Content max-width | 800px (prose) |
87
82
  | Content padding | 32-48px |
88
83
 
89
- ---
90
-
91
- ## Design
84
+ ### Design
92
85
 
93
- ### Color Tokens
86
+ #### Color Tokens
94
87
 
95
88
  | Element | Token |
96
89
  |---------|-------|
@@ -101,7 +94,7 @@ Use Sidebar + Split (three-column):
101
94
  | Inline code | `bg-muted` |
102
95
  | Links | `text-primary` |
103
96
 
104
- ### Typography
97
+ #### Typography
105
98
 
106
99
  | Element | Style |
107
100
  |---------|-------|
@@ -112,7 +105,7 @@ Use Sidebar + Split (three-column):
112
105
  | Code | `font-mono text-sm` |
113
106
  | Sidebar nav | `text-sm` |
114
107
 
115
- ### Navigation Sidebar
108
+ #### Navigation Sidebar
116
109
 
117
110
  | Element | Specification |
118
111
  |---------|---------------|
@@ -123,7 +116,7 @@ Use Sidebar + Split (three-column):
123
116
  | Sub-pages | Indented, smaller text |
124
117
  | Scroll | Independent from content |
125
118
 
126
- ### Table of Contents (Right)
119
+ #### Table of Contents (Right)
127
120
 
128
121
  | Element | Specification |
129
122
  |---------|---------------|
@@ -132,11 +125,9 @@ Use Sidebar + Split (three-column):
132
125
  | Active tracking | Highlight current section on scroll |
133
126
  | Visibility | Hide below 1280px |
134
127
 
135
- ---
128
+ ### Content
136
129
 
137
- ## Content
138
-
139
- ### Page Structure
130
+ #### Page Structure
140
131
 
141
132
  ```markdown
142
133
  # Page Title ← H1, one per page
@@ -150,7 +141,7 @@ Intro paragraph ← No heading, describes page purpose
150
141
  #### Detail ← H4, use sparingly
151
142
  ```
152
143
 
153
- ### Navigation Hierarchy
144
+ #### Navigation Hierarchy
154
145
 
155
146
  ```
156
147
  Getting Started ← Category (bold, not clickable)
@@ -163,7 +154,7 @@ Components ← Category
163
154
  Examples ← Sub-page
164
155
  ```
165
156
 
166
- ### Breadcrumbs
157
+ #### Breadcrumbs
167
158
 
168
159
  ```
169
160
  Docs / Components / Button / Variants
@@ -173,7 +164,7 @@ Docs / Components / Button / Variants
173
164
  - All items clickable except current
174
165
  - Truncate middle items on mobile if needed
175
166
 
176
- ### Previous/Next Navigation
167
+ #### Previous/Next Navigation
177
168
 
178
169
  ```
179
170
  ┌─────────────────────────────────────────┐
@@ -186,9 +177,7 @@ Docs / Components / Button / Variants
186
177
  - Based on sidebar navigation order
187
178
  - Show page titles, not just "Previous/Next"
188
179
 
189
- ---
190
-
191
- ## Accessibility
180
+ ### Accessibility
192
181
 
193
182
  **Base requirements:** See [accessibility foundations](../../../accessibility/accessibility.md) and [web accessibility](../accessibility.md)
194
183
 
@@ -203,18 +192,16 @@ Docs / Components / Button / Variants
203
192
  | Code blocks | Scrollable with keyboard, screen reader context |
204
193
  | Multiple nav labels | `aria-label` to distinguish left vs right sidebars |
205
194
 
206
- ### Code Blocks
195
+ #### Code Blocks
207
196
 
208
197
  - Ensure code blocks are keyboard scrollable
209
198
  - Provide language context for screen readers
210
199
  - Copy button must be keyboard accessible
211
200
  - Don't rely on syntax highlighting alone for meaning
212
201
 
213
- ---
214
-
215
- ## Implementation
202
+ ### Implementation
216
203
 
217
- ### Code Block Patterns
204
+ #### Code Block Patterns
218
205
 
219
206
  **Inline Code:**
220
207
 
@@ -248,7 +235,7 @@ Docs / Components / Button / Variants
248
235
  - Preserve selection across page navigation
249
236
  - Accessible tab panel pattern
250
237
 
251
- ### Search Patterns
238
+ #### Search Patterns
252
239
 
253
240
  **Search Bar:**
254
241
 
@@ -264,7 +251,7 @@ Docs / Components / Button / Variants
264
251
  - Keyboard navigation (arrows + enter)
265
252
  - Recent searches
266
253
 
267
- ### Table of Contents Behavior
254
+ #### Table of Contents Behavior
268
255
 
269
256
  | Behavior | Implementation |
270
257
  |----------|----------------|
@@ -274,7 +261,7 @@ Docs / Components / Button / Variants
274
261
  | Hide on small screens | Below 1280px |
275
262
  | Collapse | Optionally collapsible |
276
263
 
277
- ### Responsive Behavior
264
+ #### Responsive Behavior
278
265
 
279
266
  | Breakpoint | Left Sidebar | Content | Right Sidebar |
280
267
  |------------|--------------|---------|---------------|
@@ -282,8 +269,6 @@ Docs / Components / Button / Variants
282
269
  | Tablet | Collapsible | Full width | Hidden |
283
270
  | Desktop | Visible (240px) | Centered (max 800px) | Visible (200px) |
284
271
 
285
- ---
286
-
287
272
  ## Best Practices
288
273
 
289
274
  ### Do's
@@ -324,9 +309,14 @@ Docs / Components / Button / Variants
324
309
  | External links | Mark with icon, open in new tab |
325
310
  | Deprecated content | Clear warnings, link to current |
326
311
 
327
- ---
312
+ ## Examples
313
+
314
+ The three-column docs content page above is the canonical mid-fidelity frame: a left navigation sidebar
315
+ (240-280px) with the doc tree, a centred prose column (max 800px) carrying breadcrumbs, title, and body,
316
+ and a sticky right-hand "On This Page" table of contents. The docs landing page is the same system in a
317
+ horizontal-nav variant — hero search, category cards, popular articles — with the sidebar dropped.
328
318
 
329
- ## Related Documentation
319
+ ## Related
330
320
 
331
321
  - [Product Design](../design.md) - Sidebar and Split layouts
332
322
  - [Accessibility foundations](../../../accessibility/accessibility.md) - Structure and headings