@foris/avocado-suite 0.29.3 → 0.30.1

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.
@@ -96,6 +96,20 @@ export interface TableRowOptions {
96
96
  * The type of selection mechanism to use for the table row.
97
97
  */
98
98
  selectorType?: TableSelectType;
99
+ /**
100
+ * A function to determine if the (Checkbox or Radio) selector should be disabled.
101
+ *
102
+ * @param row - The data of the row to check.
103
+ * @returns `true` if the selector should be disabled, otherwise `false`.
104
+ */
105
+ isSelectorDisabled?: (row: unknown) => boolean;
106
+ /**
107
+ * A function to determine if the head selector should be disabled.
108
+ *
109
+ * @param rows - The data of the rows to check.
110
+ * @returns `true` if the head selector should be disabled, otherwise `false`.
111
+ */
112
+ isHeadSelectorDisabled?: boolean;
99
113
  /**
100
114
  * Optional indicator to enable text adaptability by allowing max 3 lines per row.
101
115
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-suite",
3
- "version": "0.29.3",
3
+ "version": "0.30.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },