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

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 (211) 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 +3878 -636
  5. package/dist/api.tokens.json +35 -3
  6. package/dist/api.tokens.yaml +27 -3
  7. package/dist/chunks/{agent-C72JZNe6.js → agent-XMhz_6OA.js} +85 -76
  8. package/dist/chunks/{agent-C72JZNe6.js.map → agent-XMhz_6OA.js.map} +1 -1
  9. package/dist/chunks/{empty-state-5M3uR5CM.js → form-oekEhwja.js} +1409 -960
  10. package/dist/chunks/form-oekEhwja.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/checkbox-group/checkbox-group.d.ts +14 -0
  18. package/dist/components/checkbox-group/index.d.ts +1 -0
  19. package/dist/components/code/code.d.ts +0 -0
  20. package/dist/components/color-area/color-area.d.ts +2 -1
  21. package/dist/components/color-picker/color-picker.d.ts +1 -0
  22. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  23. package/dist/components/color-slider/color-slider.d.ts +1 -1
  24. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  25. package/dist/components/content/content.d.ts +0 -0
  26. package/dist/components/description-list/description-list.d.ts +0 -0
  27. package/dist/components/divider/divider.d.ts +0 -0
  28. package/dist/components/editor.js +1 -1
  29. package/dist/components/fieldset/fieldset.d.ts +0 -0
  30. package/dist/components/footer/footer.d.ts +0 -0
  31. package/dist/components/form/form.d.ts +12 -0
  32. package/dist/components/form/index.d.ts +1 -0
  33. package/dist/components/graph.js +1 -1
  34. package/dist/components/grid/grid.d.ts +0 -0
  35. package/dist/components/header/header.d.ts +0 -0
  36. package/dist/components/heading/heading.d.ts +0 -0
  37. package/dist/components/index.d.ts +2 -0
  38. package/dist/components/input-group/input-group.d.ts +0 -0
  39. package/dist/components/inset/inset.d.ts +0 -0
  40. package/dist/components/kbd/kbd.d.ts +0 -0
  41. package/dist/components/noodles/noodle-controller.d.ts +1 -1
  42. package/dist/components/stack/stack.d.ts +0 -0
  43. package/dist/components/stat/stat.d.ts +4 -0
  44. package/dist/components/text/text.d.ts +0 -0
  45. package/dist/components/time-field/time-field.d.ts +1 -0
  46. package/dist/components/wrap/wrap.d.ts +0 -0
  47. package/dist/components.js +115 -126
  48. package/dist/components.js.map +1 -1
  49. package/dist/docs/blocks/agent-chat.yaml +33 -25
  50. package/dist/docs/blocks/announcement-card.yaml +14 -10
  51. package/dist/docs/blocks/bpm-process.yaml +216 -4
  52. package/dist/docs/blocks/chart-activity.yaml +12 -10
  53. package/dist/docs/blocks/chart-card.yaml +14 -11
  54. package/dist/docs/blocks/chart-donut.yaml +27 -23
  55. package/dist/docs/blocks/chart-grouped.yaml +14 -11
  56. package/dist/docs/blocks/chart-horizontal.yaml +13 -10
  57. package/dist/docs/blocks/chart-interactive.yaml +20 -17
  58. package/dist/docs/blocks/chart-labeled.yaml +14 -11
  59. package/dist/docs/blocks/checkout-form.yaml +26 -16
  60. package/dist/docs/blocks/clinical-trial.yaml +180 -4
  61. package/dist/docs/blocks/contributors.yaml +17 -11
  62. package/dist/docs/blocks/cyber-threat.yaml +158 -4
  63. package/dist/docs/blocks/dashboard-layout.yaml +25 -18
  64. package/dist/docs/blocks/data-eng-dag.yaml +222 -6
  65. package/dist/docs/blocks/date-picker.yaml +11 -10
  66. package/dist/docs/blocks/ddx-workflow.yaml +202 -6
  67. package/dist/docs/blocks/empty-state.yaml +8 -11
  68. package/dist/docs/blocks/env-variables.yaml +29 -20
  69. package/dist/docs/blocks/feature-upgrade.yaml +25 -18
  70. package/dist/docs/blocks/financial-risk.yaml +161 -4
  71. package/dist/docs/blocks/flow-editor.yaml +27 -18
  72. package/dist/docs/blocks/gen-ai-pipeline.yaml +232 -5
  73. package/dist/docs/blocks/issue-assign.yaml +25 -14
  74. package/dist/docs/blocks/keyboard-shortcuts.yaml +14 -9
  75. package/dist/docs/blocks/login-branded.yaml +62 -23
  76. package/dist/docs/blocks/login-email-only.yaml +14 -13
  77. package/dist/docs/blocks/login-form.yaml +17 -11
  78. package/dist/docs/blocks/login-simple.yaml +18 -12
  79. package/dist/docs/blocks/login-social.yaml +21 -14
  80. package/dist/docs/blocks/login-two-column.yaml +42 -22
  81. package/dist/docs/blocks/marketing-automation.yaml +209 -4
  82. package/dist/docs/blocks/member-list.yaml +23 -18
  83. package/dist/docs/blocks/ml-pipeline.yaml +163 -4
  84. package/dist/docs/blocks/nav-card.yaml +13 -11
  85. package/dist/docs/blocks/notification-list.yaml +18 -13
  86. package/dist/docs/blocks/oncology-pathway.yaml +227 -4
  87. package/dist/docs/blocks/pricing-card.yaml +20 -13
  88. package/dist/docs/blocks/processing-state.yaml +14 -11
  89. package/dist/docs/blocks/profile-card.yaml +22 -16
  90. package/dist/docs/blocks/saas-onboarding.yaml +222 -4
  91. package/dist/docs/blocks/settings-form.yaml +20 -11
  92. package/dist/docs/blocks/settings-panel.yaml +23 -22
  93. package/dist/docs/blocks/sidebar-nav.yaml +23 -15
  94. package/dist/docs/blocks/signup-form.yaml +17 -11
  95. package/dist/docs/blocks/stat-cards.yaml +12 -13
  96. package/dist/docs/blocks/status-card.yaml +20 -17
  97. package/dist/docs/blocks/suggested-labs.yaml +20 -13
  98. package/dist/docs/blocks/supply-chain.yaml +160 -4
  99. package/dist/docs/blocks/survey-card.yaml +21 -13
  100. package/dist/docs/blocks/tabbed-panel.yaml +21 -15
  101. package/dist/docs/blocks/team-empty.yaml +8 -9
  102. package/dist/docs/blocks/usage-billing.yaml +20 -16
  103. package/dist/docs/components/accordion-item.yaml +13 -21
  104. package/dist/docs/components/accordion.yaml +23 -29
  105. package/dist/docs/components/agent-activity.yaml +49 -41
  106. package/dist/docs/components/agent-feed.yaml +15 -22
  107. package/dist/docs/components/agent-input.yaml +238 -0
  108. package/dist/docs/components/agent-message.yaml +29 -48
  109. package/dist/docs/components/agent-panel.yaml +21 -24
  110. package/dist/docs/components/agent-prompt.yaml +29 -47
  111. package/dist/docs/components/agent-seeds.yaml +16 -24
  112. package/dist/docs/components/agent-text.yaml +14 -24
  113. package/dist/docs/components/agent-thread.yaml +15 -24
  114. package/dist/docs/components/alert.yaml +41 -39
  115. package/dist/docs/components/avatar-group.yaml +72 -45
  116. package/dist/docs/components/avatar.yaml +99 -0
  117. package/dist/docs/components/badge.yaml +110 -0
  118. package/dist/docs/components/bar.yaml +84 -0
  119. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  120. package/dist/docs/components/breadcrumb.yaml +91 -29
  121. package/dist/docs/components/button-group.yaml +93 -0
  122. package/dist/docs/components/button.yaml +188 -261
  123. package/dist/docs/components/calendar-picker.yaml +16 -35
  124. package/dist/docs/components/calendar-range-picker.yaml +11 -29
  125. package/dist/docs/components/calendar.yaml +11 -29
  126. package/dist/docs/components/canvas.yaml +44 -61
  127. package/dist/docs/components/checkbox.yaml +37 -49
  128. package/dist/docs/components/chip.yaml +89 -55
  129. package/dist/docs/components/code-block.yaml +54 -53
  130. package/dist/docs/components/code.yaml +37 -0
  131. package/dist/docs/components/color-area.yaml +119 -0
  132. package/dist/docs/components/color-field.yaml +121 -0
  133. package/dist/docs/components/color-picker.yaml +87 -35
  134. package/dist/docs/components/color-slider.yaml +153 -0
  135. package/dist/docs/components/color-swatch.yaml +98 -0
  136. package/dist/docs/components/command.yaml +13 -18
  137. package/dist/docs/components/container.yaml +84 -73
  138. package/dist/docs/components/content.yaml +100 -0
  139. package/dist/docs/components/context-menu.yaml +11 -20
  140. package/dist/docs/components/date-field.yaml +81 -33
  141. package/dist/docs/components/description-list.yaml +81 -0
  142. package/dist/docs/components/disclosure-group.yaml +61 -42
  143. package/dist/docs/components/disclosure.yaml +60 -46
  144. package/dist/docs/components/divider.yaml +63 -0
  145. package/dist/docs/components/dropdown-menu.yaml +16 -25
  146. package/dist/docs/components/feed.yaml +15 -24
  147. package/dist/docs/components/field.yaml +50 -71
  148. package/dist/docs/components/fieldset.yaml +92 -0
  149. package/dist/docs/components/footer.yaml +147 -0
  150. package/dist/docs/components/grid.yaml +87 -0
  151. package/dist/docs/components/gripper.yaml +11 -23
  152. package/dist/docs/components/header.yaml +168 -0
  153. package/dist/docs/components/heading.yaml +58 -0
  154. package/dist/docs/components/hover-card.yaml +17 -25
  155. package/dist/docs/components/icon.yaml +32 -65
  156. package/dist/docs/components/index.yaml +11 -1
  157. package/dist/docs/components/input-group.yaml +102 -0
  158. package/dist/docs/components/input-otp.yaml +20 -19
  159. package/dist/docs/components/input.yaml +100 -139
  160. package/dist/docs/components/inset.yaml +59 -0
  161. package/dist/docs/components/kbd.yaml +57 -0
  162. package/dist/docs/components/link.yaml +36 -45
  163. package/dist/docs/components/meter.yaml +54 -42
  164. package/dist/docs/components/nav-item.yaml +54 -43
  165. package/dist/docs/components/noodles.yaml +72 -104
  166. package/dist/docs/components/option.yaml +12 -23
  167. package/dist/docs/components/pagination.yaml +21 -18
  168. package/dist/docs/components/pane.yaml +18 -32
  169. package/dist/docs/components/panes.yaml +19 -27
  170. package/dist/docs/components/progress-circle.yaml +64 -55
  171. package/dist/docs/components/progress.yaml +35 -51
  172. package/dist/docs/components/radio-group.yaml +99 -40
  173. package/dist/docs/components/radio.yaml +40 -41
  174. package/dist/docs/components/range.yaml +24 -27
  175. package/dist/docs/components/segmented-control.yaml +58 -17
  176. package/dist/docs/components/select.yaml +80 -100
  177. package/dist/docs/components/skeleton.yaml +39 -39
  178. package/dist/docs/components/sparkline.yaml +28 -45
  179. package/dist/docs/components/spinner.yaml +32 -33
  180. package/dist/docs/components/stack.yaml +126 -0
  181. package/dist/docs/components/stat.yaml +164 -0
  182. package/dist/docs/components/stepper.yaml +46 -53
  183. package/dist/docs/components/switch.yaml +36 -47
  184. package/dist/docs/components/tab-panel.yaml +27 -18
  185. package/dist/docs/components/tab.yaml +25 -22
  186. package/dist/docs/components/table-header.yaml +22 -12
  187. package/dist/docs/components/tabs.yaml +103 -20
  188. package/dist/docs/components/tag-group.yaml +63 -47
  189. package/dist/docs/components/text.yaml +67 -0
  190. package/dist/docs/components/textarea.yaml +43 -60
  191. package/dist/docs/components/time-field.yaml +108 -34
  192. package/dist/docs/components/toast.yaml +13 -30
  193. package/dist/docs/components/tooltip.yaml +56 -49
  194. package/dist/docs/components/tree-item.yaml +9 -10
  195. package/dist/docs/components/tree.yaml +127 -10
  196. package/dist/docs/components/wrap.yaml +60 -0
  197. package/dist/docs/traits/toggle-theme.yaml +34 -0
  198. package/dist/element.js +1 -1
  199. package/dist/icons.js +79 -59
  200. package/dist/icons.js.map +1 -1
  201. package/dist/reactivity.js +2 -2
  202. package/dist/register.d.ts +0 -1
  203. package/dist/register.js +368 -352
  204. package/dist/register.js.map +1 -1
  205. package/dist/store.js +1 -1
  206. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  207. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  208. package/dist/traits.js +528 -485
  209. package/dist/traits.js.map +1 -1
  210. package/package.json +1 -1
  211. package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
