@lumx/react 4.25.1-alpha.4 → 4.25.1-alpha.5
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 +0 -6
- package/index.js +5 -13
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -4322,12 +4322,6 @@ interface RenderOptionContext {
|
|
|
4322
4322
|
isSelected: boolean;
|
|
4323
4323
|
/** Resolved description string (from `getOptionDescription`), if any. Should be forwarded as `description`. */
|
|
4324
4324
|
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
4325
|
}
|
|
4332
4326
|
interface BaseSelectProps<O> {
|
|
4333
4327
|
/** List of option objects. */
|
package/index.js
CHANGED
|
@@ -8215,8 +8215,9 @@ const ListboxOptionMoreInfo = props => {
|
|
|
8215
8215
|
}, [isOpen, onToggle]);
|
|
8216
8216
|
|
|
8217
8217
|
// Predictable ID convention: the parent ListboxOption sets aria-describedby="${optionId}-more-info"
|
|
8218
|
-
// on the role="option" element. The Popover uses closeMode="
|
|
8219
|
-
//
|
|
8218
|
+
// on the role="option" element. The Popover uses closeMode="unmount": the popover content mounts
|
|
8219
|
+
// synchronously when the option becomes active (same task as the aria-activedescendant update),
|
|
8220
|
+
// so screen readers can resolve the aria-describedby reference when they announce the option.
|
|
8220
8221
|
const popoverId = `${optionId}-more-info`;
|
|
8221
8222
|
return ListboxOptionMoreInfo$1({
|
|
8222
8223
|
...forwardedProps,
|
|
@@ -18896,7 +18897,6 @@ function renderSelectOptions(props, components) {
|
|
|
18896
18897
|
const name = getWithSelector(getOptionName || getOptionId, item) || id;
|
|
18897
18898
|
const description = getOptionDescription && getWithSelector(getOptionDescription, item);
|
|
18898
18899
|
const isSelected = selectedIds?.has(id) ?? false;
|
|
18899
|
-
const after = /*#__PURE__*/jsx(Combobox.SelectionIcon, {});
|
|
18900
18900
|
|
|
18901
18901
|
// Delegate to the consumer's render function when provided.
|
|
18902
18902
|
// The consumer receives core-computed context and is responsible for rendering
|
|
@@ -18907,15 +18907,13 @@ function renderSelectOptions(props, components) {
|
|
|
18907
18907
|
value: id,
|
|
18908
18908
|
name,
|
|
18909
18909
|
isSelected,
|
|
18910
|
-
description
|
|
18911
|
-
after
|
|
18910
|
+
description
|
|
18912
18911
|
});
|
|
18913
18912
|
}
|
|
18914
18913
|
return /*#__PURE__*/jsx(Combobox.Option, {
|
|
18915
18914
|
value: id,
|
|
18916
18915
|
description: description,
|
|
18917
18916
|
isSelected: isSelected,
|
|
18918
|
-
after: after,
|
|
18919
18917
|
children: name
|
|
18920
18918
|
}, id);
|
|
18921
18919
|
});
|
|
@@ -19047,7 +19045,6 @@ SelectButton$2.className = CLASSNAME$n;
|
|
|
19047
19045
|
* - If the consumer returns a `<Combobox.Option>`, its props/children are merged with the
|
|
19048
19046
|
* core-computed `value` / `isSelected` / `description` / `key`.
|
|
19049
19047
|
* When the consumer's `<Combobox.Option>` has no children, falls back to the option `name`.
|
|
19050
|
-
* The core-computed selection icons are kept: `after` is appended to the custom `after`.
|
|
19051
19048
|
* - If the consumer returns anything else, returns `null` (skips the option).
|
|
19052
19049
|
*
|
|
19053
19050
|
* @param renderOption Consumer-provided render function.
|
|
@@ -19060,8 +19057,7 @@ function wrapRenderOption(renderOption) {
|
|
|
19060
19057
|
value: optionValue,
|
|
19061
19058
|
isSelected,
|
|
19062
19059
|
description,
|
|
19063
|
-
name
|
|
19064
|
-
after
|
|
19060
|
+
name
|
|
19065
19061
|
}) => {
|
|
19066
19062
|
const node = renderOption(option, index);
|
|
19067
19063
|
if (!isComponentType(ListboxOption)(node)) {
|
|
@@ -19069,7 +19065,6 @@ function wrapRenderOption(renderOption) {
|
|
|
19069
19065
|
}
|
|
19070
19066
|
const {
|
|
19071
19067
|
children = name,
|
|
19072
|
-
after: customAfter,
|
|
19073
19068
|
...customProps
|
|
19074
19069
|
} = node.props;
|
|
19075
19070
|
return /*#__PURE__*/jsx(ListboxOption, {
|
|
@@ -19077,9 +19072,6 @@ function wrapRenderOption(renderOption) {
|
|
|
19077
19072
|
value: optionValue,
|
|
19078
19073
|
isSelected: isSelected,
|
|
19079
19074
|
description: description,
|
|
19080
|
-
after: /*#__PURE__*/jsxs(Fragment, {
|
|
19081
|
-
children: [customAfter, after]
|
|
19082
|
-
}),
|
|
19083
19075
|
children: children
|
|
19084
19076
|
}, optionValue);
|
|
19085
19077
|
};
|