@lumx/react 4.26.0 → 4.27.0-next.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/index.d.ts CHANGED
@@ -1884,6 +1884,11 @@ interface ComboboxProviderProps {
1884
1884
  children?: ReactNode;
1885
1885
  /** Callback fired when the combobox open state changes. */
1886
1886
  onOpen?: (isOpen: boolean) => void;
1887
+ /**
1888
+ * Keep the listbox always open (inline listbox).
1889
+ * By default, the listbox is always open when the combobox contains no `Combobox.Popover`.
1890
+ */
1891
+ alwaysOpen?: boolean;
1887
1892
  }
1888
1893
  /**
1889
1894
  * Combobox.Provider component.
@@ -4461,7 +4466,10 @@ interface BaseSelectTextFieldWrapperProps<O> extends Pick<BaseSelectProps<O>, 'o
4461
4466
  * @default false
4462
4467
  */
4463
4468
  openOnFocus?: boolean;
4464
- /** Field label (required). Also used as aria-label for the listbox. */
4469
+ /**
4470
+ * Field label (required). Also used as aria-label for the listbox.
4471
+ * When empty, the listbox uses the input `aria-labelledby`.
4472
+ */
4465
4473
  label: string;
4466
4474
  /** Input placeholder text. */
4467
4475
  placeholder?: string;
@@ -4489,13 +4497,24 @@ interface BaseSelectTextFieldWrapperProps<O> extends Pick<BaseSelectProps<O>, 'o
4489
4497
  /** Maximum string length (shows character counter). */
4490
4498
  maxLength?: number;
4491
4499
  /** Accessible label for the input element (overrides the visual label for screen readers). */
4500
+ 'aria-label'?: string;
4501
+ /**
4502
+ * @deprecated Use `aria-label` instead.
4503
+ */
4492
4504
  ariaLabel?: string;
4505
+ /** Id of the element(s) labelling the input (and the listbox when `label` is empty). */
4506
+ 'aria-labelledby'?: string;
4493
4507
  /** Additional props forwarded to the field label (e.g. `className: 'visually-hidden'`, `typography`). */
4494
4508
  labelProps?: Partial<Omit<InputLabelProps$1, 'children' | 'htmlFor' | 'id'>>;
4495
4509
  /** Additional props forwarded to the Combobox.Input (and ultimately to TextField). */
4496
4510
  inputProps?: Record<string, any>;
4497
- /** Props forwarded to the Combobox.Popover. */
4498
- popoverProps?: Record<string, any>;
4511
+ /**
4512
+ * Props forwarded to the Combobox.Popover.
4513
+ * Set to `false` to render the list inline below the text field, with no popover (the list is always visible).
4514
+ * The parent must give the list a bounded height (flex column) so that the list scrolls.
4515
+ * Use it only as the main content of a dedicated container (ex: a picker dialog), not in a form.
4516
+ */
4517
+ popoverProps?: Record<string, any> | false;
4499
4518
  /** Labels for the clear button, toggle button, and chip group. */
4500
4519
  translations: SelectTextFieldTranslations;
4501
4520
  }
@@ -4677,8 +4696,13 @@ interface BaseSelectTextFieldProps<O = any> extends BaseSelectTextFieldWrapperPr
4677
4696
  onLoadMore?: () => void;
4678
4697
  /** Content to render before the options list. */
4679
4698
  beforeOptions?: React__default.ReactNode;
4680
- /** Props forwarded to the Combobox.List popover. */
4681
- popoverProps?: ComboboxPopoverProps;
4699
+ /**
4700
+ * Props forwarded to the Combobox.Popover.
4701
+ * Set to `false` to render the list inline below the text field, with no popover (the list is always visible).
4702
+ * The parent must give the list a bounded height (flex column) so that the list scrolls.
4703
+ * Use it only as the main content of a dedicated container (ex: a picker dialog), not in a form.
4704
+ */
4705
+ popoverProps?: ComboboxPopoverProps | false;
4682
4706
  /** On blur callback. */
4683
4707
  onBlur?: (event: React__default.FocusEvent) => void;
4684
4708
  /** On focus callback. */