@agent-ui-kit/web-components 0.0.14 → 0.0.16
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 +3878 -636
- package/dist/api.tokens.json +35 -3
- package/dist/api.tokens.yaml +27 -3
- package/dist/chunks/{agent-C72JZNe6.js → agent-XMhz_6OA.js} +85 -76
- package/dist/chunks/{agent-C72JZNe6.js.map → agent-XMhz_6OA.js.map} +1 -1
- package/dist/chunks/{empty-state-5M3uR5CM.js → form-oekEhwja.js} +1409 -960
- package/dist/chunks/form-oekEhwja.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/checkbox-group/checkbox-group.d.ts +14 -0
- package/dist/components/checkbox-group/index.d.ts +1 -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/form/form.d.ts +12 -0
- package/dist/components/form/index.d.ts +1 -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/index.d.ts +2 -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/noodles/noodle-controller.d.ts +1 -1
- 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 +115 -126
- package/dist/components.js.map +1 -1
- package/dist/docs/blocks/agent-chat.yaml +33 -25
- package/dist/docs/blocks/announcement-card.yaml +14 -10
- package/dist/docs/blocks/bpm-process.yaml +216 -4
- package/dist/docs/blocks/chart-activity.yaml +12 -10
- package/dist/docs/blocks/chart-card.yaml +14 -11
- package/dist/docs/blocks/chart-donut.yaml +27 -23
- package/dist/docs/blocks/chart-grouped.yaml +14 -11
- package/dist/docs/blocks/chart-horizontal.yaml +13 -10
- package/dist/docs/blocks/chart-interactive.yaml +20 -17
- package/dist/docs/blocks/chart-labeled.yaml +14 -11
- package/dist/docs/blocks/checkout-form.yaml +26 -16
- package/dist/docs/blocks/clinical-trial.yaml +180 -4
- package/dist/docs/blocks/contributors.yaml +17 -11
- package/dist/docs/blocks/cyber-threat.yaml +158 -4
- package/dist/docs/blocks/dashboard-layout.yaml +25 -18
- package/dist/docs/blocks/data-eng-dag.yaml +222 -6
- package/dist/docs/blocks/date-picker.yaml +11 -10
- package/dist/docs/blocks/ddx-workflow.yaml +202 -6
- package/dist/docs/blocks/empty-state.yaml +8 -11
- package/dist/docs/blocks/env-variables.yaml +29 -20
- package/dist/docs/blocks/feature-upgrade.yaml +25 -18
- package/dist/docs/blocks/financial-risk.yaml +161 -4
- package/dist/docs/blocks/flow-editor.yaml +27 -18
- package/dist/docs/blocks/gen-ai-pipeline.yaml +232 -5
- package/dist/docs/blocks/issue-assign.yaml +25 -14
- package/dist/docs/blocks/keyboard-shortcuts.yaml +14 -9
- package/dist/docs/blocks/login-branded.yaml +62 -23
- package/dist/docs/blocks/login-email-only.yaml +14 -13
- package/dist/docs/blocks/login-form.yaml +17 -11
- package/dist/docs/blocks/login-simple.yaml +18 -12
- package/dist/docs/blocks/login-social.yaml +21 -14
- package/dist/docs/blocks/login-two-column.yaml +42 -22
- package/dist/docs/blocks/marketing-automation.yaml +209 -4
- package/dist/docs/blocks/member-list.yaml +23 -18
- package/dist/docs/blocks/ml-pipeline.yaml +163 -4
- package/dist/docs/blocks/nav-card.yaml +13 -11
- package/dist/docs/blocks/notification-list.yaml +18 -13
- package/dist/docs/blocks/oncology-pathway.yaml +227 -4
- package/dist/docs/blocks/pricing-card.yaml +20 -13
- package/dist/docs/blocks/processing-state.yaml +14 -11
- package/dist/docs/blocks/profile-card.yaml +22 -16
- package/dist/docs/blocks/saas-onboarding.yaml +222 -4
- package/dist/docs/blocks/settings-form.yaml +20 -11
- package/dist/docs/blocks/settings-panel.yaml +23 -22
- package/dist/docs/blocks/sidebar-nav.yaml +23 -15
- package/dist/docs/blocks/signup-form.yaml +17 -11
- package/dist/docs/blocks/stat-cards.yaml +12 -13
- package/dist/docs/blocks/status-card.yaml +20 -17
- package/dist/docs/blocks/suggested-labs.yaml +20 -13
- package/dist/docs/blocks/supply-chain.yaml +160 -4
- package/dist/docs/blocks/survey-card.yaml +21 -13
- package/dist/docs/blocks/tabbed-panel.yaml +21 -15
- package/dist/docs/blocks/team-empty.yaml +8 -9
- package/dist/docs/blocks/usage-billing.yaml +20 -16
- package/dist/docs/components/accordion-item.yaml +13 -21
- package/dist/docs/components/accordion.yaml +23 -29
- package/dist/docs/components/agent-activity.yaml +49 -41
- 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 +29 -47
- package/dist/docs/components/agent-seeds.yaml +16 -24
- 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 +91 -29
- package/dist/docs/components/button-group.yaml +93 -0
- package/dist/docs/components/button.yaml +188 -261
- package/dist/docs/components/calendar-picker.yaml +16 -35
- 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 +89 -55
- 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 +87 -35
- 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 +84 -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 +58 -0
- package/dist/docs/components/hover-card.yaml +17 -25
- package/dist/docs/components/icon.yaml +32 -65
- package/dist/docs/components/index.yaml +11 -1
- package/dist/docs/components/input-group.yaml +102 -0
- package/dist/docs/components/input-otp.yaml +20 -19
- package/dist/docs/components/input.yaml +100 -139
- 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 +54 -42
- package/dist/docs/components/nav-item.yaml +54 -43
- 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/stat.yaml +164 -0
- package/dist/docs/components/stepper.yaml +46 -53
- 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 +108 -34
- 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 +368 -352
- 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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
name: aui-badge
|
|
2
|
+
tag: aui-badge
|
|
3
|
+
type: element
|
|
4
|
+
summary: Status indicator with intent colors and dot mode.
|
|
5
|
+
description: |
|
|
6
|
+
Inline status indicator. Accepts intent for color family. Dot mode renders as a small circle indicator with no text. Use for status labels, counts, category tags.
|
|
7
|
+
presentational:
|
|
8
|
+
size:
|
|
9
|
+
syntax: key-value
|
|
10
|
+
attribute: size
|
|
11
|
+
cascades: false
|
|
12
|
+
default: medium
|
|
13
|
+
values:
|
|
14
|
+
- xs
|
|
15
|
+
- sm
|
|
16
|
+
- md
|
|
17
|
+
- lg
|
|
18
|
+
- xl
|
|
19
|
+
description: Controls badge height and font size.
|
|
20
|
+
intent:
|
|
21
|
+
syntax: boolean
|
|
22
|
+
exclusive: true
|
|
23
|
+
cascades: true
|
|
24
|
+
default: neutral
|
|
25
|
+
values:
|
|
26
|
+
- accent
|
|
27
|
+
- info
|
|
28
|
+
- success
|
|
29
|
+
- warning
|
|
30
|
+
- danger
|
|
31
|
+
description: Color family for the badge fill and text.
|
|
32
|
+
variant:
|
|
33
|
+
syntax: boolean
|
|
34
|
+
exclusive: true
|
|
35
|
+
cascades: true
|
|
36
|
+
default: default
|
|
37
|
+
values:
|
|
38
|
+
- primary
|
|
39
|
+
- outline
|
|
40
|
+
- ghost
|
|
41
|
+
description: Surface expression for the badge.
|
|
42
|
+
modifiers:
|
|
43
|
+
dot:
|
|
44
|
+
syntax: boolean
|
|
45
|
+
description: |
|
|
46
|
+
Small circle indicator with no text content. Overrides size to a fixed dot diameter. Use for presence indicators, notification dots.
|
|
47
|
+
content:
|
|
48
|
+
model: inline
|
|
49
|
+
accepts:
|
|
50
|
+
- text
|
|
51
|
+
required: false
|
|
52
|
+
description: |
|
|
53
|
+
Short label text. Keep to 1-2 words. Empty when using dot modifier — dot mode renders as a solid circle with no text.
|
|
54
|
+
slots:
|
|
55
|
+
default:
|
|
56
|
+
accepts:
|
|
57
|
+
- text
|
|
58
|
+
required: false
|
|
59
|
+
description: Badge label text. Empty when dot is set.
|
|
60
|
+
composition:
|
|
61
|
+
parents:
|
|
62
|
+
- aui-stack
|
|
63
|
+
- aui-header
|
|
64
|
+
- aui-footer
|
|
65
|
+
- span
|
|
66
|
+
- div
|
|
67
|
+
- td
|
|
68
|
+
children: null
|
|
69
|
+
context: |
|
|
70
|
+
Inline element — use inside text, headers, table cells, or stack rows. Group multiple badges in aui-stack direction="row". Dot badges work well next to avatar or status text.
|
|
71
|
+
constraints:
|
|
72
|
+
- when: dot
|
|
73
|
+
forbids: default slot content
|
|
74
|
+
reason: |
|
|
75
|
+
Dot mode renders as a solid circle. Any text content is hidden (font-size: 0). Do not provide children when dot is set.
|
|
76
|
+
tokens:
|
|
77
|
+
sizing:
|
|
78
|
+
- --aui-widget-size
|
|
79
|
+
- --aui-widget-font
|
|
80
|
+
- --aui-badge-dot
|
|
81
|
+
color:
|
|
82
|
+
- --aui-fill
|
|
83
|
+
- --aui-ink
|
|
84
|
+
- --aui-stroke
|
|
85
|
+
- --aui-solid
|
|
86
|
+
shape:
|
|
87
|
+
- --aui-radius-round
|
|
88
|
+
examples:
|
|
89
|
+
- description: Default badge
|
|
90
|
+
html: <aui-badge>Default</aui-badge>
|
|
91
|
+
- description: Accent intent badge
|
|
92
|
+
html: <aui-badge accent>Accent</aui-badge>
|
|
93
|
+
- description: Success dot indicator
|
|
94
|
+
html: <aui-badge dot success></aui-badge>
|
|
95
|
+
- description: Row of intent badges
|
|
96
|
+
html: |-
|
|
97
|
+
<aui-stack direction="row" gap="2" align-items="center">
|
|
98
|
+
<aui-badge accent>New</aui-badge>
|
|
99
|
+
<aui-badge info>3</aui-badge>
|
|
100
|
+
<aui-badge warning>Draft</aui-badge>
|
|
101
|
+
<aui-badge danger>Error</aui-badge>
|
|
102
|
+
</aui-stack>
|
|
103
|
+
- description: Row of dot indicators
|
|
104
|
+
html: |-
|
|
105
|
+
<aui-stack direction="row" gap="2" align-items="center">
|
|
106
|
+
<aui-badge dot></aui-badge>
|
|
107
|
+
<aui-badge dot accent></aui-badge>
|
|
108
|
+
<aui-badge dot success></aui-badge>
|
|
109
|
+
<aui-badge dot danger></aui-badge>
|
|
110
|
+
</aui-stack>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
name: aui-bar
|
|
2
|
+
tag: aui-bar
|
|
3
|
+
type: element
|
|
4
|
+
summary: Chart bar element with color, tooltip, and interaction states.
|
|
5
|
+
description: |
|
|
6
|
+
A CSS-only bar element for building bar charts. Sized by height percentage (vertical) or width percentage (horizontal). Uses chart color palette (--aui-chart-1 through --aui-chart-10) via the color attribute. Supports CSS-only tooltips via the label attribute, and interactive dim/highlight behavior on hover via the interactive attribute. Typically placed inside an aui-stack with direction="row" and align-items="end" to form a vertical bar chart. No JavaScript required for basic rendering.
|
|
7
|
+
presentational:
|
|
8
|
+
color:
|
|
9
|
+
syntax: key-value
|
|
10
|
+
type: enum
|
|
11
|
+
values:
|
|
12
|
+
- "1"
|
|
13
|
+
- "2"
|
|
14
|
+
- "3"
|
|
15
|
+
- "4"
|
|
16
|
+
- "5"
|
|
17
|
+
- "6"
|
|
18
|
+
- "7"
|
|
19
|
+
- "8"
|
|
20
|
+
- "9"
|
|
21
|
+
- "10"
|
|
22
|
+
default: "1"
|
|
23
|
+
description: Chart color from the --aui-chart-N palette.
|
|
24
|
+
modifiers:
|
|
25
|
+
faded:
|
|
26
|
+
syntax: boolean
|
|
27
|
+
description: Reduces opacity to 0.6 for de-emphasized bars.
|
|
28
|
+
highlighted:
|
|
29
|
+
syntax: boolean
|
|
30
|
+
description: Applies brightness boost and shows tooltip.
|
|
31
|
+
horizontal:
|
|
32
|
+
syntax: boolean
|
|
33
|
+
description: Switches to horizontal mode (width-based sizing, adjusted border-radius).
|
|
34
|
+
interactive:
|
|
35
|
+
syntax: boolean
|
|
36
|
+
description: Enables pointer cursor for clickable bars.
|
|
37
|
+
label:
|
|
38
|
+
syntax: key-value
|
|
39
|
+
type: string
|
|
40
|
+
description: |
|
|
41
|
+
CSS-only tooltip text shown above the bar on hover or when highlighted. Rendered via ::after pseudo-element with attr().
|
|
42
|
+
tokens:
|
|
43
|
+
color:
|
|
44
|
+
- --aui-bar-background
|
|
45
|
+
- --aui-bar-tooltip-background
|
|
46
|
+
- --aui-chart-color
|
|
47
|
+
- --aui-chart-1
|
|
48
|
+
sizing:
|
|
49
|
+
- --aui-bar-border-radius
|
|
50
|
+
examples:
|
|
51
|
+
- description: Simple vertical bar chart with tooltips
|
|
52
|
+
html: |-
|
|
53
|
+
<aui-stack direction="row" gap="1" align-items="end" style="height: 8rem;">
|
|
54
|
+
<aui-bar style="height: 40%;" label="40%"></aui-bar>
|
|
55
|
+
<aui-bar style="height: 65%;" label="65%"></aui-bar>
|
|
56
|
+
<aui-bar style="height: 90%;" label="90%"></aui-bar>
|
|
57
|
+
<aui-bar style="height: 50%;" label="50%"></aui-bar>
|
|
58
|
+
<aui-bar style="height: 75%;" label="75%"></aui-bar>
|
|
59
|
+
</aui-stack>
|
|
60
|
+
- description: Multi-color bars using chart palette
|
|
61
|
+
html: |-
|
|
62
|
+
<aui-stack direction="row" gap="1" align-items="end" style="height: 8rem;">
|
|
63
|
+
<aui-bar color="1" style="height: 60%;" label="Series A"></aui-bar>
|
|
64
|
+
<aui-bar color="2" style="height: 80%;" label="Series B"></aui-bar>
|
|
65
|
+
<aui-bar color="3" style="height: 45%;" label="Series C"></aui-bar>
|
|
66
|
+
<aui-bar color="4" style="height: 70%;" label="Series D"></aui-bar>
|
|
67
|
+
<aui-bar color="5" style="height: 55%;" label="Series E"></aui-bar>
|
|
68
|
+
</aui-stack>
|
|
69
|
+
- description: Horizontal bar chart
|
|
70
|
+
html: |-
|
|
71
|
+
<aui-stack gap="1" style="width: 16rem;">
|
|
72
|
+
<aui-bar horizontal style="width: 75%;" label="75%"></aui-bar>
|
|
73
|
+
<aui-bar horizontal style="width: 50%;" label="50%"></aui-bar>
|
|
74
|
+
<aui-bar horizontal style="width: 90%;" label="90%"></aui-bar>
|
|
75
|
+
</aui-stack>
|
|
76
|
+
- description: Interactive bars with faded/highlighted states
|
|
77
|
+
html: |-
|
|
78
|
+
<aui-stack direction="row" gap="1" align-items="end" style="height: 8rem;">
|
|
79
|
+
<aui-bar interactive style="height: 55%;" label="Jan"></aui-bar>
|
|
80
|
+
<aui-bar interactive style="height: 70%;" label="Feb"></aui-bar>
|
|
81
|
+
<aui-bar interactive highlighted style="height: 85%;" label="Mar"></aui-bar>
|
|
82
|
+
<aui-bar interactive faded style="height: 40%;" label="Apr"></aui-bar>
|
|
83
|
+
<aui-bar interactive style="height: 60%;" label="May"></aui-bar>
|
|
84
|
+
</aui-stack>
|
|
@@ -2,34 +2,27 @@ name: aui-breadcrumb-item
|
|
|
2
2
|
tag: aui-breadcrumb-item
|
|
3
3
|
type: component
|
|
4
4
|
summary: Individual breadcrumb link or current-page indicator.
|
|
5
|
-
description:
|
|
6
|
-
A single entry in a breadcrumb trail. Set href for a link,
|
|
7
|
-
or current for the active page (no link, bold text).
|
|
8
|
-
Always used inside aui-breadcrumb.
|
|
9
|
-
|
|
5
|
+
description: |
|
|
6
|
+
A single entry in a breadcrumb trail. Set href for a link, or current for the active page (no link, bold text). Always used inside aui-breadcrumb.
|
|
10
7
|
base: AgentElement
|
|
11
|
-
|
|
12
8
|
attributes:
|
|
13
9
|
href:
|
|
14
10
|
syntax: key-value
|
|
15
11
|
type: string
|
|
16
12
|
default: ""
|
|
17
13
|
description: Navigation URL. Stamps an anchor element when set.
|
|
18
|
-
|
|
19
14
|
current:
|
|
20
15
|
syntax: boolean
|
|
21
16
|
type: boolean
|
|
22
17
|
default: false
|
|
23
18
|
description: Marks this item as the current page (aria-current="page").
|
|
24
|
-
|
|
25
19
|
a11y:
|
|
26
20
|
aria:
|
|
27
21
|
aria-current: page (when current is set).
|
|
28
|
-
|
|
29
22
|
composition:
|
|
30
|
-
parents:
|
|
23
|
+
parents:
|
|
24
|
+
- aui-breadcrumb
|
|
31
25
|
children: null
|
|
32
|
-
|
|
33
26
|
tokens:
|
|
34
27
|
- name: --aui-breadcrumb-item-gap
|
|
35
28
|
default: calc(var(--aui-space) * 2)
|
|
@@ -61,21 +54,19 @@ tokens:
|
|
|
61
54
|
- name: --aui-breadcrumb-item-font-weight-current
|
|
62
55
|
default: var(--aui-font-weight-semibold)
|
|
63
56
|
description: Font weight of the current page item.
|
|
64
|
-
|
|
65
57
|
examples:
|
|
66
|
-
-
|
|
58
|
+
- description: Full breadcrumb trail with link items and current page
|
|
59
|
+
html: |-
|
|
67
60
|
<aui-breadcrumb>
|
|
68
61
|
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
69
62
|
<aui-breadcrumb-item href="/settings">Settings</aui-breadcrumb-item>
|
|
70
63
|
<aui-breadcrumb-item current>Profile</aui-breadcrumb-item>
|
|
71
64
|
</aui-breadcrumb>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- html: |
|
|
65
|
+
- description: Deep breadcrumb trail with four levels
|
|
66
|
+
html: |-
|
|
75
67
|
<aui-breadcrumb>
|
|
76
68
|
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
77
69
|
<aui-breadcrumb-item href="/products">Products</aui-breadcrumb-item>
|
|
78
70
|
<aui-breadcrumb-item href="/products/widgets">Widgets</aui-breadcrumb-item>
|
|
79
71
|
<aui-breadcrumb-item current>Deluxe Widget</aui-breadcrumb-item>
|
|
80
72
|
</aui-breadcrumb>
|
|
81
|
-
description: Deep breadcrumb trail with four levels.
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
name: aui-breadcrumb
|
|
2
2
|
tag: aui-breadcrumb
|
|
3
3
|
type: component
|
|
4
|
-
summary: Breadcrumb navigation trail.
|
|
5
|
-
description:
|
|
6
|
-
Container for aui-breadcrumb-item children. Sets role="navigation"
|
|
7
|
-
and aria-label. Separators are rendered via CSS between items.
|
|
8
|
-
|
|
4
|
+
summary: Breadcrumb navigation trail with auto-current and depth collapse.
|
|
5
|
+
description: |
|
|
6
|
+
Container for aui-breadcrumb-item children. Sets role="navigation" and aria-label. Separators are rendered via CSS between items using a --_joiner custom property. The last item is automatically marked [current] by JS. When max-depth is set, middle items collapse into an ellipsis trigger that expands on click.
|
|
9
7
|
base: AgentElement
|
|
10
|
-
|
|
11
8
|
attributes:
|
|
12
9
|
label:
|
|
13
10
|
syntax: key-value
|
|
14
11
|
type: string
|
|
15
12
|
default: Breadcrumb
|
|
16
13
|
description: Accessible label for the navigation landmark.
|
|
17
|
-
|
|
18
14
|
joiner:
|
|
19
15
|
syntax: key-value
|
|
20
16
|
type: string
|
|
21
|
-
default:
|
|
22
|
-
description:
|
|
23
|
-
Separator character between breadcrumb items.
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
default: /
|
|
18
|
+
description: |
|
|
19
|
+
Separator character between breadcrumb items. Common values: "/" "›" "→" "·"
|
|
20
|
+
max-depth:
|
|
21
|
+
syntax: key-value
|
|
22
|
+
type: string
|
|
23
|
+
default: ""
|
|
24
|
+
description: |
|
|
25
|
+
When set, collapses middle items to keep only the first item and the last N items visible. Hidden items are replaced by an ellipsis button that expands them on click.
|
|
26
26
|
a11y:
|
|
27
27
|
role: navigation
|
|
28
28
|
aria:
|
|
29
29
|
aria-label: Set from label attribute.
|
|
30
|
-
|
|
31
30
|
composition:
|
|
32
|
-
parents:
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
parents:
|
|
32
|
+
- any
|
|
33
|
+
children:
|
|
34
|
+
- aui-breadcrumb-item
|
|
35
35
|
tokens:
|
|
36
36
|
- name: --aui-breadcrumb-font-family
|
|
37
37
|
default: var(--aui-font-family)
|
|
@@ -40,31 +40,93 @@ tokens:
|
|
|
40
40
|
default: var(--aui-font-size)
|
|
41
41
|
description: Font size for breadcrumb text.
|
|
42
42
|
- name: --aui-breadcrumb-gap
|
|
43
|
-
default:
|
|
43
|
+
default: calc(var(--aui-space) * 2)
|
|
44
44
|
description: Gap between breadcrumb items.
|
|
45
|
-
|
|
45
|
+
- name: --aui-breadcrumb-item-color-current
|
|
46
|
+
default: var(--aui-ink-strong)
|
|
47
|
+
description: Color of the current (last) breadcrumb item.
|
|
48
|
+
- name: --aui-breadcrumb-item-font-weight-current
|
|
49
|
+
default: var(--aui-font-weight-medium)
|
|
50
|
+
description: Font weight of the current breadcrumb item.
|
|
51
|
+
behaviors:
|
|
52
|
+
auto-current: |
|
|
53
|
+
The last aui-breadcrumb-item child is automatically marked with the [current] attribute by JS. Any manually set [current] attributes on other items are removed.
|
|
54
|
+
max-depth-collapse: |
|
|
55
|
+
When max-depth is set and items exceed maxDepth + 1, middle items are hidden and replaced by an ellipsis button. Clicking the ellipsis expands all hidden items.
|
|
46
56
|
examples:
|
|
47
|
-
-
|
|
57
|
+
- description: Typical three-level breadcrumb trail
|
|
58
|
+
html: |-
|
|
48
59
|
<aui-breadcrumb>
|
|
49
60
|
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
50
61
|
<aui-breadcrumb-item href="/settings">Settings</aui-breadcrumb-item>
|
|
51
|
-
<aui-breadcrumb-item
|
|
62
|
+
<aui-breadcrumb-item >Profile</aui-breadcrumb-item>
|
|
52
63
|
</aui-breadcrumb>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- html: |
|
|
64
|
+
- description: Deep breadcrumb trail with four levels
|
|
65
|
+
html: |-
|
|
56
66
|
<aui-breadcrumb>
|
|
57
67
|
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
58
68
|
<aui-breadcrumb-item href="/products">Products</aui-breadcrumb-item>
|
|
59
69
|
<aui-breadcrumb-item href="/products/widgets">Widgets</aui-breadcrumb-item>
|
|
60
|
-
<aui-breadcrumb-item
|
|
70
|
+
<aui-breadcrumb-item >Deluxe Widget</aui-breadcrumb-item>
|
|
61
71
|
</aui-breadcrumb>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- html: |
|
|
72
|
+
- description: Custom joiner character (›)
|
|
73
|
+
html: |-
|
|
65
74
|
<aui-breadcrumb joiner="›">
|
|
66
75
|
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
67
76
|
<aui-breadcrumb-item href="/docs">Docs</aui-breadcrumb-item>
|
|
68
|
-
<aui-breadcrumb-item
|
|
77
|
+
<aui-breadcrumb-item >API</aui-breadcrumb-item>
|
|
78
|
+
</aui-breadcrumb>
|
|
79
|
+
- description: Deep breadcrumb trail with five levels
|
|
80
|
+
html: |-
|
|
81
|
+
<aui-breadcrumb>
|
|
82
|
+
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
83
|
+
<aui-breadcrumb-item href="/workspace">Workspace</aui-breadcrumb-item>
|
|
84
|
+
<aui-breadcrumb-item href="/workspace/projects">Projects</aui-breadcrumb-item>
|
|
85
|
+
<aui-breadcrumb-item href="/workspace/projects/agent-ui">Agent UI</aui-breadcrumb-item>
|
|
86
|
+
<aui-breadcrumb-item href="/workspace/projects/agent-ui/components">Components</aui-breadcrumb-item>
|
|
87
|
+
<aui-breadcrumb-item >Breadcrumb</aui-breadcrumb-item>
|
|
88
|
+
</aui-breadcrumb>
|
|
89
|
+
- description: Breadcrumb items with leading icons
|
|
90
|
+
html: |-
|
|
91
|
+
<aui-breadcrumb>
|
|
92
|
+
<aui-breadcrumb-item href="/">
|
|
93
|
+
<aui-icon name="house" slot="leading"></aui-icon>
|
|
94
|
+
Home
|
|
95
|
+
</aui-breadcrumb-item>
|
|
96
|
+
<aui-breadcrumb-item href="/settings">
|
|
97
|
+
<aui-icon name="gear" slot="leading"></aui-icon>
|
|
98
|
+
Settings
|
|
99
|
+
</aui-breadcrumb-item>
|
|
100
|
+
<aui-breadcrumb-item current>
|
|
101
|
+
<aui-icon name="user" slot="leading"></aui-icon>
|
|
102
|
+
Profile
|
|
103
|
+
</aui-breadcrumb-item>
|
|
104
|
+
</aui-breadcrumb>
|
|
105
|
+
- description: Current page is non-clickable, previous items are links
|
|
106
|
+
html: |-
|
|
107
|
+
<aui-breadcrumb joiner="→">
|
|
108
|
+
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
109
|
+
<aui-breadcrumb-item href="/blog">Blog</aui-breadcrumb-item>
|
|
110
|
+
<aui-breadcrumb-item href="/blog/2026">2026</aui-breadcrumb-item>
|
|
111
|
+
<aui-breadcrumb-item >How to build a design system</aui-breadcrumb-item>
|
|
112
|
+
</aui-breadcrumb>
|
|
113
|
+
- description: Deep breadcrumb with arrow joiner and six levels
|
|
114
|
+
html: |-
|
|
115
|
+
<aui-breadcrumb joiner="›">
|
|
116
|
+
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
117
|
+
<aui-breadcrumb-item href="/admin">Admin</aui-breadcrumb-item>
|
|
118
|
+
<aui-breadcrumb-item href="/admin/users">Users</aui-breadcrumb-item>
|
|
119
|
+
<aui-breadcrumb-item href="/admin/users/roles">Roles</aui-breadcrumb-item>
|
|
120
|
+
<aui-breadcrumb-item href="/admin/users/roles/editor">Editor</aui-breadcrumb-item>
|
|
121
|
+
<aui-breadcrumb-item>Permissions</aui-breadcrumb-item>
|
|
122
|
+
</aui-breadcrumb>
|
|
123
|
+
- description: max-depth="2" collapses middle items into ellipsis (click to expand)
|
|
124
|
+
html: |-
|
|
125
|
+
<aui-breadcrumb max-depth="2">
|
|
126
|
+
<aui-breadcrumb-item href="/">Home</aui-breadcrumb-item>
|
|
127
|
+
<aui-breadcrumb-item href="/workspace">Workspace</aui-breadcrumb-item>
|
|
128
|
+
<aui-breadcrumb-item href="/workspace/projects">Projects</aui-breadcrumb-item>
|
|
129
|
+
<aui-breadcrumb-item href="/workspace/projects/agent-ui">Agent UI</aui-breadcrumb-item>
|
|
130
|
+
<aui-breadcrumb-item href="/workspace/projects/agent-ui/components">Components</aui-breadcrumb-item>
|
|
131
|
+
<aui-breadcrumb-item>Breadcrumb</aui-breadcrumb-item>
|
|
69
132
|
</aui-breadcrumb>
|
|
70
|
-
description: Custom joiner character (›).
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: aui-button-group
|
|
2
|
+
tag: aui-button-group
|
|
3
|
+
type: element
|
|
4
|
+
summary: Groups buttons with shared or connected borders.
|
|
5
|
+
description: |
|
|
6
|
+
CSS-only element that groups buttons horizontally or vertically. Full-width (display: flex) by default with a 2-unit gap. Add the [inline] attribute for shrink-wrap (display: inline-flex) behavior. Attached mode removes gap and merges borders between buttons by stripping inner border-radius. Use for toolbars, view toggles, split buttons, and pagination controls.
|
|
7
|
+
presentational:
|
|
8
|
+
direction:
|
|
9
|
+
syntax: key-value
|
|
10
|
+
attribute: direction
|
|
11
|
+
cascades: false
|
|
12
|
+
default: row
|
|
13
|
+
values:
|
|
14
|
+
- row
|
|
15
|
+
- column
|
|
16
|
+
description: Layout axis for the button group.
|
|
17
|
+
modifiers:
|
|
18
|
+
inline:
|
|
19
|
+
syntax: boolean
|
|
20
|
+
description: |
|
|
21
|
+
Switches from full-width (display: flex) to shrink-wrap (display: inline-flex) so the group only takes the space its buttons need.
|
|
22
|
+
attached:
|
|
23
|
+
syntax: boolean
|
|
24
|
+
description: |
|
|
25
|
+
Removes gap and merges borders between buttons. Strips inner border-radius so buttons appear as one connected unit.
|
|
26
|
+
content:
|
|
27
|
+
model: flow
|
|
28
|
+
accepts:
|
|
29
|
+
- aui-button
|
|
30
|
+
required: true
|
|
31
|
+
description: |
|
|
32
|
+
Two or more aui-button elements. All buttons should share the same size and variant for visual consistency.
|
|
33
|
+
slots:
|
|
34
|
+
default:
|
|
35
|
+
accepts:
|
|
36
|
+
- aui-button
|
|
37
|
+
required: true
|
|
38
|
+
description: The grouped buttons.
|
|
39
|
+
composition:
|
|
40
|
+
parents:
|
|
41
|
+
- aui-header
|
|
42
|
+
- aui-footer
|
|
43
|
+
- aui-stack
|
|
44
|
+
- aui-wrap
|
|
45
|
+
- div
|
|
46
|
+
children:
|
|
47
|
+
- aui-button
|
|
48
|
+
context: |
|
|
49
|
+
Use in toolbars, card footers, and form actions. Attached mode is best for view toggles and segmented actions. Non-attached mode keeps a small gap for general toolbar groups.
|
|
50
|
+
tokens:
|
|
51
|
+
spacing:
|
|
52
|
+
- --aui-space
|
|
53
|
+
shape:
|
|
54
|
+
- --aui-button-radius-start
|
|
55
|
+
- --aui-button-radius-end
|
|
56
|
+
- --aui-button-radius-top
|
|
57
|
+
- --aui-button-radius-bottom
|
|
58
|
+
examples:
|
|
59
|
+
- description: Default full-width button group with 2-unit gap
|
|
60
|
+
html: |-
|
|
61
|
+
<aui-button-group>
|
|
62
|
+
<aui-button>Copy</aui-button>
|
|
63
|
+
<aui-button>Paste</aui-button>
|
|
64
|
+
<aui-button>Delete</aui-button>
|
|
65
|
+
</aui-button-group>
|
|
66
|
+
- description: Inline (shrink-wrap) button group
|
|
67
|
+
html: |-
|
|
68
|
+
<aui-button-group inline>
|
|
69
|
+
<aui-button>Copy</aui-button>
|
|
70
|
+
<aui-button>Paste</aui-button>
|
|
71
|
+
<aui-button>Delete</aui-button>
|
|
72
|
+
</aui-button-group>
|
|
73
|
+
- description: Attached button group for view toggles
|
|
74
|
+
html: |-
|
|
75
|
+
<aui-button-group attached>
|
|
76
|
+
<aui-button>List</aui-button>
|
|
77
|
+
<aui-button>Grid</aui-button>
|
|
78
|
+
<aui-button>Board</aui-button>
|
|
79
|
+
</aui-button-group>
|
|
80
|
+
- description: Vertical button group
|
|
81
|
+
html: |-
|
|
82
|
+
<aui-button-group direction="column">
|
|
83
|
+
<aui-button>Top</aui-button>
|
|
84
|
+
<aui-button>Middle</aui-button>
|
|
85
|
+
<aui-button>Bottom</aui-button>
|
|
86
|
+
</aui-button-group>
|
|
87
|
+
- description: Attached vertical button group
|
|
88
|
+
html: |-
|
|
89
|
+
<aui-button-group attached direction="column">
|
|
90
|
+
<aui-button>Top</aui-button>
|
|
91
|
+
<aui-button>Middle</aui-button>
|
|
92
|
+
<aui-button>Bottom</aui-button>
|
|
93
|
+
</aui-button-group>
|