@agent-ui-kit/web-components 0.0.14 → 0.0.15

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 (151) hide show
  1. package/dist/agent-ui.css +1 -1
  2. package/dist/api.colors.json +2 -2
  3. package/dist/api.colors.yaml +2 -2
  4. package/dist/api.components.json +4570 -1641
  5. package/dist/api.tokens.json +34 -2
  6. package/dist/api.tokens.yaml +26 -2
  7. package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
  8. package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
  9. package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
  10. package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
  11. package/dist/components/agent.js +6 -6
  12. package/dist/components/avatar/avatar.d.ts +0 -0
  13. package/dist/components/badge/badge.d.ts +0 -0
  14. package/dist/components/bar/bar.d.ts +0 -0
  15. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
  16. package/dist/components/button-group/button-group.d.ts +0 -0
  17. package/dist/components/code/code.d.ts +0 -0
  18. package/dist/components/color-area/color-area.d.ts +2 -1
  19. package/dist/components/color-picker/color-picker.d.ts +1 -0
  20. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  21. package/dist/components/color-slider/color-slider.d.ts +1 -1
  22. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  23. package/dist/components/content/content.d.ts +0 -0
  24. package/dist/components/description-list/description-list.d.ts +0 -0
  25. package/dist/components/divider/divider.d.ts +0 -0
  26. package/dist/components/editor.js +1 -1
  27. package/dist/components/fieldset/fieldset.d.ts +0 -0
  28. package/dist/components/footer/footer.d.ts +0 -0
  29. package/dist/components/graph.js +1 -1
  30. package/dist/components/grid/grid.d.ts +0 -0
  31. package/dist/components/header/header.d.ts +0 -0
  32. package/dist/components/heading/heading.d.ts +0 -0
  33. package/dist/components/input-group/input-group.d.ts +0 -0
  34. package/dist/components/inset/inset.d.ts +0 -0
  35. package/dist/components/kbd/kbd.d.ts +0 -0
  36. package/dist/components/stack/stack.d.ts +0 -0
  37. package/dist/components/stat/stat.d.ts +4 -0
  38. package/dist/components/text/text.d.ts +0 -0
  39. package/dist/components/time-field/time-field.d.ts +1 -0
  40. package/dist/components/wrap/wrap.d.ts +0 -0
  41. package/dist/components.js +114 -127
  42. package/dist/components.js.map +1 -1
  43. package/dist/docs/blocks/login-two-column.yaml +6 -6
  44. package/dist/docs/blocks/profile-card.yaml +5 -5
  45. package/dist/docs/components/accordion-item.yaml +13 -21
  46. package/dist/docs/components/accordion.yaml +23 -29
  47. package/dist/docs/components/agent-activity.yaml +27 -39
  48. package/dist/docs/components/agent-feed.yaml +15 -22
  49. package/dist/docs/components/agent-input.yaml +238 -0
  50. package/dist/docs/components/agent-message.yaml +29 -48
  51. package/dist/docs/components/agent-panel.yaml +21 -24
  52. package/dist/docs/components/agent-prompt.yaml +28 -46
  53. package/dist/docs/components/agent-seeds.yaml +15 -23
  54. package/dist/docs/components/agent-text.yaml +14 -24
  55. package/dist/docs/components/agent-thread.yaml +15 -24
  56. package/dist/docs/components/alert.yaml +41 -39
  57. package/dist/docs/components/avatar-group.yaml +72 -45
  58. package/dist/docs/components/avatar.yaml +99 -0
  59. package/dist/docs/components/badge.yaml +110 -0
  60. package/dist/docs/components/bar.yaml +84 -0
  61. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  62. package/dist/docs/components/breadcrumb.yaml +60 -25
  63. package/dist/docs/components/button-group.yaml +93 -0
  64. package/dist/docs/components/button.yaml +177 -261
  65. package/dist/docs/components/calendar-picker.yaml +14 -34
  66. package/dist/docs/components/calendar-range-picker.yaml +11 -29
  67. package/dist/docs/components/calendar.yaml +11 -29
  68. package/dist/docs/components/canvas.yaml +44 -61
  69. package/dist/docs/components/checkbox.yaml +37 -49
  70. package/dist/docs/components/chip.yaml +88 -54
  71. package/dist/docs/components/code-block.yaml +54 -53
  72. package/dist/docs/components/code.yaml +37 -0
  73. package/dist/docs/components/color-area.yaml +119 -0
  74. package/dist/docs/components/color-field.yaml +121 -0
  75. package/dist/docs/components/color-picker.yaml +64 -38
  76. package/dist/docs/components/color-slider.yaml +153 -0
  77. package/dist/docs/components/color-swatch.yaml +98 -0
  78. package/dist/docs/components/command.yaml +13 -18
  79. package/dist/docs/components/container.yaml +83 -73
  80. package/dist/docs/components/content.yaml +100 -0
  81. package/dist/docs/components/context-menu.yaml +11 -20
  82. package/dist/docs/components/date-field.yaml +81 -33
  83. package/dist/docs/components/description-list.yaml +81 -0
  84. package/dist/docs/components/disclosure-group.yaml +61 -42
  85. package/dist/docs/components/disclosure.yaml +60 -46
  86. package/dist/docs/components/divider.yaml +63 -0
  87. package/dist/docs/components/dropdown-menu.yaml +16 -25
  88. package/dist/docs/components/feed.yaml +15 -24
  89. package/dist/docs/components/field.yaml +50 -71
  90. package/dist/docs/components/fieldset.yaml +92 -0
  91. package/dist/docs/components/footer.yaml +147 -0
  92. package/dist/docs/components/grid.yaml +87 -0
  93. package/dist/docs/components/gripper.yaml +11 -23
  94. package/dist/docs/components/header.yaml +168 -0
  95. package/dist/docs/components/heading.yaml +54 -0
  96. package/dist/docs/components/hover-card.yaml +17 -25
  97. package/dist/docs/components/icon.yaml +32 -65
  98. package/dist/docs/components/input-group.yaml +102 -0
  99. package/dist/docs/components/input-otp.yaml +20 -19
  100. package/dist/docs/components/input.yaml +92 -132
  101. package/dist/docs/components/inset.yaml +59 -0
  102. package/dist/docs/components/kbd.yaml +57 -0
  103. package/dist/docs/components/link.yaml +36 -45
  104. package/dist/docs/components/meter.yaml +27 -38
  105. package/dist/docs/components/nav-item.yaml +51 -40
  106. package/dist/docs/components/noodles.yaml +72 -104
  107. package/dist/docs/components/option.yaml +12 -23
  108. package/dist/docs/components/pagination.yaml +21 -18
  109. package/dist/docs/components/pane.yaml +18 -32
  110. package/dist/docs/components/panes.yaml +19 -27
  111. package/dist/docs/components/progress-circle.yaml +64 -55
  112. package/dist/docs/components/progress.yaml +35 -51
  113. package/dist/docs/components/radio-group.yaml +99 -40
  114. package/dist/docs/components/radio.yaml +40 -41
  115. package/dist/docs/components/range.yaml +24 -27
  116. package/dist/docs/components/segmented-control.yaml +58 -17
  117. package/dist/docs/components/select.yaml +80 -100
  118. package/dist/docs/components/skeleton.yaml +39 -39
  119. package/dist/docs/components/sparkline.yaml +28 -45
  120. package/dist/docs/components/spinner.yaml +32 -33
  121. package/dist/docs/components/stack.yaml +126 -0
  122. package/dist/docs/components/stepper.yaml +31 -38
  123. package/dist/docs/components/switch.yaml +36 -47
  124. package/dist/docs/components/tab-panel.yaml +27 -18
  125. package/dist/docs/components/tab.yaml +25 -22
  126. package/dist/docs/components/table-header.yaml +22 -12
  127. package/dist/docs/components/tabs.yaml +103 -20
  128. package/dist/docs/components/tag-group.yaml +63 -47
  129. package/dist/docs/components/text.yaml +67 -0
  130. package/dist/docs/components/textarea.yaml +43 -60
  131. package/dist/docs/components/time-field.yaml +74 -33
  132. package/dist/docs/components/toast.yaml +13 -30
  133. package/dist/docs/components/tooltip.yaml +56 -49
  134. package/dist/docs/components/tree-item.yaml +9 -10
  135. package/dist/docs/components/tree.yaml +127 -10
  136. package/dist/docs/components/wrap.yaml +60 -0
  137. package/dist/docs/traits/toggle-theme.yaml +34 -0
  138. package/dist/element.js +1 -1
  139. package/dist/icons.js +79 -59
  140. package/dist/icons.js.map +1 -1
  141. package/dist/reactivity.js +2 -2
  142. package/dist/register.d.ts +0 -1
  143. package/dist/register.js +258 -244
  144. package/dist/register.js.map +1 -1
  145. package/dist/store.js +1 -1
  146. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  147. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  148. package/dist/traits.js +528 -485
  149. package/dist/traits.js.map +1 -1
  150. package/package.json +1 -1
  151. package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
