@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
@@ -0,0 +1,81 @@
1
+ name: Description List
2
+ tag: aui-description-list
3
+ type: css-only
4
+ summary: Key-value pair display using native dt/dd elements with grid layout.
5
+ attributes:
6
+ direction:
7
+ type: enum
8
+ values:
9
+ - row
10
+ - column
11
+ default: row
12
+ description: Layout direction of term/description pairs
13
+ striped:
14
+ type: boolean
15
+ description: Alternating background on pairs
16
+ usage: |
17
+ <aui-description-list>
18
+ <dt>Name</dt>
19
+ <dd>Jane Doe</dd>
20
+ <dt>Role</dt>
21
+ <dd>Engineer</dd>
22
+ </aui-description-list>
23
+ examples:
24
+ - description: Basic key-value description list
25
+ html: |-
26
+ <aui-description-list>
27
+ <dt>Name</dt>
28
+ <dd>Jane Doe</dd>
29
+ <dt>Role</dt>
30
+ <dd>Engineer</dd>
31
+ <dt>Email</dt>
32
+ <dd>jane@example.com</dd>
33
+ <dt>Location</dt>
34
+ <dd>San Francisco, CA</dd>
35
+ </aui-description-list>
36
+
37
+ <!-- ===============================================================
38
+ COLUMN DIRECTION
39
+ =============================================================== -->
40
+ - description: Column direction (stacked term above description)
41
+ html: |-
42
+ <aui-description-list direction="column">
43
+ <dt>Status</dt>
44
+ <dd>Active</dd>
45
+ <dt>Plan</dt>
46
+ <dd>Professional</dd>
47
+ <dt>Billing</dt>
48
+ <dd>Monthly</dd>
49
+ </aui-description-list>
50
+
51
+ <!-- ===============================================================
52
+ STRIPED
53
+ =============================================================== -->
54
+ - description: Striped rows for easier scanning
55
+ html: |-
56
+ <aui-description-list striped>
57
+ <dt>Created</dt>
58
+ <dd>2024-01-15</dd>
59
+ <dt>Updated</dt>
60
+ <dd>2024-03-21</dd>
61
+ <dt>Owner</dt>
62
+ <dd>Kim Granlund</dd>
63
+ <dt>Version</dt>
64
+ <dd>2.1.0</dd>
65
+ </aui-description-list>
66
+
67
+ <!-- ===============================================================
68
+ STRIPED + ROW
69
+ =============================================================== -->
70
+ - description: Striped row layout (default direction)
71
+ html: |-
72
+ <aui-description-list striped>
73
+ <dt>API Key</dt>
74
+ <dd>sk_live_abc123def456</dd>
75
+ <dt>Endpoint</dt>
76
+ <dd>https://api.example.com/v2</dd>
77
+ <dt>Rate Limit</dt>
78
+ <dd>1,000 requests/min</dd>
79
+ <dt>Last Used</dt>
80
+ <dd>2 hours ago</dd>
81
+ </aui-description-list>
@@ -2,65 +2,84 @@ name: aui-disclosure-group
2
2
  tag: aui-disclosure-group
3
3
  type: component
4
4
  summary: Coordinates child aui-disclosure elements with optional exclusive (accordion) mode.
5
- description: >
6
- Groups multiple aui-disclosure children. When the exclusive attribute
7
- is present, opening one disclosure automatically closes all siblings,
8
- creating accordion behavior. Without exclusive, all disclosures can
9
- be open independently. Uses a MutationObserver to detect open
10
- attribute changes on child disclosures.
11
-
5
+ description: |
6
+ Groups multiple aui-disclosure children. When the exclusive attribute is present, opening one disclosure automatically closes all siblings, creating accordion behavior. Without exclusive, all disclosures can be open independently. Uses a MutationObserver to detect open attribute changes on child disclosures.
12
7
  base: AgentElement
