@adia-ai/web-components 0.0.25 → 0.0.27
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/agent-artifact/agent-artifact.a2ui.json +1 -1
- package/components/agent-artifact/agent-artifact.css +11 -0
- package/components/agent-artifact/agent-artifact.js +23 -2
- package/components/agent-artifact/agent-artifact.yaml +1 -1
- package/components/agent-reasoning/agent-reasoning.css +11 -0
- package/components/agent-reasoning/agent-reasoning.js +16 -0
- package/components/agent-trace/agent-trace.css +19 -0
- package/components/alert/alert.a2ui.json +10 -4
- package/components/alert/alert.css +13 -0
- package/components/alert/alert.js +1 -1
- package/components/alert/alert.yaml +21 -4
- package/components/badge/badge.a2ui.json +0 -2
- package/components/badge/badge.css +20 -0
- package/components/badge/badge.js +1 -1
- package/components/badge/badge.yaml +0 -2
- package/components/calendar-picker/calendar-picker.css +17 -0
- package/components/code/code.css +41 -0
- package/components/code/code.js +44 -3
- package/components/empty-state/empty-state.js +32 -21
- package/components/index.js +0 -1
- package/components/list/list.js +20 -16
- package/components/menu/menu.css +18 -0
- package/components/menu/menu.js +24 -10
- package/components/pane/pane.css +5 -0
- package/components/pipeline-status/pipeline-status.css +15 -1
- package/components/popover/popover.css +17 -0
- package/components/select/select.css +18 -0
- package/components/swiper/swiper.css +9 -0
- package/components/table/table.css +5 -0
- package/components/table/table.js +45 -1
- package/components/table-toolbar/table-toolbar.css +13 -0
- package/components/tag/tag.css +10 -0
- package/components/timeline/timeline.css +10 -3
- package/components/toast/toast.css +93 -48
- package/components/toast/toast.js +101 -22
- package/components/toolbar/toolbar.css +13 -0
- package/components/tooltip/tooltip.css +8 -0
- package/package.json +1 -1
- package/patterns/app-shell/app-shell.css +0 -12
- package/styles/colors/semantics.css +1 -1
- package/styles/components.css +0 -1
- package/components/app-shell/app-shell.a2ui.json +0 -136
- package/components/app-shell/app-shell.css +0 -16
- package/components/app-shell/app-shell.js +0 -202
- package/components/app-shell/app-shell.yaml +0 -183
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
2
|
-
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
3
|
-
name: AdiaAppShell
|
|
4
|
-
tag: app-shell-ui
|
|
5
|
-
component: AppShell
|
|
6
|
-
category: container
|
|
7
|
-
version: 1
|
|
8
|
-
description: |
|
|
9
|
-
Application shell layout. Holds a leading nav rail, a main column
|
|
10
|
-
(topbar + scroll area + statusbar), an optional trailing inspector,
|
|
11
|
-
and an optional command-palette `<dialog>`. The component wires
|
|
12
|
-
sidebar toggle, sidebar resize, and Cmd+K shortcut on top of the
|
|
13
|
-
long-lived CSS pattern that already targets `app-shell-ui` as a tag.
|
|
14
|
-
Children use native HTML semantic elements (`<aside data-sidebar>`,
|
|
15
|
-
`<main>`, `<header>`, `<section>`, `<footer>`); the existing
|
|
16
|
-
CSS scopes by tag.
|
|
17
|
-
props:
|
|
18
|
-
mode:
|
|
19
|
-
description: |
|
|
20
|
-
Space-separated list of layout modes. `rounded` adds border-radius
|
|
21
|
-
to the scroll section; `borderless` removes chrome borders (content
|
|
22
|
-
borders persist). Pass both for a soft, edgeless shell.
|
|
23
|
-
type: string
|
|
24
|
-
default: ""
|
|
25
|
-
reflect: true
|
|
26
|
-
leadingCollapsed:
|
|
27
|
-
description: |
|
|
28
|
-
Reflects to the leading aside's `[data-collapsed]`. Toggled
|
|
29
|
-
programmatically (`shell.toggleLeading()`) or via a click on any
|
|
30
|
-
element with `[data-sidebar-toggle="leading"]` inside the shell.
|
|
31
|
-
type: boolean
|
|
32
|
-
default: false
|
|
33
|
-
attribute: leading-collapsed
|
|
34
|
-
reflect: true
|
|
35
|
-
trailingCollapsed:
|
|
36
|
-
description: |
|
|
37
|
-
Reflects to the trailing aside's `[data-collapsed]`. Toggled via
|
|
38
|
-
`shell.toggleTrailing()` or `[data-sidebar-toggle="trailing"]`.
|
|
39
|
-
type: boolean
|
|
40
|
-
default: false
|
|
41
|
-
attribute: trailing-collapsed
|
|
42
|
-
reflect: true
|
|
43
|
-
cmdK:
|
|
44
|
-
description: |
|
|
45
|
-
Installs a global Cmd+K / Ctrl+K listener that opens the inner
|
|
46
|
-
`<dialog data-command>` via `showModal()`. No-op when no such
|
|
47
|
-
dialog is present.
|
|
48
|
-
type: boolean
|
|
49
|
-
default: false
|
|
50
|
-
attribute: cmd-k
|
|
51
|
-
reflect: true
|
|
52
|
-
leadingMinWidth:
|
|
53
|
-
description: Minimum leading-aside width (px) when resizing.
|
|
54
|
-
type: number
|
|
55
|
-
default: 48
|
|
56
|
-
attribute: leading-min-width
|
|
57
|
-
leadingMaxWidth:
|
|
58
|
-
description: Maximum leading-aside width (px) when resizing.
|
|
59
|
-
type: number
|
|
60
|
-
default: 480
|
|
61
|
-
attribute: leading-max-width
|
|
62
|
-
trailingMinWidth:
|
|
63
|
-
description: Minimum trailing-aside width (px) when resizing.
|
|
64
|
-
type: number
|
|
65
|
-
default: 48
|
|
66
|
-
attribute: trailing-min-width
|
|
67
|
-
trailingMaxWidth:
|
|
68
|
-
description: Maximum trailing-aside width (px) when resizing.
|
|
69
|
-
type: number
|
|
70
|
-
default: 480
|
|
71
|
-
attribute: trailing-max-width
|
|
72
|
-
events:
|
|
73
|
-
sidebar-toggle:
|
|
74
|
-
description: |
|
|
75
|
-
Fired after a sidebar's collapsed state flips. Detail:
|
|
76
|
-
`{ side: 'leading'|'trailing', collapsed: boolean }`.
|
|
77
|
-
command-open:
|
|
78
|
-
description: Fired after the command-palette `<dialog>` opens.
|
|
79
|
-
command-close:
|
|
80
|
-
description: Fired after the command-palette `<dialog>` closes.
|
|
81
|
-
slots:
|
|
82
|
-
default:
|
|
83
|
-
description: |
|
|
84
|
-
Composes from native HTML children: `<aside data-sidebar="leading">`,
|
|
85
|
-
`<main>` (with `<header>`, `<section>`, `<footer>` inside),
|
|
86
|
-
optional `<aside data-sidebar="trailing">`, optional
|
|
87
|
-
`<dialog data-command>`. The existing pattern CSS scopes each
|
|
88
|
-
child by tag + attribute; no `slot=` attributes needed.
|
|
89
|
-
states:
|
|
90
|
-
- name: idle
|
|
91
|
-
description: Default, ready for interaction.
|
|
92
|
-
- name: leading-collapsed
|
|
93
|
-
description: Leading aside collapsed via attribute / API.
|
|
94
|
-
- name: trailing-collapsed
|
|
95
|
-
description: Trailing aside collapsed via attribute / API.
|
|
96
|
-
- name: command-open
|
|
97
|
-
description: Command-palette dialog is showing.
|
|
98
|
-
traits: []
|
|
99
|
-
tokens: {}
|
|
100
|
-
a2ui:
|
|
101
|
-
rules: []
|
|
102
|
-
anti_patterns: []
|
|
103
|
-
examples:
|
|
104
|
-
- name: docs-shell
|
|
105
|
-
description: Documentation shell — leading nav, topbar with breadcrumb, scroll content, statusbar.
|
|
106
|
-
a2ui: >-
|
|
107
|
-
[
|
|
108
|
-
{
|
|
109
|
-
"id": "root",
|
|
110
|
-
"component": "AppShell",
|
|
111
|
-
"mode": "rounded",
|
|
112
|
-
"cmdK": true,
|
|
113
|
-
"children": ["leading", "main", "cmd"]
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": "leading",
|
|
117
|
-
"component": "Aside",
|
|
118
|
-
"data-sidebar": "leading",
|
|
119
|
-
"children": ["nav-hdr", "nav-list", "nav-ftr"]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"id": "nav-hdr",
|
|
123
|
-
"component": "Header",
|
|
124
|
-
"children": []
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id": "nav-list",
|
|
128
|
-
"component": "Section",
|
|
129
|
-
"children": []
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"id": "nav-ftr",
|
|
133
|
-
"component": "Footer",
|
|
134
|
-
"children": []
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"id": "main",
|
|
138
|
-
"component": "Column",
|
|
139
|
-
"children": ["topbar", "scroll", "statusbar"]
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"id": "topbar",
|
|
143
|
-
"component": "Header",
|
|
144
|
-
"children": []
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"id": "scroll",
|
|
148
|
-
"component": "Section",
|
|
149
|
-
"scroll": true,
|
|
150
|
-
"children": []
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"id": "statusbar",
|
|
154
|
-
"component": "Footer",
|
|
155
|
-
"children": []
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"id": "cmd",
|
|
159
|
-
"component": "Modal",
|
|
160
|
-
"data-command": true,
|
|
161
|
-
"children": []
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
keywords:
|
|
165
|
-
- app-shell
|
|
166
|
-
- shell
|
|
167
|
-
- layout
|
|
168
|
-
- sidebar
|
|
169
|
-
- topbar
|
|
170
|
-
- command-palette
|
|
171
|
-
- cmdK
|
|
172
|
-
- dashboard-shell
|
|
173
|
-
synonyms: {}
|
|
174
|
-
related:
|
|
175
|
-
- aside
|
|
176
|
-
- header
|
|
177
|
-
- footer
|
|
178
|
-
- section
|
|
179
|
-
- drawer
|
|
180
|
-
- modal
|
|
181
|
-
- command
|
|
182
|
-
- app-nav
|
|
183
|
-
- section-nav
|