@jobber/components 4.86.0 → 4.86.2

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.
@@ -312,7 +312,7 @@ function DataListSortingOptions({ options, selectedOption, onSelectChange, onClo
312
312
  document.removeEventListener("mousedown", handleClickOutside);
313
313
  };
314
314
  }, [optionsListRef, dataListHeaderTileRef, onClose]);
315
- return (React__default["default"].createElement("ul", { className: styles$8.optionsList, ref: optionsListRef }, options.map(option => (React__default["default"].createElement("li", { className: styles$8.option, key: option.id, onClick: () => onSelectChange(option), onKeyDown: event => handleKeyDown(event, option), tabIndex: 0, "data-value": option.id },
315
+ return (React__default["default"].createElement("ul", { className: styles$8.optionsList, ref: optionsListRef }, options.map(option => (React__default["default"].createElement("li", { className: styles$8.option, key: `${option.id}${option.order}`, onClick: () => onSelectChange(option), onKeyDown: event => handleKeyDown(event, option), tabIndex: 0, "data-value": option.id },
316
316
  option.label,
317
317
  option.label === (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) && (React__default["default"].createElement(Icon.Icon, { name: "checkmark", color: "blue" })))))));
318
318
  function handleKeyDown(event, option) {
@@ -421,11 +421,11 @@ function generateListItemElement(item) {
421
421
  acc[key] = currentItem;
422
422
  }
423
423
  else if (currentItem instanceof Date) {
424
- acc[key] = (React__default["default"].createElement(Text.Text, { variation: "subdued" },
424
+ acc[key] = (React__default["default"].createElement(Text.Text, null,
425
425
  React__default["default"].createElement(FormatDate.FormatDate, { date: currentItem })));
426
426
  }
427
427
  else {
428
- acc[key] = React__default["default"].createElement(Text.Text, { variation: "subdued" }, currentItem);
428
+ acc[key] = React__default["default"].createElement(Text.Text, null, currentItem);
429
429
  }
430
430
  return acc;
431
431
  }, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.86.0",
3
+ "version": "4.86.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -80,5 +80,5 @@
80
80
  "> 1%",
81
81
  "IE 10"
82
82
  ],
83
- "gitHead": "2374e760248ae5e579810d7756b7450d2fba25c5"
83
+ "gitHead": "229d15f5479fbd149f20483999e10bead0e724d1"
84
84
  }