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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/agent-ui.css +1 -1
  2. package/dist/api.colors.json +2 -2
  3. package/dist/api.colors.yaml +2 -2
  4. package/dist/api.components.json +4570 -1641
  5. package/dist/api.tokens.json +34 -2
  6. package/dist/api.tokens.yaml +26 -2
  7. package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
  8. package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
  9. package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
  10. package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
  11. package/dist/components/agent.js +6 -6
  12. package/dist/components/avatar/avatar.d.ts +0 -0
  13. package/dist/components/badge/badge.d.ts +0 -0
  14. package/dist/components/bar/bar.d.ts +0 -0
  15. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
  16. package/dist/components/button-group/button-group.d.ts +0 -0
  17. package/dist/components/code/code.d.ts +0 -0
  18. package/dist/components/color-area/color-area.d.ts +2 -1
  19. package/dist/components/color-picker/color-picker.d.ts +1 -0
  20. package/dist/components/color-picker/oklch-utils.d.ts +18 -0
  21. package/dist/components/color-slider/color-slider.d.ts +1 -1
  22. package/dist/components/color-swatch/color-swatch.d.ts +0 -0
  23. package/dist/components/content/content.d.ts +0 -0
  24. package/dist/components/description-list/description-list.d.ts +0 -0
  25. package/dist/components/divider/divider.d.ts +0 -0
  26. package/dist/components/editor.js +1 -1
  27. package/dist/components/fieldset/fieldset.d.ts +0 -0
  28. package/dist/components/footer/footer.d.ts +0 -0
  29. package/dist/components/graph.js +1 -1
  30. package/dist/components/grid/grid.d.ts +0 -0
  31. package/dist/components/header/header.d.ts +0 -0
  32. package/dist/components/heading/heading.d.ts +0 -0
  33. package/dist/components/input-group/input-group.d.ts +0 -0
  34. package/dist/components/inset/inset.d.ts +0 -0
  35. package/dist/components/kbd/kbd.d.ts +0 -0
  36. package/dist/components/stack/stack.d.ts +0 -0
  37. package/dist/components/stat/stat.d.ts +4 -0
  38. package/dist/components/text/text.d.ts +0 -0
  39. package/dist/components/time-field/time-field.d.ts +1 -0
  40. package/dist/components/wrap/wrap.d.ts +0 -0
  41. package/dist/components.js +114 -127
  42. package/dist/components.js.map +1 -1
  43. package/dist/docs/blocks/login-two-column.yaml +6 -6
  44. package/dist/docs/blocks/profile-card.yaml +5 -5
  45. package/dist/docs/components/accordion-item.yaml +13 -21
  46. package/dist/docs/components/accordion.yaml +23 -29
  47. package/dist/docs/components/agent-activity.yaml +27 -39
  48. package/dist/docs/components/agent-feed.yaml +15 -22
  49. package/dist/docs/components/agent-input.yaml +238 -0
  50. package/dist/docs/components/agent-message.yaml +29 -48
  51. package/dist/docs/components/agent-panel.yaml +21 -24
  52. package/dist/docs/components/agent-prompt.yaml +28 -46
  53. package/dist/docs/components/agent-seeds.yaml +15 -23
  54. package/dist/docs/components/agent-text.yaml +14 -24
  55. package/dist/docs/components/agent-thread.yaml +15 -24
  56. package/dist/docs/components/alert.yaml +41 -39
  57. package/dist/docs/components/avatar-group.yaml +72 -45
  58. package/dist/docs/components/avatar.yaml +99 -0
  59. package/dist/docs/components/badge.yaml +110 -0
  60. package/dist/docs/components/bar.yaml +84 -0
  61. package/dist/docs/components/breadcrumb-item.yaml +8 -17
  62. package/dist/docs/components/breadcrumb.yaml +60 -25
  63. package/dist/docs/components/button-group.yaml +93 -0
  64. package/dist/docs/components/button.yaml +177 -261
  65. package/dist/docs/components/calendar-picker.yaml +14 -34
  66. package/dist/docs/components/calendar-range-picker.yaml +11 -29
  67. package/dist/docs/components/calendar.yaml +11 -29
  68. package/dist/docs/components/canvas.yaml +44 -61
  69. package/dist/docs/components/checkbox.yaml +37 -49
  70. package/dist/docs/components/chip.yaml +88 -54
  71. package/dist/docs/components/code-block.yaml +54 -53
  72. package/dist/docs/components/code.yaml +37 -0
  73. package/dist/docs/components/color-area.yaml +119 -0
  74. package/dist/docs/components/color-field.yaml +121 -0
  75. package/dist/docs/components/color-picker.yaml +64 -38
  76. package/dist/docs/components/color-slider.yaml +153 -0
  77. package/dist/docs/components/color-swatch.yaml +98 -0
  78. package/dist/docs/components/command.yaml +13 -18
  79. package/dist/docs/components/container.yaml +83 -73
  80. package/dist/docs/components/content.yaml +100 -0
  81. package/dist/docs/components/context-menu.yaml +11 -20
  82. package/dist/docs/components/date-field.yaml +81 -33
  83. package/dist/docs/components/description-list.yaml +81 -0
  84. package/dist/docs/components/disclosure-group.yaml +61 -42
  85. package/dist/docs/components/disclosure.yaml +60 -46
  86. package/dist/docs/components/divider.yaml +63 -0
  87. package/dist/docs/components/dropdown-menu.yaml +16 -25
  88. package/dist/docs/components/feed.yaml +15 -24
  89. package/dist/docs/components/field.yaml +50 -71
  90. package/dist/docs/components/fieldset.yaml +92 -0
  91. package/dist/docs/components/footer.yaml +147 -0
  92. package/dist/docs/components/grid.yaml +87 -0
  93. package/dist/docs/components/gripper.yaml +11 -23
  94. package/dist/docs/components/header.yaml +168 -0
  95. package/dist/docs/components/heading.yaml +54 -0
  96. package/dist/docs/components/hover-card.yaml +17 -25
  97. package/dist/docs/components/icon.yaml +32 -65
  98. package/dist/docs/components/input-group.yaml +102 -0
  99. package/dist/docs/components/input-otp.yaml +20 -19
  100. package/dist/docs/components/input.yaml +92 -132
  101. package/dist/docs/components/inset.yaml +59 -0
  102. package/dist/docs/components/kbd.yaml +57 -0
  103. package/dist/docs/components/link.yaml +36 -45
  104. package/dist/docs/components/meter.yaml +27 -38
  105. package/dist/docs/components/nav-item.yaml +51 -40
  106. package/dist/docs/components/noodles.yaml +72 -104
  107. package/dist/docs/components/option.yaml +12 -23
  108. package/dist/docs/components/pagination.yaml +21 -18
  109. package/dist/docs/components/pane.yaml +18 -32
  110. package/dist/docs/components/panes.yaml +19 -27
  111. package/dist/docs/components/progress-circle.yaml +64 -55
  112. package/dist/docs/components/progress.yaml +35 -51
  113. package/dist/docs/components/radio-group.yaml +99 -40
  114. package/dist/docs/components/radio.yaml +40 -41
  115. package/dist/docs/components/range.yaml +24 -27
  116. package/dist/docs/components/segmented-control.yaml +58 -17
  117. package/dist/docs/components/select.yaml +80 -100
  118. package/dist/docs/components/skeleton.yaml +39 -39
  119. package/dist/docs/components/sparkline.yaml +28 -45
  120. package/dist/docs/components/spinner.yaml +32 -33
  121. package/dist/docs/components/stack.yaml +126 -0
  122. package/dist/docs/components/stepper.yaml +31 -38
  123. package/dist/docs/components/switch.yaml +36 -47
  124. package/dist/docs/components/tab-panel.yaml +27 -18
  125. package/dist/docs/components/tab.yaml +25 -22
  126. package/dist/docs/components/table-header.yaml +22 -12
  127. package/dist/docs/components/tabs.yaml +103 -20
  128. package/dist/docs/components/tag-group.yaml +63 -47
  129. package/dist/docs/components/text.yaml +67 -0
  130. package/dist/docs/components/textarea.yaml +43 -60
  131. package/dist/docs/components/time-field.yaml +74 -33
  132. package/dist/docs/components/toast.yaml +13 -30
  133. package/dist/docs/components/tooltip.yaml +56 -49
  134. package/dist/docs/components/tree-item.yaml +9 -10
  135. package/dist/docs/components/tree.yaml +127 -10
  136. package/dist/docs/components/wrap.yaml +60 -0
  137. package/dist/docs/traits/toggle-theme.yaml +34 -0
  138. package/dist/element.js +1 -1
  139. package/dist/icons.js +79 -59
  140. package/dist/icons.js.map +1 -1
  141. package/dist/reactivity.js +2 -2
  142. package/dist/register.d.ts +0 -1
  143. package/dist/register.js +258 -244
  144. package/dist/register.js.map +1 -1
  145. package/dist/store.js +1 -1
  146. package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
  147. package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
  148. package/dist/traits.js +528 -485
  149. package/dist/traits.js.map +1 -1
  150. package/package.json +1 -1
  151. package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
