@itwin/itwinui-react 1.37.0 → 1.37.3

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.
Files changed (120) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/cjs/core/Alert/Alert.js +1 -1
  3. package/cjs/core/Badge/Badge.js +1 -1
  4. package/cjs/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  5. package/cjs/core/Buttons/Button/Button.js +2 -2
  6. package/cjs/core/Buttons/IconButton/IconButton.js +2 -2
  7. package/cjs/core/Carousel/Carousel.js +1 -1
  8. package/cjs/core/Carousel/CarouselDotsList.js +1 -1
  9. package/cjs/core/Carousel/CarouselSlider.js +1 -1
  10. package/cjs/core/Checkbox/Checkbox.js +1 -1
  11. package/cjs/core/ColorPicker/ColorBuilder.js +3 -3
  12. package/cjs/core/ColorPicker/ColorInputPanel.js +1 -1
  13. package/cjs/core/ColorPicker/ColorSwatch.d.ts +1 -1
  14. package/cjs/core/ColorPicker/ColorSwatch.js +1 -1
  15. package/cjs/core/ComboBox/ComboBox.js +9 -6
  16. package/cjs/core/DatePicker/DatePicker.js +2 -2
  17. package/cjs/core/ExpandableBlock/ExpandableBlock.js +1 -1
  18. package/cjs/core/Footer/Footer.js +2 -2
  19. package/cjs/core/Header/HeaderBreadcrumbs.js +1 -1
  20. package/cjs/core/InformationPanel/InformationPanel.js +2 -2
  21. package/cjs/core/Input/Input.js +1 -1
  22. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +1 -1
  23. package/cjs/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
  24. package/cjs/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
  25. package/cjs/core/Radio/Radio.js +1 -1
  26. package/cjs/core/Select/Select.js +3 -3
  27. package/cjs/core/Slider/Slider.js +1 -1
  28. package/cjs/core/Slider/Thumb.js +16 -2
  29. package/cjs/core/Slider/Track.js +24 -13
  30. package/cjs/core/Surface/Surface.js +1 -1
  31. package/cjs/core/Table/Table.js +18 -6
  32. package/cjs/core/Table/TablePaginator.js +6 -6
  33. package/cjs/core/Table/TableRowMemoized.js +1 -1
  34. package/cjs/core/Table/cells/EditableCell.js +2 -1
  35. package/cjs/core/Table/columns/actionColumn.js +2 -2
  36. package/cjs/core/Table/utils.js +5 -5
  37. package/cjs/core/Tabs/Tabs.d.ts +1 -1
  38. package/cjs/core/Tabs/Tabs.js +7 -8
  39. package/cjs/core/Tag/TagContainer.js +1 -1
  40. package/cjs/core/Tile/Tile.js +1 -1
  41. package/cjs/core/Toast/Toast.js +2 -2
  42. package/cjs/core/Toast/ToastWrapper.js +1 -1
  43. package/cjs/core/Tree/TreeNode.js +2 -2
  44. package/cjs/core/Typography/Text/Text.js +1 -1
  45. package/cjs/core/UserIcon/UserIcon.js +2 -2
  46. package/cjs/core/UserIconGroup/UserIconGroup.js +3 -3
  47. package/cjs/core/Wizard/Step.js +1 -1
  48. package/cjs/core/Wizard/Wizard.js +1 -1
  49. package/cjs/core/utils/color/ColorValue.js +11 -11
  50. package/cjs/core/utils/color/index.js +5 -1
  51. package/cjs/core/utils/components/FocusTrap.js +6 -8
  52. package/cjs/core/utils/components/InputContainer.js +1 -1
  53. package/cjs/core/utils/components/MiddleTextTruncation.js +1 -1
  54. package/cjs/core/utils/components/VirtualScroll.js +1 -1
  55. package/cjs/core/utils/components/WithCSSTransition.js +5 -5
  56. package/cjs/core/utils/components/index.js +5 -1
  57. package/cjs/core/utils/functions/focusable.js +1 -1
  58. package/cjs/core/utils/functions/index.js +5 -1
  59. package/cjs/core/utils/hooks/index.js +5 -1
  60. package/cjs/core/utils/hooks/useOverflow.js +3 -3
  61. package/cjs/core/utils/hooks/useTheme.js +1 -1
  62. package/cjs/core/utils/index.js +5 -1
  63. package/cjs/index.js +5 -1
  64. package/esm/core/Alert/Alert.js +1 -1
  65. package/esm/core/Badge/Badge.js +1 -1
  66. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  67. package/esm/core/Buttons/Button/Button.js +2 -2
  68. package/esm/core/Buttons/IconButton/IconButton.js +2 -2
  69. package/esm/core/Carousel/Carousel.js +1 -1
  70. package/esm/core/Carousel/CarouselDotsList.js +1 -1
  71. package/esm/core/Carousel/CarouselSlider.js +1 -1
  72. package/esm/core/Checkbox/Checkbox.js +1 -1
  73. package/esm/core/ColorPicker/ColorBuilder.js +3 -3
  74. package/esm/core/ColorPicker/ColorInputPanel.js +1 -1
  75. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  76. package/esm/core/ColorPicker/ColorSwatch.js +1 -1
  77. package/esm/core/ComboBox/ComboBox.js +9 -6
  78. package/esm/core/DatePicker/DatePicker.js +2 -2
  79. package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
  80. package/esm/core/Footer/Footer.js +2 -2
  81. package/esm/core/Header/HeaderBreadcrumbs.js +1 -1
  82. package/esm/core/InformationPanel/InformationPanel.js +2 -2
  83. package/esm/core/Input/Input.js +1 -1
  84. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +1 -1
  85. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
  86. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
  87. package/esm/core/Radio/Radio.js +1 -1
  88. package/esm/core/Select/Select.js +3 -3
  89. package/esm/core/Slider/Slider.js +1 -1
  90. package/esm/core/Slider/Thumb.js +16 -2
  91. package/esm/core/Slider/Track.js +24 -13
  92. package/esm/core/Surface/Surface.js +1 -1
  93. package/esm/core/Table/Table.js +18 -6
  94. package/esm/core/Table/TablePaginator.js +6 -6
  95. package/esm/core/Table/TableRowMemoized.js +1 -1
  96. package/esm/core/Table/cells/EditableCell.js +2 -1
  97. package/esm/core/Table/columns/actionColumn.js +2 -2
  98. package/esm/core/Table/utils.js +5 -5
  99. package/esm/core/Tabs/Tabs.d.ts +1 -1
  100. package/esm/core/Tabs/Tabs.js +7 -8
  101. package/esm/core/Tag/TagContainer.js +1 -1
  102. package/esm/core/Tile/Tile.js +1 -1
  103. package/esm/core/Toast/Toast.js +2 -2
  104. package/esm/core/Toast/ToastWrapper.js +1 -1
  105. package/esm/core/Tree/TreeNode.js +2 -2
  106. package/esm/core/Typography/Text/Text.js +1 -1
  107. package/esm/core/UserIcon/UserIcon.js +2 -2
  108. package/esm/core/UserIconGroup/UserIconGroup.js +3 -3
  109. package/esm/core/Wizard/Step.js +1 -1
  110. package/esm/core/Wizard/Wizard.js +1 -1
  111. package/esm/core/utils/color/ColorValue.js +11 -11
  112. package/esm/core/utils/components/FocusTrap.js +6 -8
  113. package/esm/core/utils/components/InputContainer.js +1 -1
  114. package/esm/core/utils/components/MiddleTextTruncation.js +1 -1
  115. package/esm/core/utils/components/VirtualScroll.js +1 -1
  116. package/esm/core/utils/components/WithCSSTransition.js +5 -5
  117. package/esm/core/utils/functions/focusable.js +1 -1
  118. package/esm/core/utils/hooks/useOverflow.js +3 -3
  119. package/esm/core/utils/hooks/useTheme.js +1 -1
  120. package/package.json +21 -20