@@ -2,85 +2,70 @@ name: aui-agent-message
2
2
  tag: aui-agent-message
3
3
  type: component
4
4
  summary: Individual chat message bubble with action toolbar.
5
- description: >
6
- Accepts slotted content: aui-agent-text, aui-agent-activity,
7
- aui-agent-seeds, or any custom content. Provides a configurable
8
- action toolbar (copy, retry, edit, feedback) that appears on hover
9
- via CSS anchor positioning as a popover below the bubble.
10
-
5
+ description: |
6
+ Accepts slotted content: aui-agent-text, aui-agent-activity, aui-agent-seeds, or any custom content. Provides a configurable action toolbar (copy, retry, edit, feedback) that appears on hover via CSS anchor positioning as a popover below the bubble.
11
7
  base: AgentElement
12
-
13
8
  attributes:
14
9
  role:
15
10
  syntax: key-value
16
11
  type: string
17
12
  default: assistant
18
13
  description: Message role — user, assistant, or system.
19
-
20
14
  message-id:
21
15
  syntax: key-value
22
16
  type: string
23
17
  default: ""
24
18
  description: Unique message identifier.
25
-
26
19
  timestamp:
27
20
  syntax: key-value
28
21
  type: string
29
22
  default: ""
30
23
  description: Epoch milliseconds.
