@sproutsocial/seeds-react-menu 1.11.9 → 1.12.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/.turbo/turbo-build.log +13 -13
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/MenuGroup/MenuGroup.tsx +2 -2
- package/src/MenuGroup/__tests__/MenuGroup.test.tsx +4 -4
- package/src/MenuSearchInput/MenuSearchInput.tsx +3 -1
- package/src/SingleSelectMenu/SingleSelectMenu.stories.tsx +60 -0
package/dist/index.d.mts
CHANGED
|
@@ -430,7 +430,7 @@ interface TypeMenuSearchInputProps extends TypeInputProps {
|
|
|
430
430
|
* @see {@link https://seeds.sproutsocial.com/components/seeds-react-menu/#menuheader MenuHeader}
|
|
431
431
|
* @see {@link https://seeds.sproutsocial.com/components/seeds-react-menu/#menusearchtokeninput MenuSearchTokenInput}
|
|
432
432
|
*/
|
|
433
|
-
declare const MenuSearchInput: ({ getIsItemVisible, inputProps, onChange, ...restInputProps }: TypeMenuSearchInputProps) => react_jsx_runtime.JSX.Element;
|
|
433
|
+
declare const MenuSearchInput: ({ getIsItemVisible, inputProps, onChange, "aria-label": ariaLabel, ...restInputProps }: TypeMenuSearchInputProps) => react_jsx_runtime.JSX.Element;
|
|
434
434
|
|
|
435
435
|
interface TypeMenuTokenInputProps extends TypeTokenInputProps {
|
|
436
436
|
/** A function that can be passed to override the default token props */
|
package/dist/index.d.ts
CHANGED
|
@@ -430,7 +430,7 @@ interface TypeMenuSearchInputProps extends TypeInputProps {
|
|
|
430
430
|
* @see {@link https://seeds.sproutsocial.com/components/seeds-react-menu/#menuheader MenuHeader}
|
|
431
431
|
* @see {@link https://seeds.sproutsocial.com/components/seeds-react-menu/#menusearchtokeninput MenuSearchTokenInput}
|
|
432
432
|
*/
|
|
433
|
-
declare const MenuSearchInput: ({ getIsItemVisible, inputProps, onChange, ...restInputProps }: TypeMenuSearchInputProps) => react_jsx_runtime.JSX.Element;
|
|
433
|
+
declare const MenuSearchInput: ({ getIsItemVisible, inputProps, onChange, "aria-label": ariaLabel, ...restInputProps }: TypeMenuSearchInputProps) => react_jsx_runtime.JSX.Element;
|
|
434
434
|
|
|
435
435
|
interface TypeMenuTokenInputProps extends TypeTokenInputProps {
|
|
436
436
|
/** A function that can be passed to override the default token props */
|
package/dist/index.js
CHANGED
|
@@ -936,7 +936,7 @@ var import_jsx_runtime9 = (
|
|
|
936
936
|
require("react/jsx-runtime")
|
|
937
937
|
);
|
|
938
938
|
var MenuGroup = ({
|
|
939
|
-
titleAs = "
|
|
939
|
+
titleAs = "div",
|
|
940
940
|
children: childrenProp,
|
|
941
941
|
title,
|
|
942
942
|
color: color5,
|
|
@@ -960,7 +960,7 @@ var MenuGroup = ({
|
|
|
960
960
|
color: color5,
|
|
961
961
|
...rest,
|
|
962
962
|
children: [
|
|
963
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledTitle, {
|
|
963
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StyledTitle, { as: titleAs, id: titleId, children: title }),
|
|
964
964
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
965
965
|
StyledMenuGroupUl,
|
|
966
966
|
{
|
|
@@ -1243,6 +1243,7 @@ var MenuSearchInput = ({
|
|
|
1243
1243
|
getIsItemVisible,
|
|
1244
1244
|
inputProps,
|
|
1245
1245
|
onChange,
|
|
1246
|
+
"aria-label": ariaLabel,
|
|
1246
1247
|
...restInputProps
|
|
1247
1248
|
}) => {
|
|
1248
1249
|
const {
|
|
@@ -1278,8 +1279,9 @@ var MenuSearchInput = ({
|
|
|
1278
1279
|
},
|
|
1279
1280
|
onKeyDown: handleKeyDown,
|
|
1280
1281
|
autoComplete: false,
|
|
1281
|
-
|
|
1282
|
+
ariaLabel,
|
|
1282
1283
|
inputProps: {
|
|
1284
|
+
["aria-autocomplete"]: "list",
|
|
1283
1285
|
["aria-activedescendant"]: toggleButtonProps["aria-activedescendant"],
|
|
1284
1286
|
["aria-controls"]: toggleButtonProps["aria-controls"],
|
|
1285
1287
|
...inputProps
|