@@ -49,6 +49,16 @@ var columns_1 = require("./columns");
49
49
  var singleRowSelectedAction = 'singleRowSelected';
50
50
  exports.tableResizeStartAction = 'tableResizeStart';
51
51
  var tableResizeEndAction = 'tableResizeEnd';
52
+ var flattenColumns = function (columns) {
53
+ var flatColumns = [];
54
+ columns.forEach(function (column) {
55
+ flatColumns.push(column);
56
+ if (column.columns) {
57
+ flatColumns.push.apply(flatColumns, flattenColumns(column.columns));
58
+ }
59
+ });
60
+ return flatColumns;
61
+ };
52
62
  /**
53
63
  * Table based on [react-table](https://react-table.tanstack.com/docs/api/overview).
54
64
  * @example
@@ -93,10 +103,9 @@ var tableResizeEndAction = 'tableResizeEnd';
93
103
  */
94
104
  var Table = function (props) {
95
105
  var _a;
96
- var _b;
97
- var data = props.data, columns = props.columns, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, emptyTableContent = props.emptyTableContent, className = props.className, style = props.style, id = props.id, _d = props.isSelectable, isSelectable = _d === void 0 ? false : _d, onSelect = props.onSelect, onRowClick = props.onRowClick, _e = props.selectionMode, selectionMode = _e === void 0 ? 'multi' : _e, _f = props.isSortable, isSortable = _f === void 0 ? false : _f, onSort = props.onSort, stateReducer = props.stateReducer, onBottomReached = props.onBottomReached, onRowInViewport = props.onRowInViewport, _g = props.intersectionMargin, intersectionMargin = _g === void 0 ? 300 : _g, subComponent = props.subComponent, onExpand = props.onExpand, onFilter = props.onFilter, emptyFilteredTableContent = props.emptyFilteredTableContent, filterFunctions = props.filterTypes, expanderCell = props.expanderCell, isRowDisabled = props.isRowDisabled, rowProps = props.rowProps, _h = props.density, density = _h === void 0 ? 'default' : _h, _j = props.selectSubRows, selectSubRows = _j === void 0 ? true : _j, getSubRows = props.getSubRows, _k = props.selectRowOnClick, selectRowOnClick = _k === void 0 ? true : _k, paginatorRenderer = props.paginatorRenderer, _l = props.pageSize, pageSize = _l === void 0 ? 25 : _l, _m = props.isResizable, isResizable = _m === void 0 ? false : _m, _o = props.styleType, styleType = _o === void 0 ? 'default' : _o, _p = props.enableVirtualization, enableVirtualization = _p === void 0 ? false : _p, _q = props.enableColumnReordering, enableColumnReordering = _q === void 0 ? false : _q, rest = __rest(props, ["data", "columns", "isLoading", "emptyTableContent", "className", "style", "id", "isSelectable", "onSelect", "onRowClick", "selectionMode", "isSortable", "onSort", "stateReducer", "onBottomReached", "onRowInViewport", "intersectionMargin", "subComponent", "onExpand", "onFilter", "emptyFilteredTableContent", "filterTypes", "expanderCell", "isRowDisabled", "rowProps", "density", "selectSubRows", "getSubRows", "selectRowOnClick", "paginatorRenderer", "pageSize", "isResizable", "styleType", "enableVirtualization", "enableColumnReordering"]);
106
+ var data = props.data, columns = props.columns, _b = props.isLoading, isLoading = _b === void 0 ? false : _b, emptyTableContent = props.emptyTableContent, className = props.className, style = props.style, id = props.id, _c = props.isSelectable, isSelectable = _c === void 0 ? false : _c, onSelect = props.onSelect, onRowClick = props.onRowClick, _d = props.selectionMode, selectionMode = _d === void 0 ? 'multi' : _d, _e = props.isSortable, isSortable = _e === void 0 ? false : _e, onSort = props.onSort, stateReducer = props.stateReducer, onBottomReached = props.onBottomReached, onRowInViewport = props.onRowInViewport, _f = props.intersectionMargin, intersectionMargin = _f === void 0 ? 300 : _f, subComponent = props.subComponent, onExpand = props.onExpand, onFilter = props.onFilter, emptyFilteredTableContent = props.emptyFilteredTableContent, filterFunctions = props.filterTypes, expanderCell = props.expanderCell, isRowDisabled = props.isRowDisabled, rowProps = props.rowProps, _g = props.density, density = _g === void 0 ? 'default' : _g, _h = props.selectSubRows, selectSubRows = _h === void 0 ? true : _h, getSubRows = props.getSubRows, _j = props.selectRowOnClick, selectRowOnClick = _j === void 0 ? true : _j, paginatorRenderer = props.paginatorRenderer, _k = props.pageSize, pageSize = _k === void 0 ? 25 : _k, _l = props.isResizable, isResizable = _l === void 0 ? false : _l, _m = props.styleType, styleType = _m === void 0 ? 'default' : _m, _o = props.enableVirtualization, enableVirtualization = _o === void 0 ? false : _o, _p = props.enableColumnReordering, enableColumnReordering = _p === void 0 ? false : _p, rest = __rest(props, ["data", "columns", "isLoading", "emptyTableContent", "className", "style", "id", "isSelectable", "onSelect", "onRowClick", "selectionMode", "isSortable", "onSort", "stateReducer", "onBottomReached", "onRowInViewport", "intersectionMargin", "subComponent", "onExpand", "onFilter", "emptyFilteredTableContent", "filterTypes", "expanderCell", "isRowDisabled", "rowProps", "density", "selectSubRows", "getSubRows", "selectRowOnClick", "paginatorRenderer", "pageSize", "isResizable", "styleType", "enableVirtualization", "enableColumnReordering"]);
98
107
  (0, utils_1.useTheme)();
99
- var _r = react_1.default.useState(), ownerDocument = _r[0], setOwnerDocument = _r[1];
108
+ var _q = react_1.default.useState(), ownerDocument = _q[0], setOwnerDocument = _q[1];
100
109
  var defaultColumn = react_1.default.useMemo(function () { return ({
101
110
  maxWidth: 0,
102
111
  minWidth: 0,
@@ -109,7 +118,10 @@ var Table = function (props) {
109
118
  onBottomReachedRef.current = onBottomReached;
110
119
  onRowInViewportRef.current = onRowInViewport;
111
120
  }, [onBottomReached, onRowInViewport]);
112
- var hasManualSelectionColumn = (_b = columns[0]) === null || _b === void 0 ? void 0 : _b.columns.some(function (column) { return column.id === columns_1.SELECTION_CELL_ID; });
121
+ var hasManualSelectionColumn = react_1.default.useMemo(function () {
122
+ var flatColumns = flattenColumns(columns);
123
+ return flatColumns.some(function (column) { return column.id === columns_1.SELECTION_CELL_ID; });
124
+ }, [columns]);
113
125
  var tableStateReducer = react_1.default.useCallback(function (newState, action, previousState, instance) {
114
126
  switch (action.type) {
115
127
  case react_table_1.actions.toggleSortBy:
@@ -282,7 +294,7 @@ var Table = function (props) {
282
294
  resizeRef(element);
283
295
  }
284
296
  }, id: id }, getTableProps({
285
- className: (0, classnames_1.default)('iui-table', (_a = {}, _a["iui-" + density] = density !== 'default', _a), className),
297
+ className: (0, classnames_1.default)('iui-table', (_a = {}, _a["iui-".concat(density)] = density !== 'default', _a), className),
286
298
  style: style,
287
299
  }), ariaDataAttributes),
288
300
  react_1.default.createElement("div", { className: 'iui-table-header', ref: headerRef }, headerGroups.slice(1).map(function (headerGroup) {
@@ -299,7 +311,7 @@ var Table = function (props) {
299
311
  } }),
300
312
  column.render('Header'),
301
313
  (data.length !== 0 || areFiltersSet) && (react_1.default.createElement(filters_1.FilterToggle, { column: column, ownerDocument: ownerDocument })),
302
- data.length !== 0 && column.canSort && (react_1.default.createElement("div", { className: 'iui-cell-end-icon' }, column.isSorted && column.isSortedDesc ? (react_1.default.createElement(SortUp_1.default, { className: 'iui-icon iui-sort', "aria-hidden": true })) : (react_1.default.createElement(SortDown_1.default, { className: 'iui-icon iui-sort', "aria-hidden": true })))),
314
+ data.length !== 0 && column.canSort && (react_1.default.createElement("div", { className: 'iui-cell-end-icon' }, column.isSorted && column.isSortedDesc ? (react_1.default.createElement(SortDown_1.default, { className: 'iui-icon iui-sort', "aria-hidden": true })) : (react_1.default.createElement(SortUp_1.default, { className: 'iui-icon iui-sort', "aria-hidden": true })))),
303
315
  isResizable &&
304
316
  column.isResizerVisible &&
305
317
  index !== headerGroup.headers.length - 1 && (react_1.default.createElement("div", __assign({}, column.getResizerProps(), { className: 'iui-resizer' }),
@@ -40,15 +40,15 @@ var ProgressIndicators_1 = require("../ProgressIndicators");
40
40
  var Menu_1 = require("../Menu");
41
41
  var utils_1 = require("../utils");
42
42
  var defaultLocalization = {
43
- pageSizeLabel: function (size) { return size + " per page"; },
43
+ pageSizeLabel: function (size) { return "".concat(size, " per page"); },
44
44
  rangeLabel: function (startIndex, endIndex, totalRows, isLoading) {
45
45
  return isLoading
46
- ? startIndex + "-" + endIndex + "\u2026"
47
- : startIndex + "-" + endIndex + " of " + totalRows;
46
+ ? "".concat(startIndex, "-").concat(endIndex, "\u2026")
47
+ : "".concat(startIndex, "-").concat(endIndex, " of ").concat(totalRows);
48
48
  },
49
49
  previousPage: 'Previous page',
50
50
  nextPage: 'Next page',
51
- goToPageLabel: function (page) { return "Go to page " + page; },
51
+ goToPageLabel: function (page) { return "Go to page ".concat(page); },
52
52
  rowsPerPageLabel: 'Rows per page',
53
53
  };
54
54
  /**
@@ -72,12 +72,12 @@ var TablePaginator = function (props) {
72
72
  var needFocus = react_1.default.useRef(false);
73
73
  var isMounted = react_1.default.useRef(false);
74
74
  react_1.default.useEffect(function () {
75
- var _a, _b, _c;
75
+ var _a, _b;
76
76
  // Checking `isMounted.current` prevents from focusing on initial load.
77
77
  // Checking `needFocus.current` prevents from focusing page when clicked on previous/next page.
78
78
  if (isMounted.current && needFocus.current) {
79
79
  var buttonToFocus = Array.from((_b = (_a = pageListRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.iui-paginator-page-button')) !== null && _b !== void 0 ? _b : []).find(function (el) { var _a; return ((_a = el.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === (focusedIndex + 1).toString(); });
80
- (_c = buttonToFocus) === null || _c === void 0 ? void 0 : _c.focus();
80
+ buttonToFocus === null || buttonToFocus === void 0 ? void 0 : buttonToFocus.focus();
81
81
  needFocus.current = false;
82
82
  }
83
83
  isMounted.current = true;
@@ -37,7 +37,7 @@ var TableRow = function (props) {
37
37
  isLast && ((_b = onBottomReached.current) === null || _b === void 0 ? void 0 : _b.call(onBottomReached));
38
38
  }, [isLast, onBottomReached, onRowInViewport, row.original]);
39
39
  var rowRef = (0, utils_1.useIntersection)(onIntersect, {
40
- rootMargin: intersectionMargin + "px",
40
+ rootMargin: "".concat(intersectionMargin, "px"),
41
41
  });
42
42
  var userRowProps = rowProps === null || rowProps === void 0 ? void 0 : rowProps(row);
43
43
  var mergedProps = __assign(__assign(__assign({}, row.getRowProps({ style: { flex: "0 0 auto", minWidth: '100%' } })), userRowProps), {
@@ -42,7 +42,8 @@ var react_1 = __importDefault(require("react"));
42
42
  * }
43
43
  */
44
44
  var EditableCell = function (props) {
45
- var cellElementProps = props.cellElementProps, cellProps = props.cellProps, onCellEdit = props.onCellEdit, children = props.children, rest = __rest(props, ["cellElementProps", "cellProps", "onCellEdit", "children"]);
45
+ var cellElementProps = props.cellElementProps, cellProps = props.cellProps, onCellEdit = props.onCellEdit, children = props.children, isDisabled = props.isDisabled, rest = __rest(props, ["cellElementProps", "cellProps", "onCellEdit", "children", "isDisabled"]);
46
+ isDisabled; // To omit and prevent eslint error.
46
47
  var sanitizeString = function (text) {
47
48
  return text.replace(/(\r\n|\n|\r)+/gm, ' ');
48
49
  };
@@ -78,8 +78,8 @@ var ActionColumn = function (_a) {
78
78
  // Triggers an update to resize the widths of all visible columns
79
79
  dispatch({ type: Table_1.tableResizeStartAction });
80
80
  };
81
- return (react_1.default.createElement(Menu_1.MenuItem, { key: column.id, icon: react_1.default.createElement(Checkbox_1.Checkbox, { checked: checked, disabled: column.disableToggleVisibility, onClick: function (e) { return e.stopPropagation(); }, onChange: onClick, "aria-labelledby": "iui-column-" + column.id }), onClick: onClick, disabled: column.disableToggleVisibility },
82
- react_1.default.createElement("div", { id: "iui-column-" + column.id }, column.render('Header'))));
81
+ return (react_1.default.createElement(Menu_1.MenuItem, { key: column.id, icon: react_1.default.createElement(Checkbox_1.Checkbox, { checked: checked, disabled: column.disableToggleVisibility, onClick: function (e) { return e.stopPropagation(); }, onChange: onClick, "aria-labelledby": "iui-column-".concat(column.id) }), onClick: onClick, disabled: column.disableToggleVisibility },
82
+ react_1.default.createElement("div", { id: "iui-column-".concat(column.id) }, column.render('Header'))));
83
83
  });
84
84
  };
85
85
  return (react_1.default.createElement(DropdownMenu_1.DropdownMenu, { menuItems: headerCheckBoxes, onHide: function () { return setIsOpen(false); }, onShow: function () { return setIsOpen(true); } },
@@ -5,21 +5,21 @@ var getCellStyle = function (column, isTableResizing) {
5
5
  var style = {};
6
6
  style.flex = "1 1 145px";
7
7
  if (column.width) {
8
- var width = typeof column.width === 'string' ? column.width : column.width + "px";
8
+ var width = typeof column.width === 'string' ? column.width : "".concat(column.width, "px");
9
9
  style.width = width;
10
10
  // This allows flexbox to handle the width of the column on table resize
11
11
  if (isTableResizing && column.canResize) {
12
- style.flex = Number(column.width) + " " + Number(column.width) + " " + width;
12
+ style.flex = "".concat(Number(column.width), " ").concat(Number(column.width), " ").concat(width);
13
13
  }
14
14
  else {
15
- style.flex = "0 0 " + width;
15
+ style.flex = "0 0 ".concat(width);
16
16
  }
17
17
  }
18
18
  if (column.maxWidth) {
19
- style.maxWidth = column.maxWidth + "px";
19
+ style.maxWidth = "".concat(column.maxWidth, "px");
20
20
  }
21
21
  if (column.minWidth) {
22
- style.minWidth = column.minWidth + "px";
22
+ style.minWidth = "".concat(column.minWidth, "px");
23
23
  }
24
24
  return style;
25
25
  };
@@ -5,7 +5,7 @@ export declare type TabsProps = {
5
5
  * Elements shown for each tab.
6
6
  * Recommended to pass an array of `Tab` components.
7
7
  */
8
- labels: React.ReactNodeArray;
8
+ labels: React.ReactNode[];
9
9
  /**
10
10
  * Handler for activating a tab.
11
11
  */
@@ -83,20 +83,19 @@ var Tabs = function (props) {
83
83
  var activeTab = tablistRef.current.children[currentActiveIndex];
84
84
  var activeTabRect = activeTab.getBoundingClientRect();
85
85
  setStripeProperties(__assign(__assign({}, (orientation === 'horizontal' && {
86
- '--stripe-width': activeTabRect.width + "px",
87
- '--stripe-left': activeTab.offsetLeft + "px",
86
+ '--stripe-width': "".concat(activeTabRect.width, "px"),
87
+ '--stripe-left': "".concat(activeTab.offsetLeft, "px"),
88
88
  })), (orientation === 'vertical' && {
89
- '--stripe-height': activeTabRect.height + "px",
90
- '--stripe-top': activeTab.offsetTop + "px",
89
+ '--stripe-height': "".concat(activeTabRect.height, "px"),
90
+ '--stripe-top': "".concat(activeTab.offsetTop, "px"),
91
91
  })));
92
92
  }
93
93
  }, [currentActiveIndex, type, orientation, tabsWidth]);
94
94
  var _l = react_1.default.useState(), focusedIndex = _l[0], setFocusedIndex = _l[1];
95
95
  react_1.default.useEffect(function () {
96
- var _a;
97
96
  if (tablistRef.current && focusedIndex !== undefined) {
98
97
  var tab = tablistRef.current.querySelectorAll('.iui-tab')[focusedIndex];
99
- (_a = tab) === null || _a === void 0 ? void 0 : _a.focus();
98
+ tab === null || tab === void 0 ? void 0 : tab.focus();
100
99
  }
101
100
  }, [focusedIndex]);
102
101
  var _m = react_1.default.useState(false), hasSublabel = _m[0], setHasSublabel = _m[1]; // used for setting size
@@ -173,8 +172,8 @@ var Tabs = function (props) {
173
172
  }
174
173
  };
175
174
  var isIE = !((_c = (_b = (_a = (0, utils_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.CSS) === null || _b === void 0 ? void 0 : _b.supports) === null || _c === void 0 ? void 0 : _c.call(_b, '--stripe-width', '100px'));
176
- return (react_1.default.createElement("div", { className: (0, classnames_1.default)('iui-tabs-wrapper', "iui-" + orientation, wrapperClassName), style: stripeProperties },
177
- react_1.default.createElement("ul", __assign({ className: (0, classnames_1.default)('iui-tabs', "iui-" + type, {
175
+ return (react_1.default.createElement("div", { className: (0, classnames_1.default)('iui-tabs-wrapper', "iui-".concat(orientation), wrapperClassName), style: stripeProperties },
176
+ react_1.default.createElement("ul", __assign({ className: (0, classnames_1.default)('iui-tabs', "iui-".concat(type), {
178
177
  'iui-green': color === 'green',
179
178
  'iui-animated': type !== 'default' && !isIE,
180
179
  'iui-not-animated': isIE,
@@ -45,7 +45,7 @@ var TagContainer = function (props) {
45
45
  var className = props.className, children = props.children, overflow = props.overflow, _b = props.background, background = _b === void 0 ? 'none' : _b, rest = __rest(props, ["className", "children", "overflow", "background"]);
46
46
  (0, utils_1.useTheme)();
47
47
  return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('iui-tag-container', (_a = {},
48
- _a["iui-" + overflow] = !!overflow,
48
+ _a["iui-".concat(overflow)] = !!overflow,
49
49
  _a['iui-visible'] = background !== 'none',
50
50
  _a), className) }, rest), children));
51
51
  };
@@ -69,7 +69,7 @@ var Tile = function (props) {
69
69
  'iui-actionable': isActionable,
70
70
  }, className), tabIndex: isActionable ? 0 : undefined }, rest),
71
71
  thumbnail && (react_1.default.createElement("div", { className: 'iui-tile-thumbnail' },
72
- typeof thumbnail === 'string' ? (react_1.default.createElement("div", { className: 'iui-tile-thumbnail-picture', style: { backgroundImage: "url(" + thumbnail + ")" } })) : thumbnail && thumbnail.type === 'img' ? (react_1.default.cloneElement(thumbnail, {
72
+ typeof thumbnail === 'string' ? (react_1.default.createElement("div", { className: 'iui-tile-thumbnail-picture', style: { backgroundImage: "url(".concat(thumbnail, ")") } })) : thumbnail && thumbnail.type === 'img' ? (react_1.default.cloneElement(thumbnail, {
73
73
  className: 'iui-tile-thumbnail-picture',
74
74
  })) : react_1.default.isValidElement(thumbnail) ? (react_1.default.cloneElement(thumbnail, {
75
75
  className: (0, classnames_1.default)('iui-thumbnail-icon', thumbnail.props.className),
@@ -123,7 +123,7 @@ var Toast = function (props) {
123
123
  }, onExiting: function (node) {
124
124
  var _a = calculateOutAnimation(node), translateX = _a.translateX, translateY = _a.translateY;
125
125
  node.style.transform = animateOutTo
126
- ? "scale(0.9) translate(" + translateX + "px," + translateY + "px)"
126
+ ? "scale(0.9) translate(".concat(translateX, "px,").concat(translateY, "px)")
127
127
  : "scale(0.9)";
128
128
  node.style.opacity = '0';
129
129
  node.style.transitionDuration = animateOutTo ? '400ms' : '120ms';
@@ -140,7 +140,7 @@ exports.Toast = Toast;
140
140
  var ToastPresentation = function (props) {
141
141
  var content = props.content, category = props.category, _a = props.type, type = _a === void 0 ? 'temporary' : _a, link = props.link, hasCloseButton = props.hasCloseButton, onClose = props.onClose, className = props.className, rest = __rest(props, ["content", "category", "type", "link", "hasCloseButton", "onClose", "className"]);
142
142
  var StatusIcon = utils_1.StatusIconMap[category];
143
- return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)("iui-toast iui-" + category, className) }, rest),
143
+ return (react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)("iui-toast iui-".concat(category), className) }, rest),
144
144
  react_1.default.createElement("div", { className: 'iui-status-area' }, react_1.default.createElement(StatusIcon, { className: 'iui-icon' })),
145
145
  react_1.default.createElement("div", { className: 'iui-message' }, content),
146
146
  link && (react_1.default.createElement("a", { className: 'iui-toast-anchor', onClick: link.onClick }, link.title)),
@@ -26,7 +26,7 @@ var Toast_1 = __importDefault(require("./Toast"));
26
26
  var ToastWrapper = function (props) {
27
27
  var toasts = props.toasts, _a = props.placement, placement = _a === void 0 ? 'top' : _a;
28
28
  var placementPosition = placement.startsWith('top') ? 'top' : 'bottom';
29
- return (react_1.default.createElement("span", { className: (0, classnames_1.default)("iui-toast-wrapper", "iui-placement-" + placement) }, toasts.map(function (toastProps) {
29
+ return (react_1.default.createElement("span", { className: (0, classnames_1.default)("iui-toast-wrapper", "iui-placement-".concat(placement)) }, toasts.map(function (toastProps) {
30
30
  return (react_1.default.createElement(Toast_1.default, __assign({ key: toastProps.id, placementPosition: placementPosition }, toastProps)));
31
31
  })));
32
32
  };
@@ -63,7 +63,7 @@ var TreeNode = function (props) {
63
63
  var nodeRef = react_1.default.useRef(null);
64
64
  var styleDepth = react_1.default.useMemo(function () {
65
65
  var _a, _b, _c;
66
- return ((_c = (_b = (_a = (0, utils_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.CSS) === null || _b === void 0 ? void 0 : _b.supports) === null || _c === void 0 ? void 0 : _c.call(_b, "--level: " + nodeDepth))
66
+ return ((_c = (_b = (_a = (0, utils_1.getWindow)()) === null || _a === void 0 ? void 0 : _a.CSS) === null || _b === void 0 ? void 0 : _b.supports) === null || _c === void 0 ? void 0 : _c.call(_b, "--level: ".concat(nodeDepth)))
67
67
  ? { '--level': nodeDepth }
68
68
  : { marginLeft: nodeDepth ? nodeDepth * 28 : 0 };
69
69
  }, [nodeDepth]);
@@ -79,7 +79,7 @@ var TreeNode = function (props) {
79
79
  break;
80
80
  }
81
81
  if (parentNodeId) {
82
- var parentNode = (_b = nodeRef.current) === null || _b === void 0 ? void 0 : _b.ownerDocument.querySelector("#" + parentNodeId);
82
+ var parentNode = (_b = nodeRef.current) === null || _b === void 0 ? void 0 : _b.ownerDocument.querySelector("#".concat(parentNodeId));
83
83
  parentNode === null || parentNode === void 0 ? void 0 : parentNode.focus();
84
84
  break;
85
85
  }
@@ -49,7 +49,7 @@ exports.Text = react_1.default.forwardRef(function (props, ref) {
49
49
  var _b = props.variant, variant = _b === void 0 ? 'body' : _b, _c = props.as, Element = _c === void 0 ? 'div' : _c, className = props.className, _d = props.isMuted, isMuted = _d === void 0 ? false : _d, _e = props.isSkeleton, isSkeleton = _e === void 0 ? false : _e, rest = __rest(props, ["variant", "as", "className", "isMuted", "isSkeleton"]);
50
50
  (0, utils_1.useTheme)();
51
51
  return (react_1.default.createElement(Element, __assign({ className: (0, classnames_1.default)((_a = {},
52
- _a["iui-text-" + variant] = variant !== 'body',
52
+ _a["iui-text-".concat(variant)] = variant !== 'body',
53
53
  _a['iui-text-block'] = variant === 'body',
54
54
  _a['iui-text-muted'] = isMuted,
55
55
  _a['iui-skeleton'] = isSkeleton,
@@ -60,10 +60,10 @@ var UserIcon = function (props) {
60
60
  var _c = props.size, size = _c === void 0 ? 'small' : _c, status = props.status, abbreviation = props.abbreviation, image = props.image, _d = props.backgroundColor, backgroundColor = _d === void 0 ? 'white' : _d, title = props.title, translatedStatusTitles = props.translatedStatusTitles, className = props.className, style = props.style, rest = __rest(props, ["size", "status", "abbreviation", "image", "backgroundColor", "title", "translatedStatusTitles", "className", "style"]);
61
61
  (0, utils_1.useTheme)();
62
62
  var statusTitles = __assign(__assign({}, exports.defaultStatusTitles), translatedStatusTitles);
63
- return (react_1.default.createElement("span", __assign({ className: (0, classnames_1.default)('iui-user-icon', (_a = {}, _a["iui-" + size] = size !== 'medium', _a), className), title: title, style: style }, rest), image !== null && image !== void 0 ? image : (react_1.default.createElement("abbr", { className: 'iui-initials', style: { backgroundColor: backgroundColor } }, abbreviation === null || abbreviation === void 0 ? void 0 : abbreviation.substring(0, 2))),
63
+ return (react_1.default.createElement("span", __assign({ className: (0, classnames_1.default)('iui-user-icon', (_a = {}, _a["iui-".concat(size)] = size !== 'medium', _a), className), title: title, style: style }, rest), image !== null && image !== void 0 ? image : (react_1.default.createElement("abbr", { className: 'iui-initials', style: { backgroundColor: backgroundColor } }, abbreviation === null || abbreviation === void 0 ? void 0 : abbreviation.substring(0, 2))),
64
64
  react_1.default.createElement("span", { className: 'iui-stroke' }),
65
65
  status && (react_1.default.createElement("span", { title: statusTitles[status], className: (0, classnames_1.default)('iui-status', (_b = {},
66
- _b["iui-" + status] = !!status,
66
+ _b["iui-".concat(status)] = !!status,
67
67
  _b)), "aria-label": statusTitles[status] }))));
68
68
  };
69
69
  exports.UserIcon = UserIcon;
@@ -84,10 +84,10 @@ var UserIconGroup = function (props) {
84
84
  childrenArray.length <= maxIcons + 1 && getUserIconList(maxIcons + 1),
85
85
  childrenArray.length > maxIcons + 1 && (react_1.default.createElement(react_1.default.Fragment, null,
86
86
  getUserIconList(maxIcons),
87
- react_1.default.createElement("div", __assign({}, countIconProps, { className: (0, classnames_1.default)('iui-user-icon', (_a = {}, _a["iui-" + iconSize] = iconSize !== 'medium', _a), 'iui-user-icon-count', countIconProps === null || countIconProps === void 0 ? void 0 : countIconProps.className) }),
87
+ react_1.default.createElement("div", __assign({}, countIconProps, { className: (0, classnames_1.default)('iui-user-icon', (_a = {}, _a["iui-".concat(iconSize)] = iconSize !== 'medium', _a), 'iui-user-icon-count', countIconProps === null || countIconProps === void 0 ? void 0 : countIconProps.className) }),
88
88
  react_1.default.createElement("abbr", { className: 'iui-initials' }, childrenLength <= maxLength
89
- ? "" + (childrenLength - maxIcons)
90
- : maxLength + "+"),
89
+ ? "".concat(childrenLength - maxIcons)
90
+ : "".concat(maxLength, "+")),
91
91
  react_1.default.createElement("span", { className: 'iui-stroke' })))))));
92
92
  };
93
93
  exports.UserIconGroup = UserIconGroup;
@@ -54,7 +54,7 @@ var Step = function (props) {
54
54
  var stepShape = (react_1.default.createElement("li", __assign({ className: (0, classnames_1.default)('iui-wizard-step', {
55
55
  'iui-current': isActive,
56
56
  'iui-clickable': isClickable,
57
- }, className), style: __assign({ width: type === 'default' ? 100 / totalSteps + "%" : undefined }, style), onClick: onCompletedClick, onKeyDown: onKeyDown, "aria-current": isActive ? 'step' : undefined, tabIndex: isClickable ? 0 : undefined }, rest),
57
+ }, className), style: __assign({ width: type === 'default' ? "".concat(100 / totalSteps, "%") : undefined }, style), onClick: onCompletedClick, onKeyDown: onKeyDown, "aria-current": isActive ? 'step' : undefined, tabIndex: isClickable ? 0 : undefined }, rest),
58
58
  react_1.default.createElement("div", { className: 'iui-wizard-track-content' },
59
59
  react_1.default.createElement("span", { className: 'iui-wizard-circle' }, type === 'workflow' ? title : index + 1)),
60
60
  type === 'default' && (react_1.default.createElement("span", { className: 'iui-wizard-step-name' }, title))));
@@ -37,7 +37,7 @@ require("@itwin/itwinui-css/css/wizard.css");
37
37
  var Step_1 = require("./Step");
38
38
  var defaultWizardLocalization = {
39
39
  stepsCountLabel: function (currentStep, totalSteps) {
40
- return "Step " + currentStep + " of " + totalSteps + ":";
40
+ return "Step ".concat(currentStep, " of ").concat(totalSteps, ":");
41
41
  },
42
42
  };
43
43
  /**
@@ -334,9 +334,9 @@ var ColorValue = /** @class */ (function () {
334
334
  if (value < 0) {
335
335
  value = 0xffffffff + value + 1;
336
336
  }
337
- return "#" + ("00000000" + value.toString(16)).slice(-8);
337
+ return "#".concat("00000000".concat(value.toString(16)).slice(-8));
338
338
  }
339
- return "#" + ("000000" + this.getRgb().toString(16)).slice(-6);
339
+ return "#".concat("000000".concat(this.getRgb().toString(16)).slice(-6));
340
340
  };
341
341
  /**
342
342
  * Compute the 0xTTBBGGRR color corresponding to the specified hue, saturation, lightness values.
@@ -496,34 +496,34 @@ var ColorValue = /** @class */ (function () {
496
496
  ColorValue.prototype.toRgbString = function (includeAlpha) {
497
497
  var _a;
498
498
  var rgb = this.toRgbColor();
499
- var rgbString = rgb.r + ", " + rgb.g + ", " + rgb.b;
499
+ var rgbString = "".concat(rgb.r, ", ").concat(rgb.g, ", ").concat(rgb.b);
500
500
  if (includeAlpha) {
501
501
  var alpha = (_a = rgb.a) !== null && _a !== void 0 ? _a : 1;
502
- return "rgba(" + rgbString + ", " + ColorValue.getFormattedColorNumber(alpha, 2) + ")";
502
+ return "rgba(".concat(rgbString, ", ").concat(ColorValue.getFormattedColorNumber(alpha, 2), ")");
503
503
  }
504
- return "rgb(" + rgbString + ")";
504
+ return "rgb(".concat(rgbString, ")");
505
505
  };
506
506
  /** Convert this ColorValue to a string in the form "hsl(h,s,l) or hsla(h,s,l,a)" - i.e hsl(120,50%,50%). */
507
507
  ColorValue.prototype.toHslString = function (includeAlpha) {
508
508
  var _a, _b;
509
509
  var hsl = this.toHslColor();
510
- var hslString = ColorValue.getFormattedColorNumber((_a = this._hue) !== null && _a !== void 0 ? _a : hsl.h) + ", " + ColorValue.getFormattedColorNumber(hsl.s) + "%, " + ColorValue.getFormattedColorNumber(hsl.l) + "%";
510
+ var hslString = "".concat(ColorValue.getFormattedColorNumber((_a = this._hue) !== null && _a !== void 0 ? _a : hsl.h), ", ").concat(ColorValue.getFormattedColorNumber(hsl.s), "%, ").concat(ColorValue.getFormattedColorNumber(hsl.l), "%");
511
511
  if (includeAlpha) {
512
512
  var alpha = (_b = hsl.a) !== null && _b !== void 0 ? _b : 1;
513
- return "hsla(" + hslString + ", " + ColorValue.getFormattedColorNumber(alpha, 2) + ")";
513
+ return "hsla(".concat(hslString, ", ").concat(ColorValue.getFormattedColorNumber(alpha, 2), ")");
514
514
  }
515
- return "hsl(" + hslString + ")";
515
+ return "hsl(".concat(hslString, ")");
516
516
  };
517
517
  /** Convert this ColorValue to a string in the form "hsv(h,s,v) or hsva(h,s,v,a)" - i.e hsv(120,50%,50%). */
518
518
  ColorValue.prototype.toHsvString = function (includeAlpha) {
519
519
  var _a, _b;
520
520
  var hsv = this.toHsvColor();
521
- var hsvString = ((_a = this._hue) !== null && _a !== void 0 ? _a : hsv.h) + ", " + hsv.s + "%, " + hsv.v + "%";
521
+ var hsvString = "".concat((_a = this._hue) !== null && _a !== void 0 ? _a : hsv.h, ", ").concat(hsv.s, "%, ").concat(hsv.v, "%");
522
522
  if (includeAlpha) {
523
523
  var alpha = (_b = hsv.a) !== null && _b !== void 0 ? _b : 1;
524
- return "hsva(" + hsvString + ", " + ColorValue.getFormattedColorNumber(alpha, 2) + ")";
524
+ return "hsva(".concat(hsvString, ", ").concat(ColorValue.getFormattedColorNumber(alpha, 2), ")");
525
525
  }
526
- return "hsv(" + hsvString + ")";
526
+ return "hsv(".concat(hsvString, ")");
527
527
  };
528
528
  return ColorValue;
529
529
  }());
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -25,23 +25,21 @@ var FocusTrap = function (props) {
25
25
  return [firstElement, lastElement];
26
26
  };
27
27
  var onFirstFocus = function (event) {
28
- var _a, _b;
29
- var _c = getFirstLastFocusables(), firstElement = _c[0], lastElement = _c[1];
28
+ var _a = getFirstLastFocusables(), firstElement = _a[0], lastElement = _a[1];
30
29
  if (event.relatedTarget === firstElement) {
31
- (_a = lastElement) === null || _a === void 0 ? void 0 : _a.focus();
30
+ lastElement === null || lastElement === void 0 ? void 0 : lastElement.focus();
32
31
  }
33
32
  else {
34
- (_b = firstElement) === null || _b === void 0 ? void 0 : _b.focus();
33
+ firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
35
34
  }
36
35
  };
37
36
  var onLastFocus = function (event) {
38
- var _a, _b;
39
- var _c = getFirstLastFocusables(), firstElement = _c[0], lastElement = _c[1];
37
+ var _a = getFirstLastFocusables(), firstElement = _a[0], lastElement = _a[1];
40
38
  if (event.relatedTarget === lastElement) {
41
- (_a = firstElement) === null || _a === void 0 ? void 0 : _a.focus();
39
+ firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
42
40
  }
43
41
  else {
44
- (_b = lastElement) === null || _b === void 0 ? void 0 : _b.focus();
42
+ lastElement === null || lastElement === void 0 ? void 0 : lastElement.focus();
45
43
  }
46
44
  };
47
45
  return (react_1.default.createElement("div", null,
@@ -43,7 +43,7 @@ var InputContainer = function (props) {
43
43
  return (react_1.default.createElement(Element, __assign({ className: (0, classnames_1.default)('iui-input-container', (_a = {
44
44
  'iui-disabled': disabled
45
45
  },
46
- _a["iui-" + status] = !!status,
46
+ _a["iui-".concat(status)] = !!status,
47
47
  _a['iui-inline-label'] = isLabelInline,
48
48
  _a['iui-inline-icon'] = isIconInline,
49
49
  _a['iui-with-message'] = (!!message || !!icon || !!statusMessage) && !isLabelInline,
@@ -44,7 +44,7 @@ var MiddleTextTruncation = function (props) {
44
44
  var _b = (0, useOverflow_1.useOverflow)(text), ref = _b[0], visibleCount = _b[1];
45
45
  var truncatedText = react_1.default.useMemo(function () {
46
46
  if (visibleCount < text.length) {
47
- return "" + text.substr(0, visibleCount - endCharsCount - ELLIPSIS_CHAR.length) + ELLIPSIS_CHAR + text.substr(text.length - endCharsCount);
47
+ return "".concat(text.substr(0, visibleCount - endCharsCount - ELLIPSIS_CHAR.length)).concat(ELLIPSIS_CHAR).concat(text.substr(text.length - endCharsCount));
48
48
  }
49
49
  else {
50
50
  return text;
@@ -137,7 +137,7 @@ exports.VirtualScroll = react_1.default.forwardRef(function (_a, ref) {
137
137
  if (!parentRef.current) {
138
138
  return;
139
139
  }
140
- parentRef.current.style.transform = "translateY(" + getTranslateValue(childHeight.current, startIndex) + "px)";
140
+ parentRef.current.style.transform = "translateY(".concat(getTranslateValue(childHeight.current, startIndex), "px)");
141
141
  }, [bufferSize, itemsLength]);
142
142
  var removeScrollListener = react_1.default.useCallback(function () {
143
143
  var _a, _b;
@@ -37,17 +37,17 @@ var WithCSSTransition = function (props) {
37
37
  var expandedSize = react_1.default.useRef(0);
38
38
  var dimensionCamelCase = dimension === 'height' ? 'Height' : 'Width';
39
39
  return (react_1.default.createElement(react_transition_group_1.CSSTransition, __assign({ in: visible, timeout: 200, unmountOnExit: true, onEnter: function (node) {
40
- node.style["min" + dimensionCamelCase] = 'initial';
40
+ node.style["min".concat(dimensionCamelCase)] = 'initial';
41
41
  node.style[dimension] = '0px';
42
42
  }, onEntering: function (node) {
43
- node.style[dimension] = expandedSize.current + "px";
43
+ node.style[dimension] = "".concat(expandedSize.current, "px");
44
44
  }, onEntered: function (node) {
45
- node.style["min" + dimensionCamelCase] = '';
45
+ node.style["min".concat(dimensionCamelCase)] = '';
46
46
  node.style[dimension] = '';
47
47
  }, onExit: function (node) {
48
- node.style[dimension] = expandedSize.current + "px";
48
+ node.style[dimension] = "".concat(expandedSize.current, "px");
49
49
  }, onExiting: function (node) {
50
- node.style["min" + dimensionCamelCase] = 'initial';
50
+ node.style["min".concat(dimensionCamelCase)] = 'initial';
51
51
  node.style[dimension] = '0px';
52
52
  }, classNames: 'iui' }, rest), react_1.default.cloneElement(children, {
53
53
  ref: function (el) {
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -28,7 +28,7 @@ var getFocusableElements = function (container) {
28
28
  if (!container) {
29
29
  return [];
30
30
  }
31
- var elements = container.querySelectorAll(tabbableElementsSelector + ", [tabindex=\"-1\"]");
31
+ var elements = container.querySelectorAll("".concat(tabbableElementsSelector, ", [tabindex=\"-1\"]"));
32
32
  return Array.from(elements).filter(function (el) {
33
33
  return !el.hasAttribute('disabled') &&
34
34
  !el.classList.contains('iui-disabled') &&
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -67,15 +67,15 @@ var useOverflow = function (items, disabled, orientation) {
67
67
  return;
68
68
  }
69
69
  var dimension = orientation === 'horizontal' ? 'Width' : 'Height';
70
- var availableSize = containerRef.current["offset" + dimension];
71
- var requiredSize = containerRef.current["scroll" + dimension];
70
+ var availableSize = containerRef.current["offset".concat(dimension)];
71
+ var requiredSize = containerRef.current["scroll".concat(dimension)];
72
72
  if (availableSize < requiredSize) {
73
73
  var avgItemSize = requiredSize / visibleCount;
74
74
  var visibleItems = Math.floor(availableSize / avgItemSize);
75
75
  setVisibleCount(visibleItems);
76
76
  }
77
77
  else if (needsFullRerender.current) {
78
- var childrenSize = Array.from(containerRef.current.children).reduce(function (sum, child) { return sum + child["offset" + dimension]; }, 0);
78
+ var childrenSize = Array.from(containerRef.current.children).reduce(function (sum, child) { return sum + child["offset".concat(dimension)]; }, 0);
79
79
  var avgItemSize = childrenSize / visibleCount;
80
80
  var visibleItems = Math.floor(availableSize / avgItemSize);
81
81
  // Doubling the visible items to overflow the container. Just to be safe.
@@ -82,5 +82,5 @@ var applyTheme = function (theme, _a) {
82
82
  if (currentTheme) {
83
83
  classList.remove(currentTheme);
84
84
  }
85
- classList.add("iui-theme-" + theme + (highContrast ? '-hc' : ''));
85
+ classList.add("iui-theme-".concat(theme).concat(highContrast ? '-hc' : ''));
86
86
  };