@box/blueprint-web 17.13.1 → 17.14.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.
@@ -92,6 +92,7 @@ const RootInner = ({
92
92
  idForLabel,
93
93
  displaySingleSelectionAsChip = multiselect,
94
94
  autoComplete,
95
+ virtualFocus = false,
95
96
  ...comboboxProps
96
97
  } = rest;
97
98
  const isInput = useMemo(() => as === 'input', [as]);
@@ -119,7 +120,7 @@ const RootInner = ({
119
120
  open: open && !disabled,
120
121
  setOpen: onOpenChange,
121
122
  includesBaseElement: true,
122
- virtualFocus: false,
123
+ virtualFocus,
123
124
  focusLoop
124
125
  });
125
126
  const {
@@ -209,6 +209,13 @@ export interface ComboboxBaseProps<Multiple extends boolean, FreeInput extends b
209
209
  * @default true
210
210
  */
211
211
  focusLoop?: boolean;
212
+ /**
213
+ * When set to `true`, arrow keys highlight options with `aria-activedescendant` and keyboard focus
214
+ * stays on the input, so navigating the list never blurs the field. Useful when the input validates
215
+ * or reacts to losing focus. When `false`, DOM focus moves onto the options themselves.
216
+ * @default false
217
+ */
218
+ virtualFocus?: boolean;
212
219
  /**
213
220
  * Callback used when combobox input/textarea is focused
214
221
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "17.13.1",
3
+ "version": "17.14.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "@ariakit/react": "0.4.21",
57
57
  "@ariakit/react-core": "0.4.21",
58
- "@box/blueprint-web-assets": "^5.10.18",
58
+ "@box/blueprint-web-assets": "^5.10.20",
59
59
  "@internationalized/date": "^3.12.0",
60
60
  "@radix-ui/react-accordion": "1.1.2",
61
61
  "@radix-ui/react-checkbox": "1.0.4",
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@box/box-test-client": "^3.2.7",
88
88
  "@box/playwright-utils": "^2.8.5",
89
- "@box/storybook-utils": "^1.2.62",
89
+ "@box/storybook-utils": "^1.2.64",
90
90
  "@figma/code-connect": "1.4.4",
91
91
  "@playwright/test": "1.46.1",
92
92
  "@types/js-yaml": "^4.0.9",