@invopop/popui 0.1.84 → 0.1.85

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.
@@ -21,8 +21,9 @@
21
21
  const isError = $derived(rowState?.isError ?? false)
22
22
  const isSuccess = $derived(rowState?.isSuccess ?? false)
23
23
  const isWarning = $derived(rowState?.isWarning ?? false)
24
+ const isSelected = $derived(rowState?.isSelected ?? false)
24
25
  const dataState = $derived.by(() => {
25
- if (row.getIsSelected()) return 'selected'
26
+ if (row.getIsSelected() || isSelected) return 'selected'
26
27
  if (isError) return 'error'
27
28
  if (isWarning) return 'warning'
28
29
  if (isSuccess) return 'success'
@@ -107,6 +107,7 @@ export interface DataTableRowProps<TData> {
107
107
  isSuccess?: boolean;
108
108
  isError?: boolean;
109
109
  isWarning?: boolean;
110
+ isSelected?: boolean;
110
111
  };
111
112
  StickyCellWrapper: StickyCellWrapperSnippet;
112
113
  }
@@ -154,6 +155,7 @@ export interface DataTableProps<TData> {
154
155
  isSuccess?: boolean;
155
156
  isError?: boolean;
156
157
  isWarning?: boolean;
158
+ isSelected?: boolean;
157
159
  };
158
160
  }
159
161
  export interface DateCellConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.84",
4
+ "version": "0.1.85",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },