@appdirect/ds-enforce 0.0.17 → 0.0.18

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.
@@ -2,7 +2,7 @@
2
2
  "id": "DataTable",
3
3
  "kind": "complex",
4
4
  "version": "0.2.6",
5
- "purpose": "Sortable, filterable, paginated record table. AppDirect composition over mantine-react-table-open, not a Mantine Table wrapper.",
5
+ "purpose": "Sortable, filterable, paginated record table. Controlled composition of the micro-ui-ts table pieces on TanStack Table v9 (consumer owns all state), not a Mantine Table wrapper.",
6
6
  "importFrom": [
7
7
  "@appdirect/design-system"
8
8
  ],
@@ -24,19 +24,96 @@
24
24
  "required": true
25
25
  },
26
26
  "totalCount": {
27
- "type": "number"
27
+ "type": "number",
28
+ "required": true
29
+ },
30
+ "getRowId": {
31
+ "type": "function"
28
32
  },
29
33
  "isLoading": {
30
34
  "type": "boolean"
31
35
  },
36
+ "isFetching": {
37
+ "type": "boolean"
38
+ },
32
39
  "isError": {
33
40
  "type": "boolean"
34
41
  },
42
+ "onRetry": {
43
+ "type": "function"
44
+ },
45
+ "pagination": {
46
+ "type": "object",
47
+ "required": true
48
+ },
49
+ "pageInfo": {
50
+ "type": "object"
51
+ },
52
+ "onPreviousPage": {
53
+ "type": "function",
54
+ "required": true
55
+ },
56
+ "onNextPage": {
57
+ "type": "function",
58
+ "required": true
59
+ },
60
+ "onPageSizeChange": {
61
+ "type": "function",
62
+ "required": true
63
+ },
64
+ "rowSelection": {
65
+ "type": "object",
66
+ "required": true
67
+ },
68
+ "onRowSelectionChange": {
69
+ "type": "function",
70
+ "required": true
71
+ },
72
+ "selectionActions": {
73
+ "type": "array"
74
+ },
75
+ "density": {
76
+ "type": "string",
77
+ "required": true
78
+ },
79
+ "onDensityChange": {
80
+ "type": "function",
81
+ "required": true
82
+ },
83
+ "isFullScreen": {
84
+ "type": "boolean",
85
+ "required": true
86
+ },
87
+ "onFullScreenChange": {
88
+ "type": "function",
89
+ "required": true
90
+ },
91
+ "filters": {
92
+ "type": "object",
93
+ "required": true
94
+ },
95
+ "onFiltersChange": {
96
+ "type": "function",
97
+ "required": true
98
+ },
99
+ "onResetFilters": {
100
+ "type": "function",
101
+ "required": true
102
+ },
35
103
  "showFilters": {
36
- "type": "boolean"
104
+ "type": "boolean",
105
+ "required": true
37
106
  },
38
- "showSearch": {
39
- "type": "boolean"
107
+ "onFilterToggleChange": {
108
+ "type": "function",
109
+ "required": true
110
+ },
111
+ "locale": {
112
+ "type": "string",
113
+ "required": true
114
+ },
115
+ "emptyFallback": {
116
+ "type": "node"
40
117
  }
41
118
  }
42
119
  },
@@ -48,7 +125,7 @@
48
125
  "staticMarkup": "Table",
49
126
  "handmadeRecordList": "DataTable or Table, not stacked Card/Inline rows of records"
50
127
  },
51
- "notes": "Static dummy lists may use Table, not DataTable."
128
+ "notes": "Static dummy lists may use Table, not DataTable. DataTable is controlled: keep pagination, selection, density, filters and sort state in the page (see micro-ui-ts Table)."
52
129
  },
53
130
  "enforcement": {
54
131
  "deterministic": [
@@ -210,7 +210,7 @@
210
210
  "composition.mustUseFor",
211
211
  "composition.preferInstead.staticMarkup"
212
212
  ],
213
- "purpose": "Sortable, filterable, paginated record table. AppDirect composition over mantine-react-table-open, not a Mantine Table wrapper.",
213
+ "purpose": "Sortable, filterable, paginated record table. Controlled composition of the micro-ui-ts table pieces on TanStack Table v9 (consumer owns all state), not a Mantine Table wrapper.",
214
214
  "colorEnum": null,
215
215
  "colorDeprecated": false
216
216
  },
@@ -656,6 +656,7 @@
656
656
  "--ad-color-bg-inverted",
657
657
  "--ad-color-bg-muted",
658
658
  "--ad-color-bg-overlay-hover",
659
+ "--ad-color-bg-selected",
659
660
  "--ad-color-bg-subtle",
660
661
  "--ad-color-bg-tinted",
661
662
  "--ad-color-border-default",
@@ -890,6 +891,7 @@
890
891
  "--ad-spacing-sm",
891
892
  "--ad-spacing-xl",
892
893
  "--ad-spacing-xs",
894
+ "--ad-spacing-xshalf",
893
895
  "--ad-spacing-xxs",
894
896
  "--ad-transparent",
895
897
  "--ad-white",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appdirect/ds-enforce",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "ESLint, Stylelint, and Mantine types that keep apps on the AppDirect design system.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",