@uipath/apollo-wind 2.63.0 → 2.64.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/forms/aria-ids.cjs +38 -0
- package/dist/components/forms/aria-ids.d.ts +2 -0
- package/dist/components/forms/aria-ids.js +4 -0
- package/dist/components/forms/demo-mocks.cjs +0 -448
- package/dist/components/forms/demo-mocks.js +0 -448
- package/dist/components/forms/field-control.cjs +21 -17
- package/dist/components/forms/field-control.d.ts +3 -1
- package/dist/components/forms/field-control.js +21 -17
- package/dist/components/forms/field-renderer.cjs +65 -37
- package/dist/components/forms/field-renderer.js +66 -38
- package/dist/components/forms/form-designer.cjs +204 -3
- package/dist/components/forms/form-designer.js +204 -3
- package/dist/components/forms/form-examples.cjs +3 -190
- package/dist/components/forms/form-examples.d.ts +0 -10
- package/dist/components/forms/form-examples.js +3 -184
- package/dist/components/forms/form-schema.d.ts +6 -0
- package/dist/components/forms/metadata-form.cjs +9 -1
- package/dist/components/forms/metadata-form.d.ts +8 -1
- package/dist/components/forms/metadata-form.js +9 -1
- package/dist/components/forms/mode-aware-field.cjs +11 -6
- package/dist/components/forms/mode-aware-field.d.ts +2 -0
- package/dist/components/forms/mode-aware-field.js +11 -6
- package/dist/components/forms/string-list-field.cjs +5 -4
- package/dist/components/forms/string-list-field.d.ts +4 -2
- package/dist/components/forms/string-list-field.js +5 -4
- package/dist/components/ui/index.cjs +24 -24
- package/dist/components/ui/json-tree-view/JsonTree.types.d.ts +13 -0
- package/dist/components/ui/json-tree-view/JsonTreeRow.cjs +2 -1
- package/dist/components/ui/json-tree-view/JsonTreeRow.js +2 -1
- package/dist/components/ui/json-tree-view/JsonTypeBadge.cjs +43 -6
- package/dist/components/ui/json-tree-view/JsonTypeBadge.d.ts +6 -3
- package/dist/components/ui/json-tree-view/JsonTypeBadge.js +44 -7
- package/dist/components/ui/json-tree-view/index.d.ts +1 -1
- package/dist/components/ui/json-tree-view/strings.cjs +1 -0
- package/dist/components/ui/json-tree-view/strings.d.ts +10 -2
- package/dist/components/ui/json-tree-view/strings.js +1 -0
- package/dist/components/ui/prompt-value-control.cjs +3 -1
- package/dist/components/ui/prompt-value-control.d.ts +5 -0
- package/dist/components/ui/prompt-value-control.js +3 -1
- package/dist/components/ui/variable-value-control.cjs +3 -1
- package/dist/components/ui/variable-value-control.d.ts +5 -0
- package/dist/components/ui/variable-value-control.js +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/styles.css +21 -0
- package/package.json +1 -1
- package/dist/templates/Forms/form-builder-example.d.ts +0 -1
|
@@ -28,10 +28,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
|
+
const aria_ids_cjs_namespaceObject = require("../forms/aria-ids.cjs");
|
|
31
32
|
const value_mode_strings_cjs_namespaceObject = require("./field-addons/value-mode-strings.cjs");
|
|
32
33
|
const external_textarea_cjs_namespaceObject = require("./textarea.cjs");
|
|
33
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
34
|
-
const PromptValueControl = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ id, name, value, onChange, onBlur, inputRef, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy }, ref)=>{
|
|
35
|
+
const PromptValueControl = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ id, name, value, onChange, onBlur, inputRef, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, controlProps }, ref)=>{
|
|
35
36
|
const text = {
|
|
36
37
|
...value_mode_strings_cjs_namespaceObject.DEFAULT_VALUE_MODE_STRINGS,
|
|
37
38
|
...strings
|
|
@@ -55,6 +56,7 @@ const PromptValueControl = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
55
56
|
className: className,
|
|
56
57
|
"aria-label": ariaLabel,
|
|
57
58
|
"aria-labelledby": ariaLabelledBy,
|
|
59
|
+
"aria-describedby": (0, aria_ids_cjs_namespaceObject.joinIds)(ariaDescribedBy, controlProps?.['aria-describedby']),
|
|
58
60
|
rows: 1,
|
|
59
61
|
minRows: 1,
|
|
60
62
|
maxRows: 6
|
|
@@ -17,6 +17,11 @@ export interface PromptValueControlProps {
|
|
|
17
17
|
className?: string;
|
|
18
18
|
'aria-label'?: string;
|
|
19
19
|
'aria-labelledby'?: string;
|
|
20
|
+
'aria-describedby'?: string;
|
|
21
|
+
/** The value-mode wiring; its `aria-describedby` joins the control's own. */
|
|
22
|
+
controlProps?: {
|
|
23
|
+
'aria-describedby'?: string;
|
|
24
|
+
};
|
|
20
25
|
}
|
|
21
26
|
/**
|
|
22
27
|
* A prompt an agent fills the value from: a textarea that starts one line tall and grows to six.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useMemo } from "react";
|
|
3
|
+
import { joinIds } from "../forms/aria-ids.js";
|
|
3
4
|
import { DEFAULT_VALUE_MODE_STRINGS } from "./field-addons/value-mode-strings.js";
|
|
4
5
|
import { Textarea } from "./textarea.js";
|
|
5
6
|
import { composeRefs } from "../../lib/index.js";
|
|
6
|
-
const PromptValueControl = /*#__PURE__*/ forwardRef(({ id, name, value, onChange, onBlur, inputRef, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy }, ref)=>{
|
|
7
|
+
const PromptValueControl = /*#__PURE__*/ forwardRef(({ id, name, value, onChange, onBlur, inputRef, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, controlProps }, ref)=>{
|
|
7
8
|
const text = {
|
|
8
9
|
...DEFAULT_VALUE_MODE_STRINGS,
|
|
9
10
|
...strings
|
|
@@ -27,6 +28,7 @@ const PromptValueControl = /*#__PURE__*/ forwardRef(({ id, name, value, onChange
|
|
|
27
28
|
className: className,
|
|
28
29
|
"aria-label": ariaLabel,
|
|
29
30
|
"aria-labelledby": ariaLabelledBy,
|
|
31
|
+
"aria-describedby": joinIds(ariaDescribedBy, controlProps?.['aria-describedby']),
|
|
30
32
|
rows: 1,
|
|
31
33
|
minRows: 1,
|
|
32
34
|
maxRows: 6
|
|
@@ -28,12 +28,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
|
+
const aria_ids_cjs_namespaceObject = require("../forms/aria-ids.cjs");
|
|
31
32
|
const value_mode_strings_cjs_namespaceObject = require("./field-addons/value-mode-strings.cjs");
|
|
32
33
|
const external_input_group_cjs_namespaceObject = require("./input-group.cjs");
|
|
33
34
|
const external_popover_cjs_namespaceObject = require("./popover.cjs");
|
|
34
35
|
const index_cjs_namespaceObject = require("./variable-picker/index.cjs");
|
|
35
36
|
const external_lib_index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
36
|
-
const VariableValueControl = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ id, value, onChange, onBlur, inputRef, variables, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy }, ref)=>{
|
|
37
|
+
const VariableValueControl = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ id, value, onChange, onBlur, inputRef, variables, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, controlProps }, ref)=>{
|
|
37
38
|
const text = {
|
|
38
39
|
...value_mode_strings_cjs_namespaceObject.DEFAULT_VALUE_MODE_STRINGS,
|
|
39
40
|
...strings
|
|
@@ -70,6 +71,7 @@ const VariableValueControl = /*#__PURE__*/ external_react_namespaceObject.forwar
|
|
|
70
71
|
className: className,
|
|
71
72
|
"aria-label": ariaLabel,
|
|
72
73
|
"aria-labelledby": ariaLabelledBy,
|
|
74
|
+
"aria-describedby": (0, aria_ids_cjs_namespaceObject.joinIds)(ariaDescribedBy, controlProps?.['aria-describedby']),
|
|
73
75
|
children: reference && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
74
76
|
className: "truncate font-mono text-sm",
|
|
75
77
|
children: reference
|
|
@@ -24,6 +24,11 @@ export interface VariableValueControlProps {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
'aria-label'?: string;
|
|
26
26
|
'aria-labelledby'?: string;
|
|
27
|
+
'aria-describedby'?: string;
|
|
28
|
+
/** The value-mode wiring; its `aria-describedby` joins the control's own. */
|
|
29
|
+
controlProps?: {
|
|
30
|
+
'aria-describedby'?: string;
|
|
31
|
+
};
|
|
27
32
|
}
|
|
28
33
|
/**
|
|
29
34
|
* A value bound to a variable, for an `InputGroup`: the whole control is a picker whose trigger
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useMemo, useState } from "react";
|
|
3
|
+
import { joinIds } from "../forms/aria-ids.js";
|
|
3
4
|
import { DEFAULT_VALUE_MODE_STRINGS } from "./field-addons/value-mode-strings.js";
|
|
4
5
|
import { InputGroupPopoverTrigger } from "./input-group.js";
|
|
5
6
|
import { Popover, PopoverContent } from "./popover.js";
|
|
6
7
|
import { VariablePickerContent } from "./variable-picker/index.js";
|
|
7
8
|
import { composeRefs } from "../../lib/index.js";
|
|
8
|
-
const VariableValueControl = /*#__PURE__*/ forwardRef(({ id, value, onChange, onBlur, inputRef, variables, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy }, ref)=>{
|
|
9
|
+
const VariableValueControl = /*#__PURE__*/ forwardRef(({ id, value, onChange, onBlur, inputRef, variables, disabled, placeholder, strings, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, controlProps }, ref)=>{
|
|
9
10
|
const text = {
|
|
10
11
|
...DEFAULT_VALUE_MODE_STRINGS,
|
|
11
12
|
...strings
|
|
@@ -42,6 +43,7 @@ const VariableValueControl = /*#__PURE__*/ forwardRef(({ id, value, onChange, on
|
|
|
42
43
|
className: className,
|
|
43
44
|
"aria-label": ariaLabel,
|
|
44
45
|
"aria-labelledby": ariaLabelledBy,
|
|
46
|
+
"aria-describedby": joinIds(ariaDescribedBy, controlProps?.['aria-describedby']),
|
|
45
47
|
children: reference && /*#__PURE__*/ jsx("span", {
|
|
46
48
|
className: "truncate font-mono text-sm",
|
|
47
49
|
children: reference
|
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export { Textarea } from './components/ui/textarea';
|
|
|
127
127
|
export { Toggle, toggleVariants } from './components/ui/toggle';
|
|
128
128
|
export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group';
|
|
129
129
|
export { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, } from './components/ui/tooltip';
|
|
130
|
-
export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, } from './components/ui/json-tree-view';
|
|
130
|
+
export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTreeViewStrings, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
131
131
|
export { appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, DEFAULT_JSON_TREE_VIEW_STRINGS, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge, removeValueAtPath, schemaDisplayType, setValueAtPath, useJsonTreeViewStrings, } from './components/ui/json-tree-view';
|
|
132
132
|
export type { FileTreeViewIconMap, FileTreeViewItem, FileTreeViewItemAction, FileTreeViewMenuItem, FileTreeViewProps, FileTreeViewSelectionMode, TreeViewIconMap, TreeViewItem, TreeViewItemAction, TreeViewMenuItem, TreeViewProps, TreeViewSelectionMode, } from './components/ui/tree-view';
|
|
133
133
|
export { default as FileTreeView, TreeView } from './components/ui/tree-view';
|
package/dist/styles.css
CHANGED
|
@@ -680,6 +680,9 @@
|
|
|
680
680
|
.right-5 {
|
|
681
681
|
right: calc(var(--spacing) * 5);
|
|
682
682
|
}
|
|
683
|
+
.-bottom-1 {
|
|
684
|
+
bottom: calc(var(--spacing) * -1);
|
|
685
|
+
}
|
|
683
686
|
.bottom-0 {
|
|
684
687
|
bottom: calc(var(--spacing) * 0);
|
|
685
688
|
}
|
|
@@ -911,6 +914,9 @@
|
|
|
911
914
|
.mb-10 {
|
|
912
915
|
margin-bottom: calc(var(--spacing) * 10);
|
|
913
916
|
}
|
|
917
|
+
.-ml-2 {
|
|
918
|
+
margin-left: calc(var(--spacing) * -2);
|
|
919
|
+
}
|
|
914
920
|
.-ml-3 {
|
|
915
921
|
margin-left: calc(var(--spacing) * -3);
|
|
916
922
|
}
|
|
@@ -2240,6 +2246,9 @@
|
|
|
2240
2246
|
.rounded-\[2px\] {
|
|
2241
2247
|
border-radius: 2px;
|
|
2242
2248
|
}
|
|
2249
|
+
.rounded-\[3px\] {
|
|
2250
|
+
border-radius: 3px;
|
|
2251
|
+
}
|
|
2243
2252
|
.rounded-\[4px\] {
|
|
2244
2253
|
border-radius: 4px;
|
|
2245
2254
|
}
|
|
@@ -2607,6 +2616,9 @@
|
|
|
2607
2616
|
border-color: color-mix(in oklab, var(--color-violet-500) 20%, transparent);
|
|
2608
2617
|
}
|
|
2609
2618
|
}
|
|
2619
|
+
.border-warning {
|
|
2620
|
+
border-color: var(--warning);
|
|
2621
|
+
}
|
|
2610
2622
|
.border-warning\/20 {
|
|
2611
2623
|
border-color: var(--warning);
|
|
2612
2624
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -3570,6 +3582,12 @@
|
|
|
3570
3582
|
background-color: color-mix(in oklab, var(--warning-background) 25%, transparent);
|
|
3571
3583
|
}
|
|
3572
3584
|
}
|
|
3585
|
+
.bg-warning-background\/30 {
|
|
3586
|
+
background-color: var(--warning-background);
|
|
3587
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3588
|
+
background-color: color-mix(in oklab, var(--warning-background) 30%, transparent);
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3573
3591
|
.bg-warning\/5 {
|
|
3574
3592
|
background-color: var(--warning);
|
|
3575
3593
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -4022,6 +4040,9 @@
|
|
|
4022
4040
|
.pl-1 {
|
|
4023
4041
|
padding-left: calc(var(--spacing) * 1);
|
|
4024
4042
|
}
|
|
4043
|
+
.pl-1\.5 {
|
|
4044
|
+
padding-left: calc(var(--spacing) * 1.5);
|
|
4045
|
+
}
|
|
4025
4046
|
.pl-2 {
|
|
4026
4047
|
padding-left: calc(var(--spacing) * 2);
|
|
4027
4048
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function FormBuilderExample(): import("react/jsx-runtime").JSX.Element;
|