@@ -2,37 +2,31 @@ name: aui-meter
2
2
  tag: aui-meter
3
3
  type: component
4
4
  summary: Visual gauge for known-range scalar values.
5
- description: >
6
- Static measurement gauge within a known range. Fill width
7
- driven by --aui-meter-pct CSS custom property computed from
8
- value, min, and max attributes. Semantically distinct from
9
- aui-progress — meters represent a static measurement (disk
10
- usage, budget), not task completion. Intent colors indicate
11
- threshold states.
12
-
5
+ description: |
6
+ Static measurement gauge within a known range. Fill width driven by --aui-meter-pct CSS custom property computed from value, min, and max attributes. Semantically distinct from aui-progress — meters represent a static measurement (disk usage, budget), not task completion. Intent colors indicate threshold states.
13
7
  base: AgentElement
14
-
15
- # ── Presentational attributes ─────────────────────────────
16
-
17
8
  presentational:
18
9
  size:
19
10
  syntax: key-value
20
11
  attribute: size
21
12
  cascades: false
22
13
  default: md
23
- values: [sm, md, lg]
14
+ values:
15
+ - sm
16
+ - md
17
+ - lg
24
18
  description: Track height — sm (4px), md (6px), lg (10px).
25
-
26
19
  intent:
27
20
  syntax: boolean
