@mohasinac/appkit 2.7.21 → 2.7.22

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.
@@ -12,6 +12,7 @@ import { useBulkSelection } from "../../../react/hooks/useBulkSelection";
12
12
  import { TABLE_KEYS, VIEW_MODE } from "../../../constants/table-keys";
13
13
  import { sortBy } from "../../../constants/sort";
14
14
  import { STORE_FIELDS } from "../../../constants/field-names";
15
+ import { ACTION_ID } from "../../products/constants/action-defs";
15
16
  const DEFAULT_SORT = sortBy(STORE_FIELDS.CREATED_AT);
16
17
  const STORE_SORT_OPTIONS = [
17
18
  { value: sortBy(STORE_FIELDS.CREATED_AT), label: "Newest First" },
@@ -115,7 +116,7 @@ export function StoresIndexListing({ initialData }) {
115
116
  const selection = useBulkSelection({ items: stores, keyExtractor: (s) => s.id ?? s.storeSlug });
116
117
  return (_jsxs("div", { className: "min-h-screen", children: [_jsx(ListingToolbar, { filterCount: activeFilterCount, onFiltersClick: openFilters, searchValue: searchInput, searchPlaceholder: "Search stores...", onSearchChange: setSearchInput, onSearchCommit: commitSearch, sortValue: table.get(TABLE_KEYS.SORT) || DEFAULT_SORT, sortOptions: STORE_SORT_OPTIONS, onSortChange: (v) => { table.set(TABLE_KEYS.SORT, v); }, view: view, onViewChange: handleViewToggle, onResetAll: resetAll, hasActiveState: hasActiveState, bulkMode: selection.isSelecting, bulkSelectedCount: selection.selectedCount, bulkTotalCount: stores.length, onBulkSelectAll: selection.toggleAll, onBulkClear: selection.clearSelection }), _jsx(BulkActionBar, { selectedCount: selection.selectedCount, onClearSelection: selection.clearSelection, actions: [
117
118
  {
118
- id: "compare",
119
+ id: ACTION_ID.COMPARE,
119
120
  label: "Compare",
120
121
  variant: "secondary",
121
122
  onClick: () => { selection.clearSelection(); },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohasinac/appkit",
3
- "version": "2.7.21",
3
+ "version": "2.7.22",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"