@@ -2,138 +2,129 @@ name: aui-textarea
2
2
  tag: aui-textarea
3
3
  type: component
4
4
  summary: Multi-line text input with autogrow support.
5
- description: >
6
- Multi-line input. Same wrapper pattern as aui-input — the
7
- wrapper owns the visual chrome, a native <textarea> lives
8
- inside with browser chrome stripped. Supports autogrow
9
- modifier for auto-expanding height to content. Defaults to
10
- width: 20ch for standalone use. Automatically stretches to full
11
- width when placed inside aui-field. Use width="full" on the element
12
- to override the default width in other contexts.
13
-
5
+ description: |
6
+ Multi-line input. Same wrapper pattern as aui-input — the wrapper owns the visual chrome, a native <textarea> lives inside with browser chrome stripped. Supports autogrow modifier for auto-expanding height to content. Defaults to width: 20ch for standalone use. Automatically stretches to full width when placed inside aui-field. Use width="full" on the element to override the default width in other contexts.
14
7
  base: AgentElement
15
-
16
8
  presentational:
17
9
  size:
18
10
  syntax: key-value
19
11
  attribute: size
20
12
  cascades: true
21
13
  default: medium
22
- values: [xs, sm, md, lg, xl]
14
+ values:
15
+ - xs
16
+ - sm
17
+ - md
18
+ - lg
19
+ - xl
23
20
  description: Controls font size and padding.
