@uipath/apollo-wind 2.70.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/forms/field-control.cjs +3 -2
- package/dist/components/forms/field-control.js +3 -2
- package/dist/components/forms/validation-converter.cjs +14 -5
- package/dist/components/forms/validation-converter.js +14 -5
- package/dist/components/ui/chat-hero.cjs +244 -0
- package/dist/components/ui/chat-hero.d.ts +51 -0
- package/dist/components/ui/chat-hero.js +189 -0
- package/dist/components/ui/date-picker.cjs +6 -5
- package/dist/components/ui/date-picker.js +7 -6
- package/dist/components/ui/datetime-picker.cjs +7 -10
- package/dist/components/ui/datetime-picker.js +8 -11
- package/dist/components/ui/index.cjs +629 -413
- package/dist/components/ui/index.d.ts +6 -2
- package/dist/components/ui/index.js +7 -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/prompt-suggestions.cjs +133 -0
- package/dist/components/ui/prompt-suggestions.d.ts +52 -0
- package/dist/components/ui/prompt-suggestions.js +90 -0
- package/dist/components/ui/quick-form-field/components/field-header.cjs +9 -4
- package/dist/components/ui/quick-form-field/components/field-header.d.ts +4 -1
- package/dist/components/ui/quick-form-field/components/field-header.js +9 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.cjs +2 -2
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.d.ts +5 -4
- package/dist/components/ui/quick-form-field/components/lock-toggle-button.js +2 -2
- package/dist/components/ui/quick-form-field/index.d.ts +1 -1
- package/dist/components/ui/quick-form-field/quick-form-field.cjs +158 -222
- package/dist/components/ui/quick-form-field/quick-form-field.d.ts +6 -4
- package/dist/components/ui/quick-form-field/quick-form-field.js +159 -223
- package/dist/components/ui/quick-form-field/types.cjs +2 -2
- package/dist/components/ui/quick-form-field/types.d.ts +39 -32
- package/dist/components/ui/quick-form-field/types.js +2 -2
- package/dist/components/ui/quick-form-field/utils.cjs +5 -59
- package/dist/components/ui/quick-form-field/utils.d.ts +2 -24
- package/dist/components/ui/quick-form-field/utils.js +3 -48
- 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 +50 -4
- package/dist/index.d.ts +12 -6
- package/dist/index.js +7 -3
- package/dist/lib/date-value.cjs +46 -0
- package/dist/lib/date-value.d.ts +8 -0
- package/dist/lib/date-value.js +12 -0
- package/dist/styles.css +110 -43
- package/dist/tailwind.utilities.css +15 -0
- package/package.json +1 -1
- package/dist/components/custom/chat-first-experience.cjs +0 -87
- package/dist/components/custom/chat-first-experience.d.ts +0 -24
- package/dist/components/custom/chat-first-experience.js +0 -53
- package/dist/components/custom/chat-prompt-suggestions.cjs +0 -49
- package/dist/components/custom/chat-prompt-suggestions.d.ts +0 -18
- package/dist/components/custom/chat-prompt-suggestions.js +0 -15
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { forwardRef, useId } from "react";
|
|
5
|
+
import { cn } from "../../lib/index.js";
|
|
6
|
+
const DEFAULT_PROMPT_SUGGESTIONS_STRINGS = {
|
|
7
|
+
label: 'Suggestions'
|
|
8
|
+
};
|
|
9
|
+
const promptSuggestionsListVariants = cva('flex min-w-0 gap-2', {
|
|
10
|
+
variants: {
|
|
11
|
+
orientation: {
|
|
12
|
+
vertical: 'flex-col items-start',
|
|
13
|
+
horizontal: '-mx-1 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none overflow-x-auto overscroll-x-contain px-1 py-1'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
orientation: 'vertical'
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
const promptSuggestionVariants = cva('inline-flex max-w-full cursor-pointer items-center border border-border-subtle bg-surface-raised text-left font-normal text-foreground transition-colors hover:border-border hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0', {
|
|
21
|
+
variants: {
|
|
22
|
+
density: {
|
|
23
|
+
comfortable: 'gap-2 px-4 py-2 text-sm leading-5 [&_svg]:size-4 rounded-xl',
|
|
24
|
+
compact: 'gap-1.5 px-2 py-1 text-xs leading-4 [&_svg]:size-3.5 rounded-lg'
|
|
25
|
+
},
|
|
26
|
+
orientation: {
|
|
27
|
+
vertical: 'whitespace-normal',
|
|
28
|
+
horizontal: 'flex-none snap-start whitespace-nowrap'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
density: 'comfortable',
|
|
33
|
+
orientation: 'vertical'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const PromptSuggestions = /*#__PURE__*/ forwardRef(({ className, suggestions, onSelect, orientation, density, showLabel = false, animated = false, disabled = false, strings, ...props }, ref)=>{
|
|
37
|
+
const labelId = useId();
|
|
38
|
+
const resolvedOrientation = orientation ?? 'vertical';
|
|
39
|
+
const resolvedDensity = density ?? 'comfortable';
|
|
40
|
+
const text = {
|
|
41
|
+
...DEFAULT_PROMPT_SUGGESTIONS_STRINGS,
|
|
42
|
+
...strings
|
|
43
|
+
};
|
|
44
|
+
if (0 === suggestions.length) return null;
|
|
45
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
46
|
+
ref: ref,
|
|
47
|
+
role: "group",
|
|
48
|
+
"aria-label": showLabel ? void 0 : text.label,
|
|
49
|
+
"aria-labelledby": showLabel ? labelId : void 0,
|
|
50
|
+
"data-slot": "prompt-suggestions",
|
|
51
|
+
"data-orientation": resolvedOrientation,
|
|
52
|
+
"data-density": resolvedDensity,
|
|
53
|
+
className: cn('flex w-full min-w-0 flex-col gap-1', animated && 'animate-slide-in-from-bottom', className),
|
|
54
|
+
...props,
|
|
55
|
+
children: [
|
|
56
|
+
showLabel && /*#__PURE__*/ jsx("div", {
|
|
57
|
+
id: labelId,
|
|
58
|
+
"data-slot": "prompt-suggestions-label",
|
|
59
|
+
className: cn('text-start font-semibold text-foreground', 'compact' === resolvedDensity ? 'text-xs leading-4' : 'text-sm leading-5'),
|
|
60
|
+
children: text.label
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ jsx("div", {
|
|
63
|
+
"data-slot": "prompt-suggestions-list",
|
|
64
|
+
className: promptSuggestionsListVariants({
|
|
65
|
+
orientation: resolvedOrientation
|
|
66
|
+
}),
|
|
67
|
+
children: suggestions.map((suggestion, index)=>/*#__PURE__*/ jsxs("button", {
|
|
68
|
+
type: "button",
|
|
69
|
+
"data-slot": "prompt-suggestion",
|
|
70
|
+
"data-index": index,
|
|
71
|
+
disabled: disabled,
|
|
72
|
+
className: promptSuggestionVariants({
|
|
73
|
+
density: resolvedDensity,
|
|
74
|
+
orientation: resolvedOrientation
|
|
75
|
+
}),
|
|
76
|
+
onClick: ()=>onSelect?.(suggestion),
|
|
77
|
+
children: [
|
|
78
|
+
suggestion.icon,
|
|
79
|
+
/*#__PURE__*/ jsx("span", {
|
|
80
|
+
className: "min-w-0",
|
|
81
|
+
children: suggestion.label
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}, suggestion.id ?? suggestion.label))
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
PromptSuggestions.displayName = 'PromptSuggestions';
|
|
90
|
+
export { DEFAULT_PROMPT_SUGGESTIONS_STRINGS, PromptSuggestions, promptSuggestionVariants, promptSuggestionsListVariants };
|
|
@@ -39,7 +39,7 @@ const ai_assist_action_cjs_namespaceObject = require("../../field-actions/ai-ass
|
|
|
39
39
|
const collapse_cjs_namespaceObject = require("../../field-actions/collapse.cjs");
|
|
40
40
|
const insert_variable_action_cjs_namespaceObject = require("../../field-actions/insert-variable-action.cjs");
|
|
41
41
|
const external_types_cjs_namespaceObject = require("../types.cjs");
|
|
42
|
-
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes = external_types_cjs_namespaceObject.FIELD_TYPE_ORDER, onFieldTypeChange, onRequiredChange, compact, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions }) {
|
|
42
|
+
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes = external_types_cjs_namespaceObject.FIELD_TYPE_ORDER, onFieldTypeChange, onRequiredChange, compact, disabled, isExpression, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions }) {
|
|
43
43
|
const [pickerItems, optionsBySelectionId] = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
44
44
|
const byId = new Map();
|
|
45
45
|
const toItem = (v, id)=>{
|
|
@@ -97,7 +97,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
97
97
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("button", {
|
|
98
98
|
type: "button",
|
|
99
99
|
"aria-label": strings.fieldTypeAriaLabel,
|
|
100
|
-
|
|
100
|
+
disabled: disabled,
|
|
101
|
+
className: (0, index_cjs_namespaceObject.cn)('flex h-7 items-center gap-1 rounded-lg px-2 text-[11px] text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground disabled:pointer-events-none disabled:opacity-50', collapsedPaddingClass),
|
|
101
102
|
children: [
|
|
102
103
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(typeMeta.icon, {
|
|
103
104
|
size: 12
|
|
@@ -155,6 +156,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
155
156
|
size: "sm",
|
|
156
157
|
checked: !!required,
|
|
157
158
|
onCheckedChange: onRequiredChange,
|
|
159
|
+
disabled: disabled,
|
|
158
160
|
className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
|
|
159
161
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel
|
|
160
162
|
})
|
|
@@ -179,7 +181,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
179
181
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
180
182
|
type: "button",
|
|
181
183
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel,
|
|
182
|
-
|
|
184
|
+
disabled: disabled,
|
|
185
|
+
className: "grid size-7 place-items-center rounded-lg text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground disabled:pointer-events-none disabled:opacity-50",
|
|
183
186
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Asterisk, {
|
|
184
187
|
size: 12
|
|
185
188
|
})
|
|
@@ -205,6 +208,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
205
208
|
size: "sm",
|
|
206
209
|
checked: !!required,
|
|
207
210
|
onCheckedChange: onRequiredChange,
|
|
211
|
+
disabled: disabled,
|
|
208
212
|
className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
|
|
209
213
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel
|
|
210
214
|
})
|
|
@@ -220,7 +224,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
220
224
|
children: [
|
|
221
225
|
onGenerateWithAi && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ai_assist_action_cjs_namespaceObject.AiAssistAction, {
|
|
222
226
|
onGenerate: onGenerateWithAi,
|
|
223
|
-
|
|
227
|
+
disabled: disabled,
|
|
228
|
+
hint: strings.aiOutputHint(strings.aiOutputLabel(typeLabel, isExpression)),
|
|
224
229
|
strings: {
|
|
225
230
|
trigger: strings.aiAssistAriaLabel,
|
|
226
231
|
tooltip: strings.aiAssistTooltip,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { QuickFieldType, QuickFormFieldOption, QuickFormFieldStrings } from '../types';
|
|
3
|
-
export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes, onFieldTypeChange, onRequiredChange, compact, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions, }: {
|
|
3
|
+
export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes, onFieldTypeChange, onRequiredChange, compact, disabled, isExpression, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions, }: {
|
|
4
4
|
label?: ReactNode;
|
|
5
5
|
fieldId: string;
|
|
6
6
|
fieldLabel: string;
|
|
@@ -11,6 +11,9 @@ export declare function FieldHeader({ label, fieldId, fieldLabel, required, fiel
|
|
|
11
11
|
onFieldTypeChange?: (fieldType: QuickFieldType) => void;
|
|
12
12
|
onRequiredChange?: (required: boolean) => void;
|
|
13
13
|
compact?: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
/** Whether the AI output is described as an expression rather than a value. */
|
|
16
|
+
isExpression: boolean;
|
|
14
17
|
showFieldActions: boolean;
|
|
15
18
|
onValueChange?: (value: string) => void;
|
|
16
19
|
variables: QuickFormFieldOption[];
|
|
@@ -11,7 +11,7 @@ import { AiAssistAction } from "../../field-actions/ai-assist-action.js";
|
|
|
11
11
|
import { COLLAPSED_HIDDEN, COLLAPSED_ICON_PADDING, COLLAPSED_ONLY } from "../../field-actions/collapse.js";
|
|
12
12
|
import { InsertVariableAction } from "../../field-actions/insert-variable-action.js";
|
|
13
13
|
import { FIELD_TYPE_META, FIELD_TYPE_ORDER } from "../types.js";
|
|
14
|
-
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes = FIELD_TYPE_ORDER, onFieldTypeChange, onRequiredChange, compact, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions }) {
|
|
14
|
+
function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTypes = FIELD_TYPE_ORDER, onFieldTypeChange, onRequiredChange, compact, disabled, isExpression, showFieldActions, onValueChange, variables, onGenerateWithAi, onInsertVariable, strings, headerActions }) {
|
|
15
15
|
const [pickerItems, optionsBySelectionId] = useMemo(()=>{
|
|
16
16
|
const byId = new Map();
|
|
17
17
|
const toItem = (v, id)=>{
|
|
@@ -69,7 +69,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
69
69
|
children: /*#__PURE__*/ jsxs("button", {
|
|
70
70
|
type: "button",
|
|
71
71
|
"aria-label": strings.fieldTypeAriaLabel,
|
|
72
|
-
|
|
72
|
+
disabled: disabled,
|
|
73
|
+
className: cn('flex h-7 items-center gap-1 rounded-lg px-2 text-[11px] text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground disabled:pointer-events-none disabled:opacity-50', collapsedPaddingClass),
|
|
73
74
|
children: [
|
|
74
75
|
/*#__PURE__*/ jsx(typeMeta.icon, {
|
|
75
76
|
size: 12
|
|
@@ -127,6 +128,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
127
128
|
size: "sm",
|
|
128
129
|
checked: !!required,
|
|
129
130
|
onCheckedChange: onRequiredChange,
|
|
131
|
+
disabled: disabled,
|
|
130
132
|
className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
|
|
131
133
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel
|
|
132
134
|
})
|
|
@@ -151,7 +153,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
151
153
|
children: /*#__PURE__*/ jsx("button", {
|
|
152
154
|
type: "button",
|
|
153
155
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel,
|
|
154
|
-
|
|
156
|
+
disabled: disabled,
|
|
157
|
+
className: "grid size-7 place-items-center rounded-lg text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground disabled:pointer-events-none disabled:opacity-50",
|
|
155
158
|
children: /*#__PURE__*/ jsx(Asterisk, {
|
|
156
159
|
size: 12
|
|
157
160
|
})
|
|
@@ -177,6 +180,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
177
180
|
size: "sm",
|
|
178
181
|
checked: !!required,
|
|
179
182
|
onCheckedChange: onRequiredChange,
|
|
183
|
+
disabled: disabled,
|
|
180
184
|
className: "data-[state=checked]:bg-brand data-[state=unchecked]:bg-foreground-subtle",
|
|
181
185
|
"aria-label": required ? strings.requiredAriaLabel : strings.optionalAriaLabel
|
|
182
186
|
})
|
|
@@ -192,7 +196,8 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, fieldTyp
|
|
|
192
196
|
children: [
|
|
193
197
|
onGenerateWithAi && /*#__PURE__*/ jsx(AiAssistAction, {
|
|
194
198
|
onGenerate: onGenerateWithAi,
|
|
195
|
-
|
|
199
|
+
disabled: disabled,
|
|
200
|
+
hint: strings.aiOutputHint(strings.aiOutputLabel(typeLabel, isExpression)),
|
|
196
201
|
strings: {
|
|
197
202
|
trigger: strings.aiAssistAriaLabel,
|
|
198
203
|
tooltip: strings.aiAssistTooltip,
|
|
@@ -30,8 +30,8 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
30
30
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
31
31
|
const external_input_group_cjs_namespaceObject = require("../../input-group.cjs");
|
|
32
32
|
const external_tooltip_cjs_namespaceObject = require("../../tooltip.cjs");
|
|
33
|
-
function LockToggleButton({ locked, onLockedChange, strings }) {
|
|
34
|
-
const interactive = !!onLockedChange;
|
|
33
|
+
function LockToggleButton({ locked, onLockedChange, disabled, strings }) {
|
|
34
|
+
const interactive = !!onLockedChange && !disabled;
|
|
35
35
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_tooltip_cjs_namespaceObject.TooltipProvider, {
|
|
36
36
|
delayDuration: 300,
|
|
37
37
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_tooltip_cjs_namespaceObject.Tooltip, {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { QuickFormFieldStrings } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
* The lock/unlock toggle
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The lock/unlock toggle in the field's leading addon. Disabled (and its label
|
|
4
|
+
* adjusted) with the field, or when onLockedChange isn't provided, since
|
|
5
|
+
* clicking it wouldn't do anything otherwise.
|
|
6
6
|
*/
|
|
7
|
-
export declare function LockToggleButton({ locked, onLockedChange, strings, }: {
|
|
7
|
+
export declare function LockToggleButton({ locked, onLockedChange, disabled, strings, }: {
|
|
8
8
|
locked: boolean;
|
|
9
9
|
onLockedChange?: (locked: boolean) => void;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
/** See QuickFormFieldStrings. */
|
|
11
12
|
strings: QuickFormFieldStrings;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { LockKeyhole, LockKeyholeOpen } from "lucide-react";
|
|
3
3
|
import { InputGroupButton } from "../../input-group.js";
|
|
4
4
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../tooltip.js";
|
|
5
|
-
function LockToggleButton({ locked, onLockedChange, strings }) {
|
|
6
|
-
const interactive = !!onLockedChange;
|
|
5
|
+
function LockToggleButton({ locked, onLockedChange, disabled, strings }) {
|
|
6
|
+
const interactive = !!onLockedChange && !disabled;
|
|
7
7
|
return /*#__PURE__*/ jsx(TooltipProvider, {
|
|
8
8
|
delayDuration: 300,
|
|
9
9
|
children: /*#__PURE__*/ jsxs(Tooltip, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { QuickFormField } from './quick-form-field';
|
|
2
|
-
export type { QuickFieldType, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './types';
|
|
2
|
+
export type { QuickFieldType, QuickFormFieldControlProps, QuickFormFieldMode, QuickFormFieldMoreActions, QuickFormFieldOption, QuickFormFieldProps, QuickFormFieldStrings, VariableInsertContext, } from './types';
|
|
3
3
|
export { DEFAULT_QUICK_FORM_FIELD_STRINGS, FIELD_TYPE_META, FIELD_TYPE_ORDER } from './types';
|