@gooddata/sdk-ui-kit 10.27.0-alpha.1 → 10.27.0-alpha.10
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/esm/@ui/@utils/keyboardNavigation.d.ts +23 -12
- package/esm/@ui/@utils/keyboardNavigation.d.ts.map +1 -1
- package/esm/@ui/@utils/keyboardNavigation.js +58 -16
- package/esm/@ui/@utils/keyboardNavigation.js.map +1 -1
- package/esm/@ui/UiFocusTrap/UiFocusTrap.d.ts +9 -0
- package/esm/@ui/UiFocusTrap/UiFocusTrap.d.ts.map +1 -1
- package/esm/@ui/UiFocusTrap/UiFocusTrap.js +74 -71
- package/esm/@ui/UiFocusTrap/UiFocusTrap.js.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.js +1 -1
- package/esm/Dialog/ConfirmDialogBase.js.map +1 -1
- package/esm/Dialog/DialogBase.d.ts.map +1 -1
- package/esm/Dialog/DialogBase.js +2 -2
- package/esm/Dialog/DialogBase.js.map +1 -1
- package/esm/Dialog/DialogCloseButton.d.ts +1 -1
- package/esm/Dialog/DialogCloseButton.d.ts.map +1 -1
- package/esm/Dialog/DialogCloseButton.js +11 -2
- package/esm/Dialog/DialogCloseButton.js.map +1 -1
- package/esm/Dialog/ExportDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ExportDialogBase.js +8 -3
- package/esm/Dialog/ExportDialogBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.js +1 -5
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.js +2 -2
- package/esm/Dialog/ShareDialog/ShareDialogBase/GranteeItem.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js +1 -5
- package/esm/Dialog/ShareDialog/ShareDialogBase/ShareGranteeBase.js.map +1 -1
- package/esm/Dialog/typings.d.ts +1 -0
- package/esm/Dialog/typings.d.ts.map +1 -1
- package/esm/Form/Checkbox.d.ts +1 -0
- package/esm/Form/Checkbox.d.ts.map +1 -1
- package/esm/Form/Checkbox.js +3 -3
- package/esm/Form/Checkbox.js.map +1 -1
- package/esm/Header/Header.d.ts.map +1 -1
- package/esm/Header/Header.js +1 -1
- package/esm/Header/Header.js.map +1 -1
- package/esm/Header/HeaderAccount.d.ts.map +1 -1
- package/esm/Header/HeaderAccount.js +2 -3
- package/esm/Header/HeaderAccount.js.map +1 -1
- package/esm/Header/HeaderChatButton.d.ts +2 -0
- package/esm/Header/HeaderChatButton.d.ts.map +1 -1
- package/esm/Header/HeaderChatButton.js +3 -3
- package/esm/Header/HeaderChatButton.js.map +1 -1
- package/esm/Header/HeaderHelp.d.ts.map +1 -1
- package/esm/Header/HeaderHelp.js +2 -3
- package/esm/Header/HeaderHelp.js.map +1 -1
- package/esm/Header/HeaderSearchButton.d.ts.map +1 -1
- package/esm/Header/HeaderSearchButton.js +2 -3
- package/esm/Header/HeaderSearchButton.js.map +1 -1
- package/esm/List/ListItem.d.ts +8 -21
- package/esm/List/ListItem.d.ts.map +1 -1
- package/esm/List/ListItem.js +69 -70
- package/esm/List/ListItem.js.map +1 -1
- package/esm/List/MenuList.d.ts +3 -0
- package/esm/List/MenuList.d.ts.map +1 -1
- package/esm/List/MenuList.js +3 -3
- package/esm/List/MenuList.js.map +1 -1
- package/esm/List/index.d.ts +1 -1
- package/esm/List/index.d.ts.map +1 -1
- package/esm/List/index.js.map +1 -1
- package/esm/RecurrenceForm/DateTime.js +2 -2
- package/esm/RecurrenceForm/DateTime.js.map +1 -1
- package/esm/RecurrenceForm/Recurrence.js +3 -3
- package/esm/RecurrenceForm/Recurrence.js.map +1 -1
- package/esm/index.d.ts +3 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/sdk-ui-kit.d.ts +74 -21
- package/esm/typings/accessibility.d.ts +17 -0
- package/esm/typings/accessibility.d.ts.map +1 -1
- package/esm/typings/accessibility.js +1 -1
- package/esm/typings/accessibility.js.map +1 -1
- package/esm/utils/domUtilities.d.ts +11 -0
- package/esm/utils/domUtilities.d.ts.map +1 -1
- package/esm/utils/domUtilities.js +29 -0
- package/esm/utils/domUtilities.js.map +1 -1
- package/esm/utils/useId.d.ts +6 -0
- package/esm/utils/useId.d.ts.map +1 -1
- package/esm/utils/useId.js +9 -0
- package/esm/utils/useId.js.map +1 -1
- package/package.json +10 -9
- package/styles/css/dialog.css +3 -2
- package/styles/css/dialog.css.map +1 -1
- package/styles/css/list.css +7 -0
- package/styles/css/list.css.map +1 -1
- package/styles/css/main.css +10 -2
- package/styles/css/main.css.map +1 -1
- package/styles/css/menu.css +7 -0
- package/styles/css/menu.css.map +1 -1
- package/styles/scss/dialog.scss +3 -2
- package/styles/scss/list.scss +7 -0
package/esm/List/ListItem.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// (C) 2007-2025 GoodData Corporation
|
2
|
-
import React, {
|
2
|
+
import React, { forwardRef, useEffect, useRef, useState, useCallback } from "react";
|
3
3
|
import cx from "classnames";
|
4
4
|
import { stringUtils } from "@gooddata/util";
|
5
5
|
import { Bubble, BubbleHoverTrigger } from "../Bubble/index.js";
|
@@ -7,55 +7,63 @@ const BUBBLE_OFFSET_X = 16;
|
|
7
7
|
/**
|
8
8
|
* @internal
|
9
9
|
*/
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
10
|
+
const DivElement = forwardRef(function DivElement({ children, ...props }, ref) {
|
11
|
+
return (React.createElement("div", { ref: ref, className: props.className, onClick: props.onClick, onMouseOver: props.onMouseOver, onMouseOut: props.onMouseOut, role: props.accessibilityConfig?.role, "aria-disabled": props.accessibilityConfig?.ariaDisabled, "aria-haspopup": props.accessibilityConfig?.ariaHaspopup, "aria-expanded": props.accessibilityConfig?.ariaExpanded, tabIndex: props.tabIndex, "data-testid": props.type === "separator"
|
12
|
+
? "item-separator"
|
13
|
+
: props.type === "header"
|
14
|
+
? "item-header"
|
15
|
+
: undefined }, children));
|
16
|
+
});
|
17
|
+
/**
|
18
|
+
* @internal
|
19
|
+
*/
|
20
|
+
const ButtonElement = forwardRef(function ButtonElement({ children, ...props }, ref) {
|
21
|
+
return (React.createElement("button", { ref: ref, type: "button", className: props.className, onClick: props.onClick, onMouseOver: props.onMouseOver, onMouseOut: props.onMouseOut, role: props.accessibilityConfig?.role, "aria-disabled": props.accessibilityConfig?.ariaDisabled, "aria-haspopup": props.accessibilityConfig?.ariaHaspopup, "aria-expanded": props.accessibilityConfig?.ariaExpanded, tabIndex: props.tabIndex }, children));
|
22
|
+
});
|
23
|
+
/**
|
24
|
+
* @internal
|
25
|
+
*/
|
26
|
+
export const SingleSelectListItem = forwardRef(function SingleSelectListItem(props, ref) {
|
27
|
+
const { title, icon, type, className, info, eventsOnBubble = false, hideDelayBubble, isSelected, isMenu, elementType = "div", iconRenderer, infoRenderer, } = props;
|
28
|
+
const [isOverflowed, setIsOverflowed] = useState(false);
|
29
|
+
const titleRef = useRef(null);
|
30
|
+
const checkOverflow = useCallback(() => {
|
31
|
+
if (titleRef.current) {
|
32
|
+
const hasOverflow = titleRef.current.offsetWidth < titleRef.current.scrollWidth;
|
33
|
+
setIsOverflowed(hasOverflow);
|
32
34
|
}
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
}, []);
|
36
|
+
useEffect(() => {
|
37
|
+
checkOverflow();
|
38
|
+
window.addEventListener("resize", checkOverflow);
|
39
|
+
let resizeObserver = null;
|
40
|
+
if (titleRef.current && window.ResizeObserver) {
|
41
|
+
resizeObserver = new ResizeObserver(checkOverflow);
|
42
|
+
resizeObserver.observe(titleRef.current);
|
43
|
+
}
|
44
|
+
return () => {
|
45
|
+
window.removeEventListener("resize", checkOverflow);
|
46
|
+
if (resizeObserver) {
|
47
|
+
resizeObserver.disconnect();
|
48
|
+
}
|
49
|
+
};
|
50
|
+
}, [title, checkOverflow]);
|
51
|
+
const getClassNames = () => {
|
52
|
+
const testClassName = `s-${stringUtils.simplifyText(title)}`;
|
53
|
+
return cx("gd-list-item", className, testClassName, {
|
38
54
|
"is-selected": isSelected,
|
39
55
|
"is-submenu": isMenu,
|
40
56
|
});
|
41
57
|
};
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
}
|
47
|
-
|
48
|
-
|
49
|
-
}
|
50
|
-
|
51
|
-
this.renderIcon(icon),
|
52
|
-
this.renderTitle(),
|
53
|
-
this.renderInfo()));
|
54
|
-
}
|
55
|
-
renderTitle = () => {
|
56
|
-
const { title } = this.props;
|
57
|
-
const titleElement = React.createElement("span", { ref: this.titleRef }, title);
|
58
|
-
if (this.state.isOverflowed) {
|
58
|
+
const renderIcon = (iconProp) => {
|
59
|
+
if (!iconProp)
|
60
|
+
return null;
|
61
|
+
const iconClasses = cx("gd-list-icon", typeof iconProp === "string" ? iconProp : undefined);
|
62
|
+
return (React.createElement("span", { role: "icon", "data-testid": "icon", "aria-hidden": true, className: iconClasses }, typeof iconProp === "string" ? null : iconProp));
|
63
|
+
};
|
64
|
+
const renderTitle = () => {
|
65
|
+
const titleElement = React.createElement("span", { ref: titleRef }, title);
|
66
|
+
if (isOverflowed) {
|
59
67
|
return (React.createElement(BubbleHoverTrigger, null,
|
60
68
|
titleElement,
|
61
69
|
React.createElement(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }, { align: "cl cr" }], arrowOffsets: {
|
@@ -65,34 +73,25 @@ export class SingleSelectListItem extends Component {
|
|
65
73
|
}
|
66
74
|
return titleElement;
|
67
75
|
};
|
68
|
-
|
69
|
-
if (
|
70
|
-
const iconClasses = cx("gd-list-icon", icon);
|
71
|
-
return React.createElement("span", { role: "icon", "aria-hidden": true, className: iconClasses });
|
72
|
-
}
|
73
|
-
if (icon) {
|
74
|
-
const iconClasses = cx("gd-list-icon");
|
75
|
-
return (React.createElement("span", { role: "icon", "aria-hidden": true, className: iconClasses }, icon));
|
76
|
-
}
|
77
|
-
return null;
|
78
|
-
};
|
79
|
-
renderSeparatorItem = () => {
|
80
|
-
return (React.createElement("div", { role: "item-separator", className: cx("gd-list-item", "gd-list-item-separator", "s-list-separator", this.props.className) }));
|
81
|
-
};
|
82
|
-
renderHeaderItem = () => {
|
83
|
-
return (React.createElement("div", { role: "item-header", className: cx("gd-list-item", "gd-list-item-header", "s-list-header", this.props.className) },
|
84
|
-
this.props.title,
|
85
|
-
this.renderInfo()));
|
86
|
-
};
|
87
|
-
renderInfo = () => {
|
88
|
-
if (!this.props.info) {
|
76
|
+
const renderInfo = () => {
|
77
|
+
if (!info) {
|
89
78
|
return null;
|
90
79
|
}
|
91
|
-
|
92
|
-
return (React.createElement("div", { role: "item-info", className: "gd-list-item-bubble s-list-item-info" },
|
80
|
+
return (React.createElement("div", { "data-testid": "item-info", className: "gd-list-item-bubble s-list-item-info" },
|
93
81
|
React.createElement(BubbleHoverTrigger, { tagName: "div", showDelay: 200, hideDelay: hideDelayBubble ?? 0, eventsOnBubble: eventsOnBubble },
|
94
82
|
React.createElement("div", { className: "inlineBubbleHelp" }),
|
95
|
-
React.createElement(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }], arrowOffsets: { "cr cl": [15, 0] } },
|
83
|
+
React.createElement(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }], arrowOffsets: { "cr cl": [15, 0] } }, info))));
|
96
84
|
};
|
97
|
-
|
85
|
+
const children = (React.createElement(React.Fragment, null,
|
86
|
+
iconRenderer ? iconRenderer(icon) : renderIcon(icon),
|
87
|
+
renderTitle(),
|
88
|
+
infoRenderer ? infoRenderer(info) : renderInfo()));
|
89
|
+
if (type === "separator" || type === "header") {
|
90
|
+
return (React.createElement(DivElement, { ref: ref, ...props, className: cx("gd-list-item", {
|
91
|
+
"gd-list-item-separator s-list-separator": type === "separator",
|
92
|
+
"gd-list-item-header s-list-header": type === "header",
|
93
|
+
}, className) }, type === "header" ? children : null));
|
94
|
+
}
|
95
|
+
return elementType === "button" ? (React.createElement(ButtonElement, { ref: ref, ...props, className: getClassNames() }, children)) : (React.createElement(DivElement, { ref: ref, ...props, className: getClassNames() }, children));
|
96
|
+
});
|
98
97
|
//# sourceMappingURL=ListItem.js.map
|
package/esm/List/ListItem.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../src/List/ListItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,
|
1
|
+
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../src/List/ListItem.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAa,WAAW,EAAE,MAAM,OAAO,CAAC;AAC/F,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,eAAe,GAAG,EAAE,CAAC;AAgC3B;;GAEG;AACH,MAAM,UAAU,GAAG,UAAU,CACzB,SAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG;IAC3C,OAAO,CACH,6BACI,GAAG,EAAE,GAAG,EACR,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K,QAAQ,CAAC,CAAC,CAAC,CAC9B,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAmC,KAAM,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,IACzF,QAAQ,CACG,CACnB,CAAC,CAAC,CAAC,CACA,oBAAC,UAAU,IAAC,GAAG,EAAE,GAAgC,KAAM,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,IACnF,QAAQ,CACA,CAChB,CAAC;AACN,CAAC,CAAC,CAAC"}
|
package/esm/List/MenuList.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import { IMenuContainerAccessibilityConfig } from "../typings/accessibility.js";
|
2
3
|
/**
|
3
4
|
* @internal
|
4
5
|
*/
|
@@ -7,6 +8,8 @@ export interface IItemsWrapperProps {
|
|
7
8
|
children: React.ReactNode;
|
8
9
|
className?: string;
|
9
10
|
style?: React.CSSProperties;
|
11
|
+
accessibilityConfig?: IMenuContainerAccessibilityConfig;
|
12
|
+
wrapperRef?: React.RefObject<HTMLDivElement>;
|
10
13
|
}
|
11
14
|
/**
|
12
15
|
* @internal
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../src/List/MenuList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../src/List/MenuList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,mBAAmB,CAAC,EAAE,iCAAiC,CAAC;IACxD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwBrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAE7B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AACD;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAIzC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAyBrC,CAAC"}
|
package/esm/List/MenuList.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
// (C) 2007-
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
2
|
import React from "react";
|
3
3
|
import classnames from "classnames";
|
4
4
|
/**
|
5
5
|
* @internal
|
6
6
|
*/
|
7
|
-
export const ItemsWrapper = ({ smallItemsSpacing = false, className, children, style, }) => (React.createElement("div", { className: classnames({
|
7
|
+
export const ItemsWrapper = ({ smallItemsSpacing = false, className, children, style, accessibilityConfig, wrapperRef, }) => (React.createElement("div", { className: classnames({
|
8
8
|
"gd-menu-wrapper": true,
|
9
9
|
"gd-menu-wrapper-small-spacing": smallItemsSpacing,
|
10
|
-
}, className), style: style }, children));
|
10
|
+
}, className), style: style, role: accessibilityConfig?.role, id: accessibilityConfig?.id, "aria-labelledby": accessibilityConfig?.ariaLabelledBy, ref: wrapperRef }, children));
|
11
11
|
/**
|
12
12
|
* @internal
|
13
13
|
*/
|
package/esm/List/MenuList.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MenuList.js","sourceRoot":"","sources":["../../src/List/MenuList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"MenuList.js","sourceRoot":"","sources":["../../src/List/MenuList.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAepC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiC,CAAC,EACvD,iBAAiB,GAAG,KAAK,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,UAAU,GACb,EAAE,EAAE,CAAC,CACF,6BACI,SAAS,EAAE,UAAU,CACjB;QACI,iBAAiB,EAAE,IAAI;QACvB,+BAA+B,EAAE,iBAAiB;KACrD,EACD,SAAS,CACZ,EACD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAC/B,EAAE,EAAE,mBAAmB,EAAE,EAAE,qBACV,mBAAmB,EAAE,cAAc,EACpD,GAAG,EAAE,UAAU,IAEd,QAAQ,CACP,CACT,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAa,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1C,6BAAK,SAAS,EAAC,qCAAqC,KAAK,KAAK,GAAI,CACrE,CAAC;AAQF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAA2B,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,CAC1E,6BAAK,SAAS,EAAC,kCAAkC,KAAK,SAAS,IAC1D,QAAQ,CACP,CACT,CAAC;AAeF;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAyB,CAAC,EACvC,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,GACV,EAAE,EAAE,CAAC,CACF,6BACI,SAAS,EAAE,UAAU,CACjB;QACI,cAAc,EAAE,IAAI;QACpB,cAAc,EAAE,IAAI;QACpB,YAAY,EAAE,OAAO;QACrB,YAAY,EAAE,OAAO;QACrB,aAAa,EAAE,QAAQ;KAC1B,EACD,SAAS,CACZ,EACD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAEf,QAAQ,CACP,CACT,CAAC"}
|
package/esm/List/index.d.ts
CHANGED
@@ -16,7 +16,7 @@ export type { IAsyncListProps } from "./AsyncList.js";
|
|
16
16
|
export { AsyncList } from "./AsyncList.js";
|
17
17
|
export type { IInvertableSelectItem, IInvertableSelectProps, IInvertableSelectSearchBarProps, IInvertableSelectRenderItemProps, IInvertableSelectRenderErrorProps, IInvertableSelectRenderLoadingProps, IInvertableSelectRenderNoDataProps, IInvertableSelectLimitWarningProps, IInvertableSelectRenderSearchBarProps, IInvertableSelectRenderStatusBarProps, IInvertableSelectStatusBarProps, IInvertableSelectAllCheckboxProps, IInvertableSelectRenderActionsProps, IInvertableSelectStatusProps, IInvertableSelectItemRenderOnlyProps, } from "./InvertableSelect/index.js";
|
18
18
|
export { InvertableSelect, InvertableSelectItem, InvertableSelectLimitWarning, InvertableSelectSearchBar, InvertableSelectStatusBar, InvertableSelectAllCheckbox, InvertableSelectStatus, useInvertableSelectionStatusText, } from "./InvertableSelect/index.js";
|
19
|
-
export type { ISingleSelectListItemProps,
|
19
|
+
export type { ISingleSelectListItemProps, SingleSelectListItemType } from "./ListItem.js";
|
20
20
|
export { SingleSelectListItem } from "./ListItem.js";
|
21
21
|
export type { ILegacyInvertableListProps } from "./LegacyInvertableList.js";
|
22
22
|
export { default as LegacyInvertableList } from "./LegacyInvertableList.js";
|
package/esm/List/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/List/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGtE,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,YAAY,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAA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,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,YAAY,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,YAAY,EACR,gCAAgC,EAChC,gCAAgC,GACnC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/esm/List/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/List/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAGrC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAItE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkB3C,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACtB,gCAAgC,GACnC,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/List/index.ts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ROPDOWN_ZINDEX, MAX_VISIBLE_TIME_ITEMS_COUNT, TIME_ANCHOR } from "./constants.js";
|
7
7
|
import { defineMessages, FormattedMessage } from "react-intl";
|
8
8
|
import { parseDate } from "../Datepicker/Datepicker.js";
|
9
|
-
import {
|
9
|
+
import { useIdPrefixed } from "../utils/useId.js";
|
10
10
|
const errorMessages = defineMessages({
|
11
11
|
empty: { id: "recurrence.datetime.empty.error" },
|
12
12
|
wrongFormat: { id: "recurrence.datetime.wrong.format.error" },
|
@@ -14,7 +14,7 @@ const errorMessages = defineMessages({
|
|
14
14
|
export const DateTime = (props) => {
|
15
15
|
const { label, date, dateFormat, locale, timezone, onDateChange, weekStart, timeFormat } = props;
|
16
16
|
const [errorDate, setErrorDate] = useState(null);
|
17
|
-
const errorId =
|
17
|
+
const errorId = useIdPrefixed("error");
|
18
18
|
const validate = useCallback((selectedDate) => {
|
19
19
|
const parsedDate = parseDate(selectedDate, dateFormat);
|
20
20
|
if (selectedDate.length === 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../src/RecurrenceForm/DateTime.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../src/RecurrenceForm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7,7 @@ import { RECURRENCE_TYPES } from "./constants.js";
|
|
7
7
|
import { RepeatTypeDescription } from "./RepeatTypeDescription.js";
|
8
8
|
import { CronExpressionSuggestion } from "./CronExpressionSuggestion.js";
|
9
9
|
import { useCronValidation } from "./useCronValidation.js";
|
10
|
-
import {
|
10
|
+
import { useIdPrefixed } from "../utils/useId.js";
|
11
11
|
/**
|
12
12
|
* @internal
|
13
13
|
*
|
@@ -20,8 +20,8 @@ export const Recurrence = (props) => {
|
|
20
20
|
allowHourlyRecurrence,
|
21
21
|
onCronValueChange,
|
22
22
|
});
|
23
|
-
const labelId =
|
24
|
-
const errorId =
|
23
|
+
const labelId = useIdPrefixed("label");
|
24
|
+
const errorId = useIdPrefixed("error");
|
25
25
|
const recurrenceFormClasses = cx("gd-recurrence-form-repeat", "gd-input-component", {
|
26
26
|
"gd-recurrence-form-repeat-cron": recurrenceType === RECURRENCE_TYPES.CRON,
|
27
27
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../src/RecurrenceForm/Recurrence.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"Recurrence.js","sourceRoot":"","sources":["../../src/RecurrenceForm/Recurrence.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO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EAC1B,MAAM,EAAE,YAAY,EACpB,mBAAmB,EAAE;wBACjB,eAAe,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;wBAChD,cAAc,EAAE,OAAO;qBAC1B,EACD,QAAQ,EAAE,SAAS,GACrB,CACL,CAAC,CAAC,CAAC,IAAI,CACN,CACJ;QACL,CAAC,SAAS,CAAC,CAAC,CAAC,CACV,oBAAC,wBAAwB,IACrB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,SAAS,EAC1B,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,cAAc,GAChC,CACL,CAAC,CAAC,CAAC,IAAI,CACT,CACN,CAAC;AACN,CAAC,CAAC"}
|
package/esm/index.d.ts
CHANGED
@@ -20,6 +20,7 @@ export * from "./utils/debounce.js";
|
|
20
20
|
export * from "./utils/dateTimeConfig.js";
|
21
21
|
export * from "./utils/events.js";
|
22
22
|
export * from "./utils/useId.js";
|
23
|
+
export { getFocusableElements } from "./utils/domUtilities.js";
|
23
24
|
export * from "./measureNumberFormat/index.js";
|
24
25
|
export * from "./syntaxHighlightingInput/index.js";
|
25
26
|
export * from "./Button/index.js";
|
@@ -93,8 +94,10 @@ export { UiPagedVirtualList } from "./@ui/UiPagedVirtualList/UiPagedVirtualList.
|
|
93
94
|
export type { UiPagedVirtualListProps, UiPagedVirtualListSkeletonItemProps, } from "./@ui/UiPagedVirtualList/UiPagedVirtualList.js";
|
94
95
|
export { UiFocusTrap } from "./@ui/UiFocusTrap/UiFocusTrap.js";
|
95
96
|
export type { UiFocusTrapProps } from "./@ui/UiFocusTrap/UiFocusTrap.js";
|
97
|
+
export type { IAccessibilityConfigBase, IMenuAccessibilityConfig, IMenuContainerAccessibilityConfig, } from "./typings/accessibility.js";
|
96
98
|
export { UiListbox } from "./@ui/UiListbox/UiListbox.js";
|
97
99
|
export { DefaultUiListboxInteractiveItemComponent } from "./@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js";
|
98
100
|
export { separatorStaticItem, DefaultUiListboxStaticItemComponent, } from "./@ui/UiListbox/defaults/DefaultUiListboxStaticItemComponent.js";
|
99
101
|
export type { UiListboxProps, IListboxContext, IUiListboxItem, IUiListboxStaticItem, UiListboxStaticItemProps, IUiListboxInteractiveItem, UiListboxInteractiveItemProps, } from "./@ui/UiListbox/types.js";
|
102
|
+
export { makeMenuKeyboardNavigation } from "./@ui/@utils/keyboardNavigation.js";
|
100
103
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;GAQG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAw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AAC;AAClE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,YAAY,EACR,uBAAuB,EACvB,mCAAmC,GACtC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EACR,wBAAwB,EACxB,wBAAwB,EACxB,iCAAiC,GACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAChI,OAAO,EACH,mBAAmB,EACnB,mCAAmC,GACtC,MAAM,iEAAiE,CAAC;AACzE,YAAY,EACR,cAAc,EACd,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,GAChC,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC"}
|
package/esm/index.js
CHANGED
@@ -21,6 +21,7 @@ export * from "./utils/debounce.js";
|
|
21
21
|
export * from "./utils/dateTimeConfig.js";
|
22
22
|
export * from "./utils/events.js";
|
23
23
|
export * from "./utils/useId.js";
|
24
|
+
export { getFocusableElements } from "./utils/domUtilities.js";
|
24
25
|
export * from "./measureNumberFormat/index.js";
|
25
26
|
export * from "./syntaxHighlightingInput/index.js";
|
26
27
|
export * from "./Button/index.js";
|
@@ -84,4 +85,5 @@ export { UiFocusTrap } from "./@ui/UiFocusTrap/UiFocusTrap.js";
|
|
84
85
|
export { UiListbox } from "./@ui/UiListbox/UiListbox.js";
|
85
86
|
export { DefaultUiListboxInteractiveItemComponent } from "./@ui/UiListbox/defaults/DefaultUiListboxInteractiveItemComponent.js";
|
86
87
|
export { separatorStaticItem, DefaultUiListboxStaticItemComponent, } from "./@ui/UiListbox/defaults/DefaultUiListboxStaticItemComponent.js";
|
88
|
+
export { makeMenuKeyboardNavigation } from "./@ui/@utils/keyboardNavigation.js";
|
87
89
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;GAQG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAi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OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAKpF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAO/D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,wCAAwC,EAAE,MAAM,sEAAsE,CAAC;AAChI,OAAO,EACH,mBAAmB,EACnB,mCAAmC,GACtC,MAAM,iEAAiE,CAAC;AAWzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC"}
|
package/esm/sdk-ui-kit.d.ts
CHANGED
@@ -396,6 +396,7 @@ export declare class Checkbox extends React_2.PureComponent<CheckboxProps> {
|
|
396
396
|
* @internal
|
397
397
|
*/
|
398
398
|
export declare interface CheckboxProps {
|
399
|
+
id?: string;
|
399
400
|
disabled: boolean;
|
400
401
|
name: string;
|
401
402
|
text: string;
|
@@ -859,6 +860,18 @@ export declare function getDateTimeConfig(date: string, options?: IDateTimeConfi
|
|
859
860
|
*/
|
860
861
|
export declare const getDefaultEmbedTypeOptions: (embedType: EmbedType) => EmbedOptionsType;
|
861
862
|
|
863
|
+
/**
|
864
|
+
* @internal
|
865
|
+
* Returns the focusable elements of the given element
|
866
|
+
* @param element - the element to get the focusable elements from
|
867
|
+
* @returns an object containing the focusable elements, the first focusable element, and the last focusable element
|
868
|
+
*/
|
869
|
+
export declare const getFocusableElements: (element?: HTMLElement) => {
|
870
|
+
focusableElements: NodeListOf<HTMLElement>;
|
871
|
+
firstElement: HTMLElement;
|
872
|
+
lastElement: HTMLElement;
|
873
|
+
};
|
874
|
+
|
862
875
|
/**
|
863
876
|
* @internal
|
864
877
|
*/
|
@@ -1663,6 +1676,7 @@ export declare interface IDialogBaseProps {
|
|
1663
1676
|
CloseButton?: React_2.ComponentType<IDialogCloseButtonProps>;
|
1664
1677
|
initialFocus?: React_2.RefObject<HTMLElement> | string;
|
1665
1678
|
returnFocusTo?: React_2.RefObject<HTMLElement> | string;
|
1679
|
+
returnFocusAfterClose?: boolean;
|
1666
1680
|
}
|
1667
1681
|
|
1668
1682
|
/**
|
@@ -2688,6 +2702,8 @@ export declare interface IItemsWrapperProps {
|
|
2688
2702
|
children: React_2.ReactNode;
|
2689
2703
|
className?: string;
|
2690
2704
|
style?: React_2.CSSProperties;
|
2705
|
+
accessibilityConfig?: IMenuContainerAccessibilityConfig;
|
2706
|
+
wrapperRef?: React_2.RefObject<HTMLDivElement>;
|
2691
2707
|
}
|
2692
2708
|
|
2693
2709
|
/**
|
@@ -3007,6 +3023,25 @@ export declare interface IMediaQueries {
|
|
3007
3023
|
"<desktop": string;
|
3008
3024
|
}
|
3009
3025
|
|
3026
|
+
/**
|
3027
|
+
* @internal
|
3028
|
+
*/
|
3029
|
+
export declare interface IMenuAccessibilityConfig extends IAccessibilityConfigBase {
|
3030
|
+
id?: string;
|
3031
|
+
role?: "menu" | "menuitem" | "separator" | "presentation";
|
3032
|
+
ariaDisabled?: "true" | "false";
|
3033
|
+
ariaHaspopup?: "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
3034
|
+
ariaExpanded?: "true" | "false";
|
3035
|
+
ariaControls?: string;
|
3036
|
+
}
|
3037
|
+
|
3038
|
+
/**
|
3039
|
+
* @internal
|
3040
|
+
*/
|
3041
|
+
export declare interface IMenuContainerAccessibilityConfig extends IMenuAccessibilityConfig {
|
3042
|
+
role?: "menu";
|
3043
|
+
}
|
3044
|
+
|
3010
3045
|
/**
|
3011
3046
|
* @internal
|
3012
3047
|
*/
|
@@ -4045,18 +4080,16 @@ export declare interface ISingleSelectListItemProps {
|
|
4045
4080
|
hideDelayBubble?: number;
|
4046
4081
|
isSelected?: boolean;
|
4047
4082
|
isMenu?: boolean;
|
4083
|
+
accessibilityConfig?: IMenuAccessibilityConfig;
|
4084
|
+
tabIndex?: number;
|
4085
|
+
elementType?: "div" | "button";
|
4086
|
+
iconRenderer?: (icon: string | ReactNode | React_2.FC) => ReactNode;
|
4087
|
+
infoRenderer?: (info: string | ReactNode | React_2.FC) => ReactNode;
|
4048
4088
|
onClick?: (e: React_2.MouseEvent<HTMLElement>) => void;
|
4049
4089
|
onMouseOver?: (e: React_2.MouseEvent<HTMLElement>) => void;
|
4050
4090
|
onMouseOut?: (e: React_2.MouseEvent<HTMLElement>) => void;
|
4051
4091
|
}
|
4052
4092
|
|
4053
|
-
/**
|
4054
|
-
* @internal
|
4055
|
-
*/
|
4056
|
-
export declare interface ISingleSelectListItemState {
|
4057
|
-
isOverflowed: boolean;
|
4058
|
-
}
|
4059
|
-
|
4060
4093
|
/**
|
4061
4094
|
* @internal
|
4062
4095
|
*/
|
@@ -4534,6 +4567,23 @@ export declare const LoadingSpinner: React_2.FC<ILoadingSpinner>;
|
|
4534
4567
|
*/
|
4535
4568
|
export declare const LocaleSetting: React_2.VFC<ILocaleSettingProps>;
|
4536
4569
|
|
4570
|
+
/**
|
4571
|
+
* @internal
|
4572
|
+
*/
|
4573
|
+
export declare const makeMenuKeyboardNavigation: <T extends KeyboardEvent | KeyboardEvent_2<Element> = KeyboardEvent_2<Element>>({ onFocusPrevious, onFocusNext, onFocusFirst, onFocusLast, onEnterLevel, onLeaveLevel, onSelect, onClose, onUnhandledKeyDown, shouldPreventDefault, shouldStopPropagation, }: {
|
4574
|
+
onFocusNext?: (event: T) => void;
|
4575
|
+
onFocusPrevious?: (event: T) => void;
|
4576
|
+
onFocusFirst?: (event: T) => void;
|
4577
|
+
onFocusLast?: (event: T) => void;
|
4578
|
+
onEnterLevel?: (event: T) => void;
|
4579
|
+
onLeaveLevel?: (event: T) => void;
|
4580
|
+
onSelect?: (event: T) => void;
|
4581
|
+
onClose?: (event: T) => void;
|
4582
|
+
onUnhandledKeyDown?: (event: T) => void;
|
4583
|
+
shouldPreventDefault?: boolean;
|
4584
|
+
shouldStopPropagation?: boolean;
|
4585
|
+
}) => (event: T) => void;
|
4586
|
+
|
4537
4587
|
/**
|
4538
4588
|
* @internal
|
4539
4589
|
*/
|
@@ -5000,20 +5050,7 @@ export declare const SimpleSettingWidget: React_2.FC<ISimpleSettingWidgetProps>;
|
|
5000
5050
|
/**
|
5001
5051
|
* @internal
|
5002
5052
|
*/
|
5003
|
-
export declare
|
5004
|
-
private titleRef;
|
5005
|
-
constructor(props: ISingleSelectListItemProps);
|
5006
|
-
componentDidMount(): void;
|
5007
|
-
componentDidUpdate(): void;
|
5008
|
-
private checkOverflow;
|
5009
|
-
private getClassNames;
|
5010
|
-
render(): JSX.Element;
|
5011
|
-
private renderTitle;
|
5012
|
-
private renderIcon;
|
5013
|
-
private renderSeparatorItem;
|
5014
|
-
private renderHeaderItem;
|
5015
|
-
private renderInfo;
|
5016
|
-
}
|
5053
|
+
export declare const SingleSelectListItem: React_2.ForwardRefExoticComponent<ISingleSelectListItemProps & React_2.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
|
5017
5054
|
|
5018
5055
|
/**
|
5019
5056
|
* @internal
|
@@ -5335,11 +5372,20 @@ export declare interface UiFocusTrapProps {
|
|
5335
5372
|
* If a ref is provided, the focus will be returned to the element referenced by the ref.
|
5336
5373
|
*/
|
5337
5374
|
returnFocusTo?: React_2.RefObject<HTMLElement> | string;
|
5375
|
+
/**
|
5376
|
+
* If true, the focus will be returned to the element referenced by the returnFocusTo prop when the trap is unmounted.
|
5377
|
+
*/
|
5378
|
+
returnFocusOnUnmount?: boolean;
|
5338
5379
|
/**
|
5339
5380
|
* Specify the element that should receive focus when the trap is activated.
|
5340
5381
|
* If not provided, the first focusable element will be focused.
|
5341
5382
|
*/
|
5342
5383
|
initialFocus?: React_2.RefObject<HTMLElement> | string;
|
5384
|
+
/**
|
5385
|
+
* Specify a custom keyboard navigation handler.
|
5386
|
+
* If not provided, the default keyboard navigation handler will be used.
|
5387
|
+
*/
|
5388
|
+
customKeyboardNavigationHandler?: (event: KeyboardEvent) => void;
|
5343
5389
|
}
|
5344
5390
|
|
5345
5391
|
/**
|
@@ -5558,6 +5604,13 @@ export declare const useHeaderSearch: () => HeaderSearchContext;
|
|
5558
5604
|
*/
|
5559
5605
|
export declare const useId: () => string;
|
5560
5606
|
|
5607
|
+
/**
|
5608
|
+
* This is a hook that generates a unique ID for purposes of aria references and so on. Can be enhanced with a prefix.
|
5609
|
+
* @param prefix - The prefix to be added to the generated ID.
|
5610
|
+
* @internal
|
5611
|
+
*/
|
5612
|
+
export declare const useIdPrefixed: (prefix?: string) => string;
|
5613
|
+
|
5561
5614
|
/**
|
5562
5615
|
* @internal
|
5563
5616
|
*/
|
@@ -8,4 +8,21 @@ export interface IAccessibilityConfigBase {
|
|
8
8
|
ariaDescribedBy?: React.AriaAttributes["aria-describedby"];
|
9
9
|
role?: React.HTMLAttributes<HTMLElement>["role"];
|
10
10
|
}
|
11
|
+
/**
|
12
|
+
* @internal
|
13
|
+
*/
|
14
|
+
export interface IMenuAccessibilityConfig extends IAccessibilityConfigBase {
|
15
|
+
id?: string;
|
16
|
+
role?: "menu" | "menuitem" | "separator" | "presentation";
|
17
|
+
ariaDisabled?: "true" | "false";
|
18
|
+
ariaHaspopup?: "true" | "false" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
19
|
+
ariaExpanded?: "true" | "false";
|
20
|
+
ariaControls?: string;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @internal
|
24
|
+
*/
|
25
|
+
export interface IMenuContainerAccessibilityConfig extends IMenuAccessibilityConfig {
|
26
|
+
role?: "menu";
|
27
|
+
}
|
11
28
|
//# sourceMappingURL=accessibility.d.ts.map
|