31
-
32
24
  status:
33
25
  syntax: key-value
34
26
  type: string
35
27
  default: sent
36
- description: >
28
+ description: |
37
29
  Message status — sending, sent, error, streaming, or partial.
38
-
39
30
  actions:
40
31
  syntax: key-value
41
32
  type: string
42
33
  default: ""
43
- description: >
44
- Comma-separated action list, or "none" to suppress.
45
- Defaults per role — assistant: copy,retry,feedback-up,feedback-down;
46
- user: edit,retry.
47
-
34
+ description: |
35
+ Comma-separated action list, or "none" to suppress. Defaults per role — assistant: copy,retry,feedback-up,feedback-down; user: edit,retry.
48
36
  actions-style:
49
37
  syntax: key-value
50
38
  type: string
51
39
  default: icon
52
40
  description: Action button style — icon, label, or icon-label.
53
-
54
41
  actions-position:
55
42
  syntax: key-value
56
43
  type: string
57
44
  default: below
58
45
  description: Toolbar placement — below (popover) or inside (inline).
59
-
60
46
  a11y:
61
47
  role: article
62
-
63
48
  events:
64
49
  aui:message-action:
65
- description: >
66
- Fired when an action button is clicked.
67
- detail contains action and messageId.
68
-
50
+ description: |
51
+ Fired when an action button is clicked. detail contains action and messageId.
69
52
  aui:continue-request:
70
- description: >
71
- Fired when continue is requested for a partial message.
72
- detail contains messageId.
73
-
53
+ description: |
54
+ Fired when continue is requested for a partial message. detail contains messageId.
74
55
  composition:
75
- parents: [aui-agent-thread]
76
- children: [aui-agent-text, aui-agent-activity, aui-agent-seeds, any]
77
-
56
+ parents:
57
+ - aui-agent-thread
58
+ children:
59
+ - aui-agent-text
60
+ - aui-agent-activity
61
+ - aui-agent-seeds
62
+ - any
78
63
  tokens:
79
64
  - name: --aui-agent-message-border-radius
80
65
  default: var(--aui-agent-bubble-radius, var(--aui-radius))
81
66
  description: Border radius for message bubbles.
82
67
  - name: --aui-agent-message-border-radius-tight
83
- default: "calc(var(--aui-space) * 2)"
68
+ default: calc(var(--aui-space) * 2)
84
69
  description: Tighter radius for grouped bubble corners near the avatar.
85
70
  - name: --aui-agent-message-background
86
71
  default: var(--aui-agent-bubble-assistant, transparent)
@@ -122,10 +107,10 @@ tokens:
122
107
  default: var(--aui-ink-muted)
123
108
  description: Text color of action buttons.
124
109
  - name: --aui-agent-message-action-padding
125
- default: "calc(var(--aui-space) * 0.5) calc(var(--aui-space) * 1)"
110
+ default: calc(var(--aui-space) * 0.5) calc(var(--aui-space) * 1)
126
111
  description: Padding of individual action buttons.
127
112
  - name: --aui-agent-message-action-gap
128
- default: "calc(var(--aui-space) * 0.5)"
113
+ default: calc(var(--aui-space) * 0.5)
129
114
  description: Gap between icon and label within an action button.
130
115
  - name: --aui-agent-message-action-background-hover
131
116
  default: var(--aui-fill-hover, var(--aui-action-hover))
@@ -134,7 +119,7 @@ tokens:
134
119
  default: var(--aui-ink)
135
120
  description: Text color of action buttons on hover.
136
121
  - name: --aui-agent-message-popover-padding
137
- default: "calc(var(--aui-space) * 0.5)"
122
+ default: calc(var(--aui-space) * 0.5)
138
123
  description: Padding inside the popover actions toolbar.
139
124
  - name: --aui-agent-message-popover-background
140
125
  default: var(--aui-modal, var(--aui-doc))
@@ -146,11 +131,11 @@ tokens:
146
131
  default: var(--aui-radius)
147
132
  description: Border radius of the popover actions toolbar.
148
133
  - name: --aui-agent-message-popover-shadow
149
- default: "var(--aui-shadow-lg, 0 4px 16px oklch(0% 0 0 / 0.12))"
134
+ default: var(--aui-shadow-lg, 0 4px 16px oklch(0% 0 0 / 0.12))
150
135
  description: Box shadow of the popover actions toolbar.
151
-
152
136
  examples:
153
- - html: |
137
+ - description: Assistant message with default actions (copy, retry, feedback). Hover reveals the action toolbar below
138
+ html: |-
154
139
  <aui-agent-message role="assistant" status="sent" message-id="msg-001">
155
140
  <aui-agent-text>Based on your project structure, I recommend using a **monorepo** with the following layout:
