@uipath/apollo-wind 2.38.0 → 2.40.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.
@@ -31,22 +31,25 @@ const external_lucide_react_namespaceObject = require("lucide-react");
31
31
  const external_react_namespaceObject = require("react");
32
32
  const accordion_cjs_namespaceObject = require("../ui/accordion.cjs");
33
33
  const input_cjs_namespaceObject = require("../ui/input.cjs");
34
+ const label_cjs_namespaceObject = require("../ui/label.cjs");
34
35
  const select_cjs_namespaceObject = require("../ui/select.cjs");
35
36
  const typography_cjs_namespaceObject = require("../../foundation/Future/typography.cjs");
36
37
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
37
38
  function FieldItem({ field, onGraphControl }) {
38
39
  const [value, setValue] = external_react_namespaceObject.useState(field.value ?? '');
40
+ const inputId = external_react_namespaceObject.useId();
39
41
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
40
42
  className: "flex flex-col gap-1 pt-4",
41
43
  children: [
42
44
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
43
45
  className: "flex items-center justify-between",
44
46
  children: [
45
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
47
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(label_cjs_namespaceObject.Label, {
48
+ htmlFor: inputId,
46
49
  className: "text-sm font-medium leading-5 text-foreground-muted",
47
50
  children: [
48
51
  field.label,
49
- field.required && '*'
52
+ field.required && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(label_cjs_namespaceObject.RequiredIndicator, {})
50
53
  ]
51
54
  }),
52
55
  field.showGraphControl && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
@@ -65,7 +68,8 @@ function FieldItem({ field, onGraphControl }) {
65
68
  onValueChange: setValue,
66
69
  children: [
67
70
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectTrigger, {
68
- "aria-label": field.label,
71
+ "aria-required": field.required,
72
+ id: inputId,
69
73
  className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
70
74
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(select_cjs_namespaceObject.SelectValue, {
71
75
  placeholder: field.placeholder ?? 'Select...'
@@ -84,6 +88,8 @@ function FieldItem({ field, onGraphControl }) {
84
88
  className: "flex h-10 w-full items-center overflow-hidden rounded-xl bg-surface-overlay shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
85
89
  children: [
86
90
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
91
+ "aria-required": field.required,
92
+ id: inputId,
87
93
  value: value,
88
94
  onChange: (e)=>setValue(e.target.value),
89
95
  placeholder: field.placeholder,
@@ -99,6 +105,8 @@ function FieldItem({ field, onGraphControl }) {
99
105
  })
100
106
  ]
101
107
  }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Input, {
108
+ "aria-required": field.required,
109
+ id: inputId,
102
110
  value: value,
103
111
  onChange: (e)=>setValue(e.target.value),
104
112
  placeholder: field.placeholder
@@ -1,24 +1,27 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Copy, FileJson, Folder, Redo2, RefreshCw, Settings2, Undo2, Variable, Webhook, X } from "lucide-react";
3
- import { useState } from "react";
3
+ import { useId, useState } from "react";
4
4
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../ui/accordion.js";
5
5
  import { Input } from "../ui/input.js";
6
+ import { Label, RequiredIndicator } from "../ui/label.js";
6
7
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
7
8
  import { fontFamily } from "../../foundation/Future/typography.js";
8
9
  import { cn } from "../../lib/index.js";
9
10
  function FieldItem({ field, onGraphControl }) {
10
11
  const [value, setValue] = useState(field.value ?? '');
12
+ const inputId = useId();
11
13
  return /*#__PURE__*/ jsxs("div", {
12
14
  className: "flex flex-col gap-1 pt-4",
13
15
  children: [
14
16
  /*#__PURE__*/ jsxs("div", {
15
17
  className: "flex items-center justify-between",
16
18
  children: [
17
- /*#__PURE__*/ jsxs("span", {
19
+ /*#__PURE__*/ jsxs(Label, {
20
+ htmlFor: inputId,
18
21
  className: "text-sm font-medium leading-5 text-foreground-muted",
19
22
  children: [
20
23
  field.label,
21
- field.required && '*'
24
+ field.required && /*#__PURE__*/ jsx(RequiredIndicator, {})
22
25
  ]
23
26
  }),
24
27
  field.showGraphControl && /*#__PURE__*/ jsx("button", {
@@ -37,7 +40,8 @@ function FieldItem({ field, onGraphControl }) {
37
40
  onValueChange: setValue,
38
41
  children: [
39
42
  /*#__PURE__*/ jsx(SelectTrigger, {
40
- "aria-label": field.label,
43
+ "aria-required": field.required,
44
+ id: inputId,
41
45
  className: "h-10 rounded-xl border-0 bg-surface-overlay text-foreground shadow-sm placeholder:text-foreground-muted",
42
46
  children: /*#__PURE__*/ jsx(SelectValue, {
43
47
  placeholder: field.placeholder ?? 'Select...'
@@ -56,6 +60,8 @@ function FieldItem({ field, onGraphControl }) {
56
60
  className: "flex h-10 w-full items-center overflow-hidden rounded-xl bg-surface-overlay shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 focus-within:ring-offset-background",
57
61
  children: [
58
62
  /*#__PURE__*/ jsx(Input, {
63
+ "aria-required": field.required,
64
+ id: inputId,
59
65
  value: value,
60
66
  onChange: (e)=>setValue(e.target.value),
61
67
  placeholder: field.placeholder,
@@ -71,6 +77,8 @@ function FieldItem({ field, onGraphControl }) {
71
77
  })
72
78
  ]
73
79
  }) : /*#__PURE__*/ jsx(Input, {
80
+ "aria-required": field.required,
81
+ id: inputId,
74
82
  value: value,
75
83
  onChange: (e)=>setValue(e.target.value),
76
84
  placeholder: field.placeholder
@@ -27,19 +27,19 @@ var __webpack_modules__ = {
27
27
  "@/components/ui/button" (module) {
28
28
  module.exports = require("./button.cjs");
29
29
  },
30
- "./calendar" (module) {
30
+ "@/components/ui/calendar" (module) {
31
31
  module.exports = require("./calendar.cjs");
32
32
  },
33
- "@/components/ui/card" (module) {
33
+ "./card" (module) {
34
34
  module.exports = require("./card.cjs");
35
35
  },
36
36
  "./chart" (module) {
37
37
  module.exports = require("./chart.cjs");
38
38
  },
39
- "@/components/ui/checkbox" (module) {
39
+ "./checkbox" (module) {
40
40
  module.exports = require("./checkbox.cjs");
41
41
  },
42
- "@/components/ui/collapsible" (module) {
42
+ "./collapsible" (module) {
43
43
  module.exports = require("./collapsible.cjs");
44
44
  },
45
45
  "./combobox" (module) {
@@ -48,7 +48,7 @@ var __webpack_modules__ = {
48
48
  "@/components/ui/command" (module) {
49
49
  module.exports = require("./command.cjs");
50
50
  },
51
- "@/components/ui/context-menu" (module) {
51
+ "./context-menu" (module) {
52
52
  module.exports = require("./context-menu.cjs");
53
53
  },
54
54
  "./data-table" (module) {
@@ -66,10 +66,10 @@ var __webpack_modules__ = {
66
66
  "./drawer" (module) {
67
67
  module.exports = require("./drawer.cjs");
68
68
  },
69
- "@/components/ui/dropdown-menu" (module) {
69
+ "./dropdown-menu" (module) {
70
70
  module.exports = require("./dropdown-menu.cjs");
71
71
  },
72
- "@/components/ui/editable-cell" (module) {
72
+ "./editable-cell" (module) {
73
73
  module.exports = require("./editable-cell.cjs");
74
74
  },
75
75
  "./empty-state" (module) {
@@ -87,7 +87,7 @@ var __webpack_modules__ = {
87
87
  "./input" (module) {
88
88
  module.exports = require("./input.cjs");
89
89
  },
90
- "./label" (module) {
90
+ "@/components/ui/label" (module) {
91
91
  module.exports = require("./label.cjs");
92
92
  },
93
93
  "./layout" (module) {
@@ -105,7 +105,7 @@ var __webpack_modules__ = {
105
105
  "@/components/ui/popover" (module) {
106
106
  module.exports = require("./popover.cjs");
107
107
  },
108
- "./portal-container" (module) {
108
+ "@/components/ui/portal-container" (module) {
109
109
  module.exports = require("./portal-container.cjs");
110
110
  },
111
111
  "./progress" (module) {
@@ -162,7 +162,7 @@ var __webpack_modules__ = {
162
162
  "./tabs" (module) {
163
163
  module.exports = require("./tabs.cjs");
164
164
  },
165
- "@/components/ui/textarea" (module) {
165
+ "./textarea" (module) {
166
166
  module.exports = require("./textarea.cjs");
167
167
  },
168
168
  "./toggle-group" (module) {
@@ -290,14 +290,14 @@ var __webpack_exports__ = {};
290
290
  "default"
291
291
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_button_group__rspack_import_8[__rspack_import_key];
292
292
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
293
- var _calendar__rspack_import_9 = __webpack_require__("./calendar");
293
+ var _calendar__rspack_import_9 = __webpack_require__("@/components/ui/calendar");
294
294
  var __rspack_reexport = {};
295
295
  for(const __rspack_import_key in _calendar__rspack_import_9)if ([
296
296
  "TreeView",
297
297
  "default"
298
298
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_9[__rspack_import_key];
299
299
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
300
- var _card__rspack_import_10 = __webpack_require__("@/components/ui/card");
300
+ var _card__rspack_import_10 = __webpack_require__("./card");
301
301
  var __rspack_reexport = {};
302
302
  for(const __rspack_import_key in _card__rspack_import_10)if ([
303
303
  "TreeView",
@@ -311,14 +311,14 @@ var __webpack_exports__ = {};
311
311
  "default"
312
312
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_chart__rspack_import_11[__rspack_import_key];
313
313
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
314
- var _checkbox__rspack_import_12 = __webpack_require__("@/components/ui/checkbox");
314
+ var _checkbox__rspack_import_12 = __webpack_require__("./checkbox");
315
315
  var __rspack_reexport = {};
316
316
  for(const __rspack_import_key in _checkbox__rspack_import_12)if ([
317
317
  "TreeView",
318
318
  "default"
319
319
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_12[__rspack_import_key];
320
320
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
321
- var _collapsible__rspack_import_13 = __webpack_require__("@/components/ui/collapsible");
321
+ var _collapsible__rspack_import_13 = __webpack_require__("./collapsible");
322
322
  var __rspack_reexport = {};
323
323
  for(const __rspack_import_key in _collapsible__rspack_import_13)if ([
324
324
  "TreeView",
@@ -339,7 +339,7 @@ var __webpack_exports__ = {};
339
339
  "default"
340
340
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_15[__rspack_import_key];
341
341
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
342
- var _context_menu__rspack_import_16 = __webpack_require__("@/components/ui/context-menu");
342
+ var _context_menu__rspack_import_16 = __webpack_require__("./context-menu");
343
343
  var __rspack_reexport = {};
344
344
  for(const __rspack_import_key in _context_menu__rspack_import_16)if ([
345
345
  "TreeView",
@@ -381,14 +381,14 @@ var __webpack_exports__ = {};
381
381
  "default"
382
382
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_drawer__rspack_import_21[__rspack_import_key];
383
383
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
384
- var _dropdown_menu__rspack_import_22 = __webpack_require__("@/components/ui/dropdown-menu");
384
+ var _dropdown_menu__rspack_import_22 = __webpack_require__("./dropdown-menu");
385
385
  var __rspack_reexport = {};
386
386
  for(const __rspack_import_key in _dropdown_menu__rspack_import_22)if ([
387
387
  "TreeView",
388
388
  "default"
389
389
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_22[__rspack_import_key];
390
390
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
391
- var _editable_cell__rspack_import_23 = __webpack_require__("@/components/ui/editable-cell");
391
+ var _editable_cell__rspack_import_23 = __webpack_require__("./editable-cell");
392
392
  var __rspack_reexport = {};
393
393
  for(const __rspack_import_key in _editable_cell__rspack_import_23)if ([
394
394
  "TreeView",
@@ -430,7 +430,7 @@ var __webpack_exports__ = {};
430
430
  "default"
431
431
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input_group__rspack_import_28[__rspack_import_key];
432
432
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
433
- var _label__rspack_import_29 = __webpack_require__("./label");
433
+ var _label__rspack_import_29 = __webpack_require__("@/components/ui/label");
434
434
  var __rspack_reexport = {};
435
435
  for(const __rspack_import_key in _label__rspack_import_29)if ([
436
436
  "TreeView",
@@ -472,7 +472,7 @@ var __webpack_exports__ = {};
472
472
  "default"
473
473
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_popover__rspack_import_34[__rspack_import_key];
474
474
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
475
- var _portal_container__rspack_import_35 = __webpack_require__("./portal-container");
475
+ var _portal_container__rspack_import_35 = __webpack_require__("@/components/ui/portal-container");
476
476
  var __rspack_reexport = {};
477
477
  for(const __rspack_import_key in _portal_container__rspack_import_35)if ([
478
478
  "TreeView",
@@ -605,7 +605,7 @@ var __webpack_exports__ = {};
605
605
  "default"
606
606
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_tabs__rspack_import_53[__rspack_import_key];
607
607
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
608
- var _textarea__rspack_import_54 = __webpack_require__("@/components/ui/textarea");
608
+ var _textarea__rspack_import_54 = __webpack_require__("./textarea");
609
609
  var __rspack_reexport = {};
610
610
  for(const __rspack_import_key in _textarea__rspack_import_54)if ([
611
611
  "TreeView",
@@ -32,7 +32,7 @@ const react_label_namespaceObject = require("@radix-ui/react-label");
32
32
  const external_class_variance_authority_namespaceObject = require("class-variance-authority");
33
33
  const external_react_namespaceObject = require("react");
34
34
  const index_cjs_namespaceObject = require("../../lib/index.cjs");
35
- const labelVariants = (0, external_class_variance_authority_namespaceObject.cva)('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
35
+ const labelVariants = (0, external_class_variance_authority_namespaceObject.cva)('text-xs font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
36
36
  const Label = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_label_namespaceObject.Root, {
37
37
  ref: ref,
38
38
  "data-slot": "label",
@@ -43,7 +43,7 @@ Label.displayName = react_label_namespaceObject.Root.displayName;
43
43
  const RequiredIndicator = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
44
44
  ref: ref,
45
45
  ...props,
46
- className: (0, index_cjs_namespaceObject.cn)('ml-0.5 text-current', className),
46
+ className: (0, index_cjs_namespaceObject.cn)('ml-0.5', className, 'text-foreground'),
47
47
  children: [
48
48
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
49
49
  "aria-hidden": "true",
@@ -9,7 +9,7 @@ export interface RequiredIndicatorProps extends Omit<React.HTMLAttributes<HTMLSp
9
9
  /**
10
10
  * Marks a field as required. Place it right after the label text.
11
11
  *
12
- * Uses `text-current` rather than an error/destructive color: an untouched
12
+ * Uses the foreground color rather than an error/destructive color: an untouched
13
13
  * required field isn't in an error state, so coloring the asterisk red reads
14
14
  * as a validation failure before the person has done anything. The asterisk
15
15
  * glyph is `aria-hidden` since it's a visual affordance, not the thing that
@@ -3,7 +3,7 @@ import { Root } from "@radix-ui/react-label";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { forwardRef } from "react";
5
5
  import { cn } from "../../lib/index.js";
6
- const labelVariants = cva('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
6
+ const labelVariants = cva('text-xs font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70');
7
7
  const Label = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
8
8
  ref: ref,
9
9
  "data-slot": "label",
@@ -14,7 +14,7 @@ Label.displayName = Root.displayName;
14
14
  const RequiredIndicator = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsxs("span", {
15
15
  ref: ref,
16
16
  ...props,
17
- className: cn('ml-0.5 text-current', className),
17
+ className: cn('ml-0.5', className, 'text-foreground'),
18
18
  children: [
19
19
  /*#__PURE__*/ jsx("span", {
20
20
  "aria-hidden": "true",
@@ -39,7 +39,7 @@ const external_tooltip_cjs_namespaceObject = require("../../tooltip.cjs");
39
39
  const index_cjs_namespaceObject = require("../../variable-picker/index.cjs");
40
40
  const external_lib_index_cjs_namespaceObject = require("../../../../lib/index.cjs");
41
41
  const external_types_cjs_namespaceObject = require("../types.cjs");
42
- function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, controlsVisibility, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
42
+ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
43
43
  const promptId = (0, external_react_namespaceObject.useId)();
44
44
  const [aiPrompt, setAiPrompt] = (0, external_react_namespaceObject.useState)('');
45
45
  const typeMeta = external_types_cjs_namespaceObject.FIELD_TYPE_META[fieldType];
@@ -63,7 +63,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
63
63
  className: "ml-auto flex items-center gap-0.5",
64
64
  children: [
65
65
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
66
- className: (0, external_lib_index_cjs_namespaceObject.cn)('flex items-center gap-0.5', 'hover' === controlsVisibility && 'opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 has-[[aria-expanded=true]]:opacity-100'),
66
+ className: "flex items-center gap-0.5",
67
67
  children: [
68
68
  onFieldTypeChange && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_dropdown_menu_cjs_namespaceObject.DropdownMenu, {
69
69
  children: [
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { LockableFieldType, LockableValueFieldOption } from '../types';
3
- export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, controlsVisibility, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions, }: {
3
+ export declare function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions, }: {
4
4
  label?: ReactNode;
5
5
  fieldId: string;
6
6
  fieldLabel: string;
@@ -8,7 +8,6 @@ export declare function FieldHeader({ label, fieldId, fieldLabel, required, fiel
8
8
  fieldType: LockableFieldType;
9
9
  onFieldTypeChange?: (fieldType: LockableFieldType) => void;
10
10
  onRequiredChange?: (required: boolean) => void;
11
- controlsVisibility: 'visible' | 'hover';
12
11
  compact?: boolean;
13
12
  showFieldActions: boolean;
14
13
  value: string;
@@ -11,7 +11,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../
11
11
  import { VariablePicker } from "../../variable-picker/index.js";
12
12
  import { cn } from "../../../../lib/index.js";
13
13
  import { FIELD_TYPE_META, FIELD_TYPE_ORDER } from "../types.js";
14
- function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, controlsVisibility, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
14
+ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldTypeChange, onRequiredChange, compact, showFieldActions, value, onValueChange, variables, onGenerateWithAi, headerActions }) {
15
15
  const promptId = useId();
16
16
  const [aiPrompt, setAiPrompt] = useState('');
17
17
  const typeMeta = FIELD_TYPE_META[fieldType];
@@ -35,7 +35,7 @@ function FieldHeader({ label, fieldId, fieldLabel, required, fieldType, onFieldT
35
35
  className: "ml-auto flex items-center gap-0.5",
36
36
  children: [
37
37
  /*#__PURE__*/ jsxs("div", {
38
- className: cn('flex items-center gap-0.5', 'hover' === controlsVisibility && 'opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 has-[[aria-expanded=true]]:opacity-100'),
38
+ className: "flex items-center gap-0.5",
39
39
  children: [
40
40
  onFieldTypeChange && /*#__PURE__*/ jsxs(DropdownMenu, {
41
41
  children: [
@@ -44,7 +44,7 @@ const lock_toggle_button_cjs_namespaceObject = require("./components/lock-toggle
44
44
  const mode_menu_item_cjs_namespaceObject = require("./components/mode-menu-item.cjs");
45
45
  const external_types_cjs_namespaceObject = require("./types.cjs");
46
46
  const external_utils_cjs_namespaceObject = require("./utils.cjs");
47
- function LockableValueField({ value = '', onValueChange, onValueBlur, locked = true, onLockedChange, leadingAddon, trailingAddon, mode = 'fixed', onModeChange, renderExpressionEditor, fieldType = 'string', onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, controlsVisibility = 'visible', showFieldActions = true, options = external_utils_cjs_namespaceObject.DEFAULT_SELECT_OPTIONS, onGenerateWithAi, variables = [], id, className }) {
47
+ function LockableValueField({ value = '', onValueChange, onValueBlur, locked = true, onLockedChange, leadingAddon, trailingAddon, mode = 'fixed', onModeChange, renderExpressionEditor, fieldType = 'string', onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, showFieldActions = true, options = external_utils_cjs_namespaceObject.DEFAULT_SELECT_OPTIONS, onGenerateWithAi, variables = [], id, className }) {
48
48
  const generatedId = (0, external_react_namespaceObject.useId)().replace(/:/g, '');
49
49
  const [datePopoverOpen, setDatePopoverOpen] = (0, external_react_namespaceObject.useState)(false);
50
50
  const [selectOpen, setSelectOpen] = (0, external_react_namespaceObject.useState)(false);
@@ -68,7 +68,6 @@ function LockableValueField({ value = '', onValueChange, onValueBlur, locked = t
68
68
  fieldType: fieldType,
69
69
  onFieldTypeChange: onFieldTypeChange,
70
70
  onRequiredChange: onRequiredChange,
71
- controlsVisibility: controlsVisibility,
72
71
  compact: compact,
73
72
  showFieldActions: showFieldActions,
74
73
  value: value,
@@ -11,4 +11,4 @@ import type { LockableValueFieldProps } from './types';
11
11
  * Insert-variable menu is empty (and disabled) unless `variables` is
12
12
  * provided; file uploads aren't persisted anywhere.
13
13
  */
14
- export declare function LockableValueField({ value, onValueChange, onValueBlur, locked, onLockedChange, leadingAddon, trailingAddon, mode, onModeChange, renderExpressionEditor, fieldType, onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, controlsVisibility, showFieldActions, options, onGenerateWithAi, variables, id, className, }: LockableValueFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function LockableValueField({ value, onValueChange, onValueBlur, locked, onLockedChange, leadingAddon, trailingAddon, mode, onModeChange, renderExpressionEditor, fieldType, onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, showFieldActions, options, onGenerateWithAi, variables, id, className, }: LockableValueFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -16,7 +16,7 @@ import { LockToggleButton } from "./components/lock-toggle-button.js";
16
16
  import { ModeMenuItem } from "./components/mode-menu-item.js";
17
17
  import { FIELD_TYPE_META } from "./types.js";
18
18
  import { DEFAULT_SELECT_OPTIONS, formatDateValue, getLockedDisplayValue, parseDateValue, parseListValue, toDateOnlyString } from "./utils.js";
19
- function LockableValueField({ value = '', onValueChange, onValueBlur, locked = true, onLockedChange, leadingAddon, trailingAddon, mode = 'fixed', onModeChange, renderExpressionEditor, fieldType = 'string', onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, controlsVisibility = 'visible', showFieldActions = true, options = DEFAULT_SELECT_OPTIONS, onGenerateWithAi, variables = [], id, className }) {
19
+ function LockableValueField({ value = '', onValueChange, onValueBlur, locked = true, onLockedChange, leadingAddon, trailingAddon, mode = 'fixed', onModeChange, renderExpressionEditor, fieldType = 'string', onFieldTypeChange, required, onRequiredChange, label, error, errorId, belowValue, fileUploadAriaLabel, headerActions, compact, showFieldActions = true, options = DEFAULT_SELECT_OPTIONS, onGenerateWithAi, variables = [], id, className }) {
20
20
  const generatedId = useId().replace(/:/g, '');
21
21
  const [datePopoverOpen, setDatePopoverOpen] = useState(false);
22
22
  const [selectOpen, setSelectOpen] = useState(false);
@@ -40,7 +40,6 @@ function LockableValueField({ value = '', onValueChange, onValueBlur, locked = t
40
40
  fieldType: fieldType,
41
41
  onFieldTypeChange: onFieldTypeChange,
42
42
  onRequiredChange: onRequiredChange,
43
- controlsVisibility: controlsVisibility,
44
43
  compact: compact,
45
44
  showFieldActions: showFieldActions,
46
45
  value: value,
@@ -80,7 +80,7 @@ export interface LockableValueFieldProps {
80
80
  headerActions?: ReactNode;
81
81
  /** Forces the header row into its narrow-container icon-only layout, regardless of actual width. For demos/comparisons. */
82
82
  compact?: boolean;
83
- /** Whether the field-type, AI-assist, and insert-variable controls are always shown or only on hover. Defaults to 'visible'. */
83
+ /** @deprecated Controls are always visible. Retained as a no-op for backwards compatibility. */
84
84
  controlsVisibility?: 'visible' | 'hover';
85
85
  /** Whether the AI-assist and Insert-variable actions render at all. Set to false for read-only reviewer contexts where field configuration isn't editable. Defaults to true. */
86
86
  showFieldActions?: boolean;
package/dist/styles.css CHANGED
@@ -3619,9 +3619,6 @@
3619
3619
  .\!px-1\.5 {
3620
3620
  padding-inline: calc(var(--spacing) * 1.5) !important;
3621
3621
  }
3622
- .\!px-2\.5 {
3623
- padding-inline: calc(var(--spacing) * 2.5) !important;
3624
- }
3625
3622
  .\[padding-inline\:var\(--mf-content-inset\,0px\)\] {
3626
3623
  padding-inline: var(--mf-content-inset,0px);
3627
3624
  }
@@ -3856,10 +3853,6 @@
3856
3853
  .font-sans {
3857
3854
  font-family: var(--font-sans);
3858
3855
  }
3859
- .\!text-xs {
3860
- font-size: var(--text-xs) !important;
3861
- line-height: var(--tw-leading, var(--text-xs--line-height)) !important;
3862
- }
3863
3856
  .text-2xl {
3864
3857
  font-size: var(--text-2xl);
3865
3858
  line-height: var(--tw-leading, var(--text-2xl--line-height));
@@ -4532,11 +4525,6 @@
4532
4525
  rotate: 90deg;
4533
4526
  }
4534
4527
  }
4535
- .group-focus-within\:opacity-100 {
4536
- &:is(:where(.group):focus-within *) {
4537
- opacity: 100%;
4538
- }
4539
- }
4540
4528
  .group-focus-within\/input\:bg-foreground-accent {
4541
4529
  &:is(:where(.group\/input):focus-within *) {
4542
4530
  background-color: var(--foreground-accent);
@@ -5614,11 +5602,6 @@
5614
5602
  }
5615
5603
  }
5616
5604
  }
5617
- .has-\[\[aria-expanded\=true\]\]\:opacity-100 {
5618
- &:has(*:is([aria-expanded=true])) {
5619
- opacity: 100%;
5620
- }
5621
- }
5622
5605
  .has-\[\[data-slot\=input-group-control\]\:disabled\]\:cursor-not-allowed {
5623
5606
  &:has(*:is([data-slot=input-group-control]:disabled)) {
5624
5607
  cursor: not-allowed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.38.0",
3
+ "version": "2.40.0",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",