28
21
  exclusive: true
29
22
  cascades: false
30
23
  default: accent
31
- values: [accent, success, warning, danger]
24
+ values:
25
+ - accent
26
+ - success
27
+ - warning
28
+ - danger
32
29
  description: Fill color reflecting threshold state.
33
-
34
- # ── Attributes ────────────────────────────────────────────
35
-
36
30
  attributes:
37
31
  value:
38
32
  type: number
@@ -46,22 +40,13 @@ attributes:
46
40
  type: number
47
41
  default: "100"
48
42
  description: Range maximum.
49
-
50
- # ── Content model ─────────────────────────────────────────
51
-
52
43
  content:
53
44
  model: empty
54
45
  accepts: []
55
46
  required: false
56
- description: >
47
+ description: |
57
48
  No content — meter is a visual gauge only.
58
-
59
- # ── Slots ─────────────────────────────────────────────────
60
-
61
49
  slots: {}
62
-
63
- # ── CSS tokens consumed ──────────────────────────────────
64
-
65
50
  tokens:
66
51
  sizing:
67
52
  - --aui-meter-height
@@ -70,20 +55,24 @@ tokens:
70
55
  - --aui-meter-fill
71
56
  shape:
72
57
  - --aui-meter-radius
73
-
74
- # ── Examples ──────────────────────────────────────────────
75
-
76
58
  examples:
77
- - html: <aui-meter value="45"></aui-meter>
78
- description: Default accent meter at 45%.
79
-
80
- - html: <aui-meter value="75" warning></aui-meter>
81
- description: Warning meter at 75%.
82
-
83
- - html: |
59
+ - description: Default accent meter at 45%
60
+ html: <aui-meter value="45"></aui-meter>
61
+ - description: Warning meter at 75%
62
+ html: <aui-meter value="75" warning></aui-meter>
63
+ - description: Danger meter at 95%
64
+ html: <aui-meter value="95" danger></aui-meter>
65
+ - description: Three sizes with different values
66
+ html: |-
67
+ <aui-stack gap="3">
68
+ <aui-meter value="30" size="sm"></aui-meter>
69
+ <aui-meter value="60"></aui-meter>
70
+ <aui-meter value="85" size="lg" warning></aui-meter>
71
+ </aui-stack>
72
+ - description: Meter with context labels in a row
73
+ html: |-
84
74
  <aui-stack direction="row" gap="2" align-items="center">
85
75
  <aui-text size="xs" muted>Disk usage</aui-text>
86
76
  <aui-meter value="82" warning style="flex: 1"></aui-meter>
