@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,126 @@
1
+ name: aui-stack
2
+ tag: aui-stack
3
+ type: element
4
+ summary: Flex column or row layout container.
5
+ description: |
6
+ The primary layout primitive. Arranges children in a column (default) or row. Default gap is direction-dependent: column (default) uses gap 6, row (direction="row") uses gap 4. An explicit gap="N" attribute overrides both defaults. Accepts layout utility attributes for alignment and wrapping.
7
+ presentational:
8
+ density:
9
+ syntax: key-value
10
+ attribute: density
11
+ cascades: true
12
+ default: regular
13
+ values:
14
+ - compact
15
+ - spacious
16
+ description: |
17
+ Controls gap and spacing compression for the stack and all descendants.
18
+ attributes:
19
+ direction:
20
+ syntax: key-value
21
+ type: enum
22
+ values:
23
+ - row
24
+ - row-reverse
25
+ - column-reverse
26
+ default: null
27
+ description: |
28
+ Flex direction. Column is the default — no attribute needed. Set direction="row" for horizontal layout.
29
+ modifiers:
30
+ wrap:
31
+ syntax: boolean
32
+ description: Enables flex-wrap for wrapping children when they overflow.
33
+ layout:
34
+ alignment:
35
+ syntax: key-value
36
+ attribute: align-items
37
+ values:
38
+ - start
39
+ - center
40
+ - end
41
+ - stretch
42
+ - baseline
43
+ description: |
44
+ Controls cross-axis alignment (align-items). Apply one value.
45
+ justification:
46
+ syntax: key-value
47
+ attribute: justify-content
48
+ values:
49
+ - start
50
+ - center
51
+ - end
52
+ - between
53
+ - around
54
+ - evenly
55
+ description: |
56
+ Controls main-axis distribution (justify-content). Apply one value.
57
+ gap:
58
+ syntax: key-value
59
+ attribute: gap
60
+ values:
61
+ - "0"
62
+ - "1"
63
+ - "2"
64
+ - "3"
65
+ - "4"
66
+ - "5"
67
+ - "6"
68
+ - "7"
69
+ description: |
70
+ Explicit gap size (0–7 space units). Overrides the direction-dependent defaults (6 for column, 4 for row).
71
+ content:
72
+ model: block
73
+ accepts: any
74
+ required: true
75
+ min-children: 1
76
+ description: |
77
+ Any block or inline elements. Stack is the general-purpose layout container — it accepts everything.
78
+ slots:
79
+ default:
80
+ accepts:
81
+ - any
82
+ required: true
83
+ description: Stack children. Order in DOM = visual order.
84
+ composition:
85
+ parents:
86
+ - aui-stack
87
+ - aui-grid
88
+ - aui-content
89
+ - aui-inset
90
+ - div
91
+ - section
92
+ - main
93
+ - form
94
+ children: any
95
+ context: |
96
+ The most-used layout element. Use for vertical lists, horizontal button groups, form layouts, card content. Nesting stacks is the standard pattern for complex layouts. Use direction="row" for horizontal arrangements, no attribute for vertical.
97
+ tokens:
98
+ spacing:
99
+ - --aui-pad-gap-container
100
+ examples:
101
+ - description: Default column stack
102
+ html: |-
103
+ <aui-stack>
104
+ <div>Item 1</div>
105
+ <div>Item 2</div>
106
+ <div>Item 3</div>
107
+ </aui-stack>
108
+ - description: Horizontal row stack
109
+ html: |-
110
+ <aui-stack direction="row">
111
+ <div>Left</div>
112
+ <div>Right</div>
113
+ </aui-stack>
114
+ - description: Wrapping row of badges
115
+ html: |-
116
+ <aui-stack direction="row" wrap>
117
+ <aui-badge accent>Tag 1</aui-badge>
118
+ <aui-badge info>Tag 2</aui-badge>
119
+ <aui-badge success>Tag 3</aui-badge>
120
+ </aui-stack>
121
+ - description: Row with space-between alignment
122
+ html: |-
123
+ <aui-stack direction="row" justify-content="between" align-items="center">
124
+ <span>Start</span>
125
+ <span>End</span>
126
+ </aui-stack>
@@ -2,78 +2,72 @@ name: aui-stepper
2
2
  tag: aui-stepper