156
141
 
@@ -160,15 +145,13 @@ examples:
160
145
 
161
146
  This keeps dependencies clean and enables independent versioning for each package.</aui-agent-text>
162
147
  </aui-agent-message>
163
- description: Assistant message with default actions (copy, retry, feedback). Hover reveals the action toolbar below.
164
-
165
- - html: |
148
+ - description: User message with edit and retry actions
149
+ html: |-
166
150
  <aui-agent-message role="user" message-id="msg-002">
167
151
  <aui-agent-text format="plain">How do I set up path aliases in TypeScript so imports like @/components work across all packages?</aui-agent-text>
168
152
  </aui-agent-message>
169
- description: User message with edit and retry actions.
170
-
171
- - html: |
153
+ - description: Streaming message content is still arriving. Actions are suppressed during streaming
154
+ html: |-
172
155
  <aui-agent-message role="assistant" status="streaming" message-id="msg-003" actions="none">
173
156
  <aui-agent-text>You'll need to configure `paths` in your root `tsconfig.json` and then extend it in each package. Here's the base config:
174
157
 
@@ -185,10 +168,8 @@ examples:
185
168
 
186
169
  Each package tsconfig extends this and...</aui-agent-text>
187
170
  </aui-agent-message>
188
- description: Streaming message — content is still arriving. Actions are suppressed during streaming.
189
-
190
- - html: |
171
+ - description: Error message — status="error" applies error styling and surfaces a retry action
172
+ html: |-
191
173
  <aui-agent-message role="assistant" status="error" message-id="msg-004">
192
174
  <aui-agent-text format="plain">Something went wrong while generating the response. Please try again.</aui-agent-text>
193
175
  </aui-agent-message>
194
- description: Error message — status="error" applies error styling and surfaces a retry action.
@@ -2,44 +2,43 @@ name: aui-agent-panel
2
2
  tag: aui-agent-panel
3
3
  type: component
4
4
  summary: Top-level chat shell that composes header, feed, and input.
5
- description: >
6
- Layout coordinator for agent chat interfaces. Discovers child
7
- aui-agent-feed and aui-agent-input elements and provides focus
8
- delegation via focusComposer(). Sets role="region" with an
9
- aria-label derived from the panel-title attribute. Does not stamp
10
- DOM — just discovers and coordinates existing children.
11
-
5
+ description: |
6
+ Layout coordinator for agent chat interfaces. Discovers child aui-agent-feed and aui-agent-input elements and provides focus delegation via focusComposer(). Sets role="region" with an aria-label derived from the panel-title attribute. Does not stamp DOM — just discovers and coordinates existing children.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  panel-title:
16
10
  syntax: string
17
11
  type: string
18
- default: ''
12
+ default: ""
19
13
  description: Title for the panel, used as aria-label for the region.
20
-
21
14
  auto-focus:
22
15
  syntax: string
23
16
  type: string
24
17
  default: ready
25
- description: >
26
- When to auto-focus the composer. 'ready' focuses on activate,
27
- 'open-request' defers until an external signal, 'never' skips.
28
-
18
+ description: |
19
+ When to auto-focus the composer. 'ready' focuses on activate, 'open-request' defers until an external signal, 'never' skips.
29
20
  a11y:
30
21
  role: region
31
22
  aria-label: Derived from panel-title attribute
32
-
33
23
  methods:
34
24
  focusComposer:
35
25
  description: Delegates focus to the child aui-agent-input composer.
36
-
37
26
  composition:
38
- parents: [aui-content, aui-pane, aui-dialog, aui-drawer, div, any]
39
- children: [aui-header, aui-agent-feed, aui-agent-input, aui-footer]
40
-
27
+ parents:
28
+ - aui-content
29
+ - aui-pane
30
+ - aui-dialog
31
+ - aui-drawer
32
+ - div
33
+ - any
34
+ children:
35
+ - aui-header
36
+ - aui-agent-feed
37
+ - aui-agent-input
38
+ - aui-footer
41
39
  examples:
42
- - html: |
40
+ - description: Full chat panel with header, message feed, and composer input
41
+ html: |-
43
42
  <aui-agent-panel panel-title="Design Assistant" max-width="xl" style="height: 32rem;">
44
43
  <aui-header dividers>
45
44
  <aui-stack direction="row" gap="2" align-items="center">
@@ -70,9 +69,8 @@ examples:
70
69
  </aui-agent-prompt>
71
70
  </aui-agent-input>
72
71
  </aui-agent-panel>
73
- description: Full chat panel with header, message feed, and composer input.
74
-
75
- - html: |
72
+ - description: Minimal chat panel with just feed and input, no header
73
+ html: |-
76
74
  <aui-agent-panel panel-title="Quick Chat" max-width="xl" style="height: 24rem;">
77
75
  <aui-agent-feed auto-scroll scrollable>
78
76
  <aui-agent-thread role="assistant" sender="Claude">
@@ -88,4 +86,3 @@ examples:
88
86
  </aui-agent-prompt>
