ionbase-ui 0.51.0 → 0.69.0
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/components/Accordion.d.ts +54 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion.js +68 -0
- package/dist/components/Accordion.js.map +1 -0
- package/dist/components/AgentActivity.d.ts +2 -1
- package/dist/components/AgentActivity.d.ts.map +1 -1
- package/dist/components/AgentActivity.js +4 -17
- package/dist/components/AgentActivity.js.map +1 -1
- package/dist/components/Breadcrumb.d.ts +45 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb.js +31 -0
- package/dist/components/Breadcrumb.js.map +1 -0
- package/dist/components/Calendar.d.ts +20 -0
- package/dist/components/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar.js +151 -0
- package/dist/components/Calendar.js.map +1 -0
- package/dist/components/CalendarPopover.d.ts +26 -0
- package/dist/components/CalendarPopover.d.ts.map +1 -0
- package/dist/components/CalendarPopover.js +45 -0
- package/dist/components/CalendarPopover.js.map +1 -0
- package/dist/components/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +4 -2
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/Combobox.d.ts +86 -0
- package/dist/components/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox.js +261 -0
- package/dist/components/Combobox.js.map +1 -0
- package/dist/components/DateField.d.ts +15 -0
- package/dist/components/DateField.d.ts.map +1 -0
- package/dist/components/DateField.js +74 -0
- package/dist/components/DateField.js.map +1 -0
- package/dist/components/DatePicker.d.ts +81 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker.js +102 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/DateRangePicker.d.ts +117 -0
- package/dist/components/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker.js +152 -0
- package/dist/components/DateRangePicker.js.map +1 -0
- package/dist/components/Drawer.d.ts +52 -0
- package/dist/components/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer.js +66 -0
- package/dist/components/Drawer.js.map +1 -0
- package/dist/components/FileUpload.d.ts +79 -0
- package/dist/components/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload.js +218 -0
- package/dist/components/FileUpload.js.map +1 -0
- package/dist/components/Header.d.ts +10 -0
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/Header.js +18 -3
- package/dist/components/Header.js.map +1 -1
- package/dist/components/NumberInput.d.ts +63 -0
- package/dist/components/NumberInput.d.ts.map +1 -0
- package/dist/components/NumberInput.js +102 -0
- package/dist/components/NumberInput.js.map +1 -0
- package/dist/components/ProgressBar.d.ts +46 -0
- package/dist/components/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar.js +52 -0
- package/dist/components/ProgressBar.js.map +1 -0
- package/dist/components/PromptInput.d.ts +89 -0
- package/dist/components/PromptInput.d.ts.map +1 -0
- package/dist/components/PromptInput.js +130 -0
- package/dist/components/PromptInput.js.map +1 -0
- package/dist/components/SegmentedControl.d.ts +63 -0
- package/dist/components/SegmentedControl.d.ts.map +1 -0
- package/dist/components/SegmentedControl.js +79 -0
- package/dist/components/SegmentedControl.js.map +1 -0
- package/dist/components/Select.d.ts +9 -2
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Sidebar.d.ts +109 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar.js +106 -0
- package/dist/components/Sidebar.js.map +1 -0
- package/dist/components/Skeleton.d.ts +39 -0
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton.js +50 -0
- package/dist/components/Skeleton.js.map +1 -0
- package/dist/components/Spinner.d.ts +45 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +44 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/Stepper.d.ts +73 -0
- package/dist/components/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper.js +82 -0
- package/dist/components/Stepper.js.map +1 -0
- package/dist/components/Toggle.d.ts +2 -1
- package/dist/components/Toggle.d.ts.map +1 -1
- package/dist/components/Toggle.js +4 -2
- package/dist/components/Toggle.js.map +1 -1
- package/dist/components/ToolCall.d.ts +66 -0
- package/dist/components/ToolCall.d.ts.map +1 -0
- package/dist/components/ToolCall.js +78 -0
- package/dist/components/ToolCall.js.map +1 -0
- package/dist/components/agent-status.d.ts +14 -0
- package/dist/components/agent-status.d.ts.map +1 -0
- package/dist/components/agent-status.js +16 -0
- package/dist/components/agent-status.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +16 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/iso-date.d.ts +53 -0
- package/dist/components/iso-date.d.ts.map +1 -0
- package/dist/components/iso-date.js +102 -0
- package/dist/components/iso-date.js.map +1 -0
- package/dist/components/resolve-selection.d.ts +36 -0
- package/dist/components/resolve-selection.d.ts.map +1 -0
- package/dist/components/resolve-selection.js +14 -0
- package/dist/components/resolve-selection.js.map +1 -0
- package/dist/figma-descriptions.json +255 -145
- package/dist/figma-map.json +3205 -1860
- package/dist/meta/Accordion.json +123 -0
- package/dist/meta/AccordionItem.json +90 -0
- package/dist/meta/AgentActivityStep.json +2 -2
- package/dist/meta/Breadcrumb.json +87 -0
- package/dist/meta/BreadcrumbItem.json +78 -0
- package/dist/meta/Checkbox.json +18 -1
- package/dist/meta/Combobox.json +265 -0
- package/dist/meta/DatePicker.json +270 -0
- package/dist/meta/DateRangePicker.json +284 -0
- package/dist/meta/Drawer.json +234 -0
- package/dist/meta/EmptyState.json +1 -1
- package/dist/meta/FileUpload.json +246 -0
- package/dist/meta/Header.json +32 -2
- package/dist/meta/NumberInput.json +407 -0
- package/dist/meta/PhoneInput.json +39 -39
- package/dist/meta/Popover.json +3 -3
- package/dist/meta/ProgressBar.json +166 -0
- package/dist/meta/PromptInput.json +212 -0
- package/dist/meta/SegmentedControl.json +217 -0
- package/dist/meta/SegmentedControlItem.json +122 -0
- package/dist/meta/Select.json +4 -3
- package/dist/meta/Sidebar.json +150 -0
- package/dist/meta/SidebarItem.json +184 -0
- package/dist/meta/SidebarSection.json +131 -0
- package/dist/meta/Skeleton.json +120 -0
- package/dist/meta/Spinner.json +123 -0
- package/dist/meta/Stepper.json +135 -0
- package/dist/meta/StepperStep.json +148 -0
- package/dist/meta/Tabs.json +5 -0
- package/dist/meta/Toggle.json +18 -1
- package/dist/meta/ToolCall.json +192 -0
- package/dist/meta/Tooltip.json +3 -3
- package/dist/meta/components.json +6759 -2705
- package/dist/meta/contrast.json +11075 -3098
- package/dist/meta/index.json +266 -8
- package/dist/meta/patterns/AgentRun.json +27 -0
- package/dist/meta/patterns/Form.json +9 -0
- package/dist/meta/patterns/PageShell.json +43 -3
- package/dist/meta/patterns/Wizard.json +20 -1
- package/dist/meta/patterns/index.json +10 -1
- package/dist/styles/accordion.css +102 -0
- package/dist/styles/breadcrumb.css +72 -0
- package/dist/styles/combobox.css +154 -0
- package/dist/styles/date-picker.css +420 -0
- package/dist/styles/date-range-picker.css +280 -0
- package/dist/styles/drawer.css +181 -0
- package/dist/styles/empty-state.css +16 -4
- package/dist/styles/file-upload.css +236 -0
- package/dist/styles/header.css +26 -0
- package/dist/styles/index.css +23 -0
- package/dist/styles/number-input.css +83 -0
- package/dist/styles/progress-bar.css +107 -0
- package/dist/styles/prompt-input.css +127 -0
- package/dist/styles/segmented-control.css +182 -0
- package/dist/styles/sidebar.css +307 -0
- package/dist/styles/skeleton.css +76 -0
- package/dist/styles/spinner.css +70 -0
- package/dist/styles/stepper.css +250 -0
- package/dist/styles/tool-call.css +202 -0
- package/llms.txt +2 -2
- package/package.json +2 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ToolCall",
|
|
3
|
+
"source": "src/components/ToolCall.tsx",
|
|
4
|
+
"propsType": "ToolCallProps",
|
|
5
|
+
"description": "ToolCall — the evidence behind one step of an agent run.\n\nAgentActivityStep says what the agent did in the user's language. ToolCall\nis where the person checking that account goes next: which tool, with what\narguments, and what came back. The title is still plain language and still\nrequired, so the technical detail supplements the account rather than\nreplacing it.\n\nCOLLAPSED BY DEFAULT, EXCEPT THE FAILURE\n\nA run makes dozens of calls, and a thread of expanded JSON is unreadable.\nBut `errorMessage` renders outside the disclosure: evidence that takes a\nclick to reach is evidence nobody reads, and a failure is the one thing in\nthe call a reader must not miss.\n\nTHE DETAILS ARE UNMOUNTED WHEN CLOSED — unlike Accordion, deliberately.\nAccordion keeps collapsed panels for the form state inside them; a tool call\nholds no user state, and its payloads can be megabytes of JSON multiplied by\nevery call in the thread.\n\nA CALL WITH NOTHING TO SHOW IS NOT A BUTTON. With no input and no output the\nheader renders as text: a disclosure that discloses nothing announces as\nexpandable and does nothing.\n\nTHE PAYLOADS ARE FOCUSABLE. Each is a scroll container capped in height, and\na scroll container a keyboard user cannot focus is one they cannot scroll.\n\nIt does not announce status changes. AgentActivity owns the run's live\nregion; a second one here would talk over it.",
|
|
6
|
+
"import": "import { ToolCall } from 'ionbase-ui';",
|
|
7
|
+
"status": "stable",
|
|
8
|
+
"summary": "The evidence behind one step of an agent run: which tool, with what input, and what came back — collapsed by default, with any failure shown without a click.",
|
|
9
|
+
"useWhen": [
|
|
10
|
+
"a person may need to check how an agent reached a result — which search it ran, which record it wrote",
|
|
11
|
+
"beneath or beside an AgentActivityStep, for the steps that called a tool",
|
|
12
|
+
"debugging or audit views where the arguments matter as much as the outcome"
|
|
13
|
+
],
|
|
14
|
+
"useInstead": [
|
|
15
|
+
{
|
|
16
|
+
"when": "the reader needs to know what the agent did, not how",
|
|
17
|
+
"use": "AgentActivityStep",
|
|
18
|
+
"why": "the plain-language log is the account; ToolCall is the evidence for it, and a thread of tool calls alone is a log nobody but an engineer can read"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"when": "the call has not happened yet and needs permission",
|
|
22
|
+
"use": "ApprovalGate",
|
|
23
|
+
"why": "ToolCall reports a call; it does not ask whether to make one"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"variants": {
|
|
27
|
+
"status": {
|
|
28
|
+
"pending": {
|
|
29
|
+
"use": "the default — queued, not started"
|
|
30
|
+
},
|
|
31
|
+
"active": {
|
|
32
|
+
"use": "running now"
|
|
33
|
+
},
|
|
34
|
+
"done": {
|
|
35
|
+
"use": "returned successfully"
|
|
36
|
+
},
|
|
37
|
+
"failed": {
|
|
38
|
+
"use": "errored. Pass `errorMessage`, which shows without expanding"
|
|
39
|
+
},
|
|
40
|
+
"skipped": {
|
|
41
|
+
"use": "not run — rejected at an ApprovalGate, or a cached result was used"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"slots": {
|
|
46
|
+
"errorMessage": {
|
|
47
|
+
"accepts": "text",
|
|
48
|
+
"note": "what went wrong, in words — not a stack trace"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"a11y": {
|
|
52
|
+
"guarantees": [
|
|
53
|
+
"the header is a disclosure button with aria-expanded; with no input and no output it is plain text instead, because a disclosure that discloses nothing is a dead control",
|
|
54
|
+
"status is rendered as visually hidden text inside the header, and the glyph differs in shape per status",
|
|
55
|
+
"each payload is a focusable, named scroll region, so a keyboard user can scroll a capped payload",
|
|
56
|
+
"errorMessage renders outside the disclosure, so a failure is never hidden behind a click"
|
|
57
|
+
],
|
|
58
|
+
"notes": [
|
|
59
|
+
"it does not announce status changes — AgentActivity owns the run's live region, and a second one would talk over it",
|
|
60
|
+
"the details unmount when collapsed, unlike Accordion: a tool call holds no user state and payloads can be large"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"antiPatterns": [
|
|
64
|
+
{
|
|
65
|
+
"dont": "title=\"search_invoices\"",
|
|
66
|
+
"do": "title=\"Searched the invoice archive\" name=\"search_invoices\"",
|
|
67
|
+
"why": "the function name describes the implementation; the title is what tells a reader whether the step was the right one"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"dont": "passing input or output with credentials, tokens or personal data still in it",
|
|
71
|
+
"why": "it renders exactly what it is given, to anyone who can see the thread"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"dont": "defaultExpanded on every call in a run",
|
|
75
|
+
"why": "a thread of open JSON buries the answer; open the one the reader is likely to check, or none"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"dont": "status=\"failed\" with no errorMessage",
|
|
79
|
+
"why": "a failure the reader cannot diagnose is just a red mark"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"stylesheet": "src/styles/tool-call.css",
|
|
83
|
+
"tokens": [
|
|
84
|
+
"--border-error-subtle",
|
|
85
|
+
"--border-focus",
|
|
86
|
+
"--border-subtle",
|
|
87
|
+
"--border-width-default",
|
|
88
|
+
"--border-width-thick",
|
|
89
|
+
"--font-family-mono",
|
|
90
|
+
"--font-family-sans",
|
|
91
|
+
"--font-weight-medium",
|
|
92
|
+
"--icon-error",
|
|
93
|
+
"--icon-primary",
|
|
94
|
+
"--icon-secondary",
|
|
95
|
+
"--icon-size-sm",
|
|
96
|
+
"--icon-success",
|
|
97
|
+
"--icon-tertiary",
|
|
98
|
+
"--ion-duration-base",
|
|
99
|
+
"--ion-ease-out",
|
|
100
|
+
"--radius-md",
|
|
101
|
+
"--radius-sm",
|
|
102
|
+
"--spacing-12",
|
|
103
|
+
"--spacing-4",
|
|
104
|
+
"--spacing-8",
|
|
105
|
+
"--surface-default",
|
|
106
|
+
"--surface-error-subtle",
|
|
107
|
+
"--surface-hover",
|
|
108
|
+
"--surface-muted",
|
|
109
|
+
"--text-default",
|
|
110
|
+
"--text-error",
|
|
111
|
+
"--text-secondary",
|
|
112
|
+
"--text-tertiary",
|
|
113
|
+
"--type-body-sm",
|
|
114
|
+
"--type-body-sm-line-height",
|
|
115
|
+
"--type-caption",
|
|
116
|
+
"--type-caption-line-height"
|
|
117
|
+
],
|
|
118
|
+
"props": {
|
|
119
|
+
"title": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"required": true,
|
|
122
|
+
"origin": "own",
|
|
123
|
+
"description": "What the call did, in the user's language — \"Searched the invoice archive\".\nRequired: the tool's function name is not a description of the work."
|
|
124
|
+
},
|
|
125
|
+
"name": {
|
|
126
|
+
"type": "string | undefined",
|
|
127
|
+
"required": false,
|
|
128
|
+
"origin": "own",
|
|
129
|
+
"description": "The tool's technical name, shown in monospace beside the title."
|
|
130
|
+
},
|
|
131
|
+
"status": {
|
|
132
|
+
"type": "AgentActivityStatus | undefined",
|
|
133
|
+
"required": false,
|
|
134
|
+
"origin": "own",
|
|
135
|
+
"description": "The same vocabulary as AgentActivityStep, so the two never disagree.",
|
|
136
|
+
"values": [
|
|
137
|
+
"pending",
|
|
138
|
+
"active",
|
|
139
|
+
"done",
|
|
140
|
+
"failed",
|
|
141
|
+
"skipped"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"input": {
|
|
145
|
+
"type": "unknown",
|
|
146
|
+
"required": false,
|
|
147
|
+
"origin": "own",
|
|
148
|
+
"description": "What the agent passed in. Objects and arrays render as formatted JSON,\nstrings as they are. Redact secrets before passing it — this renders\nexactly what it is given."
|
|
149
|
+
},
|
|
150
|
+
"output": {
|
|
151
|
+
"type": "unknown",
|
|
152
|
+
"required": false,
|
|
153
|
+
"origin": "own",
|
|
154
|
+
"description": "What came back. Rendered as `input` is."
|
|
155
|
+
},
|
|
156
|
+
"errorMessage": {
|
|
157
|
+
"type": "React.ReactNode",
|
|
158
|
+
"required": false,
|
|
159
|
+
"origin": "own",
|
|
160
|
+
"description": "Why a `failed` call failed. Shown under the header whether or not the\ndetails are expanded — a failure that takes a click to read is not read."
|
|
161
|
+
},
|
|
162
|
+
"durationMs": {
|
|
163
|
+
"type": "number | undefined",
|
|
164
|
+
"required": false,
|
|
165
|
+
"origin": "own",
|
|
166
|
+
"description": "How long the call took, in milliseconds."
|
|
167
|
+
},
|
|
168
|
+
"defaultExpanded": {
|
|
169
|
+
"type": "boolean | undefined",
|
|
170
|
+
"required": false,
|
|
171
|
+
"origin": "own",
|
|
172
|
+
"description": "Uncontrolled: whether the details start open."
|
|
173
|
+
},
|
|
174
|
+
"isExpanded": {
|
|
175
|
+
"type": "boolean | undefined",
|
|
176
|
+
"required": false,
|
|
177
|
+
"origin": "own",
|
|
178
|
+
"description": "Controlled: whether the details are open. Pass `onExpandedChange` with it."
|
|
179
|
+
},
|
|
180
|
+
"onExpandedChange": {
|
|
181
|
+
"type": "((isExpanded: boolean) => void) | undefined",
|
|
182
|
+
"required": false,
|
|
183
|
+
"origin": "own"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"propCounts": {
|
|
187
|
+
"own": 10,
|
|
188
|
+
"aria": 0,
|
|
189
|
+
"dom": 277,
|
|
190
|
+
"other": 0
|
|
191
|
+
}
|
|
192
|
+
}
|
package/dist/meta/Tooltip.json
CHANGED
|
@@ -113,10 +113,10 @@
|
|
|
113
113
|
"origin": "own",
|
|
114
114
|
"description": "Matches the Figma `Placement` variant, and names where the TOOLTIP sits —\nnot where the arrow points. `top` is above the trigger, with the arrow on\nthe tooltip's bottom edge.\n\nTreated as a preference, not a guarantee: it flips to the opposite side\nwhen there is no room, which is the behaviour Figma cannot draw.",
|
|
115
115
|
"values": [
|
|
116
|
-
"right",
|
|
117
|
-
"left",
|
|
118
116
|
"top",
|
|
119
|
-
"bottom"
|
|
117
|
+
"bottom",
|
|
118
|
+
"right",
|
|
119
|
+
"left"
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
122
|
"delay": {
|