87
77
  <aui-text size="xs" muted>82%</aui-text>
88
78
  </aui-stack>
89
- description: Meter with context labels in a row.
@@ -2,52 +2,39 @@ name: aui-nav-item
2
2
  tag: aui-nav-item
3
3
  type: component
4
4
  summary: Navigation list item with icon, label, badge, and active state.
5
- description: >
6
- Flex row navigation item with hover, active, and disabled states.
7
- Supports icons and inline text. Use [active] to indicate the current
8
- page. CSS-only element with no JS behavior beyond extending AgentElement.
9
-
5
+ description: |
6
+ Flex row navigation item with hover, active, and disabled states. Supports icons and inline text. Use [active] to indicate the current page. CSS-only element with no JS behavior beyond extending AgentElement.
10
7
  base: AgentElement
11
-
12
- # ── Modifiers ────────────────────────────────────────────
13
-
14
8
  modifiers:
15
9
  active:
16
10
  syntax: boolean
17
- description: >
18
- Marks the item as the current/active page. Applies stronger
19
- text color, medium font weight, and a subtle background fill.
20
-
11
+ description: |
12
+ Marks the item as the current/active page. Applies stronger text color, medium font weight, and a subtle background fill.
21
13
  disabled:
22
14
  syntax: boolean
23
- description: >
15
+ description: |
24
16
  Disables the item. Dims color and prevents pointer interaction.
25
-
26
17
  muted:
27
18
  syntax: boolean
28
- description: >
19
+ description: |
29
20
  Reduces opacity for de-emphasized items.
30
-
31
- # ── Content model ─────────────────────────────────────────
32
-
33
21
  content:
34
22
  model: inline
35
- accepts: [text, aui-icon, aui-badge]
23
+ accepts:
24
+ - text
25
+ - aui-icon
26
+ - aui-badge
36
27
  required: true
37
- description: >
38
- Label text and optional leading icon or trailing badge.
39
- Icons and text are laid out in a flex row.
40
-
41
- # ── Slots ─────────────────────────────────────────────────
42
-
28
+ description: |
29
+ Label text and optional leading icon or trailing badge. Icons and text are laid out in a flex row.
43
30
  slots:
44
31
  default:
45
- accepts: [text, aui-icon, aui-badge]
32
+ accepts:
33
+ - text
34
+ - aui-icon
35
+ - aui-badge
46
36
  required: true
47
37
  description: Nav item content — icon, label text, optional badge.
48
-
49
- # ── CSS tokens consumed ──────────────────────────────────
50
-
51
38
  tokens:
52
39
  sizing:
53
40
  - --aui-nav-item-gap
@@ -65,22 +52,40 @@ tokens:
65
52
  - --aui-nav-item-color-disabled
66
53
  - --aui-nav-item-background-hover
67
54
  - --aui-nav-item-background-active
68
-
69
- # ── Examples ──────────────────────────────────────────────
70
-
71
55
  examples:
72
- - html: <aui-nav-item>Dashboard</aui-nav-item>
73
- description: Default nav item.
74
-
75
- - html: <aui-nav-item active>Dashboard</aui-nav-item>
76
- description: Active nav item (current page).
77
-
78
- - html: |
56
+ - description: Default nav item
57
+ html: <aui-nav-item>Dashboard</aui-nav-item>
58
+ - description: Active nav item (current page)
59
+ html: <aui-nav-item active>Dashboard</aui-nav-item>
60
+ - description: Disabled nav item
61
+ html: <aui-nav-item disabled>Admin</aui-nav-item>
62
+ - description: Nav item with leading icon
63
+ html: |-
64
+ <aui-nav-item>
65
+ <aui-icon name="home"></aui-icon>
66
+ Dashboard
67
+ </aui-nav-item>
68
+ - description: Active nav item with icon
69
+ html: |-
70
+ <aui-nav-item active>
71
+ <aui-icon name="settings"></aui-icon>
72
+ Settings
73
+ </aui-nav-item>
74
+ - description: Navigation list with mixed states
75
+ html: |-
79
76
  <aui-stack gap="1">
80
77
  <aui-nav-item active>
81
78
  <aui-icon name="home"></aui-icon>
82
79
  Dashboard
83
80
  </aui-nav-item>
