@lumx/react 4.13.0-next.3 → 4.13.0-next.4
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 +2 -2
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -4346,8 +4346,8 @@ type MultipleSelectButtonProps<O, E extends ElementType$1 = typeof DefaultButton
|
|
|
4346
4346
|
* SelectButton compound component.
|
|
4347
4347
|
*/
|
|
4348
4348
|
declare const SelectButton: {
|
|
4349
|
-
<O, E extends React$1.ElementType = Comp<ButtonProps, HTMLButtonElement>, S extends "single" | "multiple" = "single">(props: SelectButtonProps<O, E, S>):
|
|
4350
|
-
displayName
|
|
4349
|
+
<O, E extends React$1.ElementType = Comp<ButtonProps, HTMLButtonElement>, S extends "single" | "multiple" = "single">(props: SelectButtonProps<O, E, S>): React.ReactNode;
|
|
4350
|
+
displayName?: string;
|
|
4351
4351
|
} & {
|
|
4352
4352
|
/** Selectable option within the dropdown list. */
|
|
4353
4353
|
Option: Comp<ComboboxOptionProps, HTMLLIElement>;
|
package/index.js
CHANGED
|
@@ -17073,11 +17073,16 @@ const DefaultButton = forwardRef((props, ref) => /*#__PURE__*/jsx(Button, {
|
|
|
17073
17073
|
|
|
17074
17074
|
/** Multi-selection props (`selectionType: 'multiple'` is required to opt in). */
|
|
17075
17075
|
|
|
17076
|
+
/**
|
|
17077
|
+
* `React.forwardRef` re-typed to preserve our polymorphic generics
|
|
17078
|
+
* `<O, E, S>` (which the stock `React.forwardRef` would erase).
|
|
17079
|
+
*/
|
|
17080
|
+
|
|
17076
17081
|
/**
|
|
17077
17082
|
* A button trigger with a dropdown to select an option (single mode) or
|
|
17078
17083
|
* options (multi mode) from a list. Polymorphic — pass `as` to customize the trigger element.
|
|
17079
17084
|
*/
|
|
17080
|
-
const SelectButton$1 = props => {
|
|
17085
|
+
const SelectButton$1 = React__default.forwardRef((props, ref) => {
|
|
17081
17086
|
const {
|
|
17082
17087
|
options,
|
|
17083
17088
|
getOptionId,
|
|
@@ -17097,9 +17102,7 @@ const SelectButton$1 = props => {
|
|
|
17097
17102
|
listStatus,
|
|
17098
17103
|
translations,
|
|
17099
17104
|
as,
|
|
17100
|
-
ref,
|
|
17101
17105
|
...buttonProps
|
|
17102
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17103
17106
|
} = props;
|
|
17104
17107
|
const [listElement, setListElement] = useState(null);
|
|
17105
17108
|
const isMultiple = selectionType === 'multiple';
|
|
@@ -17124,8 +17127,7 @@ const SelectButton$1 = props => {
|
|
|
17124
17127
|
isMultiselectable: isMultiple,
|
|
17125
17128
|
label,
|
|
17126
17129
|
labelDisplayMode,
|
|
17127
|
-
// With no `as`, the default trigger adds the chevron.
|
|
17128
|
-
// caller is responsible for any trailing affordance.
|
|
17130
|
+
// With no `as`, the default trigger adds the chevron.
|
|
17129
17131
|
buttonProps: {
|
|
17130
17132
|
...buttonProps,
|
|
17131
17133
|
as: as ?? DefaultButton,
|
|
@@ -17148,7 +17150,7 @@ const SelectButton$1 = props => {
|
|
|
17148
17150
|
Combobox,
|
|
17149
17151
|
InfiniteScroll
|
|
17150
17152
|
});
|
|
17151
|
-
};
|
|
17153
|
+
});
|
|
17152
17154
|
SelectButton$1.displayName = 'SelectButton';
|
|
17153
17155
|
|
|
17154
17156
|
/**
|