13
-
14
- # -- Component attributes ---------------------------------------------
15
-
16
8
  attributes:
17
9
  exclusive:
18
10
  syntax: boolean
19
11
  type: boolean
20
12
  default: false
21
- description: >
22
- When set, only one child disclosure can be open at a time.
23
- Opening a disclosure closes all siblings.
24
-
25
- # -- Content model -----------------------------------------------------
26
-
13
+ description: |
14
+ When set, only one child disclosure can be open at a time. Opening a disclosure closes all siblings.
27
15
  content:
28
16
  model: block
29
- accepts: [aui-disclosure]
17
+ accepts:
18
+ - aui-disclosure
30
19
  required: true
31
- description: >
32
- One or more aui-disclosure children. The group coordinates
33
- their open/close state.
34
-
35
- # -- Composition -------------------------------------------------------
36
-
20
+ description: |
21
+ One or more aui-disclosure children. The group coordinates their open/close state.
37
22
  composition:
38
- parents: [aui-stack, aui-content, aui-inset, div]
39
- children: [aui-disclosure]
40
- context: >
41
- Block-level element. Contains aui-disclosure children.
42
- Use inside stacks, content areas, or sidebars.
43
-
44
- # -- Examples ----------------------------------------------------------
45
-
23
+ parents:
24
+ - aui-stack
25
+ - aui-content
26
+ - aui-inset
27
+ - div
28
+ children:
29
+ - aui-disclosure
30
+ context: |
31
+ Block-level element. Contains aui-disclosure children. Use inside stacks, content areas, or sidebars.
46
32
  examples:
47
- - html: |
33
+ - description: Independent disclosure group
34
+ html: |-
48
35
  <aui-disclosure-group>
49
- <aui-disclosure summary="Section 1"><p>Content 1</p></aui-disclosure>
50
- <aui-disclosure summary="Section 2"><p>Content 2</p></aui-disclosure>
36
+ <aui-disclosure summary="Section 1">
37
+ <p>Content for section 1. All sections can be open simultaneously.</p>
38
+ </aui-disclosure>
39
+ <aui-disclosure summary="Section 2">
40
+ <p>Content for section 2. Independent of other sections.</p>
41
+ </aui-disclosure>
42
+ <aui-disclosure summary="Section 3">
43
+ <p>Content for section 3. Toggle freely.</p>
44
+ </aui-disclosure>
51
45
  </aui-disclosure-group>
52
- description: Independent disclosure group (all can be open).
53
46
 
54
- - html: |
47
+ <!-- ===============================================================
48
+ EXCLUSIVE -- accordion mode
49
+ =============================================================== -->
50
+ - description: Exclusive accordion mode
51
+ html: |-
55
52
  <aui-disclosure-group exclusive>
56
- <aui-disclosure summary="General" open><p>General settings...</p></aui-disclosure>
57
- <aui-disclosure summary="Security"><p>Security settings...</p></aui-disclosure>
58
- <aui-disclosure summary="Notifications"><p>Notification prefs...</p></aui-disclosure>
53
+ <aui-disclosure summary="General" open>
54
+ <p>General settings content. Opening another section will close this one.</p>
55
+ </aui-disclosure>
56
+ <aui-disclosure summary="Security">
57
+ <p>Security settings content. Only one section open at a time.</p>
58
+ </aui-disclosure>
59
+ <aui-disclosure summary="Notifications">
60
+ <p>Notification preferences. Accordion enforces single-open.</p>
61
+ </aui-disclosure>
59
62
  </aui-disclosure-group>
60
- description: Exclusive accordion mode.
61
-
62
- # -- Use cases ---------------------------------------------------------
63
63
 
64
+ <!-- ===============================================================
65
+ FAQ STYLE -- exclusive with more sections
66
+ =============================================================== -->
67
+ - description: FAQ-style accordion
68
+ html: |-
69
+ <aui-disclosure-group exclusive>
70
+ <aui-disclosure summary="What is agent-ui?">
71
+ <p>A design system for building agent interfaces with web components.</p>
72
+ </aui-disclosure>
73
+ <aui-disclosure summary="How do I install it?">
74
+ <p>Install via npm: npm install @agent-ui/kit</p>
75
+ </aui-disclosure>
76
+ <aui-disclosure summary="Is it open source?">
77
+ <p>Yes, agent-ui is released under the MIT license.</p>
78
+ </aui-disclosure>
79
+ <aui-disclosure summary="Can I use it with React?">
80
+ <p>Yes, web components work with any framework including React, Vue, and Svelte.</p>
81
+ </aui-disclosure>
82
+ </aui-disclosure-group>
64
83
  use-cases:
65
84
  - FAQ pages with accordion behavior.
66
85
  - Settings panels with grouped expandable sections.
@@ -2,80 +2,94 @@ name: aui-disclosure
2
2
  tag: aui-disclosure
3
3
  type: component
4
4
  summary: Collapsible content section with animated expand/collapse.
5
- description: >
6
- Standalone collapsible section with a clickable trigger row.
7
- Stamps a button with the summary text and a chevron icon. Content
8
- height animates via CSS grid-template-rows transition. Toggle the
9
- open attribute to expand or collapse programmatically.
10
-
5
+ description: |
6
+ Standalone collapsible section with a clickable trigger row. Stamps a button with the summary text and a chevron icon. Content height animates via CSS grid-template-rows transition. Toggle the open attribute to expand or collapse programmatically.
11
7
  base: AgentElement
12
-
13
- # -- Component attributes ------------------------------------------
14
-
15
8
  attributes:
16
9
  summary:
17
10
  syntax: key-value
18
11
  type: string
19
12
  default: ""
20
- description: >
13
+ description: |
21
14
  Text displayed in the trigger row header.
22
-
23
15
  open:
24
16
  syntax: boolean
25
17
  type: boolean
26
18
  default: false
27
- description: >
19
+ description: |
28
20
  Whether the content is expanded. Toggle to open/close.
29
-
30
- # -- Content model -------------------------------------------------
31
-
32
21
  content:
33
22
  model: block
34
- accepts: [any]
23
+ accepts:
24
+ - any
35
25
  required: true
36
- description: >
37
- The collapsible content. Can contain any elements — forms,
38
- stacks, text, nested disclosures, etc.
39
-
40
- # -- Slots ---------------------------------------------------------
41
-
26
+ description: |
27
+ The collapsible content. Can contain any elements — forms, stacks, text, nested disclosures, etc.
42
28
  slots:
43
29
  default:
44
- accepts: [any]
30
+ accepts:
31
+ - any
45
32
  required: true
46
33
  description: Content revealed when open.
47
-
48
- # -- Composition ---------------------------------------------------
49
-
50
34
  composition:
51
- parents: [aui-stack, aui-content, aui-inset, div]
52
- children: [any]
53
- context: >
54
- Block-level element. Nest inside stacks, content areas, or
55
- sidebars. Supports nesting (disclosure inside disclosure).
56
-
57
- # -- Examples ------------------------------------------------------
58
-
35
+ parents:
36
+ - aui-stack
37
+ - aui-content
38
+ - aui-inset
39
+ - div
40
+ children:
41
+ - any
42
+ context: |
43
+ Block-level element. Nest inside stacks, content areas, or sidebars. Supports nesting (disclosure inside disclosure).
59
44
  examples:
60
- - html: |
45
+ - description: Basic collapsed disclosure
46
+ html: |-
61
47
  <aui-disclosure summary="More details">
62
- <p>Hidden content revealed on click.</p>
48
+ <p>Hidden content revealed on click. Click the trigger row to expand.</p>
63
49
  </aui-disclosure>
64
- description: Basic collapsed disclosure.
65
50
 
