@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.
- package/dist/agent-ui.css +1 -1
- package/dist/api.colors.json +2 -2
- package/dist/api.colors.yaml +2 -2
- package/dist/api.components.json +4570 -1641
- package/dist/api.tokens.json +34 -2
- package/dist/api.tokens.yaml +26 -2
- package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
- package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
- package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
- package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
- package/dist/components/agent.js +6 -6
- package/dist/components/avatar/avatar.d.ts +0 -0
- package/dist/components/badge/badge.d.ts +0 -0
- package/dist/components/bar/bar.d.ts +0 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +0 -0
- package/dist/components/code/code.d.ts +0 -0
- package/dist/components/color-area/color-area.d.ts +2 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -0
- package/dist/components/color-picker/oklch-utils.d.ts +18 -0
- package/dist/components/color-slider/color-slider.d.ts +1 -1
- package/dist/components/color-swatch/color-swatch.d.ts +0 -0
- package/dist/components/content/content.d.ts +0 -0
- package/dist/components/description-list/description-list.d.ts +0 -0
- package/dist/components/divider/divider.d.ts +0 -0
- package/dist/components/editor.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +0 -0
- package/dist/components/footer/footer.d.ts +0 -0
- package/dist/components/graph.js +1 -1
- package/dist/components/grid/grid.d.ts +0 -0
- package/dist/components/header/header.d.ts +0 -0
- package/dist/components/heading/heading.d.ts +0 -0
- package/dist/components/input-group/input-group.d.ts +0 -0
- package/dist/components/inset/inset.d.ts +0 -0
- package/dist/components/kbd/kbd.d.ts +0 -0
- package/dist/components/stack/stack.d.ts +0 -0
- package/dist/components/stat/stat.d.ts +4 -0
- package/dist/components/text/text.d.ts +0 -0
- package/dist/components/time-field/time-field.d.ts +1 -0
- package/dist/components/wrap/wrap.d.ts +0 -0
- package/dist/components.js +114 -127
- package/dist/components.js.map +1 -1
- package/dist/docs/blocks/login-two-column.yaml +6 -6
- package/dist/docs/blocks/profile-card.yaml +5 -5
- package/dist/docs/components/accordion-item.yaml +13 -21
- package/dist/docs/components/accordion.yaml +23 -29
- package/dist/docs/components/agent-activity.yaml +27 -39
- package/dist/docs/components/agent-feed.yaml +15 -22
- package/dist/docs/components/agent-input.yaml +238 -0
- package/dist/docs/components/agent-message.yaml +29 -48
- package/dist/docs/components/agent-panel.yaml +21 -24
- package/dist/docs/components/agent-prompt.yaml +28 -46
- package/dist/docs/components/agent-seeds.yaml +15 -23
- package/dist/docs/components/agent-text.yaml +14 -24
- package/dist/docs/components/agent-thread.yaml +15 -24
- package/dist/docs/components/alert.yaml +41 -39
- package/dist/docs/components/avatar-group.yaml +72 -45
- package/dist/docs/components/avatar.yaml +99 -0
- package/dist/docs/components/badge.yaml +110 -0
- package/dist/docs/components/bar.yaml +84 -0
- package/dist/docs/components/breadcrumb-item.yaml +8 -17
- package/dist/docs/components/breadcrumb.yaml +60 -25
- package/dist/docs/components/button-group.yaml +93 -0
- package/dist/docs/components/button.yaml +177 -261
- package/dist/docs/components/calendar-picker.yaml +14 -34
- package/dist/docs/components/calendar-range-picker.yaml +11 -29
- package/dist/docs/components/calendar.yaml +11 -29
- package/dist/docs/components/canvas.yaml +44 -61
- package/dist/docs/components/checkbox.yaml +37 -49
- package/dist/docs/components/chip.yaml +88 -54
- package/dist/docs/components/code-block.yaml +54 -53
- package/dist/docs/components/code.yaml +37 -0
- package/dist/docs/components/color-area.yaml +119 -0
- package/dist/docs/components/color-field.yaml +121 -0
- package/dist/docs/components/color-picker.yaml +64 -38
- package/dist/docs/components/color-slider.yaml +153 -0
- package/dist/docs/components/color-swatch.yaml +98 -0
- package/dist/docs/components/command.yaml +13 -18
- package/dist/docs/components/container.yaml +83 -73
- package/dist/docs/components/content.yaml +100 -0
- package/dist/docs/components/context-menu.yaml +11 -20
- package/dist/docs/components/date-field.yaml +81 -33
- package/dist/docs/components/description-list.yaml +81 -0
- package/dist/docs/components/disclosure-group.yaml +61 -42
- package/dist/docs/components/disclosure.yaml +60 -46
- package/dist/docs/components/divider.yaml +63 -0
- package/dist/docs/components/dropdown-menu.yaml +16 -25
- package/dist/docs/components/feed.yaml +15 -24
- package/dist/docs/components/field.yaml +50 -71
- package/dist/docs/components/fieldset.yaml +92 -0
- package/dist/docs/components/footer.yaml +147 -0
- package/dist/docs/components/grid.yaml +87 -0
- package/dist/docs/components/gripper.yaml +11 -23
- package/dist/docs/components/header.yaml +168 -0
- package/dist/docs/components/heading.yaml +54 -0
- package/dist/docs/components/hover-card.yaml +17 -25
- package/dist/docs/components/icon.yaml +32 -65
- package/dist/docs/components/input-group.yaml +102 -0
- package/dist/docs/components/input-otp.yaml +20 -19
- package/dist/docs/components/input.yaml +92 -132
- package/dist/docs/components/inset.yaml +59 -0
- package/dist/docs/components/kbd.yaml +57 -0
- package/dist/docs/components/link.yaml +36 -45
- package/dist/docs/components/meter.yaml +27 -38
- package/dist/docs/components/nav-item.yaml +51 -40
- package/dist/docs/components/noodles.yaml +72 -104
- package/dist/docs/components/option.yaml +12 -23
- package/dist/docs/components/pagination.yaml +21 -18
- package/dist/docs/components/pane.yaml +18 -32
- package/dist/docs/components/panes.yaml +19 -27
- package/dist/docs/components/progress-circle.yaml +64 -55
- package/dist/docs/components/progress.yaml +35 -51
- package/dist/docs/components/radio-group.yaml +99 -40
- package/dist/docs/components/radio.yaml +40 -41
- package/dist/docs/components/range.yaml +24 -27
- package/dist/docs/components/segmented-control.yaml +58 -17
- package/dist/docs/components/select.yaml +80 -100
- package/dist/docs/components/skeleton.yaml +39 -39
- package/dist/docs/components/sparkline.yaml +28 -45
- package/dist/docs/components/spinner.yaml +32 -33
- package/dist/docs/components/stack.yaml +126 -0
- package/dist/docs/components/stepper.yaml +31 -38
- package/dist/docs/components/switch.yaml +36 -47
- package/dist/docs/components/tab-panel.yaml +27 -18
- package/dist/docs/components/tab.yaml +25 -22
- package/dist/docs/components/table-header.yaml +22 -12
- package/dist/docs/components/tabs.yaml +103 -20
- package/dist/docs/components/tag-group.yaml +63 -47
- package/dist/docs/components/text.yaml +67 -0
- package/dist/docs/components/textarea.yaml +43 -60
- package/dist/docs/components/time-field.yaml +74 -33
- package/dist/docs/components/toast.yaml +13 -30
- package/dist/docs/components/tooltip.yaml +56 -49
- package/dist/docs/components/tree-item.yaml +9 -10
- package/dist/docs/components/tree.yaml +127 -10
- package/dist/docs/components/wrap.yaml +60 -0
- package/dist/docs/traits/toggle-theme.yaml +34 -0
- package/dist/element.js +1 -1
- package/dist/icons.js +79 -59
- package/dist/icons.js.map +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/register.d.ts +0 -1
- package/dist/register.js +258 -244
- package/dist/register.js.map +1 -1
- package/dist/store.js +1 -1
- package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
- package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
- package/dist/traits.js +528 -485
- package/dist/traits.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
|
@@ -2,90 +2,66 @@ name: aui-select
|
|
|
2
2
|
tag: aui-select
|
|
3
3
|
type: component
|
|
4
4
|
summary: Universal collection surface — dropdown, toolbar, listbox, and combobox in one element.
|
|
5
|
-
description:
|
|
6
|
-
A single component with four presentation modes controlled by the mode
|
|
7
|
-
attribute. Default is a dropdown select. mode="bar" renders as a toolbar
|
|
8
|
-
with overflow management. mode="list" is a standalone scrollable listbox.
|
|
9
|
-
mode="combobox" adds a searchable input. Supports nested aui-select for
|
|
10
|
-
submenus, aui-optgroup for labeled sections, and aui-option as leaf items.
|
|
11
|
-
In dropdown mode, the trigger sizes to the widest option content,
|
|
12
|
-
matching the native <select> intrinsic sizing behavior. Automatically
|
|
13
|
-
stretches to full width when placed inside aui-field. Use width="full"
|
|
14
|
-
to override the default width in other contexts.
|
|
15
|
-
|
|
5
|
+
description: |
|
|
6
|
+
A single component with four presentation modes controlled by the mode attribute. Default is a dropdown select. mode="bar" renders as a toolbar with overflow management. mode="list" is a standalone scrollable listbox. mode="combobox" adds a searchable input. Supports nested aui-select for submenus, aui-optgroup for labeled sections, and aui-option as leaf items. In dropdown mode, the trigger sizes to the widest option content, matching the native <select> intrinsic sizing behavior. Automatically stretches to full width when placed inside aui-field. Use width="full" to override the default width in other contexts.
|
|
16
7
|
base: AgentElement
|
|
17
|
-
|
|
18
8
|
attributes:
|
|
19
9
|
mode:
|
|
20
10
|
syntax: key-value
|
|
21
11
|
type: string
|
|
22
12
|
default: ""
|
|
23
|
-
description:
|
|
24
|
-
Presentation mode. Empty (default) = dropdown select.
|
|
25
|
-
"bar" = inline toolbar with overflow.
|
|
26
|
-
"list" = standalone scrollable listbox.
|
|
27
|
-
"combobox" = searchable dropdown with type-ahead filtering.
|
|
28
|
-
|
|
13
|
+
description: |
|
|
14
|
+
Presentation mode. Empty (default) = dropdown select. "bar" = inline toolbar with overflow. "list" = standalone scrollable listbox. "combobox" = searchable dropdown with type-ahead filtering.
|
|
29
15
|
disabled:
|
|
30
16
|
syntax: boolean
|
|
31
17
|
type: boolean
|
|
32
18
|
default: false
|
|
33
19
|
description: Prevents interaction.
|
|
34
|
-
|
|
35
20
|
required:
|
|
36
21
|
syntax: boolean
|
|
37
22
|
type: boolean
|
|
38
23
|
default: false
|
|
39
24
|
description: Marks the field as required (dropdown/combobox modes).
|
|
40
|
-
|
|
41
25
|
placeholder:
|
|
42
26
|
syntax: key-value
|
|
43
27
|
type: string
|
|
44
|
-
default:
|
|
28
|
+
default: Select…
|
|
45
29
|
description: Placeholder text (dropdown/combobox trigger).
|
|
46
|
-
|
|
47
30
|
value:
|
|
48
31
|
syntax: key-value
|
|
49
32
|
type: string
|
|
50
33
|
default: ""
|
|
51
34
|
description: Currently selected value(s). Comma-separated for multiple.
|
|
52
|
-
|
|
53
35
|
name:
|
|
54
36
|
syntax: key-value
|
|
55
37
|
type: string
|
|
56
38
|
default: ""
|
|
57
39
|
description: Form field name.
|
|
58
|
-
|
|
59
40
|
open:
|
|
60
41
|
syntax: boolean
|
|
61
42
|
type: boolean
|
|
62
43
|
default: false
|
|
63
44
|
description: Whether the dropdown/combobox popover is open.
|
|
64
|
-
|
|
65
45
|
multiple:
|
|
66
46
|
syntax: boolean
|
|
67
47
|
type: boolean
|
|
68
48
|
default: false
|
|
69
49
|
description: Allow multiple selection (list mode).
|
|
70
|
-
|
|
71
50
|
orientation:
|
|
72
51
|
syntax: key-value
|
|
73
52
|
type: string
|
|
74
53
|
default: ""
|
|
75
54
|
description: Set to "vertical" for vertical bar/list layout.
|
|
76
|
-
|
|
77
55
|
transparent:
|
|
78
56
|
syntax: boolean
|
|
79
57
|
type: boolean
|
|
80
58
|
default: false
|
|
81
59
|
description: Remove background and border (bar mode).
|
|
82
|
-
|
|
83
60
|
fill:
|
|
84
61
|
syntax: boolean
|
|
85
62
|
type: boolean
|
|
86
63
|
default: false
|
|
87
64
|
description: Children fill available space equally (bar mode).
|
|
88
|
-
|
|
89
65
|
tokens:
|
|
90
66
|
- name: --aui-select-font-family
|
|
91
67
|
default: var(--aui-font-family)
|
|
@@ -141,34 +117,27 @@ tokens:
|
|
|
141
117
|
- name: --aui-select-dropdown-shadow
|
|
142
118
|
default: var(--aui-shadow-lg, 0 4px 16px oklch(0% 0 0 / 0.12))
|
|
143
119
|
description: Box shadow for the dropdown popover.
|
|
144
|
-
|
|
145
120
|
bar-overflow:
|
|
146
|
-
description:
|
|
147
|
-
In bar mode, items overflow into a "..." popover menu when the container
|
|
148
|
-
is too narrow. Control which items overflow first using data-priority
|
|
149
|
-
on children. Groups (aui-optgroup) overflow as a unit — all items in a
|
|
150
|
-
group move to the overflow menu together. In the bar, group labels are
|
|
151
|
-
hidden and auto-stamped dividers separate adjacent groups. In the
|
|
152
|
-
overflow menu, groups render with a horizontal divider + uppercase
|
|
153
|
-
group header label above their items.
|
|
121
|
+
description: |
|
|
122
|
+
In bar mode, items overflow into a "..." popover menu when the container is too narrow. Control which items overflow first using data-priority on children. Groups (aui-optgroup) overflow as a unit — all items in a group move to the overflow menu together. In the bar, group labels are hidden and auto-stamped dividers separate adjacent groups. In the overflow menu, groups render with a horizontal divider + uppercase group header label above their items.
|
|
154
123
|
data-priority:
|
|
155
|
-
values:
|
|
156
|
-
|
|
124
|
+
values:
|
|
125
|
+
- "0"
|
|
126
|
+
- "1"
|
|
127
|
+
- "2"
|
|
128
|
+
- pin
|
|
129
|
+
aliases:
|
|
130
|
+
low: "0"
|
|
131
|
+
normal: "1"
|
|
132
|
+
high: "2"
|
|
157
133
|
default: "1"
|
|
158
|
-
description:
|
|
159
|
-
Overflow priority for bar mode children.
|
|
160
|
-
0 (low) — collapses first.
|
|
161
|
-
1 (normal) — default, collapses at standard threshold.
|
|
162
|
-
2 (high) — collapses last.
|
|
163
|
-
pin — never collapses (always visible).
|
|
164
|
-
Items at the same priority collapse in reverse DOM order (end first).
|
|
165
|
-
|
|
134
|
+
description: |
|
|
135
|
+
Overflow priority for bar mode children. 0 (low) — collapses first. 1 (normal) — default, collapses at standard threshold. 2 (high) — collapses last. pin — never collapses (always visible). Items at the same priority collapse in reverse DOM order (end first).
|
|
166
136
|
padding:
|
|
167
137
|
syntax: key-value
|
|
168
138
|
type: string
|
|
169
139
|
default: ""
|
|
170
140
|
description: Padding variant — none, tight, regular, relaxed (bar mode).
|
|
171
|
-
|
|
172
141
|
a11y:
|
|
173
142
|
role: Depends on mode — combobox (dropdown), toolbar (bar), listbox (list).
|
|
174
143
|
keyboard:
|
|
@@ -181,35 +150,37 @@ a11y:
|
|
|
181
150
|
Escape: Close dropdown or cancel.
|
|
182
151
|
Home: First item.
|
|
183
152
|
End: Last item.
|
|
184
|
-
|
|
185
153
|
events:
|
|
186
154
|
change:
|
|
187
|
-
description:
|
|
188
|
-
Fired when selection changes (dropdown/list/combobox modes).
|
|
189
|
-
detail contains value, option, and label.
|
|
155
|
+
description: |
|
|
156
|
+
Fired when selection changes (dropdown/list/combobox modes). detail contains value, option, and label.
|
|
190
157
|
overflow:
|
|
191
|
-
description:
|
|
192
|
-
Fired when overflow state changes (bar mode).
|
|
193
|
-
detail contains visibleCount and overflowedCount.
|
|
194
|
-
|
|
158
|
+
description: |
|
|
159
|
+
Fired when overflow state changes (bar mode). detail contains visibleCount and overflowedCount.
|
|
195
160
|
form:
|
|
196
161
|
associated: true
|
|
197
162
|
value: Selected option value(s).
|
|
198
|
-
|
|
199
163
|
composition:
|
|
200
|
-
parents:
|
|
201
|
-
|
|
202
|
-
|
|
164
|
+
parents:
|
|
165
|
+
- aui-field
|
|
166
|
+
- form
|
|
167
|
+
- aui-stack
|
|
168
|
+
- any
|
|
169
|
+
children:
|
|
170
|
+
- aui-option
|
|
171
|
+
- aui-optgroup
|
|
172
|
+
- aui-select (submenu)
|
|
173
|
+
- aui-button (bar mode)
|
|
203
174
|
examples:
|
|
204
|
-
-
|
|
175
|
+
- description: Dropdown select — click to open, arrow keys to navigate, Enter to select
|
|
176
|
+
html: |-
|
|
205
177
|
<aui-select placeholder="Choose a fruit">
|
|
206
178
|
<aui-option value="apple">Apple</aui-option>
|
|
207
179
|
<aui-option value="banana">Banana</aui-option>
|
|
208
180
|
<aui-option value="cherry">Cherry</aui-option>
|
|
209
181
|
</aui-select>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
- html: |
|
|
182
|
+
- description: Grouped options with a divider between sections
|
|
183
|
+
html: |-
|
|
213
184
|
<aui-select placeholder="Category">
|
|
214
185
|
<aui-optgroup label="Fruits">
|
|
215
186
|
<aui-option value="apple">Apple</aui-option>
|
|
@@ -220,36 +191,32 @@ examples:
|
|
|
220
191
|
<aui-option value="spinach">Spinach</aui-option>
|
|
221
192
|
</aui-optgroup>
|
|
222
193
|
</aui-select>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
- html: |
|
|
194
|
+
- description: Combobox — type to filter options
|
|
195
|
+
html: |-
|
|
226
196
|
<aui-select mode="combobox" placeholder="Search colors...">
|
|
227
197
|
<aui-option value="red">Red</aui-option>
|
|
228
198
|
<aui-option value="green">Green</aui-option>
|
|
229
199
|
<aui-option value="blue">Blue</aui-option>
|
|
230
200
|
<aui-option value="yellow">Yellow</aui-option>
|
|
231
201
|
</aui-select>
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
- html: |
|
|
202
|
+
- description: Standalone listbox — all options visible, scrollable
|
|
203
|
+
html: |-
|
|
235
204
|
<aui-select mode="list" max-width="xs">
|
|
236
205
|
<aui-option value="alpha">Alpha</aui-option>
|
|
237
206
|
<aui-option value="beta" selected>Beta</aui-option>
|
|
238
207
|
<aui-option value="gamma">Gamma</aui-option>
|
|
239
208
|
<aui-option value="delta">Delta</aui-option>
|
|
240
209
|
</aui-select>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
- html: |
|
|
210
|
+
- description: Multi-select listbox — click to toggle, multiple selections allowed
|
|
211
|
+
html: |-
|
|
244
212
|
<aui-select mode="list" multiple max-width="xs">
|
|
245
213
|
<aui-option value="a" selected>Engineering</aui-option>
|
|
246
214
|
<aui-option value="b">Design</aui-option>
|
|
247
215
|
<aui-option value="c" selected>Product</aui-option>
|
|
248
216
|
<aui-option value="d">Marketing</aui-option>
|
|
249
217
|
</aui-select>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
- html: |
|
|
218
|
+
- description: Bar mode (toolbar) — drag to resize, items overflow into a ··· menu
|
|
219
|
+
html: |-
|
|
253
220
|
<div style="resize: horizontal; overflow: hidden; border: 1px dashed var(--aui-border-muted); border-radius: var(--aui-radius); padding: 0.5rem; min-width: 10rem; max-width: 100%; width: 100%;">
|
|
254
221
|
<aui-select mode="bar" transparent width="full">
|
|
255
222
|
<aui-option>Cut</aui-option>
|
|
@@ -264,9 +231,8 @@ examples:
|
|
|
264
231
|
<aui-option>Underline</aui-option>
|
|
265
232
|
</aui-select>
|
|
266
233
|
</div>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
- html: |
|
|
234
|
+
- description: Bar mode with pinned item — Home never overflows
|
|
235
|
+
html: |-
|
|
270
236
|
<aui-select mode="bar" width="full">
|
|
271
237
|
<aui-option overflow-pin>Home</aui-option>
|
|
272
238
|
<aui-option>Projects</aui-option>
|
|
@@ -275,23 +241,37 @@ examples:
|
|
|
275
241
|
<aui-option>Reports</aui-option>
|
|
276
242
|
<aui-option>Settings</aui-option>
|
|
277
243
|
</aui-select>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
244
|
+
- description: Bar mode with grouped overflow — groups spill as a unit with divider + header in the overflow menu. Resize to see
|
|
245
|
+
html: |-
|
|
246
|
+
<div style="resize: horizontal; overflow: hidden; border: 1px dashed var(--aui-border-muted); border-radius: var(--aui-radius); padding: 0.5rem; min-width: 10rem; max-width: 100%; width: 100%;">
|
|
247
|
+
<aui-select mode="bar" transparent width="full">
|
|
248
|
+
<aui-option overflow-pin>Home</aui-option>
|
|
249
|
+
<aui-optgroup label="Content">
|
|
250
|
+
<aui-option>Pages</aui-option>
|
|
251
|
+
<aui-option>Posts</aui-option>
|
|
252
|
+
<aui-option>Media</aui-option>
|
|
253
|
+
</aui-optgroup>
|
|
254
|
+
<aui-optgroup label="Settings">
|
|
255
|
+
<aui-option>General</aui-option>
|
|
256
|
+
<aui-option>Users</aui-option>
|
|
257
|
+
<aui-option>Billing</aui-option>
|
|
258
|
+
</aui-optgroup>
|
|
259
|
+
</aui-select>
|
|
260
|
+
</div>
|
|
261
|
+
- description: Bar mode with mixed pinned items and groups — pinned items stay, groups overflow together
|
|
262
|
+
html: |-
|
|
263
|
+
<div style="resize: horizontal; overflow: hidden; border: 1px dashed var(--aui-border-muted); border-radius: var(--aui-radius); padding: 0.5rem; min-width: 10rem; max-width: 100%; width: 100%;">
|
|
264
|
+
<aui-select mode="bar" width="full">
|
|
265
|
+
<aui-option overflow-pin>Dashboard</aui-option>
|
|
266
|
+
<aui-optgroup label="Data">
|
|
267
|
+
<aui-option>Tables</aui-option>
|
|
268
|
+
<aui-option>Queries</aui-option>
|
|
269
|
+
<aui-option>Schemas</aui-option>
|
|
270
|
+
</aui-optgroup>
|
|
271
|
+
<aui-optgroup label="Tools">
|
|
272
|
+
<aui-option>Import</aui-option>
|
|
273
|
+
<aui-option>Export</aui-option>
|
|
274
|
+
</aui-optgroup>
|
|
275
|
+
<aui-option overflow-pin>Help</aui-option>
|
|
276
|
+
</aui-select>
|
|
277
|
+
</div>
|
|
@@ -2,57 +2,43 @@ name: aui-skeleton
|
|
|
2
2
|
tag: aui-skeleton
|
|
3
3
|
type: component
|
|
4
4
|
summary: Loading placeholder with shimmer animation.
|
|
5
|
-
description:
|
|
6
|
-
Animated placeholder element for content that has not yet loaded.
|
|
7
|
-
Uses a gradient shimmer animation. Shape variants for text lines,
|
|
8
|
-
circles, and rectangles. Width and height set via inline style
|
|
9
|
-
bridging to CSS custom properties.
|
|
10
|
-
|
|
5
|
+
description: |
|
|
6
|
+
Animated placeholder element for content that has not yet loaded. Uses a gradient shimmer animation. Shape variants for text lines, circles, and rectangles. Width and height set via inline style bridging to CSS custom properties.
|
|
11
7
|
base: AgentElement
|
|
12
|
-
|
|
13
|
-
# ── Presentational attributes ─────────────────────────────
|
|
14
|
-
|
|
15
8
|
presentational:
|
|
16
9
|
size:
|
|
17
10
|
syntax: key-value
|
|
18
11
|
attribute: size
|
|
19
12
|
cascades: false
|
|
20
13
|
default: md
|
|
21
|
-
values:
|
|
14
|
+
values:
|
|
15
|
+
- xs
|
|
16
|
+
- sm
|
|
17
|
+
- md
|
|
18
|
+
- lg
|
|
22
19
|
description: Controls placeholder height. xs=0.5rem, sm=0.75rem, md=1rem, lg=1.5rem.
|
|
23
|
-
|
|
24
20
|
type:
|
|
25
21
|
syntax: key-value
|
|
26
22
|
attribute: type
|
|
27
23
|
cascades: false
|
|
28
24
|
default: text
|
|
29
|
-
values:
|
|
25
|
+
values:
|
|
26
|
+
- text
|
|
27
|
+
- circle
|
|
28
|
+
- rect
|
|
30
29
|
description: Shape variant — text line, avatar circle, or image rectangle.
|
|
31
|
-
|
|
32
|
-
# ── Modifiers ─────────────────────────────────────────────
|
|
33
|
-
|
|
34
30
|
modifiers:
|
|
35
31
|
round:
|
|
36
32
|
syntax: boolean
|
|
37
|
-
description:
|
|
38
|
-
Fully rounded corners (pill shape). Applies radius-full
|
|
39
|
-
regardless of type.
|
|
40
|
-
|
|
41
|
-
# ── Content model ─────────────────────────────────────────
|
|
42
|
-
|
|
33
|
+
description: |
|
|
34
|
+
Fully rounded corners (pill shape). Applies radius-full regardless of type.
|
|
43
35
|
content:
|
|
44
36
|
model: empty
|
|
45
37
|
accepts: []
|
|
46
38
|
required: false
|
|
47
|
-
description:
|
|
39
|
+
description: |
|
|
48
40
|
No content — skeleton is a visual placeholder only.
|
|
49
|
-
|
|
50
|
-
# ── Slots ─────────────────────────────────────────────────
|
|
51
|
-
|
|
52
41
|
slots: {}
|
|
53
|
-
|
|
54
|
-
# ── CSS tokens consumed ──────────────────────────────────
|
|
55
|
-
|
|
56
42
|
tokens:
|
|
57
43
|
sizing:
|
|
58
44
|
- --aui-skeleton-width
|
|
@@ -62,20 +48,34 @@ tokens:
|
|
|
62
48
|
- --aui-skeleton-highlight
|
|
63
49
|
shape:
|
|
64
50
|
- --aui-skeleton-radius
|
|
65
|
-
|
|
66
|
-
# ── Examples ──────────────────────────────────────────────
|
|
67
|
-
|
|
68
51
|
examples:
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
-
|
|
52
|
+
- description: Default text line placeholder
|
|
53
|
+
html: <aui-skeleton></aui-skeleton>
|
|
54
|
+
- description: Circle placeholder for avatars
|
|
55
|
+
html: <aui-skeleton type="circle"></aui-skeleton>
|
|
56
|
+
- description: Rectangle placeholder for images or cards
|
|
57
|
+
html: <aui-skeleton type="rect"></aui-skeleton>
|
|
58
|
+
- description: Size variants
|
|
59
|
+
html: |-
|
|
60
|
+
<aui-stack gap="2">
|
|
61
|
+
<aui-skeleton size="xs"></aui-skeleton>
|
|
62
|
+
<aui-skeleton size="sm"></aui-skeleton>
|
|
63
|
+
<aui-skeleton></aui-skeleton>
|
|
64
|
+
<aui-skeleton size="lg"></aui-skeleton>
|
|
65
|
+
</aui-stack>
|
|
66
|
+
- description: Multiple text lines with decreasing widths
|
|
67
|
+
html: |-
|
|
76
68
|
<aui-stack gap="2">
|
|
77
69
|
<aui-skeleton></aui-skeleton>
|
|
78
70
|
<aui-skeleton style="--aui-skeleton-width: 80%"></aui-skeleton>
|
|
79
71
|
<aui-skeleton style="--aui-skeleton-width: 60%"></aui-skeleton>
|
|
80
72
|
</aui-stack>
|
|
81
|
-
|
|
73
|
+
- description: Avatar with text lines loading state
|
|
74
|
+
html: |-
|
|
75
|
+
<aui-stack direction="row" gap="3" align-items="center">
|
|
76
|
+
<aui-skeleton type="circle"></aui-skeleton>
|
|
77
|
+
<aui-stack gap="2" style="flex: 1">
|
|
78
|
+
<aui-skeleton></aui-skeleton>
|
|
79
|
+
<aui-skeleton style="--aui-skeleton-width: 60%"></aui-skeleton>
|
|
80
|
+
</aui-stack>
|
|
81
|
+
</aui-stack>
|
|
@@ -2,54 +2,38 @@ name: aui-sparkline
|
|
|
2
2
|
tag: aui-sparkline
|
|
3
3
|
type: component
|
|
4
4
|
summary: Inline bar sparkline with configurable highlight and color.
|
|
5
|
-
description:
|
|
6
|
-
A compact bar chart rendered as a row of flex-aligned divs. Values
|
|
7
|
-
are passed as a comma-separated string and normalized against the
|
|
8
|
-
maximum. Each bar is stamped by JS with a percentage height and
|
|
9
|
-
chart color. The highlight attribute controls which bar is shown
|
|
10
|
-
at full opacity — "last" (default), "max", or "none".
|
|
11
|
-
|
|
5
|
+
description: |
|
|
6
|
+
A compact bar chart rendered as a row of flex-aligned divs. Values are passed as a comma-separated string and normalized against the maximum. Each bar is stamped by JS with a percentage height and chart color. The highlight attribute controls which bar is shown at full opacity — "last" (default), "max", or "none".
|
|
12
7
|
base: AgentElement
|
|
13
|
-
|
|
14
|
-
# ── Component attributes ──────────────────────────────────
|
|
15
|
-
|
|
16
8
|
attributes:
|
|
17
9
|
values:
|
|
18
10
|
syntax: key-value
|
|
19
11
|
type: string
|
|
20
12
|
default: ""
|
|
21
|
-
description:
|
|
22
|
-
Comma-separated numeric values. Each value becomes one bar
|
|
23
|
-
whose height is proportional to the maximum value.
|
|
24
|
-
|
|
13
|
+
description: |
|
|
14
|
+
Comma-separated numeric values. Each value becomes one bar whose height is proportional to the maximum value.
|
|
25
15
|
color:
|
|
26
16
|
syntax: key-value
|
|
27
17
|
type: string
|
|
28
18
|
default: "1"
|
|
29
|
-
description:
|
|
19
|
+
description: |
|
|
30
20
|
Chart color index (1–8). Maps to --aui-chart-{n} token.
|
|
31
|
-
|
|
32
21
|
highlight:
|
|
33
22
|
syntax: key-value
|
|
34
23
|
type: string
|
|
35
24
|
default: last
|
|
36
|
-
values:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
# ── Content model ─────────────────────────────────────────
|
|
43
|
-
|
|
25
|
+
values:
|
|
26
|
+
- last
|
|
27
|
+
- max
|
|
28
|
+
- none
|
|
29
|
+
description: |
|
|
30
|
+
Which bar to render at full opacity. "last" highlights the final bar, "max" highlights the tallest bar, "none" shows all bars at full opacity.
|
|
44
31
|
content:
|
|
45
32
|
model: empty
|
|
46
33
|
accepts: []
|
|
47
34
|
required: false
|
|
48
|
-
description:
|
|
35
|
+
description: |
|
|
49
36
|
No child content. Bars are stamped by JS from the values attribute.
|
|
50
|
-
|
|
51
|
-
# ── CSS tokens consumed ──────────────────────────────────
|
|
52
|
-
|
|
53
37
|
tokens:
|
|
54
38
|
- name: --aui-sparkline-height
|
|
55
39
|
default: 2rem
|
|
@@ -60,29 +44,28 @@ tokens:
|
|
|
60
44
|
- name: --aui-sparkline-bar-radius
|
|
61
45
|
default: var(--aui-radius)
|
|
62
46
|
description: Corner radius of each bar.
|
|
63
|
-
|
|
64
|
-
# ── Accessibility ─────────────────────────────────────────
|
|
65
|
-
|
|
66
47
|
a11y:
|
|
67
48
|
role: img
|
|
68
49
|
aria:
|
|
69
50
|
aria-label: Derived from values attribute for screen readers.
|
|
70
|
-
|
|
71
|
-
# ── Use cases ─────────────────────────────────────────────
|
|
72
|
-
|
|
73
51
|
use-cases:
|
|
74
52
|
- Inline trend indicator in table cells.
|
|
75
53
|
- Dashboard metric sparkline beside a stat card.
|
|
76
54
|
- Activity or usage micro-chart.
|
|
77
|
-
|
|
78
|
-
# ── Examples ──────────────────────────────────────────────
|
|
79
|
-
|
|
80
55
|
examples:
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
56
|
+
- description: Default sparkline with last bar highlighted
|
|
57
|
+
html: <aui-sparkline values="40,55,35,70,60,80,95"></aui-sparkline>
|
|
58
|
+
- description: Upward trend
|
|
59
|
+
html: <aui-sparkline values="20,30,35,45,55,70,90"></aui-sparkline>
|
|
60
|
+
- description: Flat with spike
|
|
61
|
+
html: <aui-sparkline values="40,42,38,41,40,85,43"></aui-sparkline>
|
|
62
|
+
- description: Max bar highlighted, color 2
|
|
63
|
+
html: <aui-sparkline values="60,45,55,50,70,65,85" highlight="max" color="2"></aui-sparkline>
|
|
64
|
+
- description: No highlight — all bars full opacity, color 3
|
|
65
|
+
html: <aui-sparkline values="30,50,40,60,55,45,50" highlight="none" color="3"></aui-sparkline>
|
|
66
|
+
- description: Color 4
|
|
67
|
+
html: <aui-sparkline values="50,60,45,70,80,65,75" color="4"></aui-sparkline>
|
|
68
|
+
- description: Color 5 with max highlight
|
|
69
|
+
html: <aui-sparkline values="35,55,65,40,80,60,70" highlight="max" color="5"></aui-sparkline>
|
|
70
|
+
- description: Color 6 with many values
|
|
71
|
+
html: <aui-sparkline values="20,35,50,45,60,55,70,65,80,75,90,85,95" color="6"></aui-sparkline>
|
|
@@ -2,48 +2,39 @@ name: aui-spinner
|
|
|
2
2
|
tag: aui-spinner
|
|
3
3
|
type: component
|
|
4
4
|
summary: Animated loading indicator.
|
|
5
|
-
description:
|
|
6
|
-
CSS-only spinning ring indicator for inline and block-level
|
|
7
|
-
loading states. Border-based animation with configurable
|
|
8
|
-
size and intent coloring. Uses currentColor by default so it
|
|
9
|
-
inherits text color from its parent.
|
|
10
|
-
|
|
5
|
+
description: |
|
|
6
|
+
CSS-only spinning ring indicator for inline and block-level loading states. Border-based animation with configurable size and intent coloring. Uses currentColor by default so it inherits text color from its parent.
|
|
11
7
|
base: AgentElement
|
|
12
|
-
|
|
13
|
-
# ── Presentational attributes ─────────────────────────────
|
|
14
|
-
|
|
15
8
|
presentational:
|
|
16
9
|
size:
|
|
17
10
|
syntax: key-value
|
|
18
11
|
attribute: size
|
|
19
12
|
cascades: false
|
|
20
13
|
default: md
|
|
21
|
-
values:
|
|
14
|
+
values:
|
|
15
|
+
- xs
|
|
16
|
+
- sm
|
|
17
|
+
- md
|
|
18
|
+
- lg
|
|
22
19
|
description: Diameter of the spinner ring. xs=1rem, sm=1.25rem, md=1.5rem, lg=2rem.
|
|
23
|
-
|
|
24
20
|
intent:
|
|
25
21
|
syntax: boolean
|
|
26
22
|
exclusive: true
|
|
27
23
|
cascades: false
|
|
28
24
|
default: null
|
|
29
|
-
values:
|
|
25
|
+
values:
|
|
26
|
+
- accent
|
|
27
|
+
- success
|
|
28
|
+
- warning
|
|
29
|
+
- danger
|
|
30
30
|
description: Color of the spinning ring segment.
|
|
31
|
-
|
|
32
|
-
# ── Content model ─────────────────────────────────────────
|
|
33
|
-
|
|
34
31
|
content:
|
|
35
32
|
model: empty
|
|
36
33
|
accepts: []
|
|
37
34
|
required: false
|
|
38
|
-
description:
|
|
35
|
+
description: |
|
|
39
36
|
No content — spinner is a visual indicator only.
|
|
40
|
-
|
|
41
|
-
# ── Slots ─────────────────────────────────────────────────
|
|
42
|
-
|
|
43
37
|
slots: {}
|
|
44
|
-
|
|
45
|
-
# ── CSS tokens consumed ──────────────────────────────────
|
|
46
|
-
|
|
47
38
|
tokens:
|
|
48
39
|
sizing:
|
|
49
40
|
- --aui-spinner-size
|
|
@@ -51,25 +42,33 @@ tokens:
|
|
|
51
42
|
color:
|
|
52
43
|
- --aui-spinner-track
|
|
53
44
|
- --aui-spinner-fill
|
|
54
|
-
|
|
55
|
-
# ── Examples ──────────────────────────────────────────────
|
|
56
|
-
|
|
57
45
|
examples:
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
- description: Default medium spinner
|
|
47
|
+
html: <aui-spinner></aui-spinner>
|
|
48
|
+
- description: All four sizes side by side
|
|
49
|
+
html: |-
|
|
62
50
|
<aui-stack direction="row" gap="3" align-items="center">
|
|
63
51
|
<aui-spinner size="xs"></aui-spinner>
|
|
64
52
|
<aui-spinner size="sm"></aui-spinner>
|
|
65
53
|
<aui-spinner></aui-spinner>
|
|
66
54
|
<aui-spinner size="lg"></aui-spinner>
|
|
67
55
|
</aui-stack>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
- description: Intent color variants
|
|
57
|
+
html: |-
|
|
58
|
+
<aui-stack direction="row" gap="3" align-items="center">
|
|
59
|
+
<aui-spinner></aui-spinner>
|
|
60
|
+
<aui-spinner success></aui-spinner>
|
|
61
|
+
<aui-spinner warning></aui-spinner>
|
|
62
|
+
<aui-spinner danger></aui-spinner>
|
|
63
|
+
</aui-stack>
|
|
64
|
+
- description: Inline spinner with loading text
|
|
65
|
+
html: |-
|
|
71
66
|
<aui-stack direction="row" gap="2" align-items="center">
|
|
72
67
|
<aui-spinner size="xs"></aui-spinner>
|
|
73
68
|
<aui-text size="sm">Loading...</aui-text>
|
|
74
69
|
</aui-stack>
|
|
75
|
-
|
|
70
|
+
- description: Centered spinner in an empty state
|
|
71
|
+
html: |-
|
|
72
|
+
<aui-content padding="6" style="display: grid; place-items: center; min-height: 120px;">
|
|
73
|
+
<aui-spinner size="lg"></aui-spinner>
|
|
74
|
+
</aui-content>
|