@globalbrain/sefirot 2.10.0 → 2.11.0

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.
@@ -74,7 +74,7 @@ export interface TableCellPill extends TableCellBase {
74
74
  color?: TableCellPillColor | ((value: any) => TableCellPillColor)
75
75
  }
76
76
 
77
- export type TableCellPillColor = 'info' | 'success' | 'warning' | 'danger' | 'mute'
77
+ export type TableCellPillColor = 'neutral' | 'mute' | 'info' | 'success' | 'warning' | 'danger'
78
78
 
79
79
  export interface TableCellPills extends TableCellBase {
80
80
  type: 'pills'
@@ -0,0 +1,9 @@
1
+ import { ComputedRef, computed } from 'vue'
2
+
3
+ export function computedArray<T = any>(fn: (arr: T[]) => void): ComputedRef<T[]> {
4
+ return computed(() => {
5
+ const arr = [] as T[]
6
+ fn(arr)
7
+ return arr
8
+ })
9
+ }