@jobber/components 4.60.3-replace-da.4 → 4.60.3-replace-da.7

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.
@@ -733,11 +733,17 @@ function DataListSort() {
733
733
  return null;
734
734
  const { sortable, state, onSort } = sorting;
735
735
  const sortByOptions = getSortByOptions();
736
+ console.log({ state });
736
737
  return (React__default["default"].createElement(Combobox.Combobox, { onSelect: selection => {
737
738
  handleKeyChange(selection[0].id.toString());
738
- }, selected: [{ id: (state === null || state === void 0 ? void 0 : state.key) || "", label: (state === null || state === void 0 ? void 0 : state.order) || "" }] },
739
+ }, selected: [
740
+ {
741
+ id: `${state === null || state === void 0 ? void 0 : state.key},${state === null || state === void 0 ? void 0 : state.order}`,
742
+ label: (state === null || state === void 0 ? void 0 : state.order) || "",
743
+ },
744
+ ] },
739
745
  React__default["default"].createElement(Combobox.Combobox.Activator, null,
740
- React__default["default"].createElement(Chip.Chip, { heading: "Sort", label: getButtonLabel(), variation: "subtle" }, !state && (React__default["default"].createElement(Chip.Chip.Suffix, null,
746
+ React__default["default"].createElement(Chip.Chip, { heading: "Sort", label: getButtonLabel(), variation: state ? "base" : "subtle" }, !state && (React__default["default"].createElement(Chip.Chip.Suffix, null,
741
747
  React__default["default"].createElement(Icon.Icon, { name: "arrowDown", size: "small" }))))),
742
748
  sortByOptions.map(({ label, value }) => {
743
749
  return React__default["default"].createElement(Combobox.Combobox.Option, { key: value, id: value, label: label });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.60.3-replace-da.4+f4b0efab",
3
+ "version": "4.60.3-replace-da.7+c1ace120",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -84,5 +84,5 @@
84
84
  "> 1%",
85
85
  "IE 10"
86
86
  ],
87
- "gitHead": "f4b0efabfc288b3b6c2df051893be553ec5bc3f6"
87
+ "gitHead": "c1ace1204825dda6f1bcedf8aba8abf425b76d4e"
88
88
  }