@adia-ai/web-components 0.0.29 → 0.0.33
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/components/accordion/accordion.a2ui.json +1 -1
- package/components/accordion/accordion.js +6 -6
- package/components/accordion/accordion.yaml +1 -1
- package/components/action-list/action-list.a2ui.json +1 -1
- package/components/action-list/action-list.js +6 -6
- package/components/action-list/action-list.yaml +1 -1
- package/components/agent-artifact/agent-artifact.a2ui.json +1 -1
- package/components/agent-artifact/agent-artifact.js +4 -4
- package/components/agent-artifact/agent-artifact.yaml +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.js +4 -4
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +1 -1
- package/components/agent-questions/agent-questions.a2ui.json +1 -1
- package/components/agent-questions/agent-questions.js +4 -4
- package/components/agent-questions/agent-questions.yaml +1 -1
- package/components/agent-reasoning/agent-reasoning.a2ui.json +3 -3
- package/components/agent-reasoning/agent-reasoning.js +4 -4
- package/components/agent-reasoning/agent-reasoning.yaml +3 -3
- package/components/agent-suggestions/agent-suggestions.a2ui.json +1 -1
- package/components/agent-suggestions/agent-suggestions.js +4 -4
- package/components/agent-suggestions/agent-suggestions.yaml +1 -1
- package/components/agent-trace/agent-trace.a2ui.json +1 -1
- package/components/agent-trace/agent-trace.js +4 -4
- package/components/agent-trace/agent-trace.yaml +1 -1
- package/components/alert/alert.a2ui.json +1 -1
- package/components/alert/alert.js +4 -4
- package/components/alert/alert.yaml +1 -1
- package/components/aside/aside.a2ui.json +1 -1
- package/components/aside/aside.yaml +1 -1
- package/components/avatar/avatar.a2ui.json +1 -1
- package/components/avatar/avatar.js +8 -8
- package/components/avatar/avatar.yaml +1 -1
- package/components/badge/badge.a2ui.json +1 -1
- package/components/badge/badge.js +4 -4
- package/components/badge/badge.yaml +1 -1
- package/components/block/block.a2ui.json +1 -1
- package/components/block/block.js +4 -4
- package/components/block/block.yaml +1 -1
- package/components/breadcrumb/breadcrumb.a2ui.json +1 -1
- package/components/breadcrumb/breadcrumb.js +4 -4
- package/components/breadcrumb/breadcrumb.yaml +1 -1
- package/components/button/button.a2ui.json +1 -1
- package/components/button/button.js +4 -4
- package/components/button/button.yaml +1 -1
- package/components/calendar-picker/calendar-picker.a2ui.json +1 -1
- package/components/calendar-picker/calendar-picker.js +6 -6
- package/components/calendar-picker/calendar-picker.yaml +1 -1
- package/components/canvas/canvas.a2ui.json +1 -1
- package/components/canvas/canvas.js +4 -4
- package/components/canvas/canvas.yaml +1 -1
- package/components/card/card.a2ui.json +1 -1
- package/components/card/card.js +4 -4
- package/components/card/card.yaml +1 -1
- package/components/chart/chart.a2ui.json +1 -1
- package/components/chart/chart.js +5 -5
- package/components/chart/chart.yaml +1 -1
- package/components/chart-legend/chart-legend.a2ui.json +1 -1
- package/components/chart-legend/chart-legend.js +7 -7
- package/components/chart-legend/chart-legend.yaml +1 -1
- package/components/{chat → chat-thread}/chat-input.js +5 -5
- package/components/{chat/chat.a2ui.json → chat-thread/chat-thread.a2ui.json} +6 -6
- package/components/{chat/chat.css → chat-thread/chat-thread.css} +2 -2
- package/components/{chat/chat.js → chat-thread/chat-thread.js} +7 -7
- package/components/{chat/chat.yaml → chat-thread/chat-thread.yaml} +4 -4
- package/components/check/check.a2ui.json +1 -1
- package/components/check/check.js +5 -5
- package/components/check/check.yaml +1 -1
- package/components/code/code.a2ui.json +1 -1
- package/components/code/code.js +4 -4
- package/components/code/code.yaml +1 -1
- package/components/col/col.a2ui.json +1 -1
- package/components/col/col.js +4 -4
- package/components/col/col.yaml +1 -1
- package/components/color-picker/color-picker.a2ui.json +1 -1
- package/components/color-picker/color-picker.js +6 -6
- package/components/color-picker/color-picker.yaml +1 -1
- package/components/command/command.a2ui.json +1 -1
- package/components/command/command.js +5 -5
- package/components/command/command.yaml +1 -1
- package/components/description-list/description-list.a2ui.json +1 -1
- package/components/description-list/description-list.js +4 -4
- package/components/description-list/description-list.yaml +1 -1
- package/components/divider/divider.a2ui.json +1 -1
- package/components/divider/divider.js +4 -4
- package/components/divider/divider.yaml +1 -1
- package/components/drawer/drawer.a2ui.json +1 -1
- package/components/drawer/drawer.js +4 -4
- package/components/drawer/drawer.yaml +1 -1
- package/components/embed/embed.a2ui.json +1 -1
- package/components/embed/embed.js +4 -4
- package/components/embed/embed.yaml +1 -1
- package/components/empty-state/empty-state.a2ui.json +1 -1
- package/components/empty-state/empty-state.js +4 -4
- package/components/empty-state/empty-state.yaml +1 -1
- package/components/feed/feed-item.yaml +2 -2
- package/components/feed/feed.a2ui.json +2 -2
- package/components/feed/feed.css +12 -3
- package/components/feed/feed.js +22 -22
- package/components/feed/feed.yaml +2 -2
- package/components/field/field.a2ui.json +1 -1
- package/components/field/field.js +10 -10
- package/components/field/field.yaml +2 -2
- package/components/footer/footer.a2ui.json +1 -1
- package/components/footer/footer.yaml +1 -1
- package/components/grid/grid.a2ui.json +1 -1
- package/components/grid/grid.js +4 -4
- package/components/grid/grid.yaml +1 -1
- package/components/header/header.a2ui.json +1 -1
- package/components/header/header.yaml +1 -1
- package/components/heatmap/heatmap.a2ui.json +1 -1
- package/components/heatmap/heatmap.js +4 -4
- package/components/heatmap/heatmap.yaml +1 -1
- package/components/icon/icon.a2ui.json +1 -1
- package/components/icon/icon.js +4 -4
- package/components/icon/icon.yaml +1 -1
- package/components/image/image.a2ui.json +1 -1
- package/components/image/image.js +4 -4
- package/components/image/image.yaml +1 -1
- package/components/index.js +88 -85
- package/components/input/input.a2ui.json +1 -1
- package/components/input/input.js +7 -7
- package/components/input/input.yaml +1 -1
- package/components/inspector/inspector.a2ui.json +1 -1
- package/components/inspector/inspector.js +4 -4
- package/components/inspector/inspector.yaml +1 -1
- package/components/kbd/kbd.a2ui.json +1 -1
- package/components/kbd/kbd.js +4 -4
- package/components/kbd/kbd.yaml +1 -1
- package/components/list/list.a2ui.json +1 -1
- package/components/list/list.js +6 -6
- package/components/list/list.yaml +1 -1
- package/components/menu/menu.a2ui.json +1 -1
- package/components/menu/menu.js +8 -8
- package/components/menu/menu.yaml +1 -1
- package/components/modal/modal.a2ui.json +1 -1
- package/components/modal/modal.js +4 -4
- package/components/modal/modal.yaml +1 -1
- package/components/nav/nav.a2ui.json +98 -0
- package/components/nav/nav.css +133 -0
- package/components/nav/nav.js +140 -0
- package/components/nav/nav.test.js +428 -0
- package/components/nav/nav.yaml +114 -0
- package/components/nav-group/nav-group.a2ui.json +100 -0
- package/components/nav-group/nav-group.css +317 -0
- package/components/nav-group/nav-group.js +142 -0
- package/components/nav-group/nav-group.yaml +69 -0
- package/components/nav-item/nav-item.a2ui.json +106 -0
- package/components/nav-item/nav-item.css +194 -0
- package/components/nav-item/nav-item.js +76 -0
- package/components/nav-item/nav-item.yaml +73 -0
- package/components/noodles/noodles.a2ui.json +1 -1
- package/components/noodles/noodles.js +4 -4
- package/components/noodles/noodles.yaml +1 -1
- package/components/option-card/option-card.a2ui.json +1 -1
- package/components/option-card/option-card.js +6 -6
- package/components/option-card/option-card.yaml +1 -1
- package/components/otp-input/otp-input.a2ui.json +1 -1
- package/components/otp-input/otp-input.js +5 -5
- package/components/otp-input/otp-input.yaml +1 -1
- package/components/page/page.a2ui.json +3 -3
- package/components/page/page.js +4 -4
- package/components/page/page.yaml +3 -3
- package/components/pagination/pagination.a2ui.json +1 -1
- package/components/pagination/pagination.js +4 -4
- package/components/pagination/pagination.yaml +1 -1
- package/components/pane/pane.a2ui.json +1 -1
- package/components/pane/pane.js +4 -4
- package/components/pane/pane.yaml +1 -1
- package/components/pipeline-status/pipeline-status.a2ui.json +1 -1
- package/components/pipeline-status/pipeline-status.js +4 -4
- package/components/pipeline-status/pipeline-status.yaml +1 -1
- package/components/popover/popover.a2ui.json +1 -1
- package/components/popover/popover.js +4 -4
- package/components/popover/popover.yaml +1 -1
- package/components/progress/progress.a2ui.json +1 -1
- package/components/progress/progress.js +4 -4
- package/components/progress/progress.yaml +1 -1
- package/components/progress-row/progress-row.a2ui.json +1 -1
- package/components/progress-row/progress-row.js +4 -4
- package/components/progress-row/progress-row.yaml +1 -1
- package/components/radio/radio.a2ui.json +1 -1
- package/components/radio/radio.js +5 -5
- package/components/radio/radio.yaml +1 -1
- package/components/range/range.a2ui.json +1 -1
- package/components/range/range.js +7 -7
- package/components/range/range.yaml +1 -1
- package/components/rating/rating.a2ui.json +1 -1
- package/components/rating/rating.js +6 -6
- package/components/rating/rating.yaml +1 -1
- package/components/richtext/richtext.a2ui.json +1 -1
- package/components/richtext/richtext.js +4 -4
- package/components/richtext/richtext.yaml +1 -1
- package/components/row/row.a2ui.json +1 -1
- package/components/row/row.js +4 -4
- package/components/row/row.yaml +1 -1
- package/components/search/search.a2ui.json +1 -1
- package/components/search/search.js +5 -5
- package/components/search/search.yaml +1 -1
- package/components/section/section.a2ui.json +1 -1
- package/components/section/section.yaml +1 -1
- package/components/segment/segment.a2ui.json +1 -1
- package/components/segment/segment.js +4 -4
- package/components/segment/segment.yaml +1 -1
- package/components/segmented/segmented.a2ui.json +1 -1
- package/components/segmented/segmented.css +6 -0
- package/components/segmented/segmented.js +7 -7
- package/components/segmented/segmented.yaml +1 -1
- package/components/select/select.a2ui.json +1 -1
- package/components/select/select.js +5 -5
- package/components/select/select.yaml +1 -1
- package/components/skeleton/skeleton.a2ui.json +1 -1
- package/components/skeleton/skeleton.js +4 -4
- package/components/skeleton/skeleton.yaml +1 -1
- package/components/slider/slider.a2ui.json +1 -1
- package/components/slider/slider.js +7 -7
- package/components/slider/slider.yaml +1 -1
- package/components/stack/stack.a2ui.json +1 -1
- package/components/stack/stack.js +4 -4
- package/components/stack/stack.yaml +1 -1
- package/components/stat/stat.a2ui.json +1 -1
- package/components/stat/stat.js +4 -4
- package/components/stat/stat.yaml +1 -1
- package/components/stepper/stepper.a2ui.json +1 -1
- package/components/stepper/stepper.js +6 -6
- package/components/stepper/stepper.yaml +1 -1
- package/components/stream/stream.a2ui.json +1 -1
- package/components/stream/stream.js +4 -4
- package/components/stream/stream.yaml +1 -1
- package/components/swatch/swatch.a2ui.json +1 -1
- package/components/swatch/swatch.js +4 -4
- package/components/swatch/swatch.yaml +1 -1
- package/components/swiper/swiper.a2ui.json +1 -1
- package/components/swiper/swiper.js +4 -4
- package/components/swiper/swiper.yaml +1 -1
- package/components/switch/switch.a2ui.json +1 -1
- package/components/switch/switch.js +5 -5
- package/components/switch/switch.yaml +1 -1
- package/components/table/table.a2ui.json +1 -1
- package/components/table/table.js +4 -4
- package/components/table/table.yaml +1 -1
- package/components/table-toolbar/table-toolbar.a2ui.json +1 -1
- package/components/table-toolbar/table-toolbar.js +4 -4
- package/components/table-toolbar/table-toolbar.yaml +1 -1
- package/components/tabs/tab.js +4 -4
- package/components/tabs/tabs.a2ui.json +1 -1
- package/components/tabs/tabs.js +5 -5
- package/components/tabs/tabs.yaml +1 -1
- package/components/tag/tag.a2ui.json +1 -1
- package/components/tag/tag.js +4 -4
- package/components/tag/tag.yaml +1 -1
- package/components/text/text.a2ui.json +1 -1
- package/components/text/text.js +4 -4
- package/components/text/text.yaml +1 -1
- package/components/textarea/textarea.a2ui.json +1 -1
- package/components/textarea/textarea.js +5 -5
- package/components/textarea/textarea.yaml +1 -1
- package/components/timeline/timeline.a2ui.json +1 -1
- package/components/timeline/timeline.js +6 -6
- package/components/timeline/timeline.yaml +1 -1
- package/components/toast/toast.a2ui.json +1 -1
- package/components/toast/toast.js +18 -18
- package/components/toast/toast.yaml +1 -1
- package/components/toggle-group/toggle-group.a2ui.json +1 -1
- package/components/toggle-group/toggle-group.js +6 -6
- package/components/toggle-group/toggle-group.yaml +1 -1
- package/components/toolbar/toolbar.a2ui.json +1 -1
- package/components/toolbar/toolbar.js +6 -6
- package/components/toolbar/toolbar.yaml +1 -1
- package/components/tooltip/tooltip.a2ui.json +1 -1
- package/components/tooltip/tooltip.js +7 -7
- package/components/tooltip/tooltip.yaml +1 -1
- package/components/tree/tree.a2ui.json +1 -1
- package/components/tree/tree.js +6 -6
- package/components/tree/tree.yaml +1 -1
- package/components/upload/upload.a2ui.json +1 -1
- package/components/upload/upload.js +6 -6
- package/components/upload/upload.yaml +1 -1
- package/core/element.js +4 -4
- package/core/element.test.js +18 -18
- package/core/form.js +9 -9
- package/core/index.js +2 -2
- package/core/provider.js +7 -7
- package/core/template.js +1 -1
- package/index.css +1 -1
- package/index.js +10 -8
- package/package.json +1 -1
- package/styles/components.css +10 -6
- package/styles/resets.css +1 -1
- package/traits/define.js +2 -2
- /package/components/{chat → chat-thread}/chat-input.css +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIHeader
|
|
5
5
|
tag: header-ui
|
|
6
6
|
component: Header
|
|
7
7
|
category: container
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
* title — optional header title
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { UIElement } from '../../core/element.js';
|
|
24
24
|
|
|
25
25
|
const MONTHS = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class UIHeatmap extends UIElement {
|
|
28
28
|
static properties = {
|
|
29
29
|
type: { type: String, default: 'matrix', reflect: true },
|
|
30
30
|
rows: { type: Number, default: 7, reflect: true },
|
|
@@ -291,5 +291,5 @@ class AdiaHeatmap extends AdiaElement {
|
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
customElements.define('heatmap-ui',
|
|
295
|
-
export {
|
|
294
|
+
customElements.define('heatmap-ui', UIHeatmap);
|
|
295
|
+
export { UIHeatmap };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIHeatmap
|
|
5
5
|
tag: heatmap-ui
|
|
6
6
|
component: Heatmap
|
|
7
7
|
category: data-display
|
package/components/icon/icon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIElement, signal, html } from '../../core/element.js';
|
|
2
2
|
import { getIcon } from '../../core/icons.js';
|
|
3
3
|
|
|
4
|
-
class
|
|
4
|
+
class UIIcon extends UIElement {
|
|
5
5
|
static properties = {
|
|
6
6
|
name: { type: String, default: '', reflect: true },
|
|
7
7
|
size: { type: String, default: '', reflect: true },
|
|
@@ -39,6 +39,6 @@ class AdiaIcon extends AdiaElement {
|
|
|
39
39
|
return /^\d+(\.\d+)?$/.test(s) ? `${s}px` : s;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
customElements.define('icon-ui',
|
|
42
|
+
customElements.define('icon-ui', UIIcon);
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { UIIcon };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIIcon
|
|
5
5
|
tag: icon-ui
|
|
6
6
|
component: Icon
|
|
7
7
|
category: display
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* Raw: strips chrome (no background, no radius) for edge-to-edge rendering
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { UIElement } from '../../core/element.js';
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class UIImage extends UIElement {
|
|
20
20
|
static properties = {
|
|
21
21
|
src: { type: String, default: '', reflect: true },
|
|
22
22
|
alt: { type: String, default: '', reflect: true },
|
|
@@ -97,6 +97,6 @@ class AdiaImage extends AdiaElement {
|
|
|
97
97
|
this.#skeleton = null;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
customElements.define('image-ui',
|
|
100
|
+
customElements.define('image-ui', UIImage);
|
|
101
101
|
|
|
102
|
-
export {
|
|
102
|
+
export { UIImage };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIImage
|
|
5
5
|
tag: image-ui
|
|
6
6
|
component: Image
|
|
7
7
|
category: display
|
package/components/index.js
CHANGED
|
@@ -9,90 +9,93 @@
|
|
|
9
9
|
list-ui). See packages/web-components/core/data-stream.js. */
|
|
10
10
|
import '../core/data-stream.js';
|
|
11
11
|
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
12
|
+
export { UIIcon } from './icon/icon.js';
|
|
13
|
+
export { UIButton } from './button/button.js';
|
|
14
|
+
export { UIInput } from './input/input.js';
|
|
15
|
+
export { UITextarea } from './textarea/textarea.js';
|
|
16
|
+
export { UICheck } from './check/check.js';
|
|
17
|
+
export { UIRadio } from './radio/radio.js';
|
|
18
|
+
export { UIOptionCard } from './option-card/option-card.js';
|
|
19
|
+
export { UISwitch } from './switch/switch.js';
|
|
20
|
+
export { UISlider } from './slider/slider.js';
|
|
21
|
+
export { UISelect } from './select/select.js';
|
|
22
|
+
export { UISegment } from './segment/segment.js';
|
|
23
|
+
export { UISegmented } from './segmented/segmented.js';
|
|
24
|
+
export { UIRange } from './range/range.js';
|
|
25
|
+
export { UITree, UITreeItem } from './tree/tree.js';
|
|
26
|
+
export { UIPane } from './pane/pane.js';
|
|
27
|
+
export { UIPage } from './page/page.js';
|
|
28
|
+
export { UIChatInput } from './chat-thread/chat-input.js';
|
|
29
|
+
export { UIChatThread } from './chat-thread/chat-thread.js';
|
|
30
|
+
export { UIDrawer } from './drawer/drawer.js';
|
|
31
|
+
export { UIModal } from './modal/modal.js';
|
|
32
|
+
export { UIToast } from './toast/toast.js';
|
|
33
|
+
export { UIFeedContainer, UIFeedItem, UIFeed } from './feed/feed.js';
|
|
34
|
+
export { UITabs } from './tabs/tabs.js';
|
|
35
|
+
export { UITab } from './tabs/tab.js';
|
|
36
|
+
export { UITooltip } from './tooltip/tooltip.js';
|
|
37
|
+
export { UIBadge } from './badge/badge.js';
|
|
38
|
+
export { UIBreadcrumb } from './breadcrumb/breadcrumb.js';
|
|
39
|
+
export { UICommand } from './command/command.js';
|
|
40
|
+
export { UIColorPicker } from './color-picker/color-picker.js';
|
|
41
|
+
export { UINoodles } from './noodles/noodles.js';
|
|
42
|
+
export { UITable } from './table/table.js';
|
|
43
|
+
export { UITableToolbar } from './table-toolbar/table-toolbar.js';
|
|
44
|
+
export { UITimeline, UITimelineItem } from './timeline/timeline.js';
|
|
45
|
+
export { UIStepper, UIStepperItem } from './stepper/stepper.js';
|
|
46
|
+
export { UISwiper } from './swiper/swiper.js';
|
|
47
|
+
export { UIUpload } from './upload/upload.js';
|
|
48
|
+
export { UICard } from './card/card.js';
|
|
49
|
+
export { UIAvatar, UIAvatarGroup } from './avatar/avatar.js';
|
|
50
|
+
export { UIProgress } from './progress/progress.js';
|
|
51
|
+
export { UISkeleton } from './skeleton/skeleton.js';
|
|
52
|
+
export { UIAlert } from './alert/alert.js';
|
|
53
|
+
export { UIKbd } from './kbd/kbd.js';
|
|
54
|
+
export { UITag } from './tag/tag.js';
|
|
55
|
+
export { UISwatch } from './swatch/swatch.js';
|
|
56
|
+
export { UICol } from './col/col.js';
|
|
57
|
+
export { UIField } from './field/field.js';
|
|
58
|
+
export { UIRow } from './row/row.js';
|
|
59
|
+
export { UIGrid } from './grid/grid.js';
|
|
60
|
+
export { UIStack } from './stack/stack.js';
|
|
61
|
+
export { UIChart } from './chart/chart.js';
|
|
62
|
+
export { UIChartLegend } from './chart-legend/chart-legend.js';
|
|
63
|
+
export { UIPopover } from './popover/popover.js';
|
|
64
|
+
export { UIAccordion, UIAccordionItem } from './accordion/accordion.js';
|
|
65
|
+
export { UIDivider } from './divider/divider.js';
|
|
66
|
+
export { UIPagination } from './pagination/pagination.js';
|
|
67
|
+
export { UICode } from './code/code.js';
|
|
68
|
+
export { UIList, UIListItem } from './list/list.js';
|
|
69
|
+
export { UIMenu, UIMenuItem, UIMenuDivider } from './menu/menu.js';
|
|
70
|
+
export { UIToolbar, UIToolbarGroup } from './toolbar/toolbar.js';
|
|
71
|
+
export { UINav } from './nav/nav.js';
|
|
72
|
+
export { UINavGroup } from './nav-group/nav-group.js';
|
|
73
|
+
export { UINavItem } from './nav-item/nav-item.js';
|
|
74
|
+
export { UIOtpInput } from './otp-input/otp-input.js';
|
|
75
|
+
export { UIImage } from './image/image.js';
|
|
76
|
+
export { UISearch } from './search/search.js';
|
|
77
|
+
export { UIStat } from './stat/stat.js';
|
|
78
|
+
export { UIProgressRow } from './progress-row/progress-row.js';
|
|
79
|
+
export { UIActionList, UIActionItem } from './action-list/action-list.js';
|
|
80
|
+
export { UIEmptyState } from './empty-state/empty-state.js';
|
|
81
|
+
export { UICalendarPicker } from './calendar-picker/calendar-picker.js';
|
|
82
|
+
export { UIEmbed } from './embed/embed.js';
|
|
83
|
+
export { UIBlock } from './block/block.js';
|
|
84
|
+
export { UIText } from './text/text.js';
|
|
85
|
+
export { UIToggleGroup, UIToggleOption } from './toggle-group/toggle-group.js';
|
|
86
|
+
export { UIRichText } from './richtext/richtext.js';
|
|
87
|
+
export { UIStream } from './stream/stream.js';
|
|
88
|
+
export { UICanvas } from './canvas/canvas.js';
|
|
89
|
+
export { UIInspector } from './inspector/inspector.js';
|
|
90
|
+
export { UIPipelineStatus } from './pipeline-status/pipeline-status.js';
|
|
91
|
+
export { UIRating } from './rating/rating.js';
|
|
92
|
+
export { UIDescriptionList } from './description-list/description-list.js';
|
|
93
|
+
export { UIHeatmap } from './heatmap/heatmap.js';
|
|
91
94
|
|
|
92
95
|
// Agent-family: trailing artifacts and reasoning viewers for agent turns
|
|
93
|
-
export {
|
|
94
|
-
export {
|
|
95
|
-
export {
|
|
96
|
-
export {
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
96
|
+
export { UIAgentReasoning } from './agent-reasoning/agent-reasoning.js';
|
|
97
|
+
export { UIAgentTrace } from './agent-trace/agent-trace.js';
|
|
98
|
+
export { UIAgentFeedbackBar } from './agent-feedback-bar/agent-feedback-bar.js';
|
|
99
|
+
export { UIAgentSuggestions } from './agent-suggestions/agent-suggestions.js';
|
|
100
|
+
export { UIAgentQuestions } from './agent-questions/agent-questions.js';
|
|
101
|
+
export { UIAgentArtifact } from './agent-artifact/agent-artifact.js';
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
* compositions, wrap with field-ui.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import { UIFormElement } from '../../core/form.js';
|
|
19
19
|
import { isIconName, whenIconRegistryReady } from '../../core/icons.js';
|
|
20
20
|
|
|
21
21
|
const renderAffix = (v) => isIconName(v)
|
|
22
22
|
? `<icon-ui name="${v}"></icon-ui>`
|
|
23
23
|
: v;
|
|
24
24
|
|
|
25
|
-
class
|
|
26
|
-
// Opt out of
|
|
25
|
+
class UIInput extends UIFormElement {
|
|
26
|
+
// Opt out of UIFormElement's per-control `label` deprecation warning.
|
|
27
27
|
// input-ui's `label` is a first-class API rendering an inline-leading
|
|
28
28
|
// caption inside the chrome with `aria-labelledby` wiring on the
|
|
29
29
|
// editable surface — not the inert above-the-field rendering that
|
|
@@ -31,7 +31,7 @@ class AdiaInput extends AdiaFormElement {
|
|
|
31
31
|
static labelDeprecated = false;
|
|
32
32
|
|
|
33
33
|
static properties = {
|
|
34
|
-
...
|
|
34
|
+
...UIFormElement.properties,
|
|
35
35
|
placeholder: { type: String, default: '', reflect: true },
|
|
36
36
|
type: { type: String, default: 'text', reflect: true },
|
|
37
37
|
label: { type: String, default: '', reflect: true },
|
|
@@ -56,7 +56,7 @@ class AdiaInput extends AdiaFormElement {
|
|
|
56
56
|
|
|
57
57
|
if (!this.querySelector('[slot="text"]')) {
|
|
58
58
|
const useNative = this.#isNativeInput;
|
|
59
|
-
const labelId = this.label ? `input-label-${++
|
|
59
|
+
const labelId = this.label ? `input-label-${++UIInput.#labelSeq}` : '';
|
|
60
60
|
this.innerHTML = `
|
|
61
61
|
<div slot="field">
|
|
62
62
|
${this.prefix ? `<span slot="prefix">${renderAffix(this.prefix)}</span>` : ''}
|
|
@@ -199,6 +199,6 @@ class AdiaInput extends AdiaFormElement {
|
|
|
199
199
|
this.#labelEl = null;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
customElements.define('input-ui',
|
|
202
|
+
customElements.define('input-ui', UIInput);
|
|
203
203
|
|
|
204
|
-
export {
|
|
204
|
+
export { UIInput };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIInput
|
|
5
5
|
tag: input-ui
|
|
6
6
|
component: Input
|
|
7
7
|
category: input
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIElement } from '../../core/element.js';
|
|
2
2
|
import { registry } from '@adia-ai/a2ui-utils';
|
|
3
3
|
import '../tabs/tabs.js';
|
|
4
4
|
import '../tabs/tab.js';
|
|
@@ -27,7 +27,7 @@ import '../code/code.js';
|
|
|
27
27
|
* value — active tab: 'catalog' | 'surface' | 'messages' | 'code'
|
|
28
28
|
* (default: 'surface')
|
|
29
29
|
*/
|
|
30
|
-
class
|
|
30
|
+
class UIInspector extends UIElement {
|
|
31
31
|
static properties = {
|
|
32
32
|
value: { type: String, default: 'surface', reflect: true },
|
|
33
33
|
};
|
|
@@ -128,6 +128,6 @@ class AdiaInspector extends AdiaElement {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
customElements.define('inspector-ui',
|
|
131
|
+
customElements.define('inspector-ui', UIInspector);
|
|
132
132
|
|
|
133
|
-
export {
|
|
133
|
+
export { UIInspector };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIInspector
|
|
5
5
|
tag: inspector-ui
|
|
6
6
|
component: Inspector
|
|
7
7
|
category: agent
|
package/components/kbd/kbd.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* Em-relative sizing so it scales with surrounding text.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { UIElement } from '../../core/element.js';
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class UIKbd extends UIElement {
|
|
12
12
|
static properties = {
|
|
13
13
|
size: { type: String, default: '', reflect: true },
|
|
14
14
|
};
|
|
@@ -19,6 +19,6 @@ class AdiaKbd extends AdiaElement {
|
|
|
19
19
|
this.setAttribute('role', 'presentation');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
customElements.define('kbd-ui',
|
|
22
|
+
customElements.define('kbd-ui', UIKbd);
|
|
23
23
|
|
|
24
|
-
export {
|
|
24
|
+
export { UIKbd };
|
package/components/kbd/kbd.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIKbd
|
|
5
5
|
tag: kbd-ui
|
|
6
6
|
component: Kbd
|
|
7
7
|
category: display
|
package/components/list/list.js
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* - Fires `selection-change` with { key, previousKey }.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import { UIElement } from '../../core/element.js';
|
|
23
23
|
|
|
24
|
-
class
|
|
24
|
+
class UIList extends UIElement {
|
|
25
25
|
static properties = {
|
|
26
26
|
divider: { type: Boolean, default: false, reflect: true },
|
|
27
27
|
spacing: { type: String, default: 'md', reflect: true },
|
|
@@ -135,9 +135,9 @@ class AdiaList extends AdiaElement {
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
customElements.define('list-ui',
|
|
138
|
+
customElements.define('list-ui', UIList);
|
|
139
139
|
|
|
140
|
-
class
|
|
140
|
+
class UIListItem extends UIElement {
|
|
141
141
|
static properties = {
|
|
142
142
|
icon: { type: String, default: '', reflect: true },
|
|
143
143
|
text: { type: String, default: '', reflect: true },
|
|
@@ -235,6 +235,6 @@ class AdiaListItem extends AdiaElement {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
customElements.define('list-item-ui',
|
|
238
|
+
customElements.define('list-item-ui', UIListItem);
|
|
239
239
|
|
|
240
|
-
export {
|
|
240
|
+
export { UIList, UIListItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIList
|
|
5
5
|
tag: list-ui
|
|
6
6
|
component: List
|
|
7
7
|
category: layout
|
package/components/menu/menu.js
CHANGED
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
* • Roving focus + arrow/Home/End/Enter/Escape keyboard nav.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import { UIElement } from '../../core/element.js';
|
|
19
19
|
import { anchorPopover } from '../../core/anchor.js';
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class UIMenu extends UIElement {
|
|
22
22
|
static properties = {
|
|
23
23
|
open: { type: Boolean, default: false, reflect: true },
|
|
24
24
|
placement: { type: String, default: 'bottom-start', reflect: true },
|
|
@@ -231,9 +231,9 @@ class AdiaMenu extends AdiaElement {
|
|
|
231
231
|
this.#bound = false;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
customElements.define('menu-ui',
|
|
234
|
+
customElements.define('menu-ui', UIMenu);
|
|
235
235
|
|
|
236
|
-
class
|
|
236
|
+
class UIMenuItem extends UIElement {
|
|
237
237
|
static properties = {
|
|
238
238
|
icon: { type: String, default: '', reflect: true },
|
|
239
239
|
text: { type: String, default: '', reflect: true },
|
|
@@ -309,9 +309,9 @@ class AdiaMenuItem extends AdiaElement {
|
|
|
309
309
|
this.#syncAria();
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
customElements.define('menu-item-ui',
|
|
312
|
+
customElements.define('menu-item-ui', UIMenuItem);
|
|
313
313
|
|
|
314
|
-
class
|
|
314
|
+
class UIMenuDivider extends UIElement {
|
|
315
315
|
static properties = {};
|
|
316
316
|
static template = () => null;
|
|
317
317
|
|
|
@@ -319,6 +319,6 @@ class AdiaMenuDivider extends AdiaElement {
|
|
|
319
319
|
this.setAttribute('role', 'separator');
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
customElements.define('menu-divider-ui',
|
|
322
|
+
customElements.define('menu-divider-ui', UIMenuDivider);
|
|
323
323
|
|
|
324
|
-
export {
|
|
324
|
+
export { UIMenu, UIMenuItem, UIMenuDivider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIMenu
|
|
5
5
|
tag: menu-ui
|
|
6
6
|
component: Menu
|
|
7
7
|
category: container
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
* close — fired after the modal finishes closing
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
import {
|
|
32
|
+
import { UIElement } from '../../core/element.js';
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UIModal extends UIElement {
|
|
35
35
|
#bound = false;
|
|
36
36
|
#closing = false;
|
|
37
37
|
#previousFocus = null;
|
|
@@ -216,6 +216,6 @@ class AdiaModal extends AdiaElement {
|
|
|
216
216
|
show() { this.open = true; }
|
|
217
217
|
hide() { this.open = false; }
|
|
218
218
|
}
|
|
219
|
-
customElements.define('modal-ui',
|
|
219
|
+
customElements.define('modal-ui', UIModal);
|
|
220
220
|
|
|
221
|
-
export {
|
|
221
|
+
export { UIModal };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
2
|
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
3
|
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
-
name:
|
|
4
|
+
name: UIModal
|
|
5
5
|
tag: modal-ui
|
|
6
6
|
component: Modal
|
|
7
7
|
category: container
|