@innovaccer/design-system 2.32.0 → 2.33.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.
@@ -82,7 +82,7 @@
82
82
  height: var(--spacing-2);
83
83
  padding: var(--spacing-s);
84
84
  margin-left: var(--spacing);
85
- margin-top: 6px;
85
+ margin-top: var(--spacing-0-75);
86
86
  cursor: pointer;
87
87
  border-radius: 10px;
88
88
  }
@@ -32,7 +32,7 @@
32
32
  align-items: center;
33
33
  margin-left: var(--spacing-l);
34
34
  margin-top: var(--spacing-l);
35
- margin-bottom: 6px;
35
+ margin-bottom: var(--spacing-0-75);
36
36
  }
37
37
 
38
38
  .Dropdown-section--withClear {
@@ -63,8 +63,8 @@
63
63
 
64
64
  .Option,
65
65
  .Option-loading {
66
- padding-top: 6px;
67
- padding-bottom: 6px;
66
+ padding-top: var(--spacing-0-75);
67
+ padding-bottom: var(--spacing-0-75);
68
68
  padding-left: var(--spacing-l);
69
69
  padding-right: var(--spacing);
70
70
  }
@@ -80,8 +80,8 @@
80
80
  .OptionCheckbox {
81
81
  width: 100%;
82
82
  padding-left: var(--spacing-l);
83
- padding-top: 6px;
84
- padding-bottom: 6px;
83
+ padding-top: var(--spacing-0-75);
84
+ padding-bottom: var(--spacing-0-75);
85
85
  }
86
86
 
87
87
  .Option--active,
@@ -23,6 +23,7 @@
23
23
  display: flex;
24
24
  justify-content: center;
25
25
  align-items: center;
26
+ flex-shrink: 0;
26
27
  }
27
28
  .FileItem-file {
28
29
  display: flex;
@@ -38,6 +39,7 @@
38
39
  white-space: nowrap;
39
40
  overflow: hidden;
40
41
  text-overflow: ellipsis;
42
+ margin-right: var(--spacing);
41
43
  margin-left: var(--spacing-l);
42
44
  }
