@frontile/collections 0.17.0-beta.25 → 0.17.0-beta.26

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.
Files changed (180) hide show
  1. package/declarations/components/simple-table/body.d.ts +428 -0
  2. package/declarations/components/simple-table/cell.d.ts +427 -0
  3. package/declarations/components/simple-table/column.d.ts +419 -0
  4. package/declarations/components/simple-table/footer.d.ts +430 -0
  5. package/declarations/components/simple-table/header.d.ts +430 -0
  6. package/declarations/components/simple-table/index.d.ts +446 -0
  7. package/declarations/components/simple-table/row.d.ts +430 -0
  8. package/declarations/components/simple-table/simple-table-body.d.ts +238 -0
  9. package/declarations/components/simple-table/simple-table-cell.d.ts +231 -0
  10. package/declarations/components/simple-table/simple-table-column.d.ts +225 -0
  11. package/declarations/components/simple-table/simple-table-footer.d.ts +237 -0
  12. package/declarations/components/simple-table/simple-table-header.d.ts +237 -0
  13. package/declarations/components/simple-table/simple-table-row.d.ts +236 -0
  14. package/declarations/components/simple-table/simple-table.d.ts +249 -0
  15. package/declarations/components/table/cell-default.d.ts +43 -0
  16. package/declarations/components/table/cell-for.d.ts +38 -0
  17. package/declarations/components/table/cell-rendering-context.d.ts +24 -0
  18. package/declarations/components/table/checkbox.d.ts +50 -0
  19. package/declarations/components/table/column-visibility.d.ts +416 -0
  20. package/declarations/components/table/icons.d.ts +11 -0
  21. package/declarations/components/table/index.d.ts +2 -7
  22. package/declarations/components/table/sort-button.d.ts +413 -0
  23. package/declarations/components/table/table-body.d.ts +10 -7
  24. package/declarations/components/table/table-cell.d.ts +4 -4
  25. package/declarations/components/table/table-column.d.ts +20 -3
  26. package/declarations/components/table/table-footer.d.ts +3 -3
  27. package/declarations/components/table/table-header.d.ts +5 -3
  28. package/declarations/components/table/table-row.d.ts +20 -6
  29. package/declarations/components/table/table.d.ts +335 -111
  30. package/declarations/components/table/typed-cell-for.d.ts +34 -0
  31. package/declarations/components/table/types.d.ts +38 -7
  32. package/declarations/components/table/utils.d.ts +4 -8
  33. package/declarations/components/table-legacy/index.d.ts +9 -0
  34. package/declarations/components/table-legacy/table-body.d.ts +374 -0
  35. package/declarations/components/table-legacy/table-cell.d.ts +364 -0
  36. package/declarations/components/table-legacy/table-column.d.ts +357 -0
  37. package/declarations/components/table-legacy/table-footer.d.ts +365 -0
  38. package/declarations/components/table-legacy/table-header.d.ts +364 -0
  39. package/declarations/components/table-legacy/table-row.d.ts +373 -0
  40. package/declarations/components/table-legacy/table.d.ts +437 -0
  41. package/declarations/components/table-legacy/types.d.ts +20 -0
  42. package/declarations/components/table-legacy/utils.d.ts +16 -0
  43. package/declarations/index.d.ts +1 -0
  44. package/declarations/template-registry.d.ts +3 -1
  45. package/declarations/utils/tableManager.d.ts +25 -0
  46. package/declarations/utils/typed-table.d.ts +32 -0
  47. package/dist/_app_/components/table.js +1 -0
  48. package/dist/components/dropdown.js +1 -1
  49. package/dist/components/listbox.js +1 -1
  50. package/dist/components/table.js +2 -0
  51. package/dist/components/table.js.map +1 -0
  52. package/dist/index-OHRSSSqD.js +528 -0
  53. package/dist/index-OHRSSSqD.js.map +1 -0
  54. package/dist/index.js +2 -1
  55. package/dist/index.js.map +1 -1
  56. package/dist/{listManager-D4_vozfz.js → listManager-CKsOd2zS.js} +2 -2
  57. package/dist/{listManager-D4_vozfz.js.map → listManager-CKsOd2zS.js.map} +1 -1
  58. package/dist/listManager-Dth1-3Si.js +439 -0
  59. package/dist/listManager-Dth1-3Si.js.map +1 -0
  60. package/dist/listbox-BHb3ozlg.js +204 -0
  61. package/dist/listbox-BHb3ozlg.js.map +1 -0
  62. package/dist/listbox-CkGwpiDp.js +203 -0
  63. package/dist/listbox-CkGwpiDp.js.map +1 -0
  64. package/dist/listbox-ClqgWnnA.js +204 -0
  65. package/dist/listbox-ClqgWnnA.js.map +1 -0
  66. package/dist/listbox-rcGFjxs0.js +112 -47
  67. package/dist/listbox-y30VBGX-.js +204 -0
  68. package/dist/listbox-y30VBGX-.js.map +1 -0
  69. package/dist/simple-table-B7dwVNtZ.js +528 -0
  70. package/dist/simple-table-B7dwVNtZ.js.map +1 -0
  71. package/dist/simple-table-OHRSSSqD.js +528 -0
  72. package/dist/simple-table-OHRSSSqD.js.map +1 -0
  73. package/dist/table-B2HDNKJZ.js +406 -0
  74. package/dist/table-B2HDNKJZ.js.map +1 -0
  75. package/dist/table-BDc4IZIE.js +878 -0
  76. package/dist/table-BDc4IZIE.js.map +1 -0
  77. package/dist/table-BFkVEZvb.js +392 -0
  78. package/dist/table-BFkVEZvb.js.map +1 -0
  79. package/dist/table-BqvHQi0L.js +878 -0
  80. package/dist/table-BqvHQi0L.js.map +1 -0
  81. package/dist/table-C7ch3NLp.js +395 -0
  82. package/dist/table-C7ch3NLp.js.map +1 -0
  83. package/dist/table-CLHR4-J5.js +395 -0
  84. package/dist/table-CLHR4-J5.js.map +1 -0
  85. package/dist/table-COm7aEZ1.js +341 -0
  86. package/dist/table-COm7aEZ1.js.map +1 -0
  87. package/dist/table-CSzsuwXt.js +394 -0
  88. package/dist/table-CSzsuwXt.js.map +1 -0
  89. package/dist/table-CVCiVPCB.js +878 -0
  90. package/dist/table-CVCiVPCB.js.map +1 -0
  91. package/dist/table-CcYV8m90.js +341 -0
  92. package/dist/table-CcYV8m90.js.map +1 -0
  93. package/dist/table-DEK1U06v.js +632 -0
  94. package/dist/table-DEK1U06v.js.map +1 -0
  95. package/dist/table-DGQbKRn3.js +395 -0
  96. package/dist/table-DGQbKRn3.js.map +1 -0
  97. package/dist/table-DnQQJItF.js +632 -0
  98. package/dist/table-DnQQJItF.js.map +1 -0
  99. package/dist/table-DrBJt7Eh.js +395 -0
  100. package/dist/table-DrBJt7Eh.js.map +1 -0
  101. package/dist/table-SVR6fEqh.js +877 -0
  102. package/dist/table-SVR6fEqh.js.map +1 -0
  103. package/dist/table-XUYqiKyi.js +394 -0
  104. package/dist/table-XUYqiKyi.js.map +1 -0
  105. package/dist/table-footer-DTLYf3Ac.js +553 -0
  106. package/dist/table-footer-DTLYf3Ac.js.map +1 -0
  107. package/dist/types-B-8cgOds.js +524 -0
  108. package/dist/types-B-8cgOds.js.map +1 -0
  109. package/dist/types-CJuwIIDs.js +524 -0
  110. package/dist/types-CJuwIIDs.js.map +1 -0
  111. package/dist/types-CuXFudgJ.js +526 -0
  112. package/dist/types-CuXFudgJ.js.map +1 -0
  113. package/dist/types-DkKoxFKn.js +524 -0
  114. package/dist/types-DkKoxFKn.js.map +1 -0
  115. package/dist/utils/listManager.js +1 -1
  116. package/package.json +9 -7
  117. package/dist/table-92ff_YNO.js +0 -277
  118. package/dist/table-92ff_YNO.js.map +0 -1
  119. package/dist/table-9AY4L0Gb.js +0 -197
  120. package/dist/table-9AY4L0Gb.js.map +0 -1
  121. package/dist/table-9lHVhRR5.js +0 -241
  122. package/dist/table-9lHVhRR5.js.map +0 -1
  123. package/dist/table-BIkLOscH.js +0 -269
  124. package/dist/table-BIkLOscH.js.map +0 -1
  125. package/dist/table-BPp_OXkX.js +0 -206
  126. package/dist/table-BPp_OXkX.js.map +0 -1
  127. package/dist/table-BQBLUGgl.js +0 -208
  128. package/dist/table-BQBLUGgl.js.map +0 -1
  129. package/dist/table-BUboQojw.js +0 -267
  130. package/dist/table-BUboQojw.js.map +0 -1
  131. package/dist/table-BUrvD0CN.js +0 -324
  132. package/dist/table-BUrvD0CN.js.map +0 -1
  133. package/dist/table-B_z4aWPh.js +0 -276
  134. package/dist/table-B_z4aWPh.js.map +0 -1
  135. package/dist/table-Bi_i2GOl.js +0 -279
  136. package/dist/table-Bi_i2GOl.js.map +0 -1
  137. package/dist/table-BkWhyzMo.js +0 -214
  138. package/dist/table-BkWhyzMo.js.map +0 -1
  139. package/dist/table-Bp_EqrlK.js +0 -309
  140. package/dist/table-Bp_EqrlK.js.map +0 -1
  141. package/dist/table-Bq1HGB9C.js +0 -240
  142. package/dist/table-Bq1HGB9C.js.map +0 -1
  143. package/dist/table-C-_mQMW_.js +0 -141
  144. package/dist/table-C-_mQMW_.js.map +0 -1
  145. package/dist/table-CaBDs-LD.js +0 -269
  146. package/dist/table-CaBDs-LD.js.map +0 -1
  147. package/dist/table-CcbmieDl.js +0 -329
  148. package/dist/table-CcbmieDl.js.map +0 -1
  149. package/dist/table-CdLut7xT.js +0 -172
  150. package/dist/table-CdLut7xT.js.map +0 -1
  151. package/dist/table-Cs_Xm3-T.js +0 -144
  152. package/dist/table-Cs_Xm3-T.js.map +0 -1
  153. package/dist/table-CwxlKxz0.js +0 -185
  154. package/dist/table-CwxlKxz0.js.map +0 -1
  155. package/dist/table-D1jyvvdd.js +0 -242
  156. package/dist/table-D1jyvvdd.js.map +0 -1
  157. package/dist/table-D7QCvl0_.js +0 -269
  158. package/dist/table-D7QCvl0_.js.map +0 -1
  159. package/dist/table-DApb61os.js +0 -185
  160. package/dist/table-DApb61os.js.map +0 -1
  161. package/dist/table-DFIwJpJO.js +0 -144
  162. package/dist/table-DFIwJpJO.js.map +0 -1
  163. package/dist/table-DIZvtyjH.js +0 -185
  164. package/dist/table-DIZvtyjH.js.map +0 -1
  165. package/dist/table-DYOLmjfk.js +0 -325
  166. package/dist/table-DYOLmjfk.js.map +0 -1
  167. package/dist/table-Da60U9eH.js +0 -269
  168. package/dist/table-Da60U9eH.js.map +0 -1
  169. package/dist/table-Dcyk7CLS.js +0 -144
  170. package/dist/table-Dcyk7CLS.js.map +0 -1
  171. package/dist/table-DzNT9tDs.js +0 -280
  172. package/dist/table-DzNT9tDs.js.map +0 -1
  173. package/dist/table-EDCy6SCT.js +0 -214
  174. package/dist/table-EDCy6SCT.js.map +0 -1
  175. package/dist/table-GRGxN-x5.js +0 -309
  176. package/dist/table-GRGxN-x5.js.map +0 -1
  177. package/dist/table-Lk0tmBng.js +0 -309
  178. package/dist/table-Lk0tmBng.js.map +0 -1
  179. package/dist/table-k5i2kvUD.js +0 -324
  180. package/dist/table-k5i2kvUD.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import Component from '@glimmer/component';
