@uipath/apollo-wind 2.79.2 → 2.80.1
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/ui/editable-text.cjs +251 -0
- package/dist/components/ui/editable-text.d.ts +48 -0
- package/dist/components/ui/editable-text.js +217 -0
- package/dist/components/ui/field-addons/field-addon-button.cjs +36 -0
- package/dist/components/ui/field-addons/field-addon-button.d.ts +6 -0
- package/dist/components/ui/field-addons/field-addon-button.js +2 -0
- package/dist/components/ui/field-addons/field-menu.cjs +6 -6
- package/dist/components/ui/field-addons/field-menu.d.ts +6 -1
- package/dist/components/ui/field-addons/field-menu.js +6 -6
- package/dist/components/ui/field-addons/value-mode-switch-dialog.cjs +2 -1
- package/dist/components/ui/field-addons/value-mode-switch-dialog.d.ts +6 -1
- package/dist/components/ui/field-addons/value-mode-switch-dialog.js +2 -1
- package/dist/components/ui/index.cjs +220 -207
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/input-group.cjs +7 -3
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/input-group.js +7 -3
- package/dist/components/ui/quick-form-field/components/field-header.cjs +41 -38
- package/dist/components/ui/quick-form-field/components/field-header.d.ts +13 -4
- package/dist/components/ui/quick-form-field/components/field-header.js +38 -38
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.cjs +2 -1
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.js +2 -1
- package/dist/components/ui/quick-form-field/index.d.ts +1 -1
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +134 -17
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +6 -3
- package/dist/components/ui/quick-form-field/quick-form-field.js +136 -19
- package/dist/components/ui/quick-form-field/types.cjs +8 -0
- package/dist/components/ui/quick-form-field/types.d.ts +81 -14
- package/dist/components/ui/quick-form-field/types.js +8 -0
- package/dist/components/ui/quick-form-field/utils.cjs +30 -1
- package/dist/components/ui/quick-form-field/utils.d.ts +8 -0
- package/dist/components/ui/quick-form-field/utils.js +27 -1
- package/dist/components/ui/variable-value-control.cjs +7 -4
- package/dist/components/ui/variable-value-control.d.ts +5 -1
- package/dist/components/ui/variable-value-control.js +7 -4
- package/dist/index.cjs +4 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/styles.css +69 -9
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MoreHorizontal, Type } from "lucide-react";
|
|
3
|
-
import { Button } from "../button.js";
|
|
4
3
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "../dropdown-menu.js";
|
|
4
|
+
import { InputGroupButton } from "../input-group.js";
|
|
5
5
|
import { cn } from "../../../lib/index.js";
|
|
6
6
|
import { builtInValueModes, isBuiltInValueMode } from "./built-in-value-modes.js";
|
|
7
|
+
import { FIELD_ADDON_BUTTON_CLASS } from "./field-addon-button.js";
|
|
7
8
|
import { DEFAULT_VALUE_MODE_STRINGS } from "./value-mode-strings.js";
|
|
8
9
|
const DEFAULT_MODES = [
|
|
9
10
|
'literal',
|
|
@@ -38,7 +39,7 @@ function ValueModeMenuItem({ icon: Icon, label, description, active, disabled, o
|
|
|
38
39
|
]
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
function FieldMenu({ mode, onSelect, modes, extraModes, actions, checked, modesDisabled, disabled, expectedType, literalDescription, triggerLabel: triggerLabelOverride, strings }) {
|
|
42
|
+
function FieldMenu({ mode, onSelect, modes, extraModes, actions, checked, modesDisabled, disabled, expectedType, literalDescription, triggerLabel: triggerLabelOverride, strings, onCloseAutoFocus }) {
|
|
42
43
|
const text = {
|
|
43
44
|
...DEFAULT_VALUE_MODE_STRINGS,
|
|
44
45
|
...strings
|
|
@@ -61,19 +62,18 @@ function FieldMenu({ mode, onSelect, modes, extraModes, actions, checked, modesD
|
|
|
61
62
|
children: [
|
|
62
63
|
/*#__PURE__*/ jsx(DropdownMenuTrigger, {
|
|
63
64
|
asChild: true,
|
|
64
|
-
children: /*#__PURE__*/ jsx(
|
|
65
|
-
type: "button",
|
|
66
|
-
variant: "ghost",
|
|
65
|
+
children: /*#__PURE__*/ jsx(InputGroupButton, {
|
|
67
66
|
size: "3xs",
|
|
68
67
|
disabled: disabled,
|
|
69
68
|
"aria-label": triggerLabel,
|
|
70
|
-
className:
|
|
69
|
+
className: FIELD_ADDON_BUTTON_CLASS,
|
|
71
70
|
children: /*#__PURE__*/ jsx(TriggerIcon, {})
|
|
72
71
|
})
|
|
73
72
|
}),
|
|
74
73
|
/*#__PURE__*/ jsxs(DropdownMenuContent, {
|
|
75
74
|
align: "end",
|
|
76
75
|
className: "w-56",
|
|
76
|
+
onCloseAutoFocus: onCloseAutoFocus,
|
|
77
77
|
children: [
|
|
78
78
|
!modesDisabled && resolvedModes.map((item)=>/*#__PURE__*/ jsx(ValueModeMenuItem, {
|
|
79
79
|
icon: item.icon,
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_alert_dialog_cjs_namespaceObject = require("../alert-dialog.cjs");
|
|
31
31
|
const external_value_mode_strings_cjs_namespaceObject = require("./value-mode-strings.cjs");
|
|
32
|
-
function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings }) {
|
|
32
|
+
function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings, onCloseAutoFocus }) {
|
|
33
33
|
const text = {
|
|
34
34
|
...external_value_mode_strings_cjs_namespaceObject.DEFAULT_VALUE_MODE_STRINGS,
|
|
35
35
|
...strings
|
|
@@ -38,6 +38,7 @@ function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description,
|
|
|
38
38
|
open: open,
|
|
39
39
|
onOpenChange: (next)=>!next && onCancel(),
|
|
40
40
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_alert_dialog_cjs_namespaceObject.AlertDialogContent, {
|
|
41
|
+
onCloseAutoFocus: onCloseAutoFocus,
|
|
41
42
|
children: [
|
|
42
43
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_alert_dialog_cjs_namespaceObject.AlertDialogHeader, {
|
|
43
44
|
children: [
|
|
@@ -11,6 +11,11 @@ export interface ValueModeSwitchDialogProps {
|
|
|
11
11
|
confirmLabel?: string;
|
|
12
12
|
/** Overrides for any subset of the English strings. */
|
|
13
13
|
strings?: Partial<ValueModeStrings>;
|
|
14
|
+
/**
|
|
15
|
+
* Called as the dialog closes, before it returns focus to where it opened from. Call
|
|
16
|
+
* `preventDefault` to keep focus elsewhere, such as on the control of the mode just switched to.
|
|
17
|
+
*/
|
|
18
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
14
19
|
}
|
|
15
20
|
/** Confirms a mode switch that would lose the field's current value. */
|
|
16
|
-
export declare function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings, }: ValueModeSwitchDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings, onCloseAutoFocus, }: ValueModeSwitchDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "../alert-dialog.js";
|
|
3
3
|
import { DEFAULT_VALUE_MODE_STRINGS } from "./value-mode-strings.js";
|
|
4
|
-
function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings }) {
|
|
4
|
+
function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description, confirmLabel, strings, onCloseAutoFocus }) {
|
|
5
5
|
const text = {
|
|
6
6
|
...DEFAULT_VALUE_MODE_STRINGS,
|
|
7
7
|
...strings
|
|
@@ -10,6 +10,7 @@ function ValueModeSwitchDialog({ open, onConfirm, onCancel, title, description,
|
|
|
10
10
|
open: open,
|
|
11
11
|
onOpenChange: (next)=>!next && onCancel(),
|
|
12
12
|
children: /*#__PURE__*/ jsxs(AlertDialogContent, {
|
|
13
|
+
onCloseAutoFocus: onCloseAutoFocus,
|
|
13
14
|
children: [
|
|
14
15
|
/*#__PURE__*/ jsxs(AlertDialogHeader, {
|
|
15
16
|
children: [
|