66
- - html: |
51
+ <!-- ===============================================================
52
+ INITIALLY OPEN
53
+ =============================================================== -->
54
+ - description: Initially open disclosure
55
+ html: |-
67
56
  <aui-disclosure summary="Advanced Settings" open>
68
57
  <aui-stack gap="3">
69
- <p>Setting A</p>
70
- <p>Setting B</p>
58
+ <p>Setting A: Timeout configuration</p>
59
+ <p>Setting B: Retry policy</p>
71
60
  </aui-stack>
72
61
  </aui-disclosure>
73
- description: Initially open disclosure.
74
62
 
75
- - html: |
63
+ <!-- ===============================================================
64
+ NESTED
65
+ =============================================================== -->
66
+ - description: Nested disclosures
67
+ html: |-
76
68
  <aui-disclosure summary="Section A">
77
- <aui-disclosure summary="Sub-section A.1">
78
- Nested content.
79
- </aui-disclosure>
69
+ <aui-stack gap="2">
70
+ <p>Top-level content for Section A.</p>
71
+ <aui-disclosure summary="Sub-section A.1">
72
+ <p>Nested content inside sub-section A.1.</p>
73
+ </aui-disclosure>
74
+ <aui-disclosure summary="Sub-section A.2">
75
+ <p>Nested content inside sub-section A.2.</p>
76
+ </aui-disclosure>
77
+ </aui-stack>
80
78
  </aui-disclosure>
81
- description: Nested disclosures.
79
+
80
+ <!-- ===============================================================
81
+ MULTIPLE -- stacked disclosures
82
+ =============================================================== -->
83
+ - description: Stacked disclosures (FAQ style)
84
+ html: |-
85
+ <aui-stack gap="0">
86
+ <aui-disclosure summary="What is agent-ui?">
87
+ <p>A design system for building agent interfaces with web components.</p>
88
+ </aui-disclosure>
89
+ <aui-disclosure summary="How do I install it?">
90
+ <p>Install via npm: npm install @agent-ui/kit</p>
91
+ </aui-disclosure>
92
+ <aui-disclosure summary="Is it open source?">
93
+ <p>Yes, agent-ui is released under the MIT license.</p>
94
+ </aui-disclosure>
95
+ </aui-stack>
@@ -0,0 +1,63 @@
1
+ name: aui-divider
2
+ tag: aui-divider
3
+ type: element
4
+ summary: Semantic separator line.
5
+ description: |
6
+ Visual separator between content sections. Horizontal by default. Set orientation="vertical" for vertical dividers inside flex rows. Self-closing — no children.
7
+ attributes:
8
+ orientation:
9
+ syntax: key-value
10
+ type: enum
11
+ values:
12
+ - vertical
13
+ default: null
14
+ description: |
15
+ Divider orientation. Horizontal is the default — no attribute needed. Set orientation="vertical" inside direction="row" containers.
16
+ modifiers:
17
+ label:
18
+ syntax: boolean
19
+ description: |
20
+ Enables labeled divider mode. The element switches to flex layout with ::before and ::after lines flanking the text content. Place label text as the element's inner content. Example: <aui-divider label>or continue with</aui-divider>
21
+ content:
22
+ model: conditional
23
+ accepts:
24
+ - text
25
+ required: false
26
+ description: |
27
+ Empty by default — renders as a 1px line. When the [label] attribute is set, accepts inline text content displayed between two horizontal lines.
28
+ composition:
29
+ parents:
30
+ - aui-stack
31
+ - aui-grid
32
+ - div
33
+ - section
34
+ - main
35
+ children: null
36
+ context: |
37
+ Use between sections, list items, or grouped content. Horizontal by default in column stacks. Use orientation="vertical" in row stacks. The divider stretches to fill available width (horizontal) or height (vertical, via align-self: stretch).
38
+ tokens:
39
+ color:
40
+ - --aui-border-muted
41
+ typography:
42
+ - --aui-font-family
43
+ - --aui-font-xs
44
+ - --aui-ink-muted
45
+ examples:
46
+ - description: Horizontal divider between content
47
+ html: |-
48
+ <aui-stack>
49
+ <span>Above</span>
50
+ <aui-divider></aui-divider>
51
+ <span>Below</span>
52
+ </aui-stack>
53
+ - description: Vertical divider in a row
54
+ html: |-
55
+ <aui-stack direction="row" align-items="center" style="height: 2rem;">
56
+ <span>Left</span>
57
+ <aui-divider orientation="vertical"></aui-divider>
58
+ <span>Right</span>
59
+ </aui-stack>
60
+ - description: Labeled divider with text between lines
61
+ html: <aui-divider label>or continue with</aui-divider>
62
+ - description: Labeled divider as section header
63
+ html: <aui-divider label>Settings</aui-divider>
@@ -2,16 +2,9 @@ name: aui-dropdown-menu
2
2
  tag: aui-dropdown-menu