81
+ <aui-nav-item>
82
+ <aui-icon name="file-text"></aui-icon>
83
+ Documents
84
+ </aui-nav-item>
85
+ <aui-nav-item>
86
+ <aui-icon name="users"></aui-icon>
87
+ Team
88
+ </aui-nav-item>
84
89
  <aui-nav-item>
85
90
  <aui-icon name="settings"></aui-icon>
86
91
  Settings
@@ -90,4 +95,10 @@ examples:
90
95
  Admin
91
96
  </aui-nav-item>
92
97
  </aui-stack>
93
- description: Nav list with active, default, and disabled items.
98
+ - description: Nav item with trailing badge
99
+ html: |-
100
+ <aui-nav-item>
101
+ <aui-icon name="inbox"></aui-icon>
102
+ Inbox
103
+ <aui-badge>12</aui-badge>
104
+ </aui-nav-item>
@@ -2,183 +2,151 @@ name: aui-noodles
2
2
  tag: aui-noodles
3
3
  type: component
4
4
  summary: Declarative SVG noodle canvas for node-based flow editors.
5
- description: >
6
- Renders SVG bezier/step/straight connections between child elements.
7
- Children declare ports via `data-noodle-port="left right"` and the
8
- element handles the SVG overlay, coordinate system, path computation,
9
- and interactive drag-to-connect when editable. Supports reconnect
10
- (grab an existing noodle to move it), proximity-based port snapping,
11
- and animated dash patterns.
12
-
5
+ description: |
6
+ Renders SVG bezier/step/straight connections between child elements. Children declare ports via `data-noodle-port="left right"` and the element handles the SVG overlay, coordinate system, path computation, and interactive drag-to-connect when editable. Supports reconnect (grab an existing noodle to move it), proximity-based port snapping, and animated dash patterns.
13
7
  base: AgentElement
14
-
15
8
  attributes:
16
9
  editable:
17
10
  syntax: boolean
18
11
  type: boolean
19
12
  default: false
20
- description: >
21
- Allow interactive creation and deletion of connections via
22
- drag-to-connect from port indicators.
23
-
13
+ description: |
14
+ Allow interactive creation and deletion of connections via drag-to-connect from port indicators.
24
15
  color:
25
16
  syntax: key-value
26
17
  type: string
27
18
  default: ""
28
- description: >
29
- Noodle stroke color. Defaults to var(--aui-accent-500).
30
- Individual connections can override via the color property.
31
-
19
+ description: |
20
+ Noodle stroke color. Defaults to var(--aui-accent-500). Individual connections can override via the color property.
32
21
  stroke-width:
33
22
  syntax: key-value
34
23
  type: string
35
24
  default: "2"
36
25
  description: Stroke width in px.
37
-
38
26
  tension:
39
27
  syntax: key-value
40
28
  type: string
41
29
  default: "0.5"
42
- description: >
43
- Bezier control point distance as a fraction of the distance
44
- between endpoints. 0 = flat, 1 = dramatic curves.
45
-
30
+ description: |
31
+ Bezier control point distance as a fraction of the distance between endpoints. 0 = flat, 1 = dramatic curves.
46
32
  show-ports:
47
33
  syntax: boolean
48
34
  type: boolean
49
35
  default: false
50
- description: >
51
- Show port indicator dots on connectable elements. Defaults to
52
- true when editable is set.
53
-
36
+ description: |
37
+ Show port indicator dots on connectable elements. Defaults to true when editable is set.
54
38
  port-size:
55
39
  syntax: key-value
56
40
  type: string
57
41
  default: "10"
58
42
  description: Port indicator dot diameter in px.
59
-
60
43
  curve:
61
44
  syntax: key-value
62
45
  type: enum
63
- values: [bezier, step, straight]
46
+ values:
47
+ - bezier
48
+ - step
49
+ - straight
64
50
  default: bezier
65
- description: >
66
- Curve style for noodle paths. bezier = smooth cubic bezier,
67
- step = right-angle step, straight = direct line.
68
-
51
+ description: |
52
+ Curve style for noodle paths. bezier = smooth cubic bezier, step = right-angle step, straight = direct line.
69
53
  animated:
70
54
  syntax: boolean
71
55
  type: boolean
72
56
  default: false
73
- description: >
57
+ description: |
74
58
  Animate noodles with a flowing dash pattern.
75
-
76
59
  disabled:
77
60
  syntax: boolean
78
61
  type: boolean
79
62
  default: false
