@langchain/macaw-components 1.5.1 → 1.6.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/catalog.json +752 -660
- package/dist/components/ChartCard/ChartCardSkeleton.d.ts +1 -1
- package/dist/components/ChartCard/ChartCardSkeleton.js +50 -1
- package/dist/components/ChartCard/ChartCardSkeleton.js.map +1 -1
- package/dist/components/ChatState/ChatState.d.ts +16 -0
- package/dist/components/ChatState/ChatState.js +96 -0
- package/dist/components/ChatState/ChatState.js.map +1 -0
- package/dist/components/ChatState/ChatStateTimer.d.ts +11 -0
- package/dist/components/ChatState/ChatStateTimer.js +57 -0
- package/dist/components/ChatState/ChatStateTimer.js.map +1 -0
- package/dist/components/ChatState/index.d.ts +2 -0
- package/dist/components/ChatState/index.js +2 -0
- package/dist/components/ChatToolCall/ChatToolCall.d.ts +23 -0
- package/dist/components/ChatToolCall/ChatToolCall.js +98 -0
- package/dist/components/ChatToolCall/ChatToolCall.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCall.types.d.ts +10 -0
- package/dist/components/ChatToolCall/ChatToolCall.types.js +0 -0
- package/dist/components/ChatToolCall/ChatToolCall.value.d.ts +2 -0
- package/dist/components/ChatToolCall/ChatToolCall.value.js +82 -0
- package/dist/components/ChatToolCall/ChatToolCall.value.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCallAccordion.d.ts +17 -0
- package/dist/components/ChatToolCall/ChatToolCallAccordion.js +56 -0
- package/dist/components/ChatToolCall/ChatToolCallAccordion.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCallDetails.d.ts +4 -0
- package/dist/components/ChatToolCall/ChatToolCallDetails.js +66 -0
- package/dist/components/ChatToolCall/ChatToolCallDetails.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCallGroup.d.ts +11 -0
- package/dist/components/ChatToolCall/ChatToolCallGroup.js +63 -0
- package/dist/components/ChatToolCall/ChatToolCallGroup.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCallReasoning.d.ts +18 -0
- package/dist/components/ChatToolCall/ChatToolCallReasoning.js +45 -0
- package/dist/components/ChatToolCall/ChatToolCallReasoning.js.map +1 -0
- package/dist/components/ChatToolCall/ChatToolCallStatusRow.d.ts +11 -0
- package/dist/components/ChatToolCall/ChatToolCallStatusRow.js +36 -0
- package/dist/components/ChatToolCall/ChatToolCallStatusRow.js.map +1 -0
- package/dist/components/ChatToolCall/index.d.ts +7 -0
- package/dist/components/ChatToolCall/index.js +4 -0
- package/dist/components/RadarChart/RadarChart.d.ts +85 -0
- package/dist/components/RadarChart/RadarChart.js +357 -0
- package/dist/components/RadarChart/RadarChart.js.map +1 -0
- package/dist/components/RadarChart/index.d.ts +2 -0
- package/dist/components/RadarChart/index.js +2 -0
- package/dist/icons/LongTailPhosphorIcons.js +1 -1
- package/dist/icons/WeightedPhosphorIcons.js +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utils/componentUtils.d.ts +2 -0
- package/dist/utils/componentUtils.js +8 -0
- package/dist/utils/componentUtils.js.map +1 -0
- package/docs/CHAT.md +31 -0
- package/docs/DESIGN.md +9 -0
- package/docs/STYLES.md +39 -39
- package/package.json +22 -2
package/docs/STYLES.md
CHANGED
|
@@ -126,37 +126,37 @@ Use this table for new or meaningfully touched UI. Existing code still contains
|
|
|
126
126
|
deprecated aliases during migration; do not churn unrelated call sites just to
|
|
127
127
|
rename classes.
|
|
128
128
|
|
|
129
|
-
| Situation
|
|
130
|
-
|
|
|
131
|
-
| Page / app shell background
|
|
132
|
-
| Card, panel
|
|
133
|
-
| App navigation sidebar
|
|
134
|
-
| Raised card, pane
|
|
135
|
-
| Input, textarea, select/typeahead control, filled popup trigger
|
|
136
|
-
| Tooltip, popover, select/typeahead menu, dropdown, context/command menu | `bg-popover`
|
|
137
|
-
| Modal scrim / backdrop
|
|
138
|
-
| Non-Button brand fill
|
|
139
|
-
| Tinted brand surface
|
|
140
|
-
| Tinted brand gradient surface
|
|
141
|
-
| Branded illustration backdrop
|
|
142
|
-
| Purple accent surface
|
|
143
|
-
| Success / Error / Warning tint
|
|
144
|
-
| Filled success / error / warning
|
|
145
|
-
| Control on-state
|
|
146
|
-
| Selected list item
|
|
147
|
-
| Body text
|
|
148
|
-
| Secondary / label text
|
|
149
|
-
| Placeholder text
|
|
150
|
-
| Disabled text
|
|
151
|
-
| Standalone default icon
|
|
152
|
-
| Default structural/control border
|
|
153
|
-
| Focus border token
|
|
154
|
-
| Error state border
|
|
155
|
-
| Disabled border
|
|
156
|
-
| Run/system status text
|
|
157
|
-
| Low elevation for floating controls or interaction states
|
|
158
|
-
| Dropdown / popover shadow
|
|
159
|
-
| Modal / dialog shadow
|
|
129
|
+
| Situation | Class |
|
|
130
|
+
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
131
|
+
| Page / app shell background | `bg-surface-level-1` |
|
|
132
|
+
| Card, panel | `bg-surface-level-2` |
|
|
133
|
+
| App navigation sidebar | `bg-sidebar` |
|
|
134
|
+
| Raised card, pane | `bg-elevated` |
|
|
135
|
+
| Input, textarea, select/typeahead control, filled popup trigger | `bg-input` |
|
|
136
|
+
| Tooltip, popover, select/typeahead menu, dropdown, context/command menu | `bg-popover` |
|
|
137
|
+
| Modal scrim / backdrop | `bg-overlay` for new overlays; some current overlays still use opacity classes |
|
|
138
|
+
| Non-Button brand fill | `bg-brand`; use `<Button />` for CTAs |
|
|
139
|
+
| Tinted brand surface | `bg-brand-subtle` |
|
|
140
|
+
| Tinted brand gradient surface | `bg-brand-subtle-gradient` |
|
|
141
|
+
| Branded illustration backdrop | `bg-brand-illustration` |
|
|
142
|
+
| Purple accent surface | `bg-purple` |
|
|
143
|
+
| Success / Error / Warning tint | `bg-success` / `bg-error` / `bg-warning` |
|
|
144
|
+
| Filled success / error / warning | `bg-success-strong` / `bg-error-strong` / `bg-warning-strong` |
|
|
145
|
+
| Control on-state | `bg-control-active` for new control internals |
|
|
146
|
+
| Selected list item | `bg-selected` for new selection states |
|
|
147
|
+
| Body text | `text-primary` |
|
|
148
|
+
| Secondary / label text | `text-secondary` |
|
|
149
|
+
| Placeholder text | `text-placeholder` |
|
|
150
|
+
| Disabled text | `text-disabled` |
|
|
151
|
+
| Standalone default icon | `text-icon-primary`; icons may inherit text color when paired with labels |
|
|
152
|
+
| Default structural/control border | `border-default`; older controls often still use `border-secondary` |
|
|
153
|
+
| Focus border token | `border-focus`; many current controls still use `border-brand` / `ring-brand` |
|
|
154
|
+
| Error state border | `border-error` |
|
|
155
|
+
| Disabled border | `border-disabled` |
|
|
156
|
+
| Run/system status text | `text-status-green` / `text-status-orange` / `text-status-yellow` / `text-status-red` |
|
|
157
|
+
| Low elevation for floating controls or interaction states | `shadow-sm` |
|
|
158
|
+
| Dropdown / popover shadow | `shadow-md` |
|
|
159
|
+
| Modal / dialog shadow | `shadow-lg` |
|
|
160
160
|
|
|
161
161
|
---
|
|
162
162
|
|
|
@@ -187,7 +187,7 @@ dashboard visualization shells.
|
|
|
187
187
|
- Consumers own charts, legends, data interactions, and empty states. Use the
|
|
188
188
|
`state` prop for standard loading and known data-fetching error states; it
|
|
189
189
|
does not catch chart-rendering exceptions.
|
|
190
|
-
- Set `skeletonVariant` to `bar`, `horizontal-bar`, `line`, `donut`, `metric`, `sparkline`, or `
|
|
190
|
+
- Set `skeletonVariant` to `bar`, `horizontal-bar`, `line`, `donut`, `metric`, `sparkline`, `sankey`, `radar`, or `heatmap` to match the chart
|
|
191
191
|
shape while loading. Use `ChartCardSkeleton` directly for a chart placeholder
|
|
192
192
|
outside a card.
|
|
193
193
|
- Loading and error states have a baseline minimum height. Set an explicit card
|
|
@@ -285,14 +285,14 @@ Use the lowest level that creates enough separation. Avoid skipping levels unles
|
|
|
285
285
|
| `bg-surface-level-3` | Nested table headers or grouped inner containers |
|
|
286
286
|
| `bg-surface-level-4` | Deepest neutral fill for additional separation |
|
|
287
287
|
| `bg-disabled` | Disabled input or control fill |
|
|
288
|
-
| `bg-elevated` | Raised cards and panes
|
|
288
|
+
| `bg-elevated` | Raised cards and panes |
|
|
289
289
|
| `bg-input` | Input and textarea fields, picker controls, filled popup triggers |
|
|
290
|
-
| `bg-input-hover` | Hover fill for Select controls
|
|
290
|
+
| `bg-input-hover` | Hover fill for Select controls |
|
|
291
291
|
| `bg-input-plain` | Fill for borderless (`variant="plain"`) Input and CommandInput |
|
|
292
292
|
| `bg-input-disabled` | Disabled field fill, independent of general disabled controls |
|
|
293
|
-
| `bg-elevated-hover` | Hover state inside a raised or floating surface
|
|
294
|
-
| `bg-elevated-selected` | Selected item inside a raised or floating surface
|
|
295
|
-
| `bg-popover` | Floating tooltips, popovers, and menu surfaces
|
|
293
|
+
| `bg-elevated-hover` | Hover state inside a raised or floating surface |
|
|
294
|
+
| `bg-elevated-selected` | Selected item inside a raised or floating surface |
|
|
295
|
+
| `bg-popover` | Floating tooltips, popovers, and menu surfaces |
|
|
296
296
|
| `bg-sidebar` | App navigation sidebar surface |
|
|
297
297
|
| `bg-overlay` | Modal backdrop / scrim |
|
|
298
298
|
|
|
@@ -376,8 +376,8 @@ Used internally by Checkbox, RadioButton, Switch, and Slider. Prefer those compo
|
|
|
376
376
|
|
|
377
377
|
| Class | When to use |
|
|
378
378
|
| --------------------- | ---------------------------------------- |
|
|
379
|
-
| `border-input`
|
|
380
|
-
| `border-input-hover`
|
|
379
|
+
| `border-input` | Enabled field border; adapts per theme |
|
|
380
|
+
| `border-input-hover` | Enabled field hover border |
|
|
381
381
|
| `border-default` | Default input, card, or container border |
|
|
382
382
|
| `border-subtle` | Subtle divider |
|
|
383
383
|
| `border-muted` | Very subtle divider |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/macaw-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "React components and usage guidance for the Macaw Design System.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -92,6 +92,14 @@
|
|
|
92
92
|
"types": "./dist/components/ChatMessage/index.d.ts",
|
|
93
93
|
"import": "./dist/components/ChatMessage/index.js"
|
|
94
94
|
},
|
|
95
|
+
"./ChatState": {
|
|
96
|
+
"types": "./dist/components/ChatState/index.d.ts",
|
|
97
|
+
"import": "./dist/components/ChatState/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./ChatToolCall": {
|
|
100
|
+
"types": "./dist/components/ChatToolCall/index.d.ts",
|
|
101
|
+
"import": "./dist/components/ChatToolCall/index.js"
|
|
102
|
+
},
|
|
95
103
|
"./Checkbox": {
|
|
96
104
|
"types": "./dist/components/Checkbox/index.d.ts",
|
|
97
105
|
"import": "./dist/components/Checkbox/index.js"
|
|
@@ -212,6 +220,10 @@
|
|
|
212
220
|
"types": "./dist/components/ProgressBar/index.d.ts",
|
|
213
221
|
"import": "./dist/components/ProgressBar/index.js"
|
|
214
222
|
},
|
|
223
|
+
"./RadarChart": {
|
|
224
|
+
"types": "./dist/components/RadarChart/index.d.ts",
|
|
225
|
+
"import": "./dist/components/RadarChart/index.js"
|
|
226
|
+
},
|
|
215
227
|
"./RadioButton": {
|
|
216
228
|
"types": "./dist/components/RadioButton/index.d.ts",
|
|
217
229
|
"import": "./dist/components/RadioButton/index.js"
|
|
@@ -393,6 +405,14 @@
|
|
|
393
405
|
"types": "./dist/components/ChatConversationList/index.d.ts",
|
|
394
406
|
"import": "./dist/components/ChatConversationList/index.js"
|
|
395
407
|
},
|
|
408
|
+
"./components/ChatState": {
|
|
409
|
+
"types": "./dist/components/ChatState/index.d.ts",
|
|
410
|
+
"import": "./dist/components/ChatState/index.js"
|
|
411
|
+
},
|
|
412
|
+
"./components/ChatToolCall": {
|
|
413
|
+
"types": "./dist/components/ChatToolCall/index.d.ts",
|
|
414
|
+
"import": "./dist/components/ChatToolCall/index.js"
|
|
415
|
+
},
|
|
396
416
|
"./components/Checkbox": {
|
|
397
417
|
"types": "./dist/components/Checkbox/index.d.ts",
|
|
398
418
|
"import": "./dist/components/Checkbox/index.js"
|
|
@@ -617,7 +637,7 @@
|
|
|
617
637
|
"@fontsource/fira-code": "^5.2.7",
|
|
618
638
|
"@fontsource/inter": "^5.2.8",
|
|
619
639
|
"@headlessui/react": "^2.2.10",
|
|
620
|
-
"@langchain/macaw-tokens": "1.
|
|
640
|
+
"@langchain/macaw-tokens": "1.6.0",
|
|
621
641
|
"@lezer/common": "^1.2.1",
|
|
622
642
|
"@lezer/highlight": "^1.2.0",
|
|
623
643
|
"@lezer/yaml": "^1.0.4",
|