vira 26.7.1 → 26.8.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.
@@ -105,4 +105,4 @@ export type ViraTableOptions<Orientation extends ViraTableOrientation = ViraTabl
105
105
  */
106
106
  export declare function defineTable<const Headers extends ViraTableHeaders, OriginalData extends ReadonlyArray<any>, const Orientation extends ViraTableOrientation = ViraTableOrientation.Vertical>(
107
107
  /** The order of these keys determines the order that they render in. */
108
- headers: Readonly<Headers>, originalData: OriginalData, dataMap: (entry: ArrayElement<OriginalData>) => ViraTableEntry<Headers> | undefined, options?: ViraTableOptions<Orientation>): ViraTable<Headers, Orientation, OriginalData>;
108
+ headers: Readonly<Headers>, originalData: OriginalData, dataMap: (entry: ArrayElement<OriginalData>, entryIndex: number) => ViraTableEntry<Headers> | undefined, options?: ViraTableOptions<Orientation>): ViraTable<Headers, Orientation, OriginalData>;
@@ -30,9 +30,9 @@ export var ViraTableOrientation;
30
30
  export function defineTable(
31
31
  /** The order of these keys determines the order that they render in. */
32
32
  headers, originalData, dataMap, options = {}) {
33
- const mappedData = originalData.map((dataRow) => {
33
+ const mappedData = originalData.map((dataRow, rowIndex) => {
34
34
  return {
35
- cells: dataMap(dataRow),
35
+ cells: dataMap(dataRow, rowIndex),
36
36
  data: dataRow,
37
37
  };
38
38
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "26.7.1",
3
+ "version": "26.8.0",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",
@@ -38,9 +38,9 @@
38
38
  "test:docs": "virmator docs check"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^31.30.1",
42
- "@augment-vir/common": "^31.30.1",
43
- "@augment-vir/web": "^31.30.1",
41
+ "@augment-vir/assert": "^31.32.2",
42
+ "@augment-vir/common": "^31.32.2",
43
+ "@augment-vir/web": "^31.32.2",
44
44
  "colorjs.io": "^0.5.2",
45
45
  "date-vir": "^7.4.0",
46
46
  "device-navigation": "^4.5.5",
@@ -52,22 +52,22 @@
52
52
  "typed-event-target": "^4.1.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@augment-vir/test": "^31.30.1",
55
+ "@augment-vir/test": "^31.32.2",
56
56
  "@web/dev-server-esbuild": "^1.0.4",
57
57
  "@web/test-runner": "^0.20.2",
58
58
  "@web/test-runner-commands": "^0.9.0",
59
59
  "@web/test-runner-playwright": "^0.11.1",
60
60
  "@web/test-runner-visual-regression": "^0.10.0",
61
- "esbuild": "^0.25.8",
61
+ "esbuild": "^0.25.9",
62
62
  "istanbul-smart-text-reporter": "^1.1.5",
63
63
  "markdown-code-example-inserter": "^3.0.3",
64
- "typedoc": "^0.28.9",
64
+ "typedoc": "^0.28.10",
65
65
  "typescript": "5.9.2",
66
- "vite": "^7.0.6",
66
+ "vite": "^7.1.2",
67
67
  "vite-tsconfig-paths": "^5.1.4"
68
68
  },
69
69
  "peerDependencies": {
70
- "element-vir": "^26.7.1"
70
+ "element-vir": "^26.8.0"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=22"