@lumx/react 4.26.1-alpha.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 +29 -11
- package/index.js +743 -626
- package/index.js.map +1 -1
- package/package.json +3 -3
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.
|
|
@@ -4322,12 +4327,6 @@ interface RenderOptionContext {
|
|
|
4322
4327
|
isSelected: boolean;
|
|
4323
4328
|
/** Resolved description string (from `getOptionDescription`), if any. Should be forwarded as `description`. */
|
|
4324
4329
|
description?: string | null;
|
|
4325
|
-
/**
|
|
4326
|
-
* Selection state icon to render after the option label
|
|
4327
|
-
* (single selection: check circle when selected, blank radio otherwise; multiple selection: checkbox).
|
|
4328
|
-
* Should be forwarded as `after` (appended after any custom `after` content).
|
|
4329
|
-
*/
|
|
4330
|
-
after?: JSXElement;
|
|
4331
4330
|
}
|
|
4332
4331
|
interface BaseSelectProps<O> {
|
|
4333
4332
|
/** List of option objects. */
|
|
@@ -4467,7 +4466,10 @@ interface BaseSelectTextFieldWrapperProps<O> extends Pick<BaseSelectProps<O>, 'o
|
|
|
4467
4466
|
* @default false
|
|
4468
4467
|
*/
|
|
4469
4468
|
openOnFocus?: boolean;
|
|
4470
|
-
/**
|
|
4469
|
+
/**
|
|
4470
|
+
* Field label (required). Also used as aria-label for the listbox.
|
|
4471
|
+
* When empty, the listbox uses the input `aria-labelledby`.
|
|
4472
|
+
*/
|
|
4471
4473
|
label: string;
|
|
4472
4474
|
/** Input placeholder text. */
|
|
4473
4475
|
placeholder?: string;
|
|
@@ -4495,13 +4497,24 @@ interface BaseSelectTextFieldWrapperProps<O> extends Pick<BaseSelectProps<O>, 'o
|
|
|
4495
4497
|
/** Maximum string length (shows character counter). */
|
|
4496
4498
|
maxLength?: number;
|
|
4497
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
|
+
*/
|
|
4498
4504
|
ariaLabel?: string;
|
|
4505
|
+
/** Id of the element(s) labelling the input (and the listbox when `label` is empty). */
|
|
4506
|
+
'aria-labelledby'?: string;
|
|
4499
4507
|
/** Additional props forwarded to the field label (e.g. `className: 'visually-hidden'`, `typography`). */
|
|
4500
4508
|
labelProps?: Partial<Omit<InputLabelProps$1, 'children' | 'htmlFor' | 'id'>>;
|
|
4501
4509
|
/** Additional props forwarded to the Combobox.Input (and ultimately to TextField). */
|
|
4502
4510
|
inputProps?: Record<string, any>;
|
|
4503
|
-
/**
|
|
4504
|
-
|
|
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;
|
|
4505
4518
|
/** Labels for the clear button, toggle button, and chip group. */
|
|
4506
4519
|
translations: SelectTextFieldTranslations;
|
|
4507
4520
|
}
|
|
@@ -4683,8 +4696,13 @@ interface BaseSelectTextFieldProps<O = any> extends BaseSelectTextFieldWrapperPr
|
|
|
4683
4696
|
onLoadMore?: () => void;
|
|
4684
4697
|
/** Content to render before the options list. */
|
|
4685
4698
|
beforeOptions?: React__default.ReactNode;
|
|
4686
|
-
/**
|
|
4687
|
-
|
|
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;
|
|
4688
4706
|
/** On blur callback. */
|
|
4689
4707
|
onBlur?: (event: React__default.FocusEvent) => void;
|
|
4690
4708
|
/** On focus callback. */
|