89
87
  </aui-agent-input>
90
88
  </aui-agent-panel>
91
- description: Minimal chat panel with just feed and input, no header.
@@ -2,15 +2,9 @@ name: aui-agent-prompt
2
2
  tag: aui-agent-prompt
3
3
  type: component
4
4
  summary: Bordered prompt container for the chat composer textarea.
5
- description: >
6
- Visual wrapper around the textarea inside aui-agent-input.
7
- Provides bordered styling with focus ring when the inner
8
- aui-textarea gains focus. Contains aui-textarea, optional
9
- inline action buttons (ghost + hide-label), and a bottom
10
- toolbar via aui-inset > aui-select mode="bar" transparent.
11
-
5
+ description: |
6
+ Visual wrapper around the textarea inside aui-agent-input. Provides bordered styling with focus ring when the inner aui-textarea gains focus. Contains aui-textarea, optional inline action buttons (ghost + hide-label), and a bottom toolbar via aui-inset > aui-select mode="bar" transparent.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  disabled:
16
10
  syntax: boolean
@@ -21,15 +15,17 @@ attributes:
21
15
  syntax: boolean
22
16
  type: boolean
23
17
  default: false
24
- description: >
25
- Single-line mode. Switches to row layout with textarea and send
26
- button side-by-side. Textarea gets compact block padding and the
27
- trailing button sits inline. Toolbar border is suppressed.
28
-
18
+ description: |
19
+ Single-line mode. Switches to row layout with textarea and send button side-by-side. Textarea gets compact block padding and the trailing button sits inline. Toolbar border is suppressed.
29
20
  composition:
30
- parents: [aui-agent-input, aui-stack]
31
- children: [aui-textarea, aui-button, aui-inset, any]
32
-
21
+ parents:
22
+ - aui-agent-input
23
+ - aui-stack
24
+ children:
25
+ - aui-textarea
26
+ - aui-button
27
+ - aui-inset
28
+ - any
33
29
  tokens:
34
30
  - name: --aui-agent-prompt-background
35
31
  default: var(--aui-control)
@@ -47,19 +43,19 @@ tokens:
47
43
  default: var(--aui-focus)
48
44
  description: Focus ring color when textarea is focused.
49
45
  - name: --aui-agent-prompt-surface-padding-block
50
- default: "calc(var(--aui-space) * 2)"
46
+ default: calc(var(--aui-space) * 2)
51
47
  description: Block padding of the textarea surface.
52
48
  - name: --aui-agent-prompt-surface-padding-inline
53
- default: "calc(var(--aui-space) * 3)"
49
+ default: calc(var(--aui-space) * 3)
54
50
  description: Inline padding of the textarea surface.
55
51
  - name: --aui-agent-prompt-toolbar-border
56
52
  default: var(--aui-border-muted)
57
53
  description: Border color of the bottom toolbar separator.
58
54
  - name: --aui-agent-prompt-toolbar-gap
59
- default: "calc(var(--aui-space) * 2)"
55
+ default: calc(var(--aui-space) * 2)
60
56
  description: Gap between items in the toolbar.
61
57
  - name: --aui-agent-prompt-toolbar-padding
62
- default: "calc(var(--aui-space) * 2)"
58
+ default: calc(var(--aui-space) * 2)
63
59
  description: Padding of the toolbar area.
64
60
  - name: --aui-agent-prompt-ghost-background-hover
65
61
  default: var(--aui-fill-hover)
@@ -71,55 +67,41 @@ tokens:
71
67
  default: var(--aui-fill-hover)
72
68
  description: Hover background in outline variant.
73
69
  - name: --aui-agent-prompt-inline-surface-padding-block
74
- default: "calc(var(--aui-space) * 1.5)"
70
+ default: calc(var(--aui-space) * 1.5)
75
71
  description: Block padding of the textarea in inline mode.
76
72
  - name: --aui-agent-prompt-inline-submit-margin
77
- default: "calc(var(--aui-space) * 1.5)"
73
+ default: calc(var(--aui-space) * 1.5)
78
74
  description: Inline-end margin for the submit button in inline mode.
79
-
80
75
  examples:
81
- - html: |
76
+ - description: Basic bordered prompt with textarea — focus ring activates when textarea is focused
77
+ html: |-
82
78
  <aui-agent-prompt>
83
79
  <aui-textarea placeholder="Describe what you need help with..."></aui-textarea>
84
80
  </aui-agent-prompt>
85
- description: Basic bordered prompt with textarea focus ring activates when textarea is focused.
86
-
87
- - html: |
81
+ - description: Prompt with an inline action icon (sparkle) positioned beside the textarea for triggering AI features
82
+ html: |-
88
83
  <aui-agent-prompt>
89
84
  <aui-textarea placeholder="Ask anything..."></aui-textarea>
90
85
  <div data-role="leading">
91
- <aui-button ghost size="sm">
86
+ <aui-button ghost>
92
87
  <aui-icon name="sparkles"></aui-icon>
93
88
  </aui-button>
94
89
  </div>
