@itwin/itwinui-react 1.37.0 → 1.37.1

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 (118) hide show
  1. package/CHANGELOG.md +6 -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 +1 -1
  29. package/cjs/core/Slider/Track.js +1 -1
  30. package/cjs/core/Surface/Surface.js +1 -1
  31. package/cjs/core/Table/Table.js +1 -1
  32. package/cjs/core/Table/TablePaginator.js +6 -6
  33. package/cjs/core/Table/TableRowMemoized.js +1 -1
  34. package/cjs/core/Table/columns/actionColumn.js +2 -2
  35. package/cjs/core/Table/utils.js +5 -5
  36. package/cjs/core/Tabs/Tabs.d.ts +1 -1
  37. package/cjs/core/Tabs/Tabs.js +7 -8
  38. package/cjs/core/Tag/TagContainer.js +1 -1
  39. package/cjs/core/Tile/Tile.js +1 -1
  40. package/cjs/core/Toast/Toast.js +2 -2
  41. package/cjs/core/Toast/ToastWrapper.js +1 -1
  42. package/cjs/core/Tree/TreeNode.js +2 -2
  43. package/cjs/core/Typography/Text/Text.js +1 -1
  44. package/cjs/core/UserIcon/UserIcon.js +2 -2
  45. package/cjs/core/UserIconGroup/UserIconGroup.js +3 -3
  46. package/cjs/core/Wizard/Step.js +1 -1
  47. package/cjs/core/Wizard/Wizard.js +1 -1
  48. package/cjs/core/utils/color/ColorValue.js +11 -11
  49. package/cjs/core/utils/color/index.js +5 -1
  50. package/cjs/core/utils/components/FocusTrap.js +6 -8
  51. package/cjs/core/utils/components/InputContainer.js +1 -1
  52. package/cjs/core/utils/components/MiddleTextTruncation.js +1 -1
  53. package/cjs/core/utils/components/VirtualScroll.js +1 -1
  54. package/cjs/core/utils/components/WithCSSTransition.js +5 -5
  55. package/cjs/core/utils/components/index.js +5 -1
  56. package/cjs/core/utils/functions/focusable.js +1 -1
  57. package/cjs/core/utils/functions/index.js +5 -1
  58. package/cjs/core/utils/hooks/index.js +5 -1
  59. package/cjs/core/utils/hooks/useOverflow.js +3 -3
  60. package/cjs/core/utils/hooks/useTheme.js +1 -1
  61. package/cjs/core/utils/index.js +5 -1
  62. package/cjs/index.js +5 -1
  63. package/esm/core/Alert/Alert.js +1 -1
  64. package/esm/core/Badge/Badge.js +1 -1
  65. package/esm/core/Breadcrumbs/Breadcrumbs.d.ts +2 -2
  66. package/esm/core/Buttons/Button/Button.js +2 -2
  67. package/esm/core/Buttons/IconButton/IconButton.js +2 -2
  68. package/esm/core/Carousel/Carousel.js +1 -1
  69. package/esm/core/Carousel/CarouselDotsList.js +1 -1
  70. package/esm/core/Carousel/CarouselSlider.js +1 -1
  71. package/esm/core/Checkbox/Checkbox.js +1 -1
  72. package/esm/core/ColorPicker/ColorBuilder.js +3 -3
  73. package/esm/core/ColorPicker/ColorInputPanel.js +1 -1
  74. package/esm/core/ColorPicker/ColorSwatch.d.ts +1 -1
  75. package/esm/core/ColorPicker/ColorSwatch.js +1 -1
  76. package/esm/core/ComboBox/ComboBox.js +9 -6
  77. package/esm/core/DatePicker/DatePicker.js +2 -2
  78. package/esm/core/ExpandableBlock/ExpandableBlock.js +1 -1
  79. package/esm/core/Footer/Footer.js +2 -2
  80. package/esm/core/Header/HeaderBreadcrumbs.js +1 -1
  81. package/esm/core/InformationPanel/InformationPanel.js +2 -2
  82. package/esm/core/Input/Input.js +1 -1
  83. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.d.ts +1 -1
  84. package/esm/core/ProgressIndicators/ProgressLinear/ProgressLinear.js +2 -2
  85. package/esm/core/ProgressIndicators/ProgressRadial/ProgressRadial.js +2 -2
  86. package/esm/core/Radio/Radio.js +1 -1
  87. package/esm/core/Select/Select.js +3 -3
  88. package/esm/core/Slider/Slider.js +1 -1
  89. package/esm/core/Slider/Thumb.js +1 -1
  90. package/esm/core/Slider/Track.js +1 -1
  91. package/esm/core/Surface/Surface.js +1 -1
  92. package/esm/core/Table/Table.js +1 -1
  93. package/esm/core/Table/TablePaginator.js +6 -6
  94. package/esm/core/Table/TableRowMemoized.js +1 -1
  95. package/esm/core/Table/columns/actionColumn.js +2 -2
  96. package/esm/core/Table/utils.js +5 -5
  97. package/esm/core/Tabs/Tabs.d.ts +1 -1
  98. package/esm/core/Tabs/Tabs.js +7 -8
  99. package/esm/core/Tag/TagContainer.js +1 -1
  100. package/esm/core/Tile/Tile.js +1 -1
  101. package/esm/core/Toast/Toast.js +2 -2
  102. package/esm/core/Toast/ToastWrapper.js +1 -1
  103. package/esm/core/Tree/TreeNode.js +2 -2
  104. package/esm/core/Typography/Text/Text.js +1 -1
  105. package/esm/core/UserIcon/UserIcon.js +2 -2
  106. package/esm/core/UserIconGroup/UserIconGroup.js +3 -3
  107. package/esm/core/Wizard/Step.js +1 -1
  108. package/esm/core/Wizard/Wizard.js +1 -1
  109. package/esm/core/utils/color/ColorValue.js +11 -11
  110. package/esm/core/utils/components/FocusTrap.js +6 -8
  111. package/esm/core/utils/components/InputContainer.js +1 -1
  112. package/esm/core/utils/components/MiddleTextTruncation.js +1 -1
  113. package/esm/core/utils/components/VirtualScroll.js +1 -1
  114. package/esm/core/utils/components/WithCSSTransition.js +5 -5
  115. package/esm/core/utils/functions/focusable.js +1 -1
  116. package/esm/core/utils/hooks/useOverflow.js +3 -3
  117. package/esm/core/utils/hooks/useTheme.js +1 -1
  118. package/package.json +20 -19