43
45
  .FileItem-error {
@@ -26,8 +26,8 @@
26
26
 
27
27
  .Input--regular {
28
28
  height: var(--font-height-l);
29
- padding-top: 6px;
30
- padding-bottom: 6px;
29
+ padding-top: var(--spacing-0-75);
30
+ padding-bottom: var(--spacing-0-75);
31
31
  }
32
32
 
33
33
  .Input--large {
@@ -16,7 +16,7 @@
16
16
  .Menu-Group-Label {
17
17
  display: flex;
18
18
  align-items: center;
19
- padding-bottom: 6px;
19
+ padding-bottom: var(--spacing-0-75);
20
20
  padding-top: var(--spacing-l);
21
21
  padding-left: var(--spacing-2);
22
22
  padding-right: var(--spacing-l);
@@ -8,8 +8,8 @@
8
8
  font-size: var(--font-size-s);
9
9
  line-height: var(--font-height-s);
10
10
  text-transform: uppercase;
11
- padding-right: 6px;
12
- padding-left: 6px;
11
+ padding-right: var(--spacing-0-75);
12
+ padding-left: var(--spacing-0-75);
13
13
  padding-top: var(--spacing-s);
14
14
  padding-bottom: var(--spacing-s);
15
15
  border-radius: 20px;
@@ -10,7 +10,7 @@
10
10
  height: var(--spacing);
11
11
  width: var(--spacing);
12
12
  margin-right: var(--spacing);
13
- margin-top: 6px;
13
+ margin-top: var(--spacing-0-75);
14
14
  }
15
15
 
16
16
  .StatusHint--alert {
@@ -38,7 +38,7 @@
38
38
  width: 100%;
39
39
  background-color: var(--secondary-light);
40
40
  transition: background 120ms ease;
41
- padding-right: 6px;
41
+ padding-right: var(--spacing-0-75);
42
42
  }
43
43
 
44
44
  .Switch-input:focus ~ .Switch-wrapper {
@@ -93,7 +93,7 @@
93
93
  .Switch-wrapper--checked {
94
94
  background-color: var(--primary);
95
95
  transition: background 120ms ease;
96
- padding-left: 6px;
96
+ padding-left: var(--spacing-0-75);
97
97
  padding-right: 2px !important;
98
98
  }
99
99
 
@@ -11,7 +11,7 @@
11
11
  text-transform: uppercase;
12
12
  padding-left: var(--spacing-2);
13
13
  padding-top: var(--spacing-l);
14
- padding-bottom: 6px;
14
+ padding-bottom: var(--spacing-0-75);
15
15
  margin-top: var(--spacing);
16
16
  }
17
17
 
@@ -119,6 +119,12 @@
119
119
  white-space: nowrap;
120
120
  }
121
121
 
122
+ .MenuItem--overflow {
123
+ overflow: hidden;
124
+ text-overflow: ellipsis;
125
+ white-space: nowrap;
126
+ }
127
+
122
128
  .MenuItem-count {
123
129
  margin-right: var(--spacing-m);
124
130
  }
@@ -144,12 +144,12 @@ body {
144
144
  }
145
145
 
146
146
  .Label-requiredIndicator {
147
- height: 6px;
148
- width: 6px;
147
+ height: var(--spacing-0-75);
148
+ width: var(--spacing-0-75);
149
149
  border-radius: 50%;
150
150
  background: var(--alert);
151
151
  margin-left: var(--spacing-m);
152
- margin-bottom: 6px;
152
+ margin-bottom: var(--spacing-0-75);
153
153
  display: inline-flex;
154
154
  }
155
155
 
@@ -95,6 +95,7 @@
95
95
  --spacing-xs: 1px;
96
96
  --spacing-s: 2px;
97
97
  --spacing-m: 4px;
98
+ --spacing-0-75: 6px;
98
99
  --spacing: 8px;
99
100
  --spacing-l: 12px;
100
101
  /* 8 * 2 */
@@ -747,12 +747,12 @@
747
747
  "affectsGlobalScope": false
748
748
  },
749
749
  "../../core/components/organisms/verticalNav/MenuItem.tsx": {
750
- "version": "62860f2b2b48c6ca6012ce1379047dde1f8cb91cc3e3024fd82a2a6397e37e49",
750
+ "version": "37c875613577027e6abd3d875599079e27f06080d6b0774dd4a398a21b07b15c",
751
751
  "signature": "5e37b7f569d09c007d1f438d81dbf26264baa12d49b0d34921a4233bb29dea05",
752
752
  "affectsGlobalScope": false
753
753
  },
754
754
  "../../core/components/organisms/verticalNav/VerticalNav.tsx": {
755
- "version": "7311d817228228ec6fa49fdd2af55dee35f57927e71d2a533b99d00a5d0ff52b",
755
+ "version": "65cfe866cff1438e203b3bc8afd395beea4047f3cf2a3e8e3c48182159886b8e",
756
756
  "signature": "b6a81d40026ba8bd3a2cbf23c794ebad04a3cd7ae697b1a3fcbca6f0cb11ad7f",
757
757
  "affectsGlobalScope": false
758
758
  },
@@ -1507,7 +1507,7 @@
1507
1507
  "affectsGlobalScope": false
1508
1508
  },
1509
1509
  "../../core/components/molecules/fileList/FileListItem.tsx": {
1510
- "version": "2d2ff75edf674c035eb2828f0f071eb73ab894b712974f2df2bea460e4dbf044",
1510
+ "version": "450340557762254d4fe912fb7a7d8fb783dee6b39320c85ab2b6d6ea1875dc91",
1511
1511
  "signature": "0210946614d27a667d765a6b5ca34d24ff0e7bbb943879ef1e5ba80451586260",
1512
1512
  "affectsGlobalScope": false
1513
1513
  },
@@ -1867,13 +1867,13 @@
1867
1867
  "affectsGlobalScope": false
1868
1868
  },
1869
1869
  "../../core/components/organisms/select/SearchInput.tsx": {
1870
- "version": "f29723058f63146e06e3087a9be5aa7915932f8d2d1034d56b9ada1f00f2e255",
1871
- "signature": "23e833d128dc88651bd593f00806d51c074283658b7c844a8dd5f4c0198f6601",
1870
+ "version": "988f8843cfa29d4d785f3379c11506ef28d1c9c204db65e6b8b02eb2b834904d",
1871
+ "signature": "c6850a1c6e3379acf977bad00bca2372320fa6b027ffd24eae857d2a6c31cc98",
1872
1872
  "affectsGlobalScope": false
1873
1873
  },
1874
1874
  "../../core/components/organisms/select/SelectEmptyTemplate.tsx": {
1875
- "version": "249ad4ba02ac0921c4672cfe95d3d690c4adc330583b99b6b8a2fb90cd17ecaa",
1876
- "signature": "8b178f35724e96726150cb894398a7710abcf52f3812cdf724ebb03b0335eec5",
1875
+ "version": "f041344b371db22a3e1b3b070c4a810017d7cdb2a6db823a27e054a103b04034",
1876
+ "signature": "e48f1587740af45506a9b690ec0f4201e28e60f916d8ee47429acc615396ea0d",
1877
1877
  "affectsGlobalScope": false
1878
1878
  },
1879
1879
  "../../core/components/organisms/select/SelectFooter.tsx": {
@@ -1882,8 +1882,8 @@
1882
1882
  "affectsGlobalScope": false
1883
1883
  },
1884
1884
  "../../core/components/organisms/select/Select.tsx": {
1885
- "version": "2c96ad056bd4908e63dabbe4d8b7d34f890b97c2bed9cbfb0157649b97eb9835",
1886
- "signature": "a310c882f903b62c07d5199c3ce6af1ef34d25482d6646441508867bcf148b72",
1885
+ "version": "b49d342189f82080e89ce6ebcba12818a1a1d7fef358a044bb17ad672aae5fda",
1886
+ "signature": "7bc3fc60e1b8d3eef4ad6f448e1771a2013c95ba8bdaa55481bb17a14260a8e5",
1887
1887
  "affectsGlobalScope": false
1888
1888
  },
1889
1889
  "../../core/components/organisms/select/index.tsx": {
@@ -2017,7 +2017,7 @@
2017
2017
  "affectsGlobalScope": false
2018
2018
  },
2019
2019
  "../../core/components/css-utilities/designTokens/Data.tsx": {
2020
- "version": "65190ad3be86bc70dee646ca84e2158789c4d7180506c0e650ac10c7b8789bf1",
2020
+ "version": "7daabc625d30ee5f1eb3af93302475a838b923bba48625ba44353d47cfc8b914",
2021
2021
  "signature": "2583c1f78c1b3d0dfe4ab20b9118007fd35cbc26426964b94c6f8a32844c4dc7",
2022
2022
  "affectsGlobalScope": false
2023
2023
  },
@@ -7268,7 +7268,7 @@
7268
7268
  "../../core/components/organisms/select/SelectContext.tsx",
7269
7269
  "../../core/components/organisms/select/utils.tsx",
7270
7270
  "../../core/index.tsx",
7271
- "../../core/utils/types.tsx",
7271
+ "../../core/index.type.tsx",
7272
7272
  "../../node_modules/@types/node/util.d.ts",
7273
7273
  "../../node_modules/@types/react/index.d.ts"
7274
7274
  ],
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { BaseProps } from "../../../utils/types";
3
- export interface SelectInputProps extends BaseProps {
2
+ import { InputProps } from "../../../index.type";
3
+ export interface SelectInputProps extends InputProps {
4
4
  onClear?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
5
5
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
6
  }
@@ -16,6 +16,8 @@ export interface SelectProps extends BaseProps {
16
16
  maxHeight?: number;
17
17
  minHeight?: number;
18
18
  value?: OptionType | OptionType[];
19
+ boundaryElement?: React.RefObject<HTMLElement> | Element;
20
+ appendToBody?: boolean;
19
21
  onOutsideClick?: () => void;
20
22
  triggerOptions?: SelectTriggerProps;
21
23
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { BaseProps } from "../../../utils/types";
3
3
  interface SelectEmptyTemplateProps extends BaseProps {
4
- title: string;
5
- description: string;
4
+ title?: string;
5
+ description?: string;
6
6
  children?: React.ReactNode;
7
7
  }
8
8
  export declare const SelectEmptyTemplate: (props: SelectEmptyTemplateProps) => JSX.Element;
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1714551645716
3
+ * Generated on: 1715707009997
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.32.0
5
+ * Version: v2.33.0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -14445,16 +14445,6 @@ var getNavItemColor = function getNavItemColor(isActive, disabled) {
14445
14445
  return disabled ? 'inverse-lightest' : isActive ? 'primary-dark' : 'inverse';
14446
14446
  };
14447
14447
 
14448
- var _MenuLabel = function MenuLabel(props) {
14449
- var label = props.label,
14450
- labelColor = props.labelColor;
14451
- return /*#__PURE__*/React.createElement(Text, {
14452
- "data-test": "DesignSystem-VerticalNav--Text",
14453
- color: labelColor,
14454
- className: "MenuItem-Text"
14455
- }, label);
14456
- };
14457
-
14458
14448
  var _MenuIcon = function MenuIcon(props) {
14459
14449
  var isChildrenVisible = props.isChildrenVisible;
14460
14450
  return /*#__PURE__*/React.createElement(Icon, {
@@ -14491,6 +14481,31 @@ var MenuItem$1 = function MenuItem(props) {
14491
14481
  onClick = props.onClick,
14492
14482
  customItemRenderer = props.customItemRenderer;
14493
14483
 
14484
+ var _React$useState = React.useState(false),
14485
+ _React$useState2 = _slicedToArray(_React$useState, 2),
14486
+ isTextTruncated = _React$useState2[0],
14487
+ setIsTextTruncated = _React$useState2[1];
14488
+
14489
+ var _Tooltip$useAutoToolt = Tooltip.useAutoTooltip(),
14490
+ detectTruncation = _Tooltip$useAutoToolt.detectTruncation;
14491
+
14492
+ var contentRef = /*#__PURE__*/React.createRef();
14493
+ React.useEffect(function () {
14494
+ var isTruncated = detectTruncation(contentRef);
14495
+ setIsTextTruncated(isTruncated);
14496
+ }, [contentRef]);
14497
+
14498
+ var _MenuLabel = function MenuLabel(props) {
14499
+ var label = props.label,
14500
+ labelColor = props.labelColor;
14501
+ return /*#__PURE__*/React.createElement(Text, {
14502
+ "data-test": "DesignSystem-VerticalNav--Text",
14503
+ ref: contentRef,
14504
+ color: labelColor,
14505
+ className: "MenuItem-Text MenuItem--overflow ".concat(hasSubmenu || menu.count !== undefined ? '' : 'mr-5')
14506
+ }, label);
14507
+ };
14508
+
14494
14509
  var onClickHandler = function onClickHandler(ev) {
14495
14510
  ev.preventDefault();
14496
14511
  if (onClick) onClick(menu);
@@ -14527,6 +14542,7 @@ var MenuItem$1 = function MenuItem(props) {
14527
14542
  if (!expanded && !menu.icon) return null;
14528
14543
 
14529
14544
  var customItemProps = _objectSpread2(_objectSpread2({}, props), {}, {
14545
+ contentRef: contentRef,
14530
14546
  MenuIcon: function MenuIcon() {
14531
14547
  return _MenuIcon({
14532
14548
  isChildrenVisible: isChildrenVisible
@@ -14551,7 +14567,11 @@ var MenuItem$1 = function MenuItem(props) {
14551
14567
  /*#__PURE__*/
14552
14568
  // TODO(a11y)
14553
14569
  // eslint-disable-next-line
14554
- React.createElement(Link$1, _extends$2({
14570
+ React.createElement(Tooltip, {
14571
+ showTooltip: expanded ? isTextTruncated : true,
14572
+ tooltip: menu.label,
14573
+ position: "right"
14574
+ }, /*#__PURE__*/React.createElement(Link$1, _extends$2({
14555
14575
  componentType: "a",
14556
14576
  className: ItemClass
14557
14577
  }, baseProps), /*#__PURE__*/React.createElement("div", {
@@ -14564,7 +14584,7 @@ var MenuItem$1 = function MenuItem(props) {
14564
14584
  }), expanded && /*#__PURE__*/React.createElement(_MenuLabel, {
14565
14585
  label: menu.label,
14566
14586
  labelColor: itemColor
14567
- })), expanded && renderSubMenu());
14587
+ })), expanded && renderSubMenu()));
14568
14588
  };
14569
14589
  MenuItem$1.defaultProps = {
14570
14590
  isActive: false
@@ -14581,8 +14601,7 @@ var VerticalNav = function VerticalNav(props) {
14581
14601
  rounded = props.rounded,
14582
14602
  autoCollapse = props.autoCollapse,
14583
14603
  className = props.className,
14584
- customItemRenderer = props.customItemRenderer,
14585
- showTooltip = props.showTooltip;
14604
+ customItemRenderer = props.customItemRenderer;
14586
14605
 
14587
14606
  var _React$useState = React.useState({}),
14588
14607
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -14666,21 +14685,7 @@ var VerticalNav = function VerticalNav(props) {
14666
14685
  size: "small",
14667
14686
  weight: "strong",
14668
14687
  appearance: "subtle"
14669
- }, menu.group)), showTooltip ? /*#__PURE__*/React.createElement(Tooltip, {
14670
- tooltip: menu.label,
14671
- position: "right"
14672
- }, /*#__PURE__*/React.createElement(MenuItem$1, {
14673
- "data-test": "DesignSystem-VerticalNav--Item",
14674
- menu: menu,
14675
- expanded: expanded,
14676
- isActive: isActive,
14677
- hasSubmenu: hasSubmenu,
14678
- isChildren: false,
14679
- rounded: rounded,
14680
- isChildrenVisible: isChildrenVisible,
14681
- onClick: onClickHandler,
14682
- customItemRenderer: customItemRenderer
14683
- })) : /*#__PURE__*/React.createElement(MenuItem$1, {
14688
+ }, menu.group)), /*#__PURE__*/React.createElement(MenuItem$1, {
14684
14689
  "data-test": "DesignSystem-VerticalNav--Item",
14685
14690
  menu: menu,
14686
14691
  expanded: expanded,
@@ -14692,20 +14697,7 @@ var VerticalNav = function VerticalNav(props) {
14692
14697
  onClick: onClickHandler,
14693
14698
  customItemRenderer: customItemRenderer
14694
14699
  }), isChildrenVisible && menu.subMenu.map(function (subMenu, id) {
14695
- return showTooltip ? /*#__PURE__*/React.createElement(Tooltip, {
14696
- tooltip: subMenu.label,
14697
- position: "right"
14698
- }, /*#__PURE__*/React.createElement(MenuItem$1, {
14699
- key: id,
14700
- menu: subMenu,
14701
- expanded: expanded,
14702
- hasSubmenu: false,
14703
- isChildren: true,
14704
- rounded: rounded,
14705
- onClick: onClickHandler,
14706
- isActive: isMenuActive(menus, subMenu, active),
14707
- customItemRenderer: customItemRenderer
14708
- })) : /*#__PURE__*/React.createElement(MenuItem$1, {
14700
+ return /*#__PURE__*/React.createElement(MenuItem$1, {
14709
14701
  key: id,
14710
14702
  menu: subMenu,
14711
14703
  expanded: expanded,
@@ -22243,11 +22235,13 @@ var FileListItem = function FileListItem(props) {
22243
22235
  }), /*#__PURE__*/React.createElement(Text, {
22244
22236
  "data-test": "DesignSystem-FileListItem--Name",
22245
22237
  className: "FileItem-text",
22246
- appearance: status === 'completed' ? 'default' : 'subtle'
22238
+ appearance: status === 'completed' ? 'default' : 'subtle',
22239
+ weight: "medium"
22247
22240
  }, name)), /*#__PURE__*/React.createElement("div", {
22248
22241
  className: "FileItem-actions"
22249
22242
  }, /*#__PURE__*/React.createElement(Text, {
22250
22243
  className: "FileItem-size",
22244
+ size: "small",
22251
22245
  appearance: 'subtle',
22252
22246
  "data-test": "DesignSystem-FileListItem--Size"
22253
22247
  }, fileSize || file.size), !!actions && actions)), status === 'error' && /*#__PURE__*/React.createElement(InlineMessage, {
@@ -25949,6 +25943,8 @@ var Select = /*#__PURE__*/React.forwardRef(function (props, ref) {
25949
25943
  maxHeight = props.maxHeight,
25950
25944
  minHeight = props.minHeight,
25951
25945
  value = props.value,
25946
+ boundaryElement = props.boundaryElement,
25947
+ appendToBody = props.appendToBody,
25952
25948
  _props$multiSelect = props.multiSelect,
25953
25949
  multiSelect = _props$multiSelect === void 0 ? false : _props$multiSelect,
25954
25950
  onOutsideClick = props.onOutsideClick,
@@ -26103,6 +26099,8 @@ var Select = /*#__PURE__*/React.forwardRef(function (props, ref) {
26103
26099
  className: "mt-3",
26104
26100
  triggerClass: "d-block",
26105
26101
  customStyle: popoverStyle,
26102
+ boundaryElement: boundaryElement,
26103
+ appendToBody: appendToBody,
26106
26104
  trigger: /*#__PURE__*/React.createElement(SelectTrigger, _extends$2({
26107
26105
  "aria-controls": "select-listbox"
26108
26106
  }, triggerOptions))
@@ -26591,6 +26589,6 @@ Menu.defaultProps = {
26591
26589
  position: 'bottom-start'
26592
26590
  };
26593
26591
 
26594
- var version = "2.32.0";
26592
+ var version = "2.33.0";
26595
26593
 
26596
26594
  export { ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, LinkButton, List, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1714551645954
3
+ * Generated on: 1715707010250
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.32.0
5
+ * Version: v2.33.0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -9084,16 +9084,6 @@
9084
9084
  return disabled ? 'inverse-lightest' : isActive ? 'primary-dark' : 'inverse';
9085
9085
  };
9086
9086
 
9087
- var _MenuLabel = function MenuLabel(props) {
9088
- var label = props.label,
9089
- labelColor = props.labelColor;
9090
- return /*#__PURE__*/React__namespace.createElement(Text, {
9091
- "data-test": "DesignSystem-VerticalNav--Text",
9092
- color: labelColor,
9093
- className: "MenuItem-Text"
9094
- }, label);
9095
- };
9096
-
9097
9087
  var _MenuIcon = function MenuIcon(props) {
9098
9088
  var isChildrenVisible = props.isChildrenVisible;
9099
9089
  return /*#__PURE__*/React__namespace.createElement(Icon, {
@@ -9130,6 +9120,28 @@
9130
9120
  onClick = props.onClick,
9131
9121
  customItemRenderer = props.customItemRenderer;
9132
9122
 
9123
+ var _b = React__namespace.useState(false),
9124
+ isTextTruncated = _b[0],
9125
+ setIsTextTruncated = _b[1];
9126
+
9127
+ var detectTruncation = Tooltip.useAutoTooltip().detectTruncation;
9128
+ var contentRef = /*#__PURE__*/React__namespace.createRef();
9129
+ React__namespace.useEffect(function () {
9130
+ var isTruncated = detectTruncation(contentRef);
9131
+ setIsTextTruncated(isTruncated);
9132
+ }, [contentRef]);
9133
+
9134
+ var _MenuLabel = function MenuLabel(props) {
9135
+ var label = props.label,
9136
+ labelColor = props.labelColor;
9137
+ return /*#__PURE__*/React__namespace.createElement(Text, {
9138
+ "data-test": "DesignSystem-VerticalNav--Text",
9139
+ ref: contentRef,
9140
+ color: labelColor,
9141
+ className: "MenuItem-Text MenuItem--overflow " + (hasSubmenu || menu.count !== undefined ? '' : 'mr-5')
9142
+ }, label);
9143
+ };
9144
+
9133
9145
  var onClickHandler = function onClickHandler(ev) {
9134
9146
  ev.preventDefault();
9135
9147
  if (onClick) onClick(menu);
@@ -9166,6 +9178,7 @@
9166
9178
  if (!expanded && !menu.icon) return null;
9167
9179
 
9168
9180
  var customItemProps = __assign(__assign({}, props), {
9181
+ contentRef: contentRef,
9169
9182
  MenuIcon: function MenuIcon() {
9170
9183
  return _MenuIcon({
9171
9184
  isChildrenVisible: isChildrenVisible
@@ -9186,7 +9199,11 @@
9186
9199
  }
9187
9200
  });
9188
9201
 
9189
- return customItemRenderer ? customItemRenderer(customItemProps) : /*#__PURE__*/React__namespace.createElement(Link$1, __assign({
9202
+ return customItemRenderer ? customItemRenderer(customItemProps) : /*#__PURE__*/React__namespace.createElement(Tooltip, {
9203
+ showTooltip: expanded ? isTextTruncated : true,
9204
+ tooltip: menu.label,
9205
+ position: "right"
9206
+ }, /*#__PURE__*/React__namespace.createElement(Link$1, __assign({
9190
9207
  componentType: "a",
9191
9208
  className: ItemClass
9192
9209
  }, baseProps), /*#__PURE__*/React__namespace.createElement("div", {
@@ -9199,7 +9216,7 @@
9199
9216
  }), expanded && /*#__PURE__*/React__namespace.createElement(_MenuLabel, {
9200
9217
  label: menu.label,
9201
9218
  labelColor: itemColor
9202
- })), expanded && renderSubMenu());
9219
+ })), expanded && renderSubMenu()));
9203
9220
  };
9204
9221
  MenuItem$1.defaultProps = {
9205
9222
  isActive: false
@@ -9215,8 +9232,7 @@
9215
9232
  rounded = props.rounded,
9216
9233
  autoCollapse = props.autoCollapse,
9217
9234
  className = props.className,
9218
- customItemRenderer = props.customItemRenderer,
9219
- showTooltip = props.showTooltip;
9235
+ customItemRenderer = props.customItemRenderer;
9220
9236
 
9221
9237
  var _b = React__namespace.useState({}),
9222
9238
  subMenuExpandedState = _b[0],
@@ -9302,21 +9318,7 @@
9302
9318
  size: "small",
9303
9319
  weight: "strong",
9304
9320
  appearance: "subtle"
9305
- }, menu.group)), showTooltip ? /*#__PURE__*/React__namespace.createElement(Tooltip, {
9306
- tooltip: menu.label,
9307
- position: "right"
9308
- }, /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9309
- "data-test": "DesignSystem-VerticalNav--Item",
9310
- menu: menu,
9311
- expanded: expanded,
9312
- isActive: isActive,
9313
- hasSubmenu: hasSubmenu,
9314
- isChildren: false,
9315
- rounded: rounded,
9316
- isChildrenVisible: isChildrenVisible,
9317
- onClick: onClickHandler,
9318
- customItemRenderer: customItemRenderer
9319
- })) : /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9321
+ }, menu.group)), /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9320
9322
  "data-test": "DesignSystem-VerticalNav--Item",
9321
9323
  menu: menu,
9322
9324
  expanded: expanded,
@@ -9328,20 +9330,7 @@
9328
9330
  onClick: onClickHandler,
9329
9331
  customItemRenderer: customItemRenderer
9330
9332
  }), isChildrenVisible && menu.subMenu.map(function (subMenu, id) {
9331
- return showTooltip ? /*#__PURE__*/React__namespace.createElement(Tooltip, {
9332
- tooltip: subMenu.label,
9333
- position: "right"
9334
- }, /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9335
- key: id,
9336
- menu: subMenu,
9337
- expanded: expanded,
9338
- hasSubmenu: false,
9339
- isChildren: true,
9340
- rounded: rounded,
9341
- onClick: onClickHandler,
9342
- isActive: isMenuActive(menus, subMenu, active),
9343
- customItemRenderer: customItemRenderer
9344
- })) : /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9333
+ return /*#__PURE__*/React__namespace.createElement(MenuItem$1, {
9345
9334
  key: id,
9346
9335
  menu: subMenu,
9347
9336
  expanded: expanded,
@@ -16503,11 +16492,13 @@
16503
16492
  }), /*#__PURE__*/React__namespace.createElement(Text, {
16504
16493
  "data-test": "DesignSystem-FileListItem--Name",
16505
16494
  className: "FileItem-text",
16506
- appearance: status === 'completed' ? 'default' : 'subtle'
16495
+ appearance: status === 'completed' ? 'default' : 'subtle',
16496
+ weight: "medium"
16507
16497
  }, name)), /*#__PURE__*/React__namespace.createElement("div", {
16508
16498
  className: "FileItem-actions"
16509
16499
  }, /*#__PURE__*/React__namespace.createElement(Text, {
16510
16500
  className: "FileItem-size",
16501
+ size: "small",
16511
16502
  appearance: 'subtle',
16512
16503
  "data-test": "DesignSystem-FileListItem--Size"
16513
16504
  }, fileSize || file.size), !!actions && actions)), status === 'error' && /*#__PURE__*/React__namespace.createElement(InlineMessage, {
@@ -20117,6 +20108,8 @@
20117
20108
  maxHeight = props.maxHeight,
20118
20109
  minHeight = props.minHeight,
20119
20110
  value = props.value,
20111
+ boundaryElement = props.boundaryElement,
20112
+ appendToBody = props.appendToBody,
20120
20113
  _a = props.multiSelect,
20121
20114
  multiSelect = _a === void 0 ? false : _a,
20122
20115
  onOutsideClick = props.onOutsideClick,
@@ -20264,6 +20257,8 @@
20264
20257
  className: "mt-3",
20265
20258
  triggerClass: "d-block",
20266
20259
  customStyle: popoverStyle,
20260
+ boundaryElement: boundaryElement,
20261
+ appendToBody: appendToBody,
20267
20262
  trigger: /*#__PURE__*/React__namespace.createElement(SelectTrigger, __assign({
20268
20263
  "aria-controls": "select-listbox"
20269
20264
  }, triggerOptions))
@@ -20741,7 +20736,7 @@
20741
20736
  position: 'bottom-start'
20742
20737
  };
20743
20738
 
20744
- var version = "2.32.0";
20739
+ var version = "2.33.0";
20745
20740
 
20746
20741
  exports.ActionCard = ActionCard;
20747
20742
  exports.Avatar = Avatar;