95
90
  </aui-agent-prompt>
96
- description: Prompt with an inline action icon (sparkle) positioned beside the textarea for triggering AI features.
97
-
98
- - html: |
91
+ - description: Prompt with action toolbar below textarea attach files, upload images, voice input, and send
92
+ html: |-
99
93
  <aui-agent-prompt>
100
94
  <aui-textarea placeholder="What would you like to build today?"></aui-textarea>
101
95
  <div data-role="actions">
102
- <aui-button ghost size="sm">
96
+ <aui-button ghost>
103
97
  <aui-icon name="paperclip"></aui-icon>
104
98
  </aui-button>
105
- <aui-button ghost size="sm">
99
+ <aui-button ghost>
106
100
  <aui-icon name="image"></aui-icon>
107
101
  </aui-button>
108
- <aui-button ghost size="sm">
102
+ <aui-button ghost>
109
103
  <aui-icon name="microphone"></aui-icon>
110
104
  </aui-button>
111
105
  <aui-button primary data-submit>Send</aui-button>
112
106
  </div>
113
107
  </aui-agent-prompt>
114
- description: >
115
- Prompt with action toolbar below textarea — attach files, upload images,
116
- voice input, and send.
117
-
118
- - html: |
119
- <aui-agent-prompt inline>
120
- <aui-textarea placeholder="Quick message..."></aui-textarea>
121
- <aui-button round label="Send" data-submit hide-label><aui-icon name="arrow-up"></aui-icon></aui-button>
122
- </aui-agent-prompt>
123
- description: >
124
- Inline single-line prompt with textarea and send button side-by-side.
125
- Row layout with compact padding, no toolbar border.
@@ -2,36 +2,30 @@ name: aui-agent-seeds
2
2
  tag: aui-agent-seeds
3
3
  type: component
4
4
  summary: Suggestion chips for pre-seeded quick responses.
5
- description: >
6
- Renders a wrapped row of outline-styled chips from a JSON options array.
7
- Each chip fires aui:seed-select on click with the option's value and label.
8
-
5
+ description: |
6
+ Renders a wrapped row of outline-styled chips from a JSON options array. Each chip fires aui:seed-select on click with the option's value and label.
9
7
  base: AgentElement
10
-
11
8
  attributes:
12
9
  options:
13
10
  syntax: key-value
14
11
  type: string
15
12
  default: ""
16
- description: >
13
+ description: |
17
14
  JSON array of { value, label, icon? } objects.
18
-
19
15
  disabled:
20
16
  syntax: boolean
21
17
  type: boolean
22
18
  default: false
23
19
  description: Disables all chips.
24
-
25
20
  events:
26
21
  aui:seed-select:
27
- description: >
28
- Fired when a chip is clicked.
29
- detail contains value and label.
30
-
22
+ description: |
23
+ Fired when a chip is clicked. detail contains value and label.
31
24
  composition:
32
- parents: [aui-agent-message, aui-agent-feed]
25
+ parents:
26
+ - aui-agent-message
27
+ - aui-agent-feed
33
28
  children: []
34
-
35
29
  tokens:
36
30
  - name: --aui-agent-seeds-padding-block
37
31
  default: var(--aui-agent-seed-pad-block, var(--aui-space))
@@ -43,13 +37,13 @@ tokens:
43
37
  default: var(--aui-agent-seed-gap, var(--aui-space))
44
38
  description: Gap between chip rows.
45
39
  - name: --aui-agent-seeds-chip-gap
46
- default: "calc(var(--aui-space) * 0.5)"
40
+ default: calc(var(--aui-space) * 0.5)
47
41
  description: Gap between icon and label within a chip.
48
42
  - name: --aui-agent-seeds-chip-padding-block
49
- default: "calc(var(--aui-space) * 0.5)"
43
+ default: calc(var(--aui-space) * 0.5)
50
44
  description: Block padding of each chip.
51
45
  - name: --aui-agent-seeds-chip-padding-inline
52
- default: "calc(var(--aui-space) * 1.5)"
46
+ default: calc(var(--aui-space) * 1.5)
53
47
  description: Inline padding of each chip.
54
48
  - name: --aui-agent-seeds-chip-font-family
55
49
  default: var(--aui-font-family)
@@ -84,14 +78,12 @@ tokens:
84
78
  - name: --aui-agent-seeds-chip-background-active
85
79
  default: var(--aui-fill-active, var(--aui-action-active))
86
80
  description: Background of chips when active/pressed.
87
-
88
81
  examples:
89
- - html: |
82
+ - description: Quick action suggestions — common follow-up actions presented as selectable chips below the composer or a message
83
+ html: |-
90
84
  <aui-agent-seeds options='[{"value":"clarify","label":"Clarify user problem"},{"value":"context","label":"Define user context"},{"value":"deliverable","label":"Select deliverable"},{"value":"timeline","label":"Set timeline"}]'>
91
85
  </aui-agent-seeds>