3
3
  type: component
4
4
  summary: Multi-step progress container with connector lines.
5
- description: >
6
- Vertical step sequence container. Each child aui-step draws
7
- a connector line to the next step. CSS-only element with no
8
- JS behavior beyond extending AgentElement.
9
-
5
+ description: |
6
+ Vertical step sequence container. Each child aui-step draws a connector line to the next step. CSS-only element with no JS behavior beyond extending AgentElement.
10
7
  base: AgentElement
11
-
12
- # ── Content model ─────────────────────────────────────────
13
-
14
8
  content:
15
9
  model: block
16
- accepts: [aui-step]
10
+ accepts:
11
+ - aui-step
17
12
  required: true
18
- description: >
19
- Contains one or more aui-step children. Each step draws
20
- a connector line to the next sibling.
21
-
22
- # ── Slots ─────────────────────────────────────────────────
23
-
13
+ description: |
14
+ Contains one or more aui-step children. Each step draws a connector line to the next sibling.
24
15
  slots:
25
16
  default:
26
- accepts: [aui-step]
17
+ accepts:
18
+ - aui-step
27
19
  required: true
28
20
  description: Step children.
29
-
30
- # ── CSS tokens consumed ──────────────────────────────────
31
-
32
21
  tokens:
33
22
  sizing:
34
23
  - --aui-stepper-gap
35
24
  - --aui-stepper-connector-width
36
25
  color:
37
26
  - --aui-stepper-connector-color
38
-
39
- # ── Examples ──────────────────────────────────────────────
40
-
41
27
  examples:
42
- - html: |
28
+ - description: Vertical stepper with done, running, and pending steps
29
+ html: |-
43
30
  <aui-stepper>
44
31
  <aui-step state="done">
45
32
  <aui-badge success>1</aui-badge>
46
- <aui-text>Account created</aui-text>
33
+ <aui-stack gap="1">
34
+ <aui-text weight="medium">Account created</aui-text>
35
+ <aui-text muted size="xs">Email verified</aui-text>
36
+ </aui-stack>
47
37
  </aui-step>
48
38
  <aui-step state="running">
49
39
  <aui-badge accent>2</aui-badge>
50
- <aui-text>Profile setup</aui-text>
40
+ <aui-stack gap="1">
41
+ <aui-text weight="medium">Profile setup</aui-text>
42
+ <aui-text muted size="xs">Add your details</aui-text>
43
+ </aui-stack>
51
44
  </aui-step>
52
45
  <aui-step>
53
46
  <aui-badge>3</aui-badge>
54
- <aui-text>Complete</aui-text>
47
+ <aui-stack gap="1">
48
+ <aui-text weight="medium">Complete</aui-text>
49
+ <aui-text muted size="xs">Ready to go</aui-text>
50
+ </aui-stack>
55
51
  </aui-step>
56
52
  </aui-stepper>
57
- description: Vertical stepper with done, running, and pending steps.
58
-
59
- - html: |
53
+ - description: All steps completed
54
+ html: |-
60
55
  <aui-stepper>
61
56
  <aui-step completed>
62
57
  <aui-badge success>1</aui-badge>
63
- <aui-text>Order placed</aui-text>
58
+ <aui-text weight="medium">Order placed</aui-text>
64
59
  </aui-step>
65
60
  <aui-step completed>
66
61
  <aui-badge success>2</aui-badge>
67
- <aui-text>Payment confirmed</aui-text>
62
+ <aui-text weight="medium">Payment confirmed</aui-text>
68
63
  </aui-step>