3
3
  type: component
4
4
  summary: Trigger button + popover menu for actions (not selection).
5
- description: >
6
- A dropdown menu that stamps a trigger button and opens a popover with
7
- action items. Unlike aui-select, does not track selection state — items
8
- are fire-and-forget actions that emit a select event. Supports label,
9
- icon-leading, hide-label for icon-only triggers, and grouped items
10
- via aui-optgroup. Keyboard accessible with arrow navigation, Enter to
11
- select, and Escape to close.
12
-
5
+ description: |
6
+ A dropdown menu that stamps a trigger button and opens a popover with action items. Unlike aui-select, does not track selection state — items are fire-and-forget actions that emit a select event. Supports label, icon-leading, hide-label for icon-only triggers, and grouped items via aui-optgroup. Keyboard accessible with arrow navigation, Enter to select, and Escape to close.
13
7
  base: AgentElement
14
-
15
8
  attributes:
16
9
  label:
17
10
  syntax: key-value
@@ -43,7 +36,6 @@ attributes:
43
36
  type: boolean
44
37
  default: false
45
38
  description: Whether the menu popover is currently open.
46
-
47
39
  tokens:
48
40
  - name: --aui-dropdown-menu-font-family
49
41
  default: var(--aui-font-family)
@@ -93,7 +85,6 @@ tokens:
93
85
  - name: --aui-dropdown-menu-dropdown-shadow
94
86
  default: var(--aui-shadow-lg)
95
87
  description: Box shadow of the dropdown popover.
96
-
97
88
  a11y:
98
89
  role: button (trigger), menu (popover)
99
90
  keyboard:
@@ -104,29 +95,31 @@ a11y:
104
95
  Escape: Close menu and return focus to trigger.
105
96
  Home: First item.
106
97
  End: Last item.
107
-
108
98
  events:
109
99
  select:
110
100
  description: Fired when a menu item is activated. Detail contains { value }.
111
-
112
101
  dependencies:
113
102
  - aui-option
114
103
  - aui-optgroup
115
-
116
104
  composition:
117
- parents: [aui-header, aui-footer, aui-stack, any]
118
- children: [aui-option, aui-optgroup]
119
-
105
+ parents:
106
+ - aui-header
107
+ - aui-footer
108
+ - aui-stack
109
+ - any
110
+ children:
111
+ - aui-option
112
+ - aui-optgroup
120
113
  examples:
121
- - html: |
114
+ - description: Basic dropdown menu with labeled trigger
115
+ html: |-
122
116
  <aui-dropdown-menu label="Actions">
123
117
  <aui-option value="edit">Edit</aui-option>
124
118
  <aui-option value="duplicate">Duplicate</aui-option>
125
119
  <aui-option value="delete">Delete</aui-option>
126
120
  </aui-dropdown-menu>