80
- description: >
81
- Disable the controller. Paths render as muted dashed lines
82
- and interaction is prevented.
83
-
63
+ description: |
64
+ Disable the controller. Paths render as muted dashed lines and interaction is prevented.
84
65
  content:
85
66
  model: block
86
- accepts: [div, section, any]
67
+ accepts:
68
+ - div
69
+ - section
70
+ - any
87
71
  required: true
88
- description: >
89
- Child elements that participate in the noodle graph. Each connectable
90
- element must have an `id` and a `data-noodle-port` attribute listing
91
- which sides accept connections (e.g. "left right top bottom").
92
-
72
+ description: |
73
+ Child elements that participate in the noodle graph. Each connectable element must have an `id` and a `data-noodle-port` attribute listing which sides accept connections (e.g. "left right top bottom").
93
74
  slots:
94
75
  default:
95
- accepts: [any]
76
+ accepts:
77
+ - any
96
78
  required: true
97
79
  description: Node elements with data-noodle-port attributes.
98
-
99
80
  composition:
100
- parents: [aui-container, div, section, main]
81
+ parents:
82
+ - aui-container
83
+ - div
84
+ - section
85
+ - main
101
86
  children:
102
- typical: [div, aui-container]
103
- pattern: >
104
- Absolutely positioned child elements with id and data-noodle-port
105
- attributes. The noodles element establishes a positioning context.
106
- context: >
107
- Use for flow editors, pipeline visualizations, node-based UIs,
108
- and any diagram where elements need visible connections.
109
-
87
+ typical:
88
+ - div
89
+ - aui-container
90
+ pattern: |
91
+ Absolutely positioned child elements with id and data-noodle-port attributes. The noodles element establishes a positioning context.
92
+ context: |
93
+ Use for flow editors, pipeline visualizations, node-based UIs, and any diagram where elements need visible connections.
110
94
  a11y:
111
95
  role: No implicit role. The SVG overlay is pointer-events:none.
112
96
  keyboard:
113
97
  Tab: Port indicators are not in tab order (crosshair cursor).
114
98
  focus:
115
99
  default: Not focusable.
116
-
117
100
  events:
118
101
  aui:noodle-connect:
119
- description: >
120
- Fired when a connection is created (programmatic or drag).
121
- Detail: { id, from, to, fromPort, toPort }
102
+ description: |
103
+ Fired when a connection is created (programmatic or drag). Detail: { id, from, to, fromPort, toPort }
122
104
  bubbles: true
123
-
124
105
  aui:noodle-disconnect:
125
- description: >
126
- Fired when a connection is removed.
127
- Detail: { id, from, to, fromPort, toPort }
106
+ description: |
107
+ Fired when a connection is removed. Detail: { id, from, to, fromPort, toPort }
128
108
  bubbles: true
129
-
130
109
  aui:noodle-drag:
131
- description: >
132
- Fired during drag-to-connect pointer movement.
133
- Detail: { from, fromPort, x, y, reconnect? }
110
+ description: |
111
+ Fired during drag-to-connect pointer movement. Detail: { from, fromPort, x, y, reconnect? }
134
112
  bubbles: true
135
-
136
113
  tokens:
137
114
  color:
138
115
  - --aui-accent-500
139
116
  - --aui-ink-muted
140
117
  motion:
141
118
  - noodle-flow (keyframe animation)
142
-
143
119
  examples:
144
- - html: |
120
+ - description: Two connected nodes with a bezier noodle
121
+ html: |-
145
122
  <aui-noodles style="width: 600px; height: 300px;">
146
- <aui-container id="a" data-noodle-port="right" kind="card" bordered padding="3" style="position: absolute; left: 40px; top: 120px;">
147
- <aui-text weight="medium">Source</aui-text>
148
- </aui-container>
149
- <aui-container id="b" data-noodle-port="left" kind="card" bordered padding="3" style="position: absolute; left: 400px; top: 120px;">
150
- <aui-text weight="medium">Target</aui-text>
151
- </aui-container>
123
+ <div id="a" data-noodle-port="right" style="position: absolute; left: 40px; top: 120px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
124
+ Source
125
+ </div>
126
+ <div id="b" data-noodle-port="left" style="position: absolute; left: 400px; top: 120px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
127
+ Target
128
+ </div>
152
129
  </aui-noodles>