24
-
25
21
  radius:
26
22
  syntax: boolean
27
23
  exclusive: true
28
24
  cascades: true
29
25
  default: medium
30
- values: [sharp, round]
26
+ values:
27
+ - sharp
28
+ - round
31
29
  description: Controls border radius.
32
-
33
30
  density:
34
31
  syntax: key-value
35
32
  attribute: density
36
33
  cascades: true
37
34
  default: regular
38
- values: [compact, spacious]
35
+ values:
36
+ - compact
37
+ - spacious
39
38
  description: Controls padding compression.
40
-
41
39
  intent:
42
40
  syntax: boolean
43
41
  exclusive: true
44
42
  cascades: true
45
43
  default: neutral
46
- values: [accent, info, success, warning, danger]
44
+ values:
45
+ - accent
46
+ - info
47
+ - success
48
+ - warning
49
+ - danger
47
50
  description: Color family for border and focus ring.
48
-
49
51
  attributes:
50
52
  disabled:
51
53
  syntax: boolean
52
54
  type: boolean
53
55
  default: false
54
56
  description: Prevents interaction.
55
-
56
57
  readonly:
57
58
  syntax: boolean
58
59
  type: boolean
59
60
  default: false
60
61
  description: Allows selection but prevents editing.
61
-
62
62
  required:
63
63
  syntax: boolean
64
64
  type: boolean
65
65
  default: false
66
66
  description: Marks as required for form validation.
67
-
68
67
  autogrow:
69
68
  syntax: boolean
70
69
  type: boolean
71
70
  default: false
72
- description: >
71
+ description: |
73
72
  Auto-expands height to fit content. Disables manual resize.
74
-
75
73
  autofocus:
76
74
  syntax: boolean
77
75
  type: boolean
78
76
  default: false
79
77
  description: Focuses the textarea on mount.
80
-
81
78
  placeholder:
82
79
  syntax: key-value
83
80
  type: string
84
81
  default: ""
85
82
  description: Placeholder text.
86
-
87
83
  value:
88
84
  syntax: key-value
89
85
  type: string
90
86
  default: ""
91
87
  description: Current textarea value.
92
-
93
88
  name:
94
89
  syntax: key-value
95
90
  type: string
96
91
  default: ""
97
92
  description: Form submission name.
98
-
99
93
  rows:
100
94
  syntax: key-value
101
95
  type: string
102
96
  default: "3"
103
97
  description: Initial visible row count.
104
-
105
98
  minlength:
106
99
  syntax: key-value
107
100
  type: string
108
101
  default: ""
109
102
  description: Minimum character count.
110
-
111
103
  maxlength:
112
104
  syntax: key-value
113
105
  type: string
114
106
  default: ""
115
107
  description: Maximum character count.
116
-
117
108
  modifiers:
118
109
  autogrow:
119
110
  syntax: boolean
120
- description: >
121
- Auto-expands textarea height to fit content. Disables
122
- manual resize handle. Height adjusts on every input event.
123
-
111
+ description: |
112
+ Auto-expands textarea height to fit content. Disables manual resize handle. Height adjusts on every input event.
124
113
  content:
125
114
  model: mixed
126
- accepts: [textarea]
115
+ accepts:
116
+ - textarea
127
117
  required: false
128
118
  description: Auto-stamps a native textarea if none exists.
129
-
130
119
  composition:
131
- parents: [aui-field, aui-stack, form, div]
120
+ parents:
121
+ - aui-field
122
+ - aui-stack
123
+ - form
124
+ - div
132
125
  children: null
133
- context: >
134
- Use inside aui-field for labeled textareas. Standalone for
135
- chat inputs, comment boxes, code editors.
136
-
126
+ context: |
127
+ Use inside aui-field for labeled textareas. Standalone for chat inputs, comment boxes, code editors.
137
128
  a11y:
138
129
  role: implicit (native textarea)
139
130
  keyboard:
@@ -142,13 +133,11 @@ a11y:
142
133
  aria-disabled: Reflected from disabled.
143
134
  aria-readonly: Reflected from readonly.
144
135
  aria-required: Reflected from required.
145
-
146
136
  events:
147
137
  input:
148
138
  description: Fires on every keystroke.
149
139
  change:
150
140
  description: Fires on blur.
151
-
152
141
  tokens:
153
142
  - name: --aui-textarea-font-family
154
143
  default: var(--aui-font-family)
@@ -204,28 +193,22 @@ tokens:
204
193
  - name: --aui-textarea-border-disabled
205
194
  default: var(--aui-stroke-disabled, var(--aui-border-disabled))
206
195
  description: Border color when disabled.
207
-
208
196
  css-notes:
209
197
  attr-audit:
210
198
  - "AB1: [disabled], [readonly], [autogrow] — visual state via attributes"
211
199
  - "[autogrow] > textarea { resize: none; overflow: hidden } — CSS disables manual resize"
212
- - ":focus-within — focus ring on wrapper"
213
-
200
+ - :focus-within — focus ring on wrapper
214
201
  examples:
215
- - html: <aui-textarea placeholder="Write a message..."></aui-textarea>
216
- description: Basic textarea.
217
-
218
- - html: <aui-textarea placeholder="Auto-expanding..." autogrow></aui-textarea>
219
- description: Autogrow textarea.
220
-
221
- - html: <aui-textarea placeholder="Disabled" disabled></aui-textarea>
222
- description: Disabled textarea.
223
-
224
- - html: <aui-textarea value="Read only content" readonly></aui-textarea>
225
- description: Read-only textarea.
226
-
227
- - html: |
202
+ - description: Basic textarea
203
+ html: <aui-textarea placeholder="Write a message..."></aui-textarea>
204
+ - description: Autogrow textarea
205
+ html: <aui-textarea placeholder="Auto-expanding..." autogrow></aui-textarea>
206
+ - description: Disabled textarea
207
+ html: <aui-textarea placeholder="Disabled" disabled></aui-textarea>
208
+ - description: Read-only textarea
209
+ html: <aui-textarea value="Read only content" readonly></aui-textarea>
210
+ - description: Textarea inside a labeled field
211
+ html: |-
228
212
  <aui-field label="Bio" description="Tell us about yourself.">
229
213
  <aui-textarea placeholder="Write here..." rows="4"></aui-textarea>
230
214
  </aui-field>
231
- description: Textarea inside a labeled field.
@@ -1,59 +1,52 @@
1
1
  name: aui-time-field
2
2
  tag: aui-time-field
3
3
  type: component
4
- summary: Segmented time input with independently editable hour and minute segments.
5
- description: >
6
- A time entry control where hour and minute (and optional AM/PM)
7
- are separate focusable segments. Each segment supports arrow-key
8
- increment/decrement, direct digit entry with auto-advance, and
9
- Tab/Arrow navigation between segments. Supports 12h and 24h
10
- formats with configurable minute step. No native form elements.
11
-
4
+ summary: Segmented time input with independently editable hour, minute, and optional seconds segments.
5
+ description: |
6
+ A time entry control where hour, minute, and optional seconds (via show-seconds) are separate focusable segments. Each segment supports arrow-key increment/decrement, direct digit entry with auto-advance, and Tab/Arrow navigation between segments. Supports 12h and 24h formats with configurable minute step. No native form elements.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  value:
16
10
  syntax: key-value
17
11
  type: string
18
12
  default: ""
19
13
  description: Time value in HH:MM (24h) format.
20
-
21
14
  min:
22
15
  syntax: key-value
23
16
  type: string
24
17
  default: ""
25
18
  description: Earliest allowed time (HH:MM).
26
-
27
19
  max:
28
20
  syntax: key-value
29
21
  type: string
30
22
  default: ""
31
23
  description: Latest allowed time (HH:MM).
32
-
33
24
  step:
34
25
  syntax: key-value
35
26
  type: string
36
27
  default: "1"
37
28
  description: Minute increment for arrow key navigation.
38
-
39
29
  format:
40
30
  syntax: key-value
41
31
  type: string
42
- default: "24h"
32
+ default: 24h
43
33
  description: Display format (12h or 24h).
44
-
34
+ show-seconds:
35
+ syntax: boolean
36
+ type: boolean
37
+ default: false
38
+ description: |
39
+ Adds a seconds segment (HH:MM:SS). When enabled, value includes seconds and the committed format is HH:MM:SS.
45
40
  placeholder:
46
41
  syntax: key-value
47
42
  type: string
48
43
  default: ""
49
44
  description: Placeholder shown in empty segments.
50
-
51
45
  disabled:
52
46
  syntax: boolean
53
47
  type: boolean
54
48
  default: false
55
49
  description: Prevents interaction. Dims visually.
56
-
57
50
  a11y:
58
51
  role: spinbutton (on each segment)
59
52
  keyboard:
@@ -62,14 +55,13 @@ a11y:
62
55
  ArrowLeft: Move to previous segment.
63
56
  ArrowRight: Move to next segment.
64
57
  Tab: Move between segments.
65
- "0-9": Digit entry with auto-advance.
58
+ 0-9: Digit entry with auto-advance.
66
59
  Backspace: Clear segment.
67
- "a/p": Toggle AM/PM (12h format).
60
+ a/p: Toggle AM/PM (12h format).
68
61
  aria:
69
62
  aria-label: Segment name (Hour, Minute, AM/PM).
70
63
  aria-valuemin: Segment minimum.
71
64
  aria-valuemax: Segment maximum.
72
-
73
65
  tokens:
74
66
  - name: --aui-time-field-background
75
67
  default: var(--aui-control, var(--aui-fill))
@@ -98,23 +90,105 @@ tokens:
98
90
  - name: --aui-time-field-segment-color-focus
99
91
  default: var(--aui-accent-700)
100
92
  description: Focused segment text color.
101
-
102
93
  composition:
