@hexure/ui 1.14.9 → 1.14.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -6453,7 +6453,7 @@ const Tabs = (_a) => {
6453
6453
  const baseId = dataItemid || 'tabs';
6454
6454
  return (React.createElement(Wrapper$1, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }), tabs.map((_a, i) => {
6455
6455
  var { isActive, label, badgeCount, errorBadge, onClick } = _a, accessibleProps = __rest(_a, ["isActive", "label", "badgeCount", "errorBadge", "onClick"]);
6456
- const tabId = `${baseId}-tab-${i}`;
6456
+ const tabId = `${baseId}-tab-${label.replace(/\s+/g, '-').toLowerCase()}`;
6457
6457
  return (React.createElement(Tab, Object.assign({ "$isActive": isActive || false, key: i, onClick: isActive ? undefined : onClick }, accessibleProps, { "data-itemid": `${tabId}-tab`, title: accessibleProps === null || accessibleProps === void 0 ? void 0 : accessibleProps.title }),
6458
6458
  badgeCount ? (React.createElement(Badge, { "$isError": errorBadge || false, "data-itemid": `${tabId}-badge` }, badgeCount)) : null,
6459
6459
  label));