@trops/dash-core 0.1.129 → 0.1.131

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/index.esm.js CHANGED
@@ -32745,6 +32745,8 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32745
32745
  label: m.name,
32746
32746
  value: String(m.id)
32747
32747
  };
32748
+ }).sort(function (a, b) {
32749
+ return (a.label || "").localeCompare(b.label || "");
32748
32750
  });
32749
32751
  var themeOptions = _toConsumableArray(Object.entries(themes || {}).sort(function (_ref3, _ref4) {
32750
32752
  var _ref5 = _slicedToArray(_ref3, 2),
@@ -33349,7 +33351,9 @@ var FoldersSection = function FoldersSection(_ref) {
33349
33351
  });
33350
33352
  var deleteHasDashboards = deleteTarget && getDashboardCount(deleteTarget.id) > 0;
33351
33353
  var listContent = /*#__PURE__*/jsxs(Sidebar.Content, {
33352
- children: [menuItems.map(function (item) {
33354
+ children: [_toConsumableArray(menuItems).sort(function (a, b) {
33355
+ return (a.name || "").localeCompare(b.name || "");
33356
+ }).map(function (item) {
33353
33357
  var isSelected = selectedId === item.id && !isCreating;
33354
33358
  var count = getDashboardCount(item.id);
33355
33359
  return /*#__PURE__*/jsx(Sidebar.Item, {
@@ -42284,6 +42288,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
42284
42288
  value: m.id,
42285
42289
  icon: m.icon || m.folder || "folder"
42286
42290
  };
42291
+ }).sort(function (a, b) {
42292
+ return (a.label || "").localeCompare(b.label || "");
42287
42293
  }),
42288
42294
  onChange: onFolderChange,
42289
42295
  placeholder: "Folder",