@colisweb/rescript-toolkit 5.42.1 → 5.42.3
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.
package/package.json
CHANGED
|
@@ -100,7 +100,7 @@ let make = (
|
|
|
100
100
|
})}
|
|
101
101
|
className={cx([
|
|
102
102
|
"dropdown",
|
|
103
|
-
"absolute z-
|
|
103
|
+
"absolute z-50 bg-white p-2 transform shadow rounded text-base font-normal text-neutral-700 opacity-0",
|
|
104
104
|
dropdownClassName,
|
|
105
105
|
])}
|
|
106
106
|
style={adjustmentStyle->Option.getWithDefault(ReactDOM.Style.make())}>
|
|
@@ -129,6 +129,8 @@ and header<'filterVariant> = {
|
|
|
129
129
|
id: string,
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
type columnInstance = {setFilterValue: 'a. ('a) => unit}
|
|
133
|
+
|
|
132
134
|
type rec tableInstance<'tableData, 'filterVariant> = {
|
|
133
135
|
getHeaderGroups: unit => array<headerGroup<'filterVariant>>,
|
|
134
136
|
getRowModel: unit => rowModel<'filterVariant>,
|
|
@@ -148,6 +150,7 @@ type rec tableInstance<'tableData, 'filterVariant> = {
|
|
|
148
150
|
tableOptions<'tableData, 'filterVariant> => tableOptions<'tableData, 'filterVariant>
|
|
149
151
|
) => unit,
|
|
150
152
|
setColumnFilters: (array<filterState> => array<filterState>) => unit,
|
|
153
|
+
getColumn: ( string) => option<columnInstance>,
|
|
151
154
|
}
|
|
152
155
|
and tableOptions<'tableData, 'filterVariant> = {
|
|
153
156
|
data: array<'tableData>,
|