153
- description: Two connected nodes with a bezier noodle.
154
- script: |
155
- const noodles = document.querySelector('aui-noodles');
156
- noodles.connect('a', 'b', 'right', 'left');
157
-
158
- - html: |
130
+ - description: Editable canvas with port indicators. Drag between ports to connect
131
+ html: |-
159
132
  <aui-noodles editable show-ports style="width: 600px; height: 300px;">
160
- <aui-container id="n1" data-noodle-port="right bottom" kind="card" bordered padding="3" style="position: absolute; left: 40px; top: 40px;">
161
- <aui-text weight="medium">Node 1</aui-text>
162
- </aui-container>
163
- <aui-container id="n2" data-noodle-port="left right" kind="card" bordered padding="3" style="position: absolute; left: 240px; top: 120px;">
164
- <aui-text weight="medium">Node 2</aui-text>
165
- </aui-container>
166
- <aui-container id="n3" data-noodle-port="left top" kind="card" bordered padding="3" style="position: absolute; left: 440px; top: 40px;">
167
- <aui-text weight="medium">Node 3</aui-text>
168
- </aui-container>
133
+ <div id="n1" data-noodle-port="right bottom" style="position: absolute; left: 40px; top: 40px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
134
+ Node 1
135
+ </div>
136
+ <div id="n2" data-noodle-port="left right" style="position: absolute; left: 240px; top: 120px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
137
+ Node 2
138
+ </div>
139
+ <div id="n3" data-noodle-port="left top" style="position: absolute; left: 440px; top: 40px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
140
+ Node 3
141
+ </div>
169
142
  </aui-noodles>
170
- description: Editable canvas with port indicators. Drag between ports to connect.
171
-
172
- - html: |
143
+ - description: Step curve style with animated dash pattern
144
+ html: |-
173
145
  <aui-noodles curve="step" stroke-width="3" animated style="width: 500px; height: 200px;">
174
- <aui-container id="s1" data-noodle-port="right" kind="card" bordered padding="3" style="position: absolute; left: 20px; top: 80px;">
175
- <aui-text weight="medium">Step A</aui-text>
176
- </aui-container>
177
- <aui-container id="s2" data-noodle-port="left" kind="card" bordered padding="3" style="position: absolute; left: 340px; top: 80px;">
178
- <aui-text weight="medium">Step B</aui-text>
179
- </aui-container>
146
+ <div id="s1" data-noodle-port="right" style="position: absolute; left: 20px; top: 80px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
147
+ Step A
148
+ </div>
149
+ <div id="s2" data-noodle-port="left" style="position: absolute; left: 340px; top: 80px; padding: 12px 20px; background: var(--aui-card); border: 1px solid var(--aui-border-muted); border-radius: var(--aui-radius);">
150
+ Step B
151
+ </div>
180
152
  </aui-noodles>
181
- description: Step curve style with animated dash pattern.
182
- script: |
183
- const noodles = document.querySelector('aui-noodles');
184
- noodles.connect('s1', 's2', 'right', 'left');
@@ -2,39 +2,31 @@ name: aui-option
2
2
  tag: aui-option
3
3
  type: component
4
4
  summary: Selectable item within aui-select.
5
- description: >
6
- A single option within aui-select.
7
- Most behavior is coordinated by the parent listbox. Visual states
8
- driven by selected, disabled, and data-navigate-active attributes.
9
-
5
+ description: |
6
+ A single option within aui-select. Most behavior is coordinated by the parent listbox. Visual states driven by selected, disabled, and data-navigate-active attributes.
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: The option's value for form submission.
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 option is currently selected.
30
-
31
24
  label:
32
25
  syntax: key-value
33
26
  type: string
34
27
  default: ""
35
- description: >
28
+ description: |
36
29
  Display label override. When empty, textContent is used.
37
-
38
30
  tokens:
39
31
  - name: --aui-option-color
40
32
  default: var(--aui-ink)
@@ -63,23 +55,20 @@ tokens:
63
55
  - name: --aui-option-background-hover
64
56
  default: var(--aui-fill-hover, var(--aui-action-hover))
65
57
  description: Background on hover and keyboard highlight.
66
-
67
58
  a11y:
68
59
  role: option
69
60
  aria:
70
61
  aria-selected: Reflects selected attribute.
71
62
  aria-disabled: Reflects disabled attribute.
72
-
73
63
  composition:
74
- parents: [aui-select, aui-optgroup]
64
+ parents:
65
+ - aui-select
66
+ - aui-optgroup
75
67
  children: null
