@hexure/ui 1.14.6 → 1.14.8
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/dist/cjs/index.js +8 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/MoreMenu/MoreMenu.d.ts +2 -0
- package/dist/esm/index.js +8 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/MoreMenu/MoreMenu.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3463,7 +3463,7 @@ const MoreMenu = (_a) => {
|
|
|
3463
3463
|
const baseId = dataItemid || 'more-menu';
|
|
3464
3464
|
return (React.createElement(Wrapper$d, Object.assign({ "$maxHeight": maxHeight }, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), menuItems.map((item, i) => {
|
|
3465
3465
|
var _a;
|
|
3466
|
-
const itemId =
|
|
3466
|
+
const itemId = item.dataItemid || baseId;
|
|
3467
3467
|
return (React.createElement(MenuItem, { className: item === null || item === void 0 ? void 0 : item.className, "data-itemid": `${itemId}-menu-item`, key: i, onClick: item.onClick },
|
|
3468
3468
|
item.icon ? (React.createElement(Icon, { color: item.disabled ? Colors.LIGHT_GRAY.Hex : Colors.MEDIUM_GRAY.Hex, "data-itemid": `${itemId}-icon`, path: item.icon, size: '20px' })) : null,
|
|
3469
3469
|
React.createElement(Title$1, { "data-itemid": `${itemId}-title`, disabled: (_a = item.disabled) !== null && _a !== void 0 ? _a : false }, item.label)));
|
|
@@ -3833,6 +3833,7 @@ const DropdownContainer = styled.div `
|
|
|
3833
3833
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
3834
3834
|
max-height: 300px;
|
|
3835
3835
|
overflow-y: auto;
|
|
3836
|
+
overflow-x: hidden;
|
|
3836
3837
|
z-index: 1000;
|
|
3837
3838
|
display: ${props => (props.$isOpen ? 'block' : 'none')};
|
|
3838
3839
|
`;
|
|
@@ -3855,6 +3856,8 @@ const OptionItem = styled.span `
|
|
|
3855
3856
|
background-color: ${props => (props.$isSelected ? '#e8f4fd' : 'transparent')};
|
|
3856
3857
|
user-select: none;
|
|
3857
3858
|
line-height: 1.3em;
|
|
3859
|
+
overflow-x: hidden;
|
|
3860
|
+
margin-right: 5px;
|
|
3858
3861
|
|
|
3859
3862
|
&:hover {
|
|
3860
3863
|
background-color: ${props => (props.$disabled ? 'transparent' : '#f5f5f5')};
|
|
@@ -4225,6 +4228,9 @@ const ButtonBarNote = styled.div `
|
|
|
4225
4228
|
display: flex;
|
|
4226
4229
|
gap: 10px;
|
|
4227
4230
|
`;
|
|
4231
|
+
const HeaderWrapper = styled.div `
|
|
4232
|
+
word-break: break-all;
|
|
4233
|
+
`;
|
|
4228
4234
|
const Drawer = (_a) => {
|
|
4229
4235
|
var { children, description, title, onClose, primaryButton, position = 'fixed', secondaryButton, tertiaryButton, scrim = 'dark', width, dataItemid, bottomNotes } = _a, accessibleProps = __rest(_a, ["children", "description", "title", "onClose", "primaryButton", "position", "secondaryButton", "tertiaryButton", "scrim", "width", "dataItemid", "bottomNotes"]);
|
|
4230
4236
|
React.useEffect(() => {
|
|
@@ -4241,7 +4247,7 @@ const Drawer = (_a) => {
|
|
|
4241
4247
|
return (React.createElement(React.Fragment, null,
|
|
4242
4248
|
React.createElement(Container$3, Object.assign({}, accessibleProps, { "$position": position, "$width": width, "data-itemid": `${baseId}-container` }),
|
|
4243
4249
|
React.createElement(Header$2, { "data-itemid": `${baseId}-header` },
|
|
4244
|
-
React.createElement(
|
|
4250
|
+
React.createElement(HeaderWrapper, { "data-itemid": `${baseId}-header-content` },
|
|
4245
4251
|
title ? (React.createElement(Heading, { dataItemid: `${baseId}-title`, type: 'secondary' }, title)) : null,
|
|
4246
4252
|
description ? (React.createElement(Copy, { color: 'GRAY', "data-itemid": `${baseId}-description` }, description)) : null),
|
|
4247
4253
|
React.createElement(Close$1, { "data-itemid": `${baseId}-close`, onClick: onClose },
|