@@ -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
  };
@@ -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];
package/cjs/index.js CHANGED
@@ -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];
@@ -43,7 +43,7 @@ export var Alert = function (props) {
43
43
  var children = props.children, className = props.className, _a = props.type, type = _a === void 0 ? 'informational' : _a, clickableText = props.clickableText, clickableTextProps = props.clickableTextProps, onClick = props.onClick, onClose = props.onClose, style = props.style, _b = props.isSticky, isSticky = _b === void 0 ? false : _b, rest = __rest(props, ["children", "className", "type", "clickableText", "clickableTextProps", "onClick", "onClose", "style", "isSticky"]);
44
44
  useTheme();
45
45
  var StatusIcon = StatusIconMap[type];
46
- return (React.createElement("div", __assign({ className: cx('iui-alert', "iui-" + type, { 'iui-sticky': isSticky }, className), style: style }, rest),
46
+ return (React.createElement("div", __assign({ className: cx('iui-alert', "iui-".concat(type), { 'iui-sticky': isSticky }, className), style: style }, rest),
47
47
  React.createElement(StatusIcon, { className: 'iui-alert-icon' }),
48
48
  React.createElement("span", { className: 'iui-alert-message' },
49
49
  children,
@@ -60,7 +60,7 @@ export var Badge = function (props) {
60
60
  var backgroundColor = props.backgroundColor, style = props.style, className = props.className, children = props.children, rest = __rest(props, ["backgroundColor", "style", "className", "children"]);
61
61
  useTheme();
62
62
  var _style = backgroundColor &&
63
- ((_c = (_b = (_a = 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, "--iui-badge-background-color: " + backgroundColor))
63
+ ((_c = (_b = (_a = 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, "--iui-badge-background-color: ".concat(backgroundColor)))
64
64
  ? __assign({ '--iui-badge-background-color': getBadgeColorValue(backgroundColor) }, style) : __assign({ backgroundColor: getBadgeColorValue(backgroundColor) }, style);
65
65
  return (React.createElement("span", __assign({ className: cx('iui-badge', className), style: _style }, rest), children));
66
66
  };
@@ -10,7 +10,7 @@ export declare type BreadcrumbsProps = {
10
10
  /**
11
11
  * Breadcrumb items.
12
12
  */
13
- children: React.ReactNodeArray;
13
+ children: React.ReactNode[];
14
14
  /**
15
15
  * Specify a custom separator element to show between breadcrumb items.
16
16
  * Defaults to the `SvgChevronRight` icon.
@@ -48,7 +48,7 @@ export declare const Breadcrumbs: React.ForwardRefExoticComponent<{
48
48
  /**
49
49
  * Breadcrumb items.
50
50
  */
51
- children: React.ReactNodeArray;
51
+ children: React.ReactNode[];
52
52
  /**
53
53
  * Specify a custom separator element to show between breadcrumb items.
54
54
  * Defaults to the `SvgChevronRight` icon.
@@ -41,8 +41,8 @@ export var Button = React.forwardRef(function (props, ref) {
41
41
  var _a;
42
42
  var children = props.children, className = props.className, size = props.size, style = props.style, _b = props.styleType, styleType = _b === void 0 ? 'default' : _b, _c = props.type, type = _c === void 0 ? 'button' : _c, startIcon = props.startIcon, endIcon = props.endIcon, _d = props.as, Element = _d === void 0 ? 'button' : _d, rest = __rest(props, ["children", "className", "size", "style", "styleType", "type", "startIcon", "endIcon", "as"]);
43
43
  useTheme();
44
- return (React.createElement(Element, __assign({ ref: ref, className: cx('iui-button', "iui-" + styleType, (_a = {},
45
- _a["iui-" + size] = !!size,
44
+ return (React.createElement(Element, __assign({ ref: ref, className: cx('iui-button', "iui-".concat(styleType), (_a = {},
45
+ _a["iui-".concat(size)] = !!size,
46
46
  _a), className), style: style, type: type }, rest),
47
47
  startIcon &&
48
48
  React.cloneElement(startIcon, {
@@ -38,8 +38,8 @@ export var IconButton = React.forwardRef(function (props, ref) {
38
38
  var _a;
39
39
  var isActive = props.isActive, children = props.children, _b = props.styleType, styleType = _b === void 0 ? 'default' : _b, size = props.size, _c = props.type, type = _c === void 0 ? 'button' : _c, className = props.className, _d = props.as, Element = _d === void 0 ? 'button' : _d, rest = __rest(props, ["isActive", "children", "styleType", "size", "type", "className", "as"]);
40
40
  useTheme();
41
- return (React.createElement(Element, __assign({ ref: ref, className: cx('iui-button', "iui-" + styleType, (_a = {},
42
- _a["iui-" + size] = !!size,
41
+ return (React.createElement(Element, __assign({ ref: ref, className: cx('iui-button', "iui-".concat(styleType), (_a = {},
42
+ _a["iui-".concat(size)] = !!size,
43
43
  _a['iui-active'] = isActive,
44
44
  _a), className), type: type }, rest), React.cloneElement(children, {
45
45
  className: cx('iui-button-icon', children.props.className),
@@ -55,7 +55,7 @@ import { CarouselNavigation } from './CarouselNavigation';
55
55
  export var Carousel = Object.assign(React.forwardRef(function (props, ref) {
56
56
  var _a = props.activeSlideIndex, userActiveIndex = _a === void 0 ? 0 : _a, onSlideChange = props.onSlideChange, className = props.className, children = props.children, rest = __rest(props, ["activeSlideIndex", "onSlideChange", "className", "children"]);
57
57
  // Generate a stateful random id if not specified
58
- var id = React.useState(function () { var _a; return (_a = props.id) !== null && _a !== void 0 ? _a : "iui-carousel-" + getRandomValue(10); })[0];
58
+ var id = React.useState(function () { var _a; return (_a = props.id) !== null && _a !== void 0 ? _a : "iui-carousel-".concat(getRandomValue(10)); })[0];
59
59
  useTheme();
60
60
  var isManuallyUpdating = React.useRef(false);
61
61
  var scrollInstantly = React.useRef(false);
@@ -96,7 +96,7 @@ export var CarouselDotsList = React.forwardRef(function (props, ref) {
96
96
  var isSecondSmallDot = (index === firstVisibleDotIndex + 1 && index !== 1) ||
97
97
  (index === lastVisibleDotIndex - 1 && index !== slideCount - 2);
98
98
  var isClipped = index < firstVisibleDotIndex || index > lastVisibleDotIndex;
99
- return (React.createElement(CarouselDot, { key: index, "aria-label": "Slide " + index, isActive: index === currentIndex, onClick: function () { return handleSlideChange(index); }, isSmall: isSecondSmallDot, isSmaller: isFirstSmallDot || isClipped, id: idPrefix && idPrefix + "--dot-" + index, "aria-controls": idPrefix && idPrefix + "--slide-" + index }));
99
+ return (React.createElement(CarouselDot, { key: index, "aria-label": "Slide ".concat(index), isActive: index === currentIndex, onClick: function () { return handleSlideChange(index); }, isSmall: isSecondSmallDot, isSmaller: isFirstSmallDot || isClipped, id: idPrefix && "".concat(idPrefix, "--dot-").concat(index), "aria-controls": idPrefix && "".concat(idPrefix, "--slide-").concat(index) }));
100
100
  });
101
101
  }, [
102
102
  slideCount,
@@ -43,7 +43,7 @@ export var CarouselSlider = React.forwardRef(function (props, ref) {
43
43
  return (_a = React.Children.map(children, function (child, index) {
44
44
  return React.isValidElement(child)
45
45
  ? React.cloneElement(child, {
46
- id: idPrefix + "--slide-" + index,
46
+ id: "".concat(idPrefix, "--slide-").concat(index),
47
47
  index: index,
48
48
  })
49
49
  : child;
@@ -69,7 +69,7 @@ export var Checkbox = React.forwardRef(function (props, ref) {
69
69
  return !label ? (checkbox) : (React.createElement("label", { className: cx('iui-checkbox-wrapper', (_b = {
70
70
  'iui-disabled': disabled
71
71
  },
72
- _b["iui-" + status] = !!status,
72
+ _b["iui-".concat(status)] = !!status,
73
73
  _b['iui-loading'] = isLoading,
74
74
  _b), className), style: style },
75
75
  checkbox,
@@ -63,20 +63,20 @@ export var ColorBuilder = React.forwardRef(function (props, ref) {
63
63
  ]);
64
64
  var _p = React.useState(false), colorDotActive = _p[0], setColorDotActive = _p[1];
65
65
  var hueColorString = hueSliderColor.toHexString();
66
- var colorSquareStyle = ((_c = (_b = (_a = 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, "--iui-color-field-hue: " + hueColorString))
66
+ var colorSquareStyle = ((_c = (_b = (_a = 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, "--iui-color-field-hue: ".concat(hueColorString)))
67
67
  ? {
68
68
  '--iui-color-field-hue': hueColorString,
69
69
  '--iui-color-picker-selected-color': dotColorString,
70
70
  }
71
71
  : { backgroundColor: hueColorString };
72
- var opacitySliderStyle = ((_f = (_e = (_d = getWindow()) === null || _d === void 0 ? void 0 : _d.CSS) === null || _e === void 0 ? void 0 : _e.supports) === null || _f === void 0 ? void 0 : _f.call(_e, "--iui-color-picker-selected-color: " + hueColorString))
72
+ var opacitySliderStyle = ((_f = (_e = (_d = getWindow()) === null || _d === void 0 ? void 0 : _d.CSS) === null || _e === void 0 ? void 0 : _e.supports) === null || _f === void 0 ? void 0 : _f.call(_e, "--iui-color-picker-selected-color: ".concat(hueColorString)))
73
73
  ? { '--iui-color-picker-selected-color': hueColorString }
74
74
  : { backgroundColor: hueColorString };
75
75
  var squareTop = 100 - hsvColor.v;
76
76
  var squareLeft = hsvColor.s;
77
77
  var colorDotStyle = ((_j = (_h = (_g = getWindow()) === null || _g === void 0 ? void 0 : _g.CSS) === null || _h === void 0 ? void 0 : _h.supports) === null || _j === void 0 ? void 0 : _j.call(_h, "--iui-color-dot-inset: 0"))
78
78
  ? {
79
- '--iui-color-dot-inset': squareTop.toString() + "% auto auto " + squareLeft.toString() + "%",
79
+ '--iui-color-dot-inset': "".concat(squareTop.toString(), "% auto auto ").concat(squareLeft.toString(), "%"),
80
80
  }
81
81
  : {
82
82
  backgroundColor: dotColorString,
@@ -150,7 +150,7 @@ export var ColorInputPanel = React.forwardRef(function (props, ref) {
150
150
  React.createElement(Input, { size: 'small', maxLength: showAlpha ? 9 : 7, minLength: 1, placeholder: 'HEX', value: input[0], onChange: function (event) {
151
151
  var value = event.target.value.startsWith('#')
152
152
  ? event.target.value
153
- : "#" + event.target.value;
153
+ : "#".concat(event.target.value);
154
154
  setInput([value]);
155
155
  }, onKeyDown: function (event) {
156
156
  if (event.key === 'Enter') {