92
- description: Quick action suggestionscommon follow-up actions presented as selectable chips below the composer or a message.
93
-
94
- - html: |
86
+ - description: Conversation starters with icons used on an empty chat state to help users begin a session with common tasks
87
+ html: |-
95
88
  <aui-agent-seeds options='[{"value":"write-email","label":"Draft an email","icon":"mail"},{"value":"summarize","label":"Summarize a document","icon":"file-text"},{"value":"brainstorm","label":"Brainstorm ideas","icon":"lightbulb"},{"value":"analyze-data","label":"Analyze data","icon":"chart-bar"}]'>
96
89
  </aui-agent-seeds>
97
- description: Conversation starters with icons — used on an empty chat state to help users begin a session with common tasks.
@@ -2,25 +2,19 @@ name: aui-agent-text
2
2
  tag: aui-agent-text
3
3
  type: component
4
4
  summary: Markdown renderer for chat message content.
5
- description: >
6
- Renders a markdown subset (paragraphs, headings, lists, code fences,
7
- inline code, bold, italic, links, blockquotes) to sanitized HTML.
8
- Content can come from text content or the content property.
9
- Debounced rendering during streaming updates.
10
-
5
+ description: |
6
+ Renders a markdown subset (paragraphs, headings, lists, code fences, inline code, bold, italic, links, blockquotes) to sanitized HTML. Content can come from text content or the content property. Debounced rendering during streaming updates.
11
7
  base: AgentElement
12
-
13
8
  attributes:
14
9
  format:
15
10
  syntax: key-value
16
11
  type: string
17
12
  default: markdown
18
13
  description: Render format — markdown (default) or plain.
19
-
20
14
  composition:
21
- parents: [aui-agent-message]
15
+ parents:
16
+ - aui-agent-message
22
17
  children: []
23
-
24
18
  tokens:
25
19
  - name: --aui-agent-text-padding-block
26
20
  default: var(--aui-agent-bubble-pad-block, 0.625rem)
@@ -29,7 +23,7 @@ tokens:
29
23
  default: var(--aui-agent-bubble-pad-inline, 0.875rem)
30
24
  description: Inline padding of the text container.
31
25
  - name: --aui-agent-text-prose-gap
32
- default: "var(--aui-agent-prose-gap, calc(var(--aui-space) * 2))"
26
+ default: var(--aui-agent-prose-gap, calc(var(--aui-space) * 2))
33
27
  description: Vertical gap between prose elements (paragraphs, headings, etc.).
34
28
  - name: --aui-agent-text-heading-font-weight
35
29
  default: var(--aui-font-weight-bold, 600)
@@ -47,16 +41,16 @@ tokens:
47
41
  default: var(--aui-control, var(--aui-fill))
48
42
  description: Background of inline code spans.
49
43
  - name: --aui-agent-text-code-border-radius
50
- default: "calc(var(--aui-radius) * 0.5)"
44
+ default: calc(var(--aui-radius) * 0.5)
51
45
  description: Border radius of inline code spans.
52
46
  - name: --aui-agent-text-pre-background
53
47
  default: var(--aui-control, var(--aui-fill))
54
48
  description: Background of code blocks.
55
49
  - name: --aui-agent-text-pre-border-radius
56
- default: "calc(var(--aui-radius) * 0.5)"
50
+ default: calc(var(--aui-radius) * 0.5)
57
51
  description: Border radius of code blocks.
58
52
  - name: --aui-agent-text-pre-padding
59
- default: "calc(var(--aui-space) * 2)"
53
+ default: calc(var(--aui-space) * 2)
60
54
  description: Padding inside code blocks.
61
55
  - name: --aui-agent-text-link-color
62
56
  default: var(--aui-ink-accent, var(--aui-accent-solid))
@@ -67,9 +61,9 @@ tokens:
67
61
  - name: --aui-agent-text-hr-border
68
62
  default: var(--aui-border-muted)
69
63
  description: Border color of horizontal rules.
70
-
71
64
  examples:
72
- - html: |
65
+ - description: Rich markdown rendering with headings, code fences, bullet lists, blockquotes, bold text, and links
66
+ html: |-
73
67
  <aui-agent-text>## Getting Started
74
68
 
75
69
  To install the package, run:
@@ -87,13 +81,10 @@ examples:
87
81
  > Note: Requires a modern browser with custom element support.
88
82
 
