@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,15 +2,9 @@ name: aui-calendar-picker
2
2
  tag: aui-calendar-picker
3
3
  type: component
4
4
  summary: Compound date picker with trigger input and calendar popover.
5
- description: >
6
- Combines a read-only trigger (styled like an input) with a popover
7
- containing an aui-calendar for date selection. On date select the
8
- popover closes, the trigger updates with a formatted date string,
9
- and a change event fires. Supports min/max date constraints and
10
- a configurable display format.
11
-
5
+ description: |
6
+ Combines a read-only trigger (styled like an input) with a popover containing an aui-calendar for date selection. On date select the popover closes, the trigger updates with a formatted date string, and a change event fires. Supports min/max date constraints and a configurable display format.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  value:
16
10
  syntax: key-value
@@ -20,7 +14,7 @@ attributes:
20
14
  placeholder:
21
15
  syntax: key-value
22
16
  type: string
23
- default: "Select date"
17
+ default: Select date
24
18
  description: Placeholder text shown when no date is selected.
25
19
  min:
26
20
  syntax: key-value
@@ -35,9 +29,8 @@ attributes:
35
29
  format:
36
30
  syntax: key-value
37
31
  type: string
38
- default: "YYYY-MM-DD"
32
+ default: YYYY-MM-DD
39
33
  description: Display format for the selected date (e.g. MM/DD/YYYY).
40
-
41
34
  modifiers:
42
35
  disabled:
43
36
  syntax: boolean
@@ -45,7 +38,6 @@ modifiers:
45
38
  open:
46
39
  syntax: boolean
47
40
  description: Whether the calendar popover is currently open.
48
-
49
41
  a11y:
50
42
  role: combobox (trigger)
51
43
  keyboard:
@@ -54,7 +46,6 @@ a11y:
54
46
  ArrowDown: Opens the calendar popover.
55
47
  ArrowUp: Opens the calendar popover.
56
48
  Escape: Closes the calendar popover and returns focus to trigger.
57
-
58
49
  tokens:
59
50
  - name: --aui-calendar-picker-font-family
60
51
  default: var(--aui-font-family)
@@ -107,36 +98,25 @@ tokens:
107
98
  - name: --aui-calendar-picker-dropdown-shadow
108
99
  default: var(--aui-shadow-lg)
109
100
  description: Box shadow of the calendar dropdown.
110
-
111
101
  events:
112
102
  change:
113
103
  description: Fired when a date is selected. Detail contains { value, date }.
114
-
115
104
  dependencies:
116
105
  - aui-calendar
117
-
118
106
  examples:
119
- - html: |
120
- <aui-calendar-picker placeholder="Select date"></aui-calendar-picker>
121
- description: Default date picker with placeholder.
122
-
123
- - html: |
124
- <aui-calendar-picker value="2026-03-15"></aui-calendar-picker>
125
- description: Date picker with pre-selected date.
126
-
127
- - html: |
107
+ - description: Default date picker with placeholder
108
+ html: <aui-calendar-picker placeholder="Select date"></aui-calendar-picker>
109
+ - description: Date picker with pre-selected date
110
+ html: <aui-calendar-picker value="2026-03-15"></aui-calendar-picker>
111
+ - description: Date picker with min/max constraints
112
+ html: |-
128
113
  <aui-calendar-picker
129
114
  value="2026-03-21"
130
115
  min="2026-01-01"
131
116
  max="2026-12-31"
132
117
  placeholder="Pick a date"
133
118
  ></aui-calendar-picker>
134
- description: Date picker with min/max constraints.
135
-
136
- - html: |
137
- <aui-calendar-picker value="2026-03-21" format="MM/DD/YYYY"></aui-calendar-picker>
138
- description: Date picker with custom display format.
139
-
140
- - html: |
141
- <aui-calendar-picker value="2026-03-21" disabled></aui-calendar-picker>
142
- description: Disabled date picker.
119
+ - description: Date picker with custom display format (MM/DD/YYYY)
120
+ html: <aui-calendar-picker value="2026-03-21" format="MM/DD/YYYY"></aui-calendar-picker>
121
+ - description: Disabled date picker
122
+ html: <aui-calendar-picker value="2026-03-21" disabled></aui-calendar-picker>
@@ -2,15 +2,9 @@ name: aui-calendar-range-picker
2
2
  tag: aui-calendar-range-picker
3
3
  type: component
4
4
  summary: Compound date range picker with trigger input and calendar popover.
5
- description: >
6
- Combines a read-only trigger (styled like an input) with a popover
7
- containing an aui-calendar in range selection mode. On range commit the
8
- popover closes, the trigger updates with "Start -- End" text, and a
9
- change event fires with { start, end } detail. Supports min/max date
10
- constraints.
11
-
5
+ description: |
6
+ Combines a read-only trigger (styled like an input) with a popover containing an aui-calendar in range selection mode. On range commit the popover closes, the trigger updates with "Start -- End" text, and a change event fires with { start, end } detail. Supports min/max date constraints.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  start:
16
10
  syntax: key-value
@@ -25,7 +19,7 @@ attributes:
25
19
  placeholder:
26
20
  syntax: key-value
27
21
  type: string
28
- default: "Select dates"
22
+ default: Select dates
29
23
  description: Placeholder text shown when no range is selected.
30
24
  min:
31
25
  syntax: key-value
@@ -37,7 +31,6 @@ attributes:
37
31
  type: string
38
32
  default: ""
39
33
  description: Maximum selectable date in ISO format. Dates after this are disabled.
40
-
41
34
  modifiers:
42
35
  disabled:
43
36
  syntax: boolean
@@ -45,7 +38,6 @@ modifiers:
45
38
  open:
46
39
  syntax: boolean
47
40
  description: Whether the calendar popover is currently open.
48
-
49
41
  a11y:
50
42
  role: combobox (trigger)
51
43
  keyboard:
@@ -54,7 +46,6 @@ a11y:
54
46
  ArrowDown: Opens the calendar popover.
55
47
  ArrowUp: Opens the calendar popover.
56
48
  Escape: Closes the calendar popover and returns focus to trigger.
57
-
58
49
  tokens:
59
50
  - name: --aui-calendar-range-picker-font-family
60
51
  default: var(--aui-font-family)
@@ -107,24 +98,18 @@ tokens:
107
98
  - name: --aui-calendar-range-picker-dropdown-shadow
108
99
  default: var(--aui-shadow-lg)
109
100
  description: Box shadow of the calendar dropdown.
110
-
111
101
  events:
112
102
  change:
113
103
  description: Fired when a range is fully selected. Detail contains { start, end }.
114
-
115
104
  dependencies:
116
105
  - aui-calendar
117
-
118
106
  examples:
119
- - html: |
120
- <aui-calendar-range-picker placeholder="Select dates"></aui-calendar-range-picker>
121
- description: Default range picker with placeholder.
122
-
123
- - html: |
124
- <aui-calendar-range-picker start="2026-03-01" end="2026-03-15"></aui-calendar-range-picker>
125
- description: Range picker with pre-selected range.
126
-
127
- - html: |
107
+ - description: Default range picker with placeholder
108
+ html: <aui-calendar-range-picker placeholder="Select dates"></aui-calendar-range-picker>
109
+ - description: Range picker with pre-selected range
110
+ html: <aui-calendar-range-picker start="2026-03-01" end="2026-03-15"></aui-calendar-range-picker>
111
+ - description: Range picker with min/max constraints
112
+ html: |-
128
113
  <aui-calendar-range-picker
129
114
  start="2026-03-01"
130
115
  end="2026-03-15"
@@ -132,8 +117,5 @@ examples:
132
117
  max="2026-12-31"
133
118
  placeholder="Pick a range"
134
119
  ></aui-calendar-range-picker>
135
- description: Range picker with min/max constraints.
136
-
137
- - html: |
138
- <aui-calendar-range-picker start="2026-03-01" end="2026-03-15" disabled></aui-calendar-range-picker>
139
- description: Disabled range picker.
120
+ - description: Disabled range picker
121
+ html: <aui-calendar-range-picker start="2026-03-01" end="2026-03-15" disabled></aui-calendar-range-picker>
@@ -2,15 +2,9 @@ name: aui-calendar
2
2
  tag: aui-calendar
3
3
  type: component
4
4
  summary: Date picker with day, month, and year views.
5
- description: >
6
- An interactive calendar for selecting dates. Supports single selection
7
- and range selection with hover preview. Click the title to drill up
8
- from day → month → year views. Keyboard navigable with arrow keys,
9
- Home/End, PageUp/PageDown. Min and max attributes constrain the
10
- selectable date range.
11
-
5
+ description: |
6
+ An interactive calendar for selecting dates. Supports single selection and range selection with hover preview. Click the title to drill up from day → month → year views. Keyboard navigable with arrow keys, Home/End, PageUp/PageDown. Min and max attributes constrain the selectable date range.
12
7
  base: AgentElement
13
-
14
8
  attributes:
15
9
  value:
16
10
  syntax: key-value
@@ -30,12 +24,10 @@ attributes:
30
24
  range:
31
25
  syntax: boolean
32
26
  description: Enables range selection (click start, hover to preview, click to commit).
33
-
34
27
  modifiers:
35
28
  disabled:
36
29
  syntax: boolean
37
30
  description: Disables all interaction.
38
-
39
31
  a11y:
40
32
  role: group
41
33
  keyboard:
@@ -49,7 +41,6 @@ a11y:
49
41
  PageDown: Next month (Shift next year).
50
42
  Enter: Select focused date.
51
43
  Space: Select focused date.
52
-
53
44
  tokens:
54
45
  - name: --aui-calendar-gap
55
46
  default: calc(var(--aui-space) * 2)
@@ -109,7 +100,7 @@ tokens:
109
100
  default: var(--aui-accent, var(--aui-solid))
110
101
  description: Background color for selected cells.
111
102
  - name: --aui-calendar-selected-color
112
- default: var(--aui-solid-ink, #fff)
103
+ default: var(--aui-solid-ink,
113
104
  description: Text color for selected cells.
114
105
  - name: --aui-calendar-selected-font-weight
115
106
  default: var(--aui-font-weight-semibold)
@@ -126,26 +117,17 @@ tokens:
126
117
  - name: --aui-calendar-header-title-color
127
118
  default: var(--aui-ink-strong)
128
119
  description: Text color for the month/year title button.
129
-
130
120
  events:
131
121
  aui:change:
132
122
  description: Fired on single date selection. Detail contains { value }.
133
123
  aui:range-select:
134
124
  description: Fired on range commit. Detail contains { start, end }.
135
-
136
125
  examples:
137
- - html: |
138
- <aui-calendar></aui-calendar>
139
- description: Default calendar current month, no selection.
140
-
141
- - html: |
142
- <aui-calendar value="2026-03-17"></aui-calendar>
143
- description: Calendar with a pre-selected date.
144
-
145
- - html: |
146
- <aui-calendar min="2026-03-10" max="2026-03-25"></aui-calendar>
147
- description: Constrained date range — only March 10-25 selectable.
148
-
149
- - html: |
150
- <aui-calendar range></aui-calendar>
151
- description: Range selection mode — click start, hover preview, click to commit.
126
+ - description: Default calendar — current month, no selection
127
+ html: <aui-calendar></aui-calendar>
128
+ - description: Calendar with a pre-selected date
129
+ html: <aui-calendar value="2026-03-17"></aui-calendar>
130
+ - description: Constrained date range — only March 10-25 selectable
131
+ html: <aui-calendar min="2026-03-10" max="2026-03-25"></aui-calendar>
132
+ - description: Range selection mode click start, hover preview, click to commit
133
+ html: <aui-calendar range></aui-calendar>
@@ -2,100 +2,88 @@ name: aui-canvas
2
2
  tag: aui-canvas
3
3
  type: component
4
4
  summary: Versatile preview surface with pan/zoom, backgrounds, and editor layout slots.
5
- description: >
6
- A composable canvas surface that serves three roles:
7
- 1. Simple preview container with background patterns (replaces .block-render)
8
- 2. Infinite canvas with pan and zoom for visual editors
9
- 3. Full editor layout with leading/trailing panels and floating toolbars
10
-
11
- The canvas uses a slot-based architecture. Content goes in the default
12
- slot. Panels attach via leading/trailing slots. Floating UI (toolbars,
13
- indicators) uses float-top/bottom/left/right slots positioned absolutely
14
- within the canvas viewport.
15
-
16
- Pan uses pointer-captured drag on the background. Zoom uses wheel events.
17
- Both expose CSS custom properties (--_canvas-x, --_canvas-y, --_canvas-zoom)
18
- so content transforms are CSS-driven.
19
-
5
+ description: |
6
+ A composable canvas surface that serves three roles: 1. Simple preview container with background patterns (replaces .block-render) 2. Infinite canvas with pan and zoom for visual editors 3. Full editor layout with leading/trailing panels and floating toolbars
7
+ The canvas uses a slot-based architecture. Content goes in the default slot. Panels attach via leading/trailing slots. Floating UI (toolbars, indicators) uses float-top/bottom/left/right slots positioned absolutely within the canvas viewport.
8
+ Pan uses pointer-captured drag on the background. Zoom uses wheel events. Both expose CSS custom properties (--_canvas-x, --_canvas-y, --_canvas-zoom) so content transforms are CSS-driven.
20
9
  base: AgentElement
21
-
22
10
  presentational:
23
11
  size:
24
12
  syntax: key-value
25
13
  attribute: size
26
14
  cascades: true
27
15
  default: medium
28
- values: [xs, sm, md, lg, xl]
16
+ values:
17
+ - xs
18
+ - sm
19
+ - md
20
+ - lg
21
+ - xl
29
22
  description: Cascades size to all children.
30
-
31
23
  attributes:
32
24
  background:
33
25
  syntax: key-value
34
26
  type: enum
35
- values: [none, grid, dots]
27
+ values:
28
+ - none
29
+ - grid
30
+ - dots
36
31
  default: none
37
- description: >
38
- Background pattern. grid = checkerboard squares.
39
- dots = dot matrix. none = transparent.
40
-
32
+ description: |
33
+ Background pattern. grid = checkerboard squares. dots = dot matrix. none = transparent.
41
34
  orientation:
42
35
  syntax: key-value
43
36
  type: enum
44
- values: [horizontal, vertical]
37
+ values:
38
+ - horizontal
39
+ - vertical
45
40
  default: horizontal
46
- description: >
47
- Layout direction. horizontal = [leading][content][trailing].
48
- vertical = [content] over [leading][trailing].
49
-
41
+ description: |
42
+ Layout direction. horizontal = [leading][content][trailing]. vertical = [content] over [leading][trailing].
50
43
  modifiers:
51
44
  pan-enabled:
52
45
  syntax: boolean
53
46
  description: Enable click-and-drag panning of the canvas content.
54
-
55
47
  zoom-enabled:
56
48
  syntax: boolean
57
49
  description: Enable scroll-to-zoom on the canvas content.
58
-
59
50
  infinite:
60
51
  syntax: boolean
61
- description: >
62
- Infinite canvas mode. Content is not constrained to the
63
- viewport bounds. Combines pan-enabled + zoom-enabled.
64
-
52
+ description: |
53
+ Infinite canvas mode. Content is not constrained to the viewport bounds. Combines pan-enabled + zoom-enabled.
65
54
  bordered:
66
55
  syntax: boolean
67
56
  description: Adds a visible border around the canvas.
68
-
69
57
  slots:
70
58
  default:
71
- accepts: [any]
59
+ accepts:
60
+ - any
72
61
  required: true
73
62
  description: Main canvas content.
74
-
75
63
  leading:
76
- accepts: [any]
64
+ accepts:
65
+ - any
77
66
  description: Left panel (horizontal) or top panel (vertical).
78
-
79
67
  trailing:
80
- accepts: [any]
68
+ accepts:
69
+ - any
81
70
  description: Right panel (horizontal) or bottom panel (vertical).
82
-
83
71
  float-top:
84
- accepts: [any]
72
+ accepts:
73
+ - any
85
74
  description: Floating toolbar at top center of the viewport.
86
-
87
75
  float-bottom:
88
- accepts: [any]
76
+ accepts:
77
+ - any
89
78
  description: Floating toolbar at bottom center of the viewport.
90
-
91
79
  float-left:
92
- accepts: [any]
80
+ accepts:
81
+ - any
93
82
  description: Floating indicator at left center of the viewport.
94
-
95
83
  float-right:
96
- accepts: [any]
84
+ accepts:
85
+ - any
97
86
  description: Floating indicator at right center of the viewport.
98
-
99
87
  tokens:
100
88
  - name: --aui-canvas-background
101
89
  default: var(--aui-doc)
@@ -109,23 +97,21 @@ tokens:
109
97
  - name: --aui-canvas-focus-color
110
98
  default: var(--aui-focus)
111
99
  description: Focus ring color when the canvas is focused.
112
-
113
100
  events:
114
101
  aui:canvas-pan:
115
102
  description: Fires on pan change. Detail contains { x, y }.
116
103
  aui:canvas-zoom:
117
104
  description: Fires on zoom change. Detail contains { zoom }.
118
-
119
105
  a11y:
120
106
  role: region
121
107
  keyboard:
122
108
  "0": Reset zoom to 100%.
123
- "+": Zoom in.
109
+ +: Zoom in.
124
110
  "-": Zoom out.
125
111
  Escape: Reset pan and zoom.
126
-
127
112
  examples:
128
- - html: |
113
+ - description: Simple preview with grid background
114
+ html: |-
129
115
  <aui-canvas bordered background="grid" style="height: 12rem;">
130
116
  <aui-container kind="card" bordered max-width="xs">
131
117
  <aui-inset>
@@ -134,9 +120,8 @@ examples:
134
120
  </aui-inset>
135
121
  </aui-container>
136
122
  </aui-canvas>
137
- description: Simple preview with grid background.
138
-
139
- - html: |
123
+ - description: Infinite canvas with pan and zoom
124
+ html: |-
140
125
  <aui-canvas bordered background="dots" infinite style="height: 20rem;">
141
126
  <div style="position: absolute; top: 5rem; left: 5rem;">
142
127
  <aui-container kind="widget" bordered accent>
@@ -149,9 +134,8 @@ examples:
149
134
  </aui-container>
150
135
  </div>
151
136
  </aui-canvas>
152
- description: Infinite canvas with pan and zoom.
153
-
154
- - html: |
137
+ - description: Full editor layout with panels and floating toolbar
138
+ html: |-
155
139
  <aui-canvas bordered background="dots" style="height: 24rem;">
156
140
  <div slot="leading" style="width: 14rem; background: var(--aui-panel); border-right: 1px solid var(--aui-border-muted); padding: 1rem;">
157
141
  <aui-heading size="sm">Sidebar</aui-heading>
@@ -166,4 +150,3 @@ examples:
166
150
  <aui-heading size="sm">Properties</aui-heading>
167
151
  </div>
168
152
  </aui-canvas>
169
- description: Full editor layout with panels and floating toolbar.
@@ -2,90 +2,86 @@ name: aui-checkbox
2
2
  tag: aui-checkbox
3
3
  type: component
4
4
  summary: Checkbox with custom check and indeterminate indicators.
5
- description: >
6
- Custom checkbox. A hidden native input participates in forms.
7
- A visual [data-box] element renders the check/indeterminate icon
8
- via ::before pseudo-element. Label rendered via CSS
9
- ::after { content: attr(label) } — JS only sets aria-label for
10
- accessibility, no DOM stamping for the visible label.
11
-
5
+ description: |
6
+ Custom checkbox. A hidden native input participates in forms. A visual [data-box] element renders the check/indeterminate icon via ::before pseudo-element. Label rendered via CSS ::after { content: attr(label) } — JS only sets aria-label for accessibility, no DOM stamping for the visible label.
12
7
  base: AgentElement
13
-
14
8
  presentational:
15
9
  size:
16
10
  syntax: key-value
17
11
  attribute: size
18
12
  cascades: true
19
13
  default: medium
20
- values: [xs, sm, md, lg, xl]
14
+ values:
15
+ - xs
16
+ - sm
17
+ - md
18
+ - lg
19
+ - xl
21
20
  description: Controls checkbox and label size.
22
-
23
21
  intent:
24
22
  syntax: boolean
25
23
  exclusive: true
26
24
  cascades: true
27
25
  default: neutral
28
- values: [accent, info, success, warning, danger]
26
+ values:
27
+ - accent
28
+ - info
29
+ - success
30
+ - warning
31
+ - danger
29
32
  description: Color family for the checked state fill.
30
-
31
33
  attributes:
32
34
  disabled:
33
35
  syntax: boolean
34
36
  type: boolean
35
37
  default: false
36
38
  description: Prevents interaction.
37
-
38
39
  checked:
39
40
  syntax: boolean
40
41
  type: boolean
41
42
  default: false
42
43
  description: Whether the checkbox is checked.
43
-
44
44
  indeterminate:
45
45
  syntax: boolean
46
46
  type: boolean
47
47
  default: false
48
48
  description: Shows a dash indicator instead of a check.
49
-
50
49
  required:
51
50
  syntax: boolean
52
51
  type: boolean
53
52
  default: false
54
53
  description: Marks as required for form validation.
55
-
56
54
  label:
57
55
  syntax: key-value
58
56
  type: string
59
57
  default: ""
60
58
  description: Label text displayed next to the checkbox.
61
-
62
59
  name:
63
60
  syntax: key-value
64
61
  type: string
65
62
  default: ""
66
63
  description: Form submission name.
67
-
68
64
  value:
69
65
  syntax: key-value
70
66
  type: string
71
- default: "on"
67
+ default: on
72
68
  description: Form submission value when checked.
73
-
74
69
  content:
75
70
  model: inline
76
- accepts: [input]
71
+ accepts:
72
+ - input
77
73
  required: false
78
- description: >
79
- Auto-stamps hidden input for form participation. Label is
80
- rendered purely via CSS ::after on :scope — no stamped span.
81
-
74
+ description: |
75
+ Auto-stamps hidden input for form participation. Label is rendered purely via CSS ::after on :scope — no stamped span.
82
76
  composition:
83
- parents: [aui-field, aui-stack, form, div]
77
+ parents:
78
+ - aui-field
79
+ - aui-stack
80
+ - form
81
+ - div
84
82
  children: null
85
- context: >
86
- Use inside aui-field for labeled form checkboxes, or standalone
87
- with the label attribute. Group in aui-stack for checkbox lists.
88
-
83
+ context: |
84
+ Use inside aui-field for labeled form checkboxes, or standalone with the label attribute. Group in aui-stack for checkbox lists.
89
85
  a11y:
90
86
  role: checkbox
91
87
  keyboard:
@@ -94,11 +90,9 @@ a11y:
94
90
  aria:
95
91
  aria-checked: true, false, or mixed (indeterminate).
96
92
  aria-disabled: Reflected from disabled.
97
-
98
93
  events:
99
94
  change:
100
95
  description: Fires when checked state changes.
101
-
102
96
  tokens:
103
97
  - name: --aui-checkbox-gap
104
98
  default: calc(var(--aui-space) * 2)
@@ -145,27 +139,21 @@ tokens:
145
139
  - name: --aui-checkbox-border-disabled
146
140
  default: var(--aui-stroke-disabled, var(--aui-border-disabled))
147
141
  description: Box border color when disabled.
148
-
149
142
  css-notes:
150
143
  attr-audit:
151
144
  - "AB1: [checked], [indeterminate], [disabled] — all visual via attributes"
152
145
  - "CG2: ::before on [data-box] for check/dash icon"
153
146
  - "CG3: ::after { content: attr(label) } — label rendered in CSS, overflow: hidden on ::after only"
154
147
  - "CG4: gap uses 2 * space (tightened from 3 * space)"
155
- - ":has(> input:focus-visible) — focus ring on visual box"
156
-
148
+ - :has(> input:focus-visible) — focus ring on visual box
157
149
  examples:
158
- - html: <aui-checkbox label="Accept terms"></aui-checkbox>
159
- description: Default unchecked checkbox.
160
-
161
- - html: <aui-checkbox label="Newsletter" checked></aui-checkbox>
162
- description: Pre-checked checkbox.
163
-
164
- - html: <aui-checkbox label="Select all" indeterminate></aui-checkbox>
165
- description: Indeterminate state.
166
-
167
- - html: <aui-checkbox label="Unavailable" disabled></aui-checkbox>
168
- description: Disabled checkbox.
169
-
170
- - html: <aui-checkbox label="Enabled" checked accent></aui-checkbox>
171
- description: Accent-colored checked checkbox.
150
+ - description: Default unchecked checkbox
151
+ html: <aui-checkbox label="Accept terms"></aui-checkbox>
152
+ - description: Pre-checked checkbox
153
+ html: <aui-checkbox label="Newsletter" checked></aui-checkbox>
154
+ - description: Indeterminate state
155
+ html: <aui-checkbox label="Select all" indeterminate></aui-checkbox>
156
+ - description: Disabled checkbox
157
+ html: <aui-checkbox label="Unavailable" disabled></aui-checkbox>
158
+ - description: Accent-colored checked checkbox
159
+ html: <aui-checkbox label="Enabled" checked accent></aui-checkbox>