2
+ import type { ColumnConfig, ColumnKeys } from './types';
3
+ import type { CellRenderingContext } from './cell-rendering-context';
4
+ import type { Column } from '@universal-ember/table';
5
+ interface TypedCellForSignature<T, TColumns extends readonly ColumnConfig<T>[]> {
6
+ Args: {
7
+ /**
8
+ * The column key to match against - type-checked against available columns
9
+ */
10
+ key: ColumnKeys<TColumns>;
11
+ /**
12
+ * The column object for the current cell
13
+ */
14
+ column: Column<T>;
15
+ /**
16
+ * Registry to track claimed keys
17
+ */
18
+ registry: CellRenderingContext;
19
+ /**
20
+ * Column definitions for type checking
21
+ */
22
+ columns: TColumns;
23
+ };
24
+ Blocks: {
25
+ default: [];
26
+ };
27
+ }
28
+ /**
29
+ * Type-safe wrapper around CellForComponent that enforces valid column keys
30
+ * at compile time when used with typed column arrays.
31
+ */
32
+ export default class TypedCellForComponent<T, TColumns extends readonly ColumnConfig<T>[]> extends Component<TypedCellForSignature<T, TColumns>> {
33
+ }
34
+ export {};
@@ -1,15 +1,46 @@
1
- import type { ContentValue } from '@glint/template';
2
1
  import type { TableVariants, TableSlots, SlotsToClasses, ClassValue } from '@frontile/theme';
3
- export interface ColumnDefinition<T = unknown> {
4
- /** The property key to extract data from items, or a unique identifier for the column */
2
+ export type { Column, Row, Table } from '@universal-ember/table';
3
+ import type { Row, Column } from '@universal-ember/table';
4
+ import type { ContentValue } from '@glint/template';
5
+ import type { ComponentLike } from '@glint/template';
6
+ export { SortDirection, type Sort, type SortItem } from '@universal-ember/table/plugins/data-sorting';
7
+ export interface CellContext<T> {
8
+ column: Column<T>;
9
+ row: Row<T>;
10
+ }
11
+ export interface CellSignature<T> {
12
+ Args: {
13
+ column: Column<T>;
14
+ row: Row<T>;
15
+ };
16
+ }
17
+ export interface FrontileStickyOptions {
18
+ isSticky?: boolean;
19
+ stickyPosition?: 'left' | 'right';
20
+ }
21
+ export type FrontilePluginOption = [string, () => FrontileStickyOptions];
22
+ export interface ColumnConfig<T = unknown> {
23
+ /** The key to extract data from items */
5
24
  key: string;
6
- /** Display label for the column header */
7
- label: string;
8
- /** Optional function to transform or compute column values from the data item */
9
- accessorFn?: (item: T) => ContentValue;
25
+ /** Display name for the column header */
26
+ name: string;
27
+ /** Optional function to transform/compute column values */
28
+ value?: (ctx: CellContext<T>) => ContentValue;
29
+ /** Custom component to render for this column's cells */
30
+ Cell?: ComponentLike<CellSignature<T>>;
10
31
  /** Whether this column should be sticky during horizontal scrolling */
11
32
  isSticky?: boolean;
12
33
  /** Position where the sticky column should stick. @default 'left' */
13
34
  stickyPosition?: 'left' | 'right';
35
+ /** Whether this column should be visible. @default true */
36
+ isVisible?: boolean;
37
+ /** Whether this column is sortable. @default false */
38
+ isSortable?: boolean;
39
+ /** Use this key instead of the column key for sorting. Useful when the display key differs from the data key */
40
+ sortProperty?: string;
14
41
  }
42
+ export type ColumnKeys<T extends unknown[]> = T[number] extends {
43
+ key: infer K;
44
+ } ? K extends string ? K : never : never;
45
+ export type SelectionMode = 'none' | 'single' | 'multiple';
15
46
  export type { TableVariants, TableSlots, SlotsToClasses, ClassValue };
@@ -1,10 +1,6 @@
1
- import type { ContentValue } from '@glint/template';
2
- import type { ColumnDefinition } from './types';
1
+ import type { Column } from '@universal-ember/table';
2
+ import type { FrontileStickyOptions } from './types';
3
3
  /**
4
- * Safely extracts a value from an object using either a custom accessorFn or direct property access
4
+ * Helper to extract Frontile sticky options from a universal-ember column's pluginOptions
5
5
  */
6
- export declare function getSafeValue<T>(obj: T, column: ColumnDefinition<T>): ContentValue;
7
- /**
8
- * Safely extracts a value from an object by key and ensures it's safe for template rendering
9
- */
10
- export declare function getSafeValueByKey(obj: unknown, key: string): ContentValue;
6
+ export declare function extractFrontileOptions<T = unknown>(column?: Column<T>): FrontileStickyOptions | undefined;
@@ -0,0 +1,9 @@
1
+ export { Table, type TableSignature } from './table';
2
+ export { TableHeader, type TableHeaderSignature } from './table-header';
3
+ export { TableBody, type TableBodySignature } from './table-body';
4
+ export { TableFooter, type TableFooterSignature } from './table-footer';
5
+ export { TableColumn, type TableColumnSignature } from './table-column';
6
+ export { TableRow, type TableRowSignature } from './table-row';
7
+ export { TableCell, type TableCellSignature } from './table-cell';
8
+ export type { ColumnDefinition } from './types';
9
+ export { default } from './table';
@@ -0,0 +1,374 @@
1
+ import Component from '@glimmer/component';
2
+ import { useStyles } from '@frontile/theme';
3
+ import { TableRow } from './table-row';
4
+ import { TableCell } from './table-cell';
5
+ import type { ColumnDefinition, SlotsToClasses, TableSlots } from './types';
6
+ interface TableBodySignature<T> {
7
+ Args: {
8
+ /** Array of column definitions for automatic row generation */
9
+ columns?: ColumnDefinition<T>[];
10
+ /** Array of data items to display as rows */
11
+ items?: T[];
12
+ /** Additional CSS class to apply to the body section */
13
+ class?: string;
14
+ /**
15
+ * @internal Style functions object from Table component
16
+ * @ignore
17
+ */
18
+ styleFns?: ReturnType<ReturnType<typeof useStyles>['table']>;
19
+ /**
20
+ * @internal Classes object from Table component
21
+ * @ignore
22
+ */
23
+ classes?: SlotsToClasses<TableSlots>;
24
+ };
25
+ Element: HTMLTableSectionElement;
26
+ Blocks: {
27
+ default: [
28
+ {
29
+ Row: typeof TableRow;
30
+ Cell: typeof TableCell;
31
+ }
32
+ ];
33
+ row: [
34
+ {
35
+ item: T;
36
+ Row: typeof TableRow;
37
+ Cell: typeof TableCell;
38
+ }
39
+ ];
40
+ };
41
+ }
42
+ declare class TableBody<T = unknown> extends Component<TableBodySignature<T>> {
43
+ get styles(): {
44
+ base: (
45
+ slotProps?:
46
+ | ({
47
+ size?: 'sm' | 'md' | 'lg' | undefined;
48
+ layout?: 'fixed' | 'auto' | undefined;
49
+ striped?: boolean | undefined;
50
+ isSticky?: boolean | undefined;
51
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
52
+ isScrollable?: boolean | undefined;
53
+ hasStickyHeader?: boolean | undefined;
54
+ isInStickyRow?: boolean | undefined;
55
+ } & import('tailwind-variants').ClassProp<
56
+ import('tailwind-variants').ClassValue
57
+ >)
58
+ | undefined
59
+ ) => string;
60
+ wrapper: (
61
+ slotProps?:
62
+ | ({
63
+ size?: 'sm' | 'md' | 'lg' | undefined;
64
+ layout?: 'fixed' | 'auto' | undefined;
65
+ striped?: boolean | undefined;
66
+ isSticky?: boolean | undefined;
67
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
68
+ isScrollable?: boolean | undefined;
69
+ hasStickyHeader?: boolean | undefined;
70
+ isInStickyRow?: boolean | undefined;
71
+ } & import('tailwind-variants').ClassProp<
72
+ import('tailwind-variants').ClassValue
73
+ >)
74
+ | undefined
75
+ ) => string;
76
+ table: (
77
+ slotProps?:
78
+ | ({
79
+ size?: 'sm' | 'md' | 'lg' | undefined;
80
+ layout?: 'fixed' | 'auto' | undefined;
81
+ striped?: boolean | undefined;
82
+ isSticky?: boolean | undefined;
83
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
84
+ isScrollable?: boolean | undefined;
85
+ hasStickyHeader?: boolean | undefined;
86
+ isInStickyRow?: boolean | undefined;
87
+ } & import('tailwind-variants').ClassProp<
88
+ import('tailwind-variants').ClassValue
89
+ >)
90
+ | undefined
91
+ ) => string;
92
+ thead: (
93
+ slotProps?:
94
+ | ({
95
+ size?: 'sm' | 'md' | 'lg' | undefined;
96
+ layout?: 'fixed' | 'auto' | undefined;
97
+ striped?: boolean | undefined;
98
+ isSticky?: boolean | undefined;
99
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
100
+ isScrollable?: boolean | undefined;
101
+ hasStickyHeader?: boolean | undefined;
102
+ isInStickyRow?: boolean | undefined;
103
+ } & import('tailwind-variants').ClassProp<
104
+ import('tailwind-variants').ClassValue
105
+ >)
106
+ | undefined
107
+ ) => string;
108
+ tbody: (
109
+ slotProps?:
110
+ | ({
111
+ size?: 'sm' | 'md' | 'lg' | undefined;
112
+ layout?: 'fixed' | 'auto' | undefined;
113
+ striped?: boolean | undefined;
114
+ isSticky?: boolean | undefined;
115
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
116
+ isScrollable?: boolean | undefined;
117
+ hasStickyHeader?: boolean | undefined;
118
+ isInStickyRow?: boolean | undefined;
119
+ } & import('tailwind-variants').ClassProp<
120
+ import('tailwind-variants').ClassValue
121
+ >)
122
+ | undefined
123
+ ) => string;
124
+ tfoot: (
125
+ slotProps?:
126
+ | ({
127
+ size?: 'sm' | 'md' | 'lg' | undefined;
128
+ layout?: 'fixed' | 'auto' | undefined;
129
+ striped?: boolean | undefined;
130
+ isSticky?: boolean | undefined;
131
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
132
+ isScrollable?: boolean | undefined;
133
+ hasStickyHeader?: boolean | undefined;
134
+ isInStickyRow?: boolean | undefined;
135
+ } & import('tailwind-variants').ClassProp<
136
+ import('tailwind-variants').ClassValue
137
+ >)
138
+ | undefined
139
+ ) => string;
140
+ tr: (
141
+ slotProps?:
142
+ | ({
143
+ size?: 'sm' | 'md' | 'lg' | undefined;
144
+ layout?: 'fixed' | 'auto' | undefined;
145
+ striped?: boolean | undefined;
146
+ isSticky?: boolean | undefined;
147
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
148
+ isScrollable?: boolean | undefined;
149
+ hasStickyHeader?: boolean | undefined;
150
+ isInStickyRow?: boolean | undefined;
151
+ } & import('tailwind-variants').ClassProp<
152
+ import('tailwind-variants').ClassValue
153
+ >)
154
+ | undefined
155
+ ) => string;
156
+ th: (
157
+ slotProps?:
158
+ | ({
159
+ size?: 'sm' | 'md' | 'lg' | undefined;
160
+ layout?: 'fixed' | 'auto' | undefined;
161
+ striped?: boolean | undefined;
162
+ isSticky?: boolean | undefined;
163
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
164
+ isScrollable?: boolean | undefined;
165
+ hasStickyHeader?: boolean | undefined;
166
+ isInStickyRow?: boolean | undefined;
167
+ } & import('tailwind-variants').ClassProp<
168
+ import('tailwind-variants').ClassValue
169
+ >)
170
+ | undefined
171
+ ) => string;
172
+ td: (
173
+ slotProps?:
174
+ | ({
175
+ size?: 'sm' | 'md' | 'lg' | undefined;
176
+ layout?: 'fixed' | 'auto' | undefined;
177
+ striped?: boolean | undefined;
178
+ isSticky?: boolean | undefined;
179
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
180
+ isScrollable?: boolean | undefined;
181
+ hasStickyHeader?: boolean | undefined;
182
+ isInStickyRow?: boolean | undefined;
183
+ } & import('tailwind-variants').ClassProp<
184
+ import('tailwind-variants').ClassValue
185
+ >)
186
+ | undefined
187
+ ) => string;
188
+ emptyCell: (
189
+ slotProps?:
190
+ | ({
191
+ size?: 'sm' | 'md' | 'lg' | undefined;
192
+ layout?: 'fixed' | 'auto' | undefined;
193
+ striped?: boolean | undefined;
194
+ isSticky?: boolean | undefined;
195
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
196
+ isScrollable?: boolean | undefined;
197
+ hasStickyHeader?: boolean | undefined;
198
+ isInStickyRow?: boolean | undefined;
199
+ } & import('tailwind-variants').ClassProp<
200
+ import('tailwind-variants').ClassValue
201
+ >)
202
+ | undefined
203
+ ) => string;
204
+ } & {
205
+ base: (
206
+ slotProps?:
207
+ | ({
208
+ size?: 'sm' | 'md' | 'lg' | undefined;
209
+ layout?: 'fixed' | 'auto' | undefined;
210
+ striped?: boolean | undefined;
211
+ isSticky?: boolean | undefined;
212
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
213
+ isScrollable?: boolean | undefined;
214
+ hasStickyHeader?: boolean | undefined;
215
+ isInStickyRow?: boolean | undefined;
216
+ } & import('tailwind-variants').ClassProp<
217
+ import('tailwind-variants').ClassValue
218
+ >)
219
+ | undefined
220
+ ) => string;
221
+ wrapper: (
222
+ slotProps?:
223
+ | ({
224
+ size?: 'sm' | 'md' | 'lg' | undefined;
225
+ layout?: 'fixed' | 'auto' | undefined;
226
+ striped?: boolean | undefined;
227
+ isSticky?: boolean | undefined;
228
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
229
+ isScrollable?: boolean | undefined;
230
+ hasStickyHeader?: boolean | undefined;
231
+ isInStickyRow?: boolean | undefined;
232
+ } & import('tailwind-variants').ClassProp<
233
+ import('tailwind-variants').ClassValue
234
+ >)
235
+ | undefined
236
+ ) => string;
237
+ table: (
238
+ slotProps?:
239
+ | ({
240
+ size?: 'sm' | 'md' | 'lg' | undefined;
241
+ layout?: 'fixed' | 'auto' | undefined;
242
+ striped?: boolean | undefined;
243
+ isSticky?: boolean | undefined;
244
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
245
+ isScrollable?: boolean | undefined;
246
+ hasStickyHeader?: boolean | undefined;
247
+ isInStickyRow?: boolean | undefined;
248
+ } & import('tailwind-variants').ClassProp<
249
+ import('tailwind-variants').ClassValue
250
+ >)
251
+ | undefined
252
+ ) => string;
253
+ thead: (
254
+ slotProps?:
255
+ | ({
256
+ size?: 'sm' | 'md' | 'lg' | undefined;
257
+ layout?: 'fixed' | 'auto' | undefined;
258
+ striped?: boolean | undefined;
259
+ isSticky?: boolean | undefined;
260
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
261
+ isScrollable?: boolean | undefined;
262
+ hasStickyHeader?: boolean | undefined;
263
+ isInStickyRow?: boolean | undefined;
264
+ } & import('tailwind-variants').ClassProp<
265
+ import('tailwind-variants').ClassValue
266
+ >)
267
+ | undefined
268
+ ) => string;
269
+ tbody: (
270
+ slotProps?:
271
+ | ({
272
+ size?: 'sm' | 'md' | 'lg' | undefined;
273
+ layout?: 'fixed' | 'auto' | undefined;
274
+ striped?: boolean | undefined;
275
+ isSticky?: boolean | undefined;
276
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
277
+ isScrollable?: boolean | undefined;
278
+ hasStickyHeader?: boolean | undefined;
279
+ isInStickyRow?: boolean | undefined;
280
+ } & import('tailwind-variants').ClassProp<
281
+ import('tailwind-variants').ClassValue
282
+ >)
283
+ | undefined
284
+ ) => string;
285
+ tfoot: (
286
+ slotProps?:
287
+ | ({
288
+ size?: 'sm' | 'md' | 'lg' | undefined;
289
+ layout?: 'fixed' | 'auto' | undefined;
290
+ striped?: boolean | undefined;
291
+ isSticky?: boolean | undefined;
292
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
293
+ isScrollable?: boolean | undefined;
294
+ hasStickyHeader?: boolean | undefined;
295
+ isInStickyRow?: boolean | undefined;
296
+ } & import('tailwind-variants').ClassProp<
297
+ import('tailwind-variants').ClassValue
298
+ >)
299
+ | undefined
300
+ ) => string;
301
+ tr: (
302
+ slotProps?:
303
+ | ({
304
+ size?: 'sm' | 'md' | 'lg' | undefined;
305
+ layout?: 'fixed' | 'auto' | undefined;
306
+ striped?: boolean | undefined;
307
+ isSticky?: boolean | undefined;
308
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
309
+ isScrollable?: boolean | undefined;
310
+ hasStickyHeader?: boolean | undefined;
311
+ isInStickyRow?: boolean | undefined;
312
+ } & import('tailwind-variants').ClassProp<
313
+ import('tailwind-variants').ClassValue
314
+ >)
315
+ | undefined
316
+ ) => string;
317
+ th: (
318
+ slotProps?:
319
+ | ({
320
+ size?: 'sm' | 'md' | 'lg' | undefined;
321
+ layout?: 'fixed' | 'auto' | undefined;
322
+ striped?: boolean | undefined;
323
+ isSticky?: boolean | undefined;
324
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
325
+ isScrollable?: boolean | undefined;
326
+ hasStickyHeader?: boolean | undefined;
327
+ isInStickyRow?: boolean | undefined;
328
+ } & import('tailwind-variants').ClassProp<
329
+ import('tailwind-variants').ClassValue
330
+ >)
331
+ | undefined
332
+ ) => string;
333
+ td: (
334
+ slotProps?:
335
+ | ({
336
+ size?: 'sm' | 'md' | 'lg' | undefined;
337
+ layout?: 'fixed' | 'auto' | undefined;
338
+ striped?: boolean | undefined;
339
+ isSticky?: boolean | undefined;
340
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
341
+ isScrollable?: boolean | undefined;
342
+ hasStickyHeader?: boolean | undefined;
343
+ isInStickyRow?: boolean | undefined;
344
+ } & import('tailwind-variants').ClassProp<
345
+ import('tailwind-variants').ClassValue
346
+ >)
347
+ | undefined
348
+ ) => string;
349
+ emptyCell: (
350
+ slotProps?:
351
+ | ({
352
+ size?: 'sm' | 'md' | 'lg' | undefined;
353
+ layout?: 'fixed' | 'auto' | undefined;
354
+ striped?: boolean | undefined;
355
+ isSticky?: boolean | undefined;
356
+ stickyPosition?: 'top' | 'right' | 'bottom' | 'left' | undefined;
357
+ isScrollable?: boolean | undefined;
358
+ hasStickyHeader?: boolean | undefined;
359
+ isInStickyRow?: boolean | undefined;
360
+ } & import('tailwind-variants').ClassProp<
361
+ import('tailwind-variants').ClassValue
362
+ >)
363
+ | undefined
364
+ ) => string;
365
+ } & {};
366
+
367
+ get classNames(): string;
368
+ getValue: (
369
+ item: T,
370
+ column: ColumnDefinition<T>
371
+ ) => import('@glint/template').ContentValue;
372
+ }
373
+ export { TableBody, type TableBodySignature };
374
+ export default TableBody;