@inceptionbg/iui 2.0.47 → 2.0.48

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/dist/index.d.ts CHANGED
@@ -1122,11 +1122,14 @@ interface BaseItemProps$1<T> {
1122
1122
  placeholder?: string;
1123
1123
  required?: boolean;
1124
1124
  additionalClearIds?: (keyof T)[];
1125
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
1125
+ }
1126
+ interface TextProps<T> extends BaseItemProps$1<T> {
1127
+ inputProps?: React.ComponentProps<typeof TextInput>['inputProps'];
1126
1128
  }
1127
1129
  interface SelectProps$1<T> extends BaseItemProps$1<T> {
1128
1130
  options: readonly (string | boolean)[] | (string | boolean)[];
1129
1131
  minWidth?: number;
1132
+ isClearable?: boolean;
1130
1133
  formatOption: (value: string | boolean) => {
1131
1134
  value: string | boolean;
1132
1135
  label: string;
@@ -1134,16 +1137,22 @@ interface SelectProps$1<T> extends BaseItemProps$1<T> {
1134
1137
  }
1135
1138
  declare const useTableEdit: <T extends Record<string, any>>() => {
1136
1139
  editable: Pick<ITableEdit<T>, "selectedItem" | "setSelectedItem" | "editData" | "setEditData">;
1137
- textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1140
+ textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1138
1141
  value: react_jsx_runtime.JSX.Element;
1139
1142
  };
1140
- numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1143
+ numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1141
1144
  value: react_jsx_runtime.JSX.Element;
1142
1145
  };
1143
1146
  dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder" | "inputProps">) => {
1144
1147
  value: react_jsx_runtime.JSX.Element;
1145
1148
  };
1146
- selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, }: SelectProps$1<T>) => {
1149
+ selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, isClearable, }: SelectProps$1<T>) => {
1150
+ value: react_jsx_runtime.JSX.Element;
1151
+ };
1152
+ booleanSelectEditCell: ({ id, placeholder, required, additionalClearIds, minWidth, labelTrue, labelFalse, isClearable, }: Omit<SelectProps$1<T>, "options" | "formatOption"> & {
1153
+ labelTrue?: string;
1154
+ labelFalse?: string;
1155
+ }) => {
1147
1156
  value: react_jsx_runtime.JSX.Element;
1148
1157
  };
1149
1158
  };