103
- parents: [aui-field, aui-stack, aui-container, div]
94
+ parents:
95
+ - aui-field
96
+ - aui-stack
97
+ - aui-container
98
+ - div
104
99
  children: []
105
- context: >
106
- Standalone time entry. Use inside aui-field for labeled forms.
107
- Not an aui-input variant -- separate segmented control.
108
-
100
+ context: |
101
+ Standalone time entry. Use inside aui-field for labeled forms. Not an aui-input variant -- separate segmented control.
109
102
  examples:
110
- - html: <aui-time-field value="14:30"></aui-time-field>
111
- description: 24h time field.
103
+ - description: Default 24h time field
104
+ html: <aui-time-field value="14:30"></aui-time-field>
105
+ - description: Morning time
106
+ html: |-
107
+ <aui-time-field value="09:00"></aui-time-field>
108
+
109
+ <!-- ===============================================================
110
+ 12H FORMAT
111
+ =============================================================== -->
112
+ - description: 12h format with AM/PM segment
113
+ html: <aui-time-field value="14:30" format="12h"></aui-time-field>
114
+ - description: 12h morning time
115
+ html: |-
116
+ <aui-time-field value="09:15" format="12h"></aui-time-field>
117
+
118
+ <!-- ===============================================================
119
+ EMPTY STATE
120
+ =============================================================== -->
121
+ - description: Empty time field (segments show --)
122
+ html: |-
123
+ <aui-time-field></aui-time-field>
124
+
125
+ <!-- ===============================================================
126
+ WITH STEP
127
+ =============================================================== -->
128
+ - description: 15-minute increment steps
129
+ html: <aui-time-field value="09:00" step="15"></aui-time-field>
130
+ - description: 5-minute increments
131
+ html: |-
132
+ <aui-time-field value="12:00" step="5"></aui-time-field>
133
+
134
+ <!-- ===============================================================
135
+ DISABLED
136
+ =============================================================== -->
137
+ - description: Disabled time field
138
+ html: |-
139
+ <aui-time-field value="14:30" disabled></aui-time-field>
112
140
 
113
- - html: <aui-time-field value="02:30" format="12h"></aui-time-field>
114
- description: 12h format with AM/PM.
141
+ <!-- ===============================================================
142
+ IN FORM FIELD
143
+ =============================================================== -->
144
+ - description: Time field inside aui-field with label
145
+ html: |-
146
+ <aui-field label="Meeting Time">
147
+ <aui-time-field value="10:00"></aui-time-field>
148
+ </aui-field>
149
+ - description: 12h time field in form
150
+ html: |-
151
+ <aui-field label="Alarm">
152
+ <aui-time-field value="07:30" format="12h"></aui-time-field>
153
+ </aui-field>
115
154
 
116
- - html: <aui-time-field value="09:00" step="15"></aui-time-field>
117
- description: 15-minute increments.
155
+ <!-- ===============================================================
156
+ ROW -- multiple time fields
157
+ =============================================================== -->
158
+ - description: Start and end time fields
159
+ html: |-
160
+ <aui-stack direction="row" gap="3">
161
+ <aui-field label="Start">
162
+ <aui-time-field value="09:00"></aui-time-field>
163
+ </aui-field>
164
+ <aui-field label="End">
165
+ <aui-time-field value="17:00"></aui-time-field>
166
+ </aui-field>
167
+ </aui-stack>
118
168
 
119
- - html: <aui-time-field value="14:30" disabled></aui-time-field>
120
- description: Disabled time field.
169
+ <!-- ===============================================================
170
+ WITH SECONDS
171
+ =============================================================== -->
172
+ - description: 24h time with seconds
173
+ html: <aui-time-field value="14:30:45" show-seconds></aui-time-field>
174
+ - description: 12h time with seconds
175
+ html: <aui-time-field value="09:15:30" format="12h" show-seconds></aui-time-field>
176
+ - description: Live clock — updates every second
177
+ html: |-
178
+ <aui-field label="Current time (live)">
179
+ <aui-time-field id="live-clock" show-seconds></aui-time-field>
180
+ </aui-field>
181
+ <script>
182
+ requestAnimationFrame(function tick() {
183
+ const el = document.getElementById('live-clock')
184
+ if (el) {
185
+ const now = new Date()
186
+ el.setAttribute('value',
187
+ String(now.getHours()).padStart(2,'0') + ':' +
188
+ String(now.getMinutes()).padStart(2,'0') + ':' +
189
+ String(now.getSeconds()).padStart(2,'0')
190
+ )
191
+ }
192
+ requestAnimationFrame(tick)
193
+ })
194
+ </script>
@@ -2,49 +2,37 @@ name: aui-toast
2
2
  tag: aui-toast
3
3
  type: component
4
4
  summary: Toast notification with auto-dismiss and stacking.
