@uipath/apollo-wind 2.71.0 → 2.72.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/README.md +25 -0
- package/dist/components/ui/index.cjs +509 -315
- package/dist/components/ui/index.d.ts +4 -2
- package/dist/components/ui/index.js +5 -3
- package/dist/components/ui/prompt-editor/components/MarkdownPreview.cjs +4 -2
- package/dist/components/ui/prompt-editor/components/MarkdownPreview.js +4 -2
- package/dist/components/ui/prompt-editor/components/TokenPill.cjs +13 -68
- package/dist/components/ui/prompt-editor/components/TokenPill.js +14 -69
- package/dist/components/ui/prompt-editor/types.cjs +2 -14
- package/dist/components/ui/prompt-editor/types.d.ts +14 -1
- package/dist/components/ui/prompt-editor/types.js +2 -14
- package/dist/components/ui/reference-chip-colors.cjs +49 -0
- package/dist/components/ui/reference-chip-colors.d.ts +15 -0
- package/dist/components/ui/reference-chip-colors.js +15 -0
- package/dist/components/ui/reference-chip.cjs +104 -0
- package/dist/components/ui/reference-chip.d.ts +17 -0
- package/dist/components/ui/reference-chip.js +70 -0
- package/dist/components/ui/variable-value-control.cjs +5 -3
- package/dist/components/ui/variable-value-control.js +5 -3
- package/dist/index.cjs +10 -2
- package/dist/index.d.ts +7 -5
- package/dist/index.js +5 -3
- package/dist/styles.css +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -213,3 +213,28 @@ MIT - see [LICENSE](./LICENSE)
|
|
|
213
213
|
**Peer Dependencies:** React ≥18.0.0
|
|
214
214
|
|
|
215
215
|
Built with ❤️ by UiPath | Inspired by [shadcn/ui](https://ui.shadcn.com)
|
|
216
|
+
|
|
217
|
+
## Reference Chip
|
|
218
|
+
|
|
219
|
+
`ReferenceChip` displays selected variables, resources and connections with paired
|
|
220
|
+
semantic background, text and icon colors. Find its API and state examples in
|
|
221
|
+
Storybook under **Apollo Wind → Components → Data Display → Reference Chip**.
|
|
222
|
+
The **Patterns → Code Editors → Editor Variables** example uses it through
|
|
223
|
+
`PromptEditor`; existing editor consumers need no API changes.
|
|
224
|
+
|
|
225
|
+
```tsx
|
|
226
|
+
import { ReferenceChip } from '@uipath/apollo-wind';
|
|
227
|
+
|
|
228
|
+
<ReferenceChip
|
|
229
|
+
label="alex@example.com"
|
|
230
|
+
icon={<ConnectionIcon />}
|
|
231
|
+
onRemove={clearConnection}
|
|
232
|
+
removeLabel="Remove Outlook connection"
|
|
233
|
+
/>
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The host supplies the icon, selection behavior and localized removal label.
|
|
237
|
+
`readOnly` hides removal, `disabled` disables removal, `invalid` uses the paired
|
|
238
|
+
error palette, and `selected` adds a visual outline. Keep removable chips outside
|
|
239
|
+
other buttons. Inside a picker trigger, omit `onRemove` and use a separate clear
|
|
240
|
+
button. Product connection fields must adopt this primitive to receive its styles.
|