127
- description: Basic dropdown menu with labeled trigger.
128
-
129
- - html: |
121
+ - description: Ghost-style dropdown with grouped options
122
+ html: |-
130
123
  <aui-dropdown-menu label="Actions" ghost>
131
124
  <aui-optgroup label="Edit">
132
125
  <aui-option value="cut">Cut</aui-option>
@@ -137,10 +130,8 @@ examples:
137
130
  <aui-option value="delete">Delete</aui-option>
138
131
  </aui-optgroup>
139
132
  </aui-dropdown-menu>
140
- description: Ghost-style dropdown with grouped options.
141
-
142
- - html: |
133
+ - description: Disabled dropdown menu
134
+ html: |-
143
135
  <aui-dropdown-menu label="Actions" disabled>
144
136
  <aui-option value="edit">Edit</aui-option>
145
137
  </aui-dropdown-menu>
146
- description: Disabled dropdown menu.
@@ -7,7 +7,8 @@ attributes:
7
7
  align:
8
8
  syntax: key-value
9
9
  type: enum
10
- values: [end]
10
+ values:
11
+ - end
11
12
  default: ""
12
13
  description: Bottom-anchor content (chat-style).
13
14
  scrollable:
@@ -20,39 +21,32 @@ attributes:
20
21
  type: boolean
21
22
  default: false
22
23
  description: Auto-scroll to bottom on new children (when pinned).
23
- description: >
24
- Scrollable feed for messages and activity streams. Uses block layout
25
- (not flex) so aui-feed-item margins collapse, giving natural vertical
26
- rhythm without explicit gap management.
27
-
24
+ description: |
25
+ Scrollable feed for messages and activity streams. Uses block layout (not flex) so aui-feed-item margins collapse, giving natural vertical rhythm without explicit gap management.
28
26
  a11y:
29
27
  role: feed
30
28
  composition:
31
- parents: [any]
32
- children: [aui-feed-item, any]
33
-
34
- # ── Child element ──────────────────────────────────────────
29
+ parents:
30
+ - any
31
+ children:
32
+ - aui-feed-item
33
+ - any
35
34
  children:
36
35
  aui-feed-item:
37
36
  tag: aui-feed-item
38
37
  summary: Individual item in a feed with margin-based vertical rhythm.
39
- description: >
40
- Uses margin-block for spacing that collapses between siblings.
41
- Consecutive items with the same role attribute (e.g. role="user",
42
- role="assistant") receive tighter spacing via adjacent-sibling
43
- selectors, producing compact clusters of same-sender messages.
38
+ description: |
39
+ Uses margin-block for spacing that collapses between siblings. Consecutive items with the same role attribute (e.g. role="user", role="assistant") receive tighter spacing via adjacent-sibling selectors, producing compact clusters of same-sender messages.
44
40
  attributes:
45
41
  role:
46
42
  syntax: key-value
47
43
  type: string
48
44
  default: ""
49
- description: >
50
- Semantic role of the feed item (e.g. "user", "assistant", "system").
51
- Consecutive items sharing the same role get tighter margin-block-start
52
- (50% of normal spacing).
53
-
45
+ description: |
46
+ Semantic role of the feed item (e.g. "user", "assistant", "system"). Consecutive items sharing the same role get tighter margin-block-start (50% of normal spacing).
54
47
  examples:
55
- - html: |
48
+ - description: Scrollable message feed with feed items
49
+ html: |-
56
50
  <aui-feed scrollable style="height: 16rem; border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
57
51
  <aui-feed-item role="user">
58
52
  <aui-inset><aui-text>Hey, how's the project going?</aui-text></aui-inset>
@@ -67,6 +61,3 @@ examples:
67
61
  <aui-inset><aui-text>Nice, let's review it together.</aui-text></aui-inset>
68
62
  </aui-feed-item>
69
63
  </aui-feed>
70
- description: >
71
- Scrollable message feed with aui-feed-item elements. Consecutive
72
- assistant items get tighter spacing via same-role margin collapsing.