5
- description: >
6
- Ephemeral notification that auto-dismisses. Use the imperative
7
- AuiToast.show() API or declaratively with the open attribute.
8
- Multiple toasts stack inside aui-toast-container (auto-created
9
- on first use). Intent set via boolean attribute (info, success,
10
- warning, danger).
11
-
5
+ description: |
6
+ Ephemeral notification that auto-dismisses. Use the imperative AuiToast.show() API or declaratively with the open attribute. Multiple toasts stack inside aui-toast-container (auto-created on first use). Intent set via boolean attribute (info, success, warning, danger).
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  open:
16
10
  syntax: boolean
17
11
  type: boolean
18
12
  default: false
19
13
  description: Whether the toast is visible.
20
-
21
14
  message:
22
15
  syntax: key-value
23
16
  type: string
24
17
  default: ""
25
18
  description: Toast message text.
26
-
27
19
  duration:
28
20
  syntax: key-value
29
21
  type: string
30
22
  default: "4000"
31
23
  description: Auto-dismiss delay in ms. Set to 0 to disable.
32
-
33
24
  closeable:
34
25
  syntax: boolean
35
26
  type: boolean
36
27
  default: true
37
28
  description: Show a dismiss button.
38
-
39
29
  a11y:
40
30
  role: status
41
31
  aria:
42
32
  aria-live: polite
43
-
44
33
  events:
45
34
  dismiss:
46
35
  description: Fired when the toast is dismissed (auto or manual).
47
-
48
36
  tokens:
49
37
  - name: --aui-toast-font-family
50
38
  default: var(--aui-font-family)
@@ -56,7 +44,7 @@ tokens:
56
44
  default: var(--aui-ink)
57
45
  description: Text color of the toast.
58
46
  - name: --aui-toast-background