76
-
77
68
  examples:
78
- - html: <aui-option value="apple">Apple</aui-option>
79
- description: Simple option.
80
-
81
- - html: <aui-option value="banana" selected>Banana</aui-option>
82
- description: Pre-selected option.
83
-
84
- - html: <aui-option value="cherry" disabled>Cherry</aui-option>
85
- description: Disabled option.
69
+ - description: Simple option
70
+ html: <aui-option value="apple">Apple</aui-option>
71
+ - description: Pre-selected option
72
+ html: <aui-option value="banana" selected>Banana</aui-option>
73
+ - description: Disabled option
74
+ html: <aui-option value="cherry" disabled>Cherry</aui-option>
@@ -2,42 +2,33 @@ name: aui-pagination
2
2
  tag: aui-pagination
3
3
  type: component
4
4
  summary: Page navigation with numbered buttons and prev/next.
5
- description: >
6
- Stamps page buttons, prev/next arrows, and ellipsis from the
7
- page and total attributes. Handles large page counts with
8
- configurable sibling count.
9
-
5
+ description: |
6
+ Stamps page buttons, prev/next arrows, and ellipsis from the page and total attributes. Handles large page counts with configurable sibling count.
10
7
  base: AgentElement
11
-
12
8
  attributes:
13
9
  page:
14
10
  syntax: key-value
15
11
  type: string
16
12
  default: "1"
17
13
  description: Current page number.
18
-
19
14
  total:
20
15
  syntax: key-value
21
16
  type: string
22
17
  default: "1"
23
18
  description: Total number of pages.
24
-
25
19
  siblings:
26
20
  syntax: key-value
27
21
  type: string
28
22
  default: "1"
29
23
  description: Number of sibling pages to show around the current page.
30
-
31
24
  a11y:
32
25
  role: navigation
33
26
  aria:
34
27
  aria-label: Pagination
35
28
  aria-current: page (on the current page button).
36
-
37
29
  events:
38
30
  change:
39
31
  description: Fired when page changes. detail.page is the new page number.
40
-
41
32
  tokens:
42
33
  - name: --aui-pagination-gap
43
34
  default: 2px
@@ -67,7 +58,7 @@ tokens:
67
58
  default: var(--aui-solid, var(--aui-accent, oklch(0.55 0.2 260)))
68
59
  description: Background color of the current page button.
69
60
  - name: --aui-pagination-current-color
70
- default: var(--aui-on-solid, #fff)
61
+ default: var(--aui-solid-ink,
71
62
  description: Text color of the current page button.
72
63
  - name: --aui-pagination-current-font-weight
73
64
  default: var(--aui-font-weight-medium)
@@ -78,10 +69,22 @@ tokens:
78
69
  - name: --aui-pagination-ellipsis-color
79
70
  default: var(--aui-ink-muted)
80
71
  description: Color of the ellipsis indicators.
81
-
82
72
  examples:
83
- - html: <aui-pagination page="3" total="10"></aui-pagination>
84
- description: Pagination on page 3 of 10.
85
-
86
- - html: <aui-pagination page="1" total="5" siblings="2"></aui-pagination>
87
- description: Small pagination with 2 siblings.
73
+ - description: Pagination on page 3 of 10
74
+ html: <aui-pagination page="3" total="10"></aui-pagination>
75
+ - description: Small pagination with 2 siblings
76
+ html: <aui-pagination page="1" total="5" siblings="2"></aui-pagination>
77
+ - description: First page prev should be disabled
78
+ html: <aui-pagination page="1" total="10"></aui-pagination>
79
+ - description: Last page — next should be disabled
80
+ html: <aui-pagination page="10" total="10"></aui-pagination>
81
+ - description: Middle of a large set (page 5 of 20)
82
+ html: <aui-pagination page="5" total="20"></aui-pagination>
83
+ - description: Many pages with 2 siblings (page 8 of 30)
84
+ html: <aui-pagination page="8" total="30" siblings="2"></aui-pagination>
85
+ - description: Many pages with 3 siblings for wider range (page 12 of 50)
86
+ html: <aui-pagination page="12" total="50" siblings="3"></aui-pagination>
87
+ - description: Few pages, all visible
88
+ html: <aui-pagination page="2" total="3"></aui-pagination>
89
+ - description: Single page — both prev/next disabled
90
+ html: <aui-pagination page="1" total="1"></aui-pagination>