89
83
  See the [documentation](https://example.com/docs) for the full API reference.</aui-agent-text>
90
- description: Rich markdown rendering with headings, code fences, bullet lists, blockquotes, bold text, and links.
91
-
92
- - html: |
93
- <aui-agent-text format="plain">The deployment completed successfully. All 47 tests passed and the build artifact was uploaded to s3://releases/v2.1.0/bundle.tar.gz. No breaking changes detected.</aui-agent-text>
94
- description: Plain text mode — no markdown processing, rendered as-is.
95
-
96
- - html: |
84
+ - description: Plain text mode no markdown processing, rendered as-is
85
+ html: <aui-agent-text format="plain">The deployment completed successfully. All 47 tests passed and the build artifact was uploaded to s3://releases/v2.1.0/bundle.tar.gz. No breaking changes detected.</aui-agent-text>
86
+ - description: Streaming content — text cuts off mid-sentence while the response is still being generated. The renderer handles partial markdown gracefully
87
+ html: |-
97
88
  <aui-agent-text>Here are the three main approaches to state management:
98
89
 
99
90
  1. **Local component state** — simplest, works for isolated UI
@@ -101,4 +92,3 @@ examples:
101
92
  3. **External store** — best for complex, cross-cutting state
102
93
 
103
94
  For your use case, I'd recommend starting with option 2 and migrating to an external store only if you hit performance issues with deeply nested...</aui-agent-text>
104
- description: Streaming content — text cuts off mid-sentence while the response is still being generated. The renderer handles partial markdown gracefully.
@@ -2,44 +2,38 @@ name: aui-agent-thread
2
2
  tag: aui-agent-thread
3
3
  type: component
4
4
  summary: Message group with 2x2 grid layout for avatar, context, and bubbles.
5
- description: >
6
- Cluster of messages from the same sender. Provides a 2x2 grid layout:
7
- col 1 = avatar (bottom-aligned), col 2 row 1 = context area (metadata),
8
- col 2 row 2 = bubbles area (message flex column). A MutationObserver
9
- routes dynamically added children into the correct wrapper.
10
-
5
+ description: |
6
+ Cluster of messages from the same sender. Provides a 2x2 grid layout: col 1 = avatar (bottom-aligned), col 2 row 1 = context area (metadata), col 2 row 2 = bubbles area (message flex column). A MutationObserver routes dynamically added children into the correct wrapper.
11
7
  base: AgentElement
12
-
13
8
  attributes:
14
9
  role:
15
10
  syntax: key-value
16
11
  type: string
17
12
  default: ""
18
13
  description: Message role — user, assistant, or system.
19
-
20
14
  sender:
21
15
  syntax: key-value
22
16
  type: string
23
17
  default: ""
24
18
  description: Display name of the sender.
25
-
26
19
  avatar-align:
27
20
  syntax: key-value
28
21
  type: string
29
22
  default: ""
30
23
  description: Avatar vertical alignment — top, center, or bottom (default).
31
-
32
24
  a11y:
33
25
  role: group
34
26
  aria-label: Messages from {sender}
35
-
36
27
  composition:
37
- parents: [aui-agent-feed]
38
- children: [aui-avatar, aui-agent-message, any]
39
-
28
+ parents:
29
+ - aui-agent-feed
30
+ children:
31
+ - aui-avatar
32
+ - aui-agent-message
33
+ - any
40
34
  tokens:
41
35
  - name: --aui-agent-thread-column-gap
42
- default: "var(--aui-agent-message-gap, calc(var(--aui-space) * 2))"
36
+ default: var(--aui-agent-message-gap, calc(var(--aui-space) * 2))
43
37
  description: Gap between avatar column and message column.
44
38
  - name: --aui-agent-thread-max-width
45
39
  default: var(--aui-agent-bubble-max-width, 85%)
@@ -56,26 +50,24 @@ tokens:
56
50
  - name: --aui-agent-thread-user-avatar-color
57
51
  default: var(--aui-agent-bubble-user-ink)
58
52
  description: Text/icon color of the user avatar.
59
-
60
53
  examples:
61
- - html: |
54
+ - description: Assistant thread with avatar and a single message bubble
55
+ html: |-
62
56
  <aui-agent-thread role="assistant" sender="Claude">
63
57
  <aui-avatar>C</aui-avatar>
64
58
  <aui-agent-message role="assistant">
65
59
  <aui-agent-text>I've analyzed your codebase and found three potential performance bottlenecks in the data processing pipeline. Let me walk through each one.</aui-agent-text>
66
60
  </aui-agent-message>
67
61
  </aui-agent-thread>
68
- description: Assistant thread with avatar and a single message bubble.
69
-
70
- - html: |
62
+ - description: User thread right-aligned with no avatar
63
+ html: |-
71
64
  <aui-agent-thread role="user" sender="Sarah">
72
65
  <aui-agent-message role="user">
73
66
  <aui-agent-text format="plain">Can you refactor the authentication module to use JWT instead of session cookies?</aui-agent-text>
74
67
  </aui-agent-message>
75
68
  </aui-agent-thread>
76
- description: User thread right-aligned with no avatar.
77
-
78
- - html: |
69
+ - description: Multi-message thread with context metadata (model, latency, token count) and top-aligned avatar
70
+ html: |-
79
71
  <aui-agent-thread role="assistant" sender="Claude" avatar-align="top">
80
72
  <aui-avatar>C</aui-avatar>
81
73
  <div data-role="context">
@@ -99,4 +91,3 @@ examples:
99
91
  <aui-agent-text>I've split the token generation and verification into separate functions for better testability. The refresh token rotation is handled in the middleware layer.</aui-agent-text>
100
92
  </aui-agent-message>
101
93
  </aui-agent-thread>
102
- description: Multi-message thread with context metadata (model, latency, token count) and top-aligned avatar.