59
- default: var(--aui-card, var(--aui-doc, #fff))
47
+ default: var(--aui-card, var(--aui-doc,
60
48
  description: Background color of the toast.
61
49
  - name: --aui-toast-border
62
50
  default: var(--aui-border-muted, oklch(0.8 0 0))
@@ -97,19 +85,14 @@ tokens:
97
85
  - name: --aui-toast-intent-danger
98
86
  default: var(--aui-danger, oklch(0.6 0.2 25))
99
87
  description: Accent color for danger intent toasts.
100
-
101
88
  examples:
102
- - html: <aui-toast open message="Item saved successfully" success duration="0"></aui-toast>
103
- description: Success toast.
104
-
105
- - html: <aui-toast open message="New version available" info duration="0"></aui-toast>
106
- description: Info toast.
107
-
108
- - html: <aui-toast open message="Storage almost full" warning duration="0"></aui-toast>
109
- description: Warning toast.
110
-
111
- - html: <aui-toast open message="Failed to delete item" danger duration="0" closeable></aui-toast>
112
- description: Danger toast with close button.
113
-
114
- - html: <aui-toast open message="Default toast with no intent" duration="0"></aui-toast>
115
- description: Default toast (no intent).
89
+ - description: Success toast
90
+ html: <aui-toast open message="Item saved successfully" success duration="0"></aui-toast>
91
+ - description: Info toast
92
+ html: <aui-toast open message="New version available" info duration="0"></aui-toast>
93
+ - description: Warning toast
94
+ html: <aui-toast open message="Storage almost full" warning duration="0"></aui-toast>
95
+ - description: Danger toast with close button
96
+ html: <aui-toast open message="Failed to delete item" danger duration="0" closeable></aui-toast>
97
+ - description: Default toast (no intent)
98
+ html: <aui-toast open message="Default toast with no intent" duration="0"></aui-toast>
@@ -2,55 +2,39 @@ name: aui-tooltip
2
2
  tag: aui-tooltip
3
3
  type: component
4
4
  summary: Hover/focus tooltip with popover-based positioning.
5
- description: >
6
- A lightweight tooltip that appears on hover or focus of its anchor
7
- element. Uses the Popover API for top-layer rendering and CSS
8
- anchor positioning for placement. The anchor is auto-discovered
9
- as the previous sibling element.
10
-
5
+ description: |
6
+ A lightweight tooltip that appears on hover or focus of its anchor element. Uses the Popover API for top-layer rendering and CSS anchor positioning for placement. The anchor is auto-discovered as the previous sibling element.
11
7
  base: AgentElement
12
-
13
- # ── Component attributes ──────────────────────────────────
14
-
15
8
  attributes:
16
9
  content:
17
10
  syntax: key-value
18
11
  type: string
19
12
  default: ""
20
- description: >
13
+ description: |
21
14
  The text content displayed inside the tooltip.
22
-
23
15
  position:
24
16
  syntax: key-value
25
17
  type: enum
26
- values: [top, bottom, left, right]
18
+ values:
19
+ - top
20
+ - bottom
21
+ - left
22
+ - right
27
23
  default: top
28
- description: >
29
- Preferred placement relative to the anchor element.
30
- Uses CSS anchor positioning for layout.
31
-
32
- # ── Content model ─────────────────────────────────────────
33
-
24
+ description: |
25
+ Preferred placement relative to the anchor element. Uses CSS anchor positioning for layout.
34
26
  content:
35
27
  model: empty
36
28
  accepts: []
37
29
  required: false
38
- description: >
39
- Content is set via the content attribute. The tooltip
40
- stamps its own popover surface internally.
41
-
42
- # ── Composition ───────────────────────────────────────────
43
-
30
+ description: |
31
+ Content is set via the content attribute. The tooltip stamps its own popover surface internally.
44
32
  composition:
45
- parents: [any]
33
+ parents:
34
+ - any
46
35
  children: null
47
- context: >
48
- Place as a sibling immediately after the element you want
49
- to annotate. The tooltip auto-discovers the previous sibling
50
- as its anchor. Works with any interactive element.
51
-
52
- # ── Accessibility ─────────────────────────────────────────
53
-
36
+ context: |
37
+ Place as a sibling immediately after the element you want to annotate. The tooltip auto-discovers the previous sibling as its anchor. Works with any interactive element.
54
38
  a11y:
55
39
  role: tooltip (on the popover surface)
56
40
  aria:
@@ -58,12 +42,8 @@ a11y:
58
42
  keyboard:
59
43
  Escape: Dismisses the tooltip.
60
44
  focus:
61
- description: >
62
- Tooltip appears on focusin and disappears on focusout
63
- of the anchor element.
64
-
65
- # ── CSS tokens consumed ──────────────────────────────────
66
-
45
+ description: |
46
+ Tooltip appears on focusin and disappears on focusout of the anchor element.
67
47
  tokens:
68
48
  - name: --aui-tooltip-padding
69
49
  default: 0.375rem 0.625rem
@@ -89,23 +69,50 @@ tokens:
89
69
  - name: --aui-tooltip-offset
90
70
  default: 0.375rem
91
71
  description: Distance between tooltip and its anchor element.
92
-
93
- # ── Examples ──────────────────────────────────────────────
94
-
95
72
  examples:
96
- - html: |
73
+ - description: Tooltip on an hide-label button
74
+ html: |-
97
75
  <aui-button hide-label ghost label="Settings">
98
76
  <aui-icon name="gear" slot="leading"></aui-icon>
99
77
  </aui-button>
100
78
  <aui-tooltip content="Settings" position="bottom"></aui-tooltip>
101
- description: Tooltip on an hide-label button.
102
-
103
- - html: |
79
+ - description: Tooltip with keyboard shortcut hint
80
+ html: |-
104
81
  <aui-button primary accent>Save</aui-button>
105
82
  <aui-tooltip content="Save your changes (⌘S)"></aui-tooltip>
106
- description: Tooltip with keyboard shortcut hint.
107
-
108
- - html: |
83
+ - description: Tooltip positioned to the right of an icon
84
+ html: |-
109
85
  <aui-icon name="info" label="Info"></aui-icon>
110
86
  <aui-tooltip content="More information" position="right"></aui-tooltip>
111
- description: Tooltip positioned to the right of an icon.
87
+ - description: Tooltip positioned to the top (default)
88
+ html: |-
89
+ <aui-button>Hover me</aui-button>
90
+ <aui-tooltip content="Top tooltip (default)" position="top"></aui-tooltip>
91
+ - description: Tooltip positioned to the bottom
92
+ html: |-
93
+ <aui-button>Hover me</aui-button>
94
+ <aui-tooltip content="Bottom tooltip" position="bottom"></aui-tooltip>
95
+ - description: Tooltip positioned to the left
96
+ html: |-
97
+ <aui-button>Hover me</aui-button>
98
+ <aui-tooltip content="Left tooltip" position="left"></aui-tooltip>
99
+ - description: Long text tooltip that wraps across multiple lines
100
+ html: |-
101
+ <aui-button>Terms</aui-button>
102
+ <aui-tooltip content="By continuing you agree to the Terms of Service, Privacy Policy, and acknowledge that your data may be processed in accordance with applicable regulations." position="top"></aui-tooltip>
103
+ - description: Tooltip on an icon-only button with ghost style
104
+ html: |-
105
+ <aui-button hide-label ghost label="Delete">
106
+ <aui-icon name="trash" slot="leading"></aui-icon>
107
+ </aui-button>
108
+ <aui-tooltip content="Delete item" position="bottom"></aui-tooltip>
109
+ - description: Tooltip on an icon-only button showing a keyboard shortcut
110
+ html: |-
111
+ <aui-button hide-label ghost label="Undo">
112
+ <aui-icon name="arrow-counter-clockwise" slot="leading"></aui-icon>
113
+ </aui-button>
114
+ <aui-tooltip content="Undo (⌘Z)" position="bottom"></aui-tooltip>
115
+ - description: Tooltip with keyboard shortcut hint on a text button
116
+ html: |-
117
+ <aui-button primary>New file</aui-button>
118
+ <aui-tooltip content="Create a new file (⌘N)" position="top"></aui-tooltip>