69
- <aui-step active>
70
- <aui-badge accent>3</aui-badge>
71
- <aui-text>Shipping</aui-text>
64
+ <aui-step completed>
65
+ <aui-badge success>3</aui-badge>
66
+ <aui-text weight="medium">Shipped</aui-text>
72
67
  </aui-step>
73
68
  </aui-stepper>
74
- description: Stepper with completed and active steps.
75
-
76
- - html: |
69
+ - description: Stepper with error state
70
+ html: |-
77
71
  <aui-stepper>
78
72
  <aui-step completed>
79
73
  <aui-badge success>1</aui-badge>
@@ -88,4 +82,3 @@ examples:
88
82
  <aui-text>Verify</aui-text>
89
83
  </aui-step>
90
84
  </aui-stepper>
91
- description: Stepper with an error state step.
@@ -2,80 +2,76 @@ name: aui-switch
2
2
  tag: aui-switch
3
3
  type: component
4
4
  summary: Toggle switch with track and sliding thumb.
5
- description: >
6
- Binary toggle rendered as an iOS-style wide track with a pill-shaped
7
- sliding thumb. Hidden native checkbox for form participation. Label
8
- rendered via CSS ::after { content: attr(label) } — JS only sets
9
- aria-label for accessibility, no DOM stamping for the visible label.
10
- Animated transitions use offset timing (thumb moves before track
11
- fill). Press animation stretches the thumb wider on :active.
12
-
5
+ description: |
6
+ Binary toggle rendered as an iOS-style wide track with a pill-shaped sliding thumb. Hidden native checkbox for form participation. Label rendered via CSS ::after { content: attr(label) } — JS only sets aria-label for accessibility, no DOM stamping for the visible label. Animated transitions use offset timing (thumb moves before track fill). Press animation stretches the thumb wider on :active.
13
7
  base: AgentElement
14
-
15
8
  presentational:
16
9
  size:
17
10
  syntax: key-value
18
11
  attribute: size
19
12
  cascades: true
20
13
  default: medium
21
- values: [xs, sm, md, lg, xl]
14
+ values:
15
+ - xs
16
+ - sm
17
+ - md
18
+ - lg
19
+ - xl
22
20
  description: Controls track and thumb dimensions.
23
-
24
21
  intent:
25
22
  syntax: boolean
26
23
  exclusive: true
27
24
  cascades: true
28
25
  default: neutral
29
- values: [accent, info, success, warning, danger]
26
+ values:
27
+ - accent
28
+ - info
29
+ - success
30
+ - warning
31
+ - danger
30
32
  description: Color family for the checked track fill.
31
-
32
33
  attributes:
33
34
  disabled:
34
35
  syntax: boolean
35
36
  type: boolean
36
37
  default: false
37
38
  description: Prevents interaction.
38
-
39
39
  checked:
40
40
  syntax: boolean
41
41
  type: boolean
42
42
  default: false
43
43
  description: Whether the switch is on.
44
-
45
44
  label:
46
45
  syntax: key-value
47
46
  type: string
48
47
  default: ""
49
48
  description: Label text displayed next to the switch.
50
-
51
49
  name:
52
50
  syntax: key-value
53
51
  type: string
54
52
  default: ""
55
53
  description: Form submission name.
56
-
57
54
  value:
58
55
  syntax: key-value
59
56
  type: string
60
- default: "on"
57
+ default: on
61
58
  description: Form submission value when checked.
62
-
63
59
  content:
64
60
  model: inline
65
- accepts: [input]
61
+ accepts:
62
+ - input
66
63
  required: false
67
- description: >
68
- Auto-stamps hidden input for form participation. Label is
69
- rendered purely via CSS ::after on :scope — no stamped span.
70
-
64
+ description: |
65
+ Auto-stamps hidden input for form participation. Label is rendered purely via CSS ::after on :scope — no stamped span.
71
66
  composition:
72
- parents: [aui-field, aui-stack, form, div]
67
+ parents:
68
+ - aui-field
69
+ - aui-stack
70
+ - form
71
+ - div
73
72
  children: null
74
- context: >
75
- Use for on/off toggles in settings panels. Place inside
76
- aui-field for labeled form switches, or standalone with
77
- the label attribute.
78
-
73
+ context: |
74
+ Use for on/off toggles in settings panels. Place inside aui-field for labeled form switches, or standalone with the label attribute.
79
75
  a11y:
80
76
  role: switch
81
77
  keyboard:
@@ -84,11 +80,9 @@ a11y:
84
80
  aria:
85
81
  aria-checked: Mirrors checked attribute.
86
82
  aria-disabled: Mirrors disabled attribute.
87
-
88
83
  events:
89
84
  change:
90
85
  description: Fires when checked state changes.
91
-
92
86
  tokens:
93
87
  - name: --aui-switch-gap
94
88
  default: calc(var(--aui-space) * 2)
@@ -138,24 +132,19 @@ tokens:
138
132
  - name: --aui-switch-border-disabled
139
133
  default: var(--aui-stroke-disabled, var(--aui-border-disabled))
140
134
  description: Track border when disabled.
141
-
142
135
  css-notes:
143
136
  attr-audit:
144
137
  - "AB1: [checked], [disabled] — visual state via attributes"
145
- - "::before on [data-track] for thumb — pure CSS sliding"
138
+ - ::before on [data-track] for thumb — pure CSS sliding
146
139
  - "CG3: ::after { content: attr(label) } — label rendered in CSS, no JS-stamped [data-label]"
147
- - ":active thumb stretches wider (press animation)"
140
+ - :active thumb stretches wider (press animation)
148
141
  - "Offset timing: thumb translate transitions before track fill color"
149
-
150
142
  examples:
151
- - html: <aui-switch label="Notifications"></aui-switch>
152
- description: Default off switch.
153
-
154
- - html: <aui-switch label="Dark mode" checked></aui-switch>
155
- description: Pre-enabled switch.
156
-
157
- - html: <aui-switch label="Locked" disabled></aui-switch>
158
- description: Disabled switch.
159
-
160
- - html: <aui-switch label="Active" checked accent></aui-switch>
161
- description: Accent-colored enabled switch.
143
+ - description: Default off switch
144
+ html: <aui-switch label="Notifications"></aui-switch>
145
+ - description: Pre-enabled switch
146
+ html: <aui-switch label="Dark mode" checked></aui-switch>
147
+ - description: Disabled switch
148
+ html: <aui-switch label="Locked" disabled></aui-switch>
149
+ - description: Accent-colored enabled switch
150
+ html: <aui-switch label="Active" checked accent></aui-switch>
@@ -2,40 +2,49 @@ name: aui-tab-panel
2
2
  tag: aui-tab-panel
3
3
  type: component
4
4
  summary: Content panel associated with a tab.
5
- description: >
6
- Shown when the matching tab is selected, hidden otherwise.
7
- The parent aui-tabs coordinates visibility.
8
-
5
+ description: |
6
+ Shown when the matching tab is selected, hidden otherwise. The parent aui-tabs coordinates visibility.
9
7
  base: AgentElement
10
-
11
8
  attributes:
12
9
  value:
13
10
  syntax: key-value
14
11
  type: string
15
12
  default: ""
16
13
  description: Panel identifier, matched against aui-tab value.
17
-
18
14
  active:
19
15
  syntax: boolean
20
16
  type: boolean
21
17
  default: false
22
18
  description: Whether this panel is currently visible.
23
-
24
19
  a11y:
25
20
  role: tabpanel
26
21
  aria:
27
22
  aria-hidden: true when not active.
28
-
29
23
  composition:
30
- parents: [aui-tabs]
31
- children: [any]
32
-
24
+ parents:
25
+ - aui-tabs
26
+ children:
27
+ - any
33
28
  examples:
34
- - html: |
35
- <aui-tabs value="overview">
36
- <aui-tab value="overview">Overview</aui-tab>
37
- <aui-tab value="details">Details</aui-tab>
38
- <aui-tab-panel value="overview">Overview panel with content.</aui-tab-panel>
39
- <aui-tab-panel value="details">Details panel with more content.</aui-tab-panel>
29
+ - description: Tab panels with rich content
30
+ html: |-
31
+ <aui-tabs value="info">
32
+ <aui-tab value="info">Info</aui-tab>
33
+ <aui-tab value="stats">Stats</aui-tab>
34
+ <aui-tab value="logs">Logs</aui-tab>
35
+ <aui-tab-panel value="info">
36
+ <aui-stack gap="sm">
37
+ <aui-text size="lg" weight="medium">System Information</aui-text>
38
+ <aui-text>Running on version 3.2.1 with all services operational.</aui-text>
39
+ </aui-stack>
40
+ </aui-tab-panel>
41
+ <aui-tab-panel value="stats">
42
+ <aui-stack gap="sm">
43
+ <aui-text size="lg" weight="medium">Usage Statistics</aui-text>
44
+ <aui-text>CPU: 42% | Memory: 68% | Disk: 31%</aui-text>
45
+ </aui-stack>
46
+ </aui-tab-panel>
47
+ <aui-tab-panel value="logs">
48
+ <aui-text>No recent log entries.</aui-text>
49
+ </aui-tab-panel>
40
50
  </aui-tabs>
41
- description: Tab panels shown within a full tabs context.
@@ -2,42 +2,34 @@ name: aui-tab
2
2
  tag: aui-tab
3
3
  type: component
4
4
  summary: Individual tab trigger within a tabbed interface.
5
- description: >
6
- A single tab button within aui-tabs. Visual states driven by
7
- selected and disabled attributes. Parent aui-tabs coordinates
8
- selection and keyboard navigation.
9
-
5
+ description: |
6
+ A single tab button within aui-tabs. Visual states driven by selected and disabled attributes. Parent aui-tabs coordinates selection and keyboard navigation.
10
7
  base: AgentElement
11
-
12
8
  attributes:
13
9
  value:
14
10
  syntax: key-value
15
11
  type: string
16
12
  default: ""
17
13
  description: Tab identifier, matched against aui-tab-panel value.
18
-
19
14
  disabled:
20
15
  syntax: boolean
21
16
  type: boolean
22
17
  default: false
23
18
  description: Prevents selection.
24
-
25
19
  selected:
26
20
  syntax: boolean
27
21
  type: boolean
28
22
  default: false
29
23
  description: Whether this tab is currently active.
30
-
31
24
  a11y:
32
25
  role: tab
33
26
  aria:
34
27
  aria-selected: Reflects selected attribute.
35
28
  aria-disabled: Reflects disabled attribute.
36
-
37
29
  composition:
38
- parents: [aui-tabs]
30
+ parents:
31
+ - aui-tabs
39
32
  children: null
40
-
41
33
  tokens:
42
34
  - name: --aui-tab-gap
43
35
  default: var(--aui-pad-gap-control)
@@ -75,15 +67,26 @@ tokens:
75
67
  - name: --aui-tab-color-disabled
76
68
  default: var(--aui-ink-disabled, var(--aui-ink-muted))
77
69
  description: Text color of disabled tabs.
78
-
79
70
  examples:
80
- - html: |
81
- <aui-tabs value="general">
82
- <aui-tab value="general">General</aui-tab>
83
- <aui-tab value="advanced">Advanced</aui-tab>
84
- <aui-tab value="security">Security</aui-tab>
85
- <aui-tab-panel value="general">General settings content.</aui-tab-panel>
86
- <aui-tab-panel value="advanced">Advanced settings content.</aui-tab-panel>
87
- <aui-tab-panel value="security">Security settings content.</aui-tab-panel>
71
+ - description: Tabs with a disabled tab
72
+ html: |-
73
+ <aui-tabs value="code">
74
+ <aui-tab value="code">Code</aui-tab>
75
+ <aui-tab value="issues">Issues</aui-tab>
76
+ <aui-tab value="pulls">Pull Requests</aui-tab>
77
+ <aui-tab value="actions" disabled>Actions</aui-tab>
78
+ <aui-tab-panel value="code">Repository source code.</aui-tab-panel>
79
+ <aui-tab-panel value="issues">Open issues tracker.</aui-tab-panel>
80
+ <aui-tab-panel value="pulls">Pull request list.</aui-tab-panel>
81
+ <aui-tab-panel value="actions">CI/CD pipelines (disabled).</aui-tab-panel>
82
+ </aui-tabs>
83
+ - description: Tab with icon content
84
+ html: |-
85
+ <aui-tabs value="files">
86
+ <aui-tab value="files"><aui-icon name="file-text"></aui-icon> Files</aui-tab>
87
+ <aui-tab value="starred"><aui-icon name="star"></aui-icon> Starred</aui-tab>
88
+ <aui-tab value="recent"><aui-icon name="clock"></aui-icon> Recent</aui-tab>
89
+ <aui-tab-panel value="files">All files in the workspace.</aui-tab-panel>
90
+ <aui-tab-panel value="starred">Your starred files.</aui-tab-panel>
91
+ <aui-tab-panel value="recent">Recently accessed files.</aui-tab-panel>
88
92
  </aui-tabs>
89
- description: Tab triggers shown within a full tabs context.
@@ -1,11 +1,15 @@
1
1
  name: aui-table-header
2
2
  tag: aui-table-header
3
3
  type: component
4
- summary: Column header cell with bold label
4
+ summary: Header row using CSS subgrid to align child cells with parent table columns.
5
5
  base: AgentElement
6
+ description: >
7
+ A header row within an aui-table. Uses display:grid with subgrid to inherit
8
+ column definitions from the parent table. Contains aui-table-cell children
9
+ that align to the same column tracks as body rows.
6
10
  composition:
7
- parents: [aui-table, aui-table-head, aui-table-body, aui-table-row]
8
- children: null
11
+ parents: [aui-table, aui-table-head]
12
+ children: [aui-table-cell]
9
13
  tokens:
10
14
  - name: --aui-table-header-font-weight
11
15
  default: var(--aui-font-weight-medium)
@@ -18,14 +22,20 @@ tokens:
18
22
  description: Text color for header cells.
19
23
  - name: --aui-table-header-size
20
24
  default: var(--aui-size)
21
- description: Minimum height of the header cell.
22
- - name: --aui-table-header-padding-block
23
- default: var(--aui-pad-control-block)
24
- description: Block (vertical) padding for header cells.
25
- - name: --aui-table-header-padding-inline
26
- default: var(--aui-pad-control-inline)
27
- description: Inline (horizontal) padding for header cells.
25
+ description: Minimum height of the header row.
28
26
 
29
27
  examples:
30
- - html: See aui-table for full usage.
31
- description: Used within aui-table structure.
28
+ - description: Header row with three columns
29
+ html: |
30
+ <aui-table cols="1fr 1fr auto">
31
+ <aui-table-header>
32
+ <aui-table-cell>Name</aui-table-cell>
33
+ <aui-table-cell>Email</aui-table-cell>
34
+ <aui-table-cell>Status</aui-table-cell>
35
+ </aui-table-header>
36
+ <aui-table-row>
37
+ <aui-table-cell>Alice</aui-table-cell>
38
+ <aui-table-cell>alice@example.com</aui-table-cell>
39
+ <aui-table-cell>Active</aui-table-cell>
40
+ </aui-table-row>
41
+ </aui-table>