@inceptionbg/iui 2.0.47 → 2.0.49

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
@@ -1034,6 +1034,7 @@ interface Props$c {
1034
1034
  onFormSubmit?: () => void;
1035
1035
  onContentClick?: () => void;
1036
1036
  onCloseCallback?: () => void;
1037
+ noBackgroundClick?: boolean;
1037
1038
  footer?: IDialogFooterActions;
1038
1039
  size?: 'vw25' | 'vw50' | 'vw75' | 'vw100' | 'w500' | 'w600';
1039
1040
  className?: string;
@@ -1122,11 +1123,14 @@ interface BaseItemProps$1<T> {
1122
1123
  placeholder?: string;
1123
1124
  required?: boolean;
1124
1125
  additionalClearIds?: (keyof T)[];
1125
- inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
1126
+ }
1127
+ interface TextProps<T> extends BaseItemProps$1<T> {
1128
+ inputProps?: React.ComponentProps<typeof TextInput>['inputProps'];
1126
1129
  }
1127
1130
  interface SelectProps$1<T> extends BaseItemProps$1<T> {
1128
1131
  options: readonly (string | boolean)[] | (string | boolean)[];
1129
1132
  minWidth?: number;
1133
+ isClearable?: boolean;
1130
1134
  formatOption: (value: string | boolean) => {
1131
1135
  value: string | boolean;
1132
1136
  label: string;
@@ -1134,16 +1138,22 @@ interface SelectProps$1<T> extends BaseItemProps$1<T> {
1134
1138
  }
1135
1139
  declare const useTableEdit: <T extends Record<string, any>>() => {
1136
1140
  editable: Pick<ITableEdit<T>, "selectedItem" | "setSelectedItem" | "editData" | "setEditData">;
1137
- textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1141
+ textEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1138
1142
  value: react_jsx_runtime.JSX.Element;
1139
1143
  };
1140
- numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: BaseItemProps$1<T>) => {
1144
+ numberEditCell: ({ placeholder, required, id, additionalClearIds, inputProps, }: TextProps<T>) => {
1141
1145
  value: react_jsx_runtime.JSX.Element;
1142
1146
  };
1143
1147
  dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder" | "inputProps">) => {
1144
1148
  value: react_jsx_runtime.JSX.Element;
1145
1149
  };
1146
- selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, }: SelectProps$1<T>) => {
1150
+ selectEditCell: ({ id, placeholder, required, options, formatOption, additionalClearIds, minWidth, isClearable, }: SelectProps$1<T>) => {
1151
+ value: react_jsx_runtime.JSX.Element;
1152
+ };
1153
+ booleanSelectEditCell: ({ id, placeholder, required, additionalClearIds, minWidth, labelTrue, labelFalse, isClearable, }: Omit<SelectProps$1<T>, "options" | "formatOption"> & {
1154
+ labelTrue?: string;
1155
+ labelFalse?: string;
1156
+ }) => {
1147
1157
  value: react_jsx_runtime.JSX.Element;
1148
1158
  };
1149
1159
  };