@mdspl/mds-shared-ui 0.8.0 → 0.8.2
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.cjs +3 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +1223 -1190
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -121,13 +121,13 @@ export declare class HttpOptionsApi implements OptionsApi {
|
|
|
121
121
|
export declare interface IFilterConfig {
|
|
122
122
|
id: string;
|
|
123
123
|
label: string;
|
|
124
|
-
type?: 'date' | 'text' | 'select' | 'checkbox' | 'radio' | 'number';
|
|
124
|
+
type?: 'date' | 'text' | 'select' | 'checkbox' | 'radio' | 'number' | 'combobox';
|
|
125
125
|
value: string | number | undefined | boolean;
|
|
126
126
|
options?: {
|
|
127
127
|
label: string;
|
|
128
128
|
value: string;
|
|
129
129
|
}[];
|
|
130
|
-
onChange?: (value:
|
|
130
|
+
onChange?: (value: any) => void;
|
|
131
131
|
visible: boolean;
|
|
132
132
|
size?: 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5;
|
|
133
133
|
customComponent?: JSX.Element;
|
|
@@ -210,6 +210,7 @@ export declare interface IMDSComboboxTypes<T> {
|
|
|
210
210
|
controlProps?: any;
|
|
211
211
|
contentProps?: any;
|
|
212
212
|
itemProps?: any;
|
|
213
|
+
visible?: boolean;
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
export declare interface IMDSInputTypes {
|
|
@@ -255,12 +256,26 @@ export declare const MDSButton: ({ onClick, size, variant, label, leftIcon, righ
|
|
|
255
256
|
|
|
256
257
|
export declare const MDSCheckbox: ({ value, onChange, size, label, helperText, isDisabled, required, errorText, }: IMDSCheckboxTypes) => JSX_2.Element;
|
|
257
258
|
|
|
258
|
-
export declare function MDSCombobox<T>({ label, size, width, variant, items, itemToString, itemToValue, renderItem, value, loading, error, errorMessage, placeholder, helpText, onInputChange, onSelect, rootProps, inputProps, controlProps, contentProps, itemProps, }: IMDSComboboxTypes<T>): JSX_2.Element;
|
|
259
|
+
export declare function MDSCombobox<T>({ label, size, width, variant, items, itemToString, itemToValue, renderItem, value, loading, error, errorMessage, placeholder, helpText, onInputChange, onSelect, visible, rootProps, inputProps, controlProps, contentProps, itemProps, }: IMDSComboboxTypes<T>): JSX_2.Element;
|
|
259
260
|
|
|
260
261
|
export declare function MDSConfirmActionDialog({ open, onClose, onConfirm, title, description, confirmLabel, cancelLabel, icon, isLoading, confirmButtonColorScheme, }: ConfirmActionDialogProps): JSX_2.Element;
|
|
261
262
|
|
|
262
263
|
export declare function MDSConfirmDeleteDialog({ open, onClose, onConfirm, title, entityName, confirmText, confirmLabel, isLoading, }: ConfirmDeleteDialogProps): JSX_2.Element;
|
|
263
264
|
|
|
265
|
+
export declare const MDSDialogWrapper: {
|
|
266
|
+
({ open, onClose, title, children, size, }: MDSDialogWrapperProps): JSX_2.Element;
|
|
267
|
+
Actions: ForwardRefExoticComponent<Omit<any, "ref"> & RefAttributes<any>>;
|
|
268
|
+
Action: ForwardRefExoticComponent<Omit<any, "ref"> & RefAttributes<any>>;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export declare interface MDSDialogWrapperProps {
|
|
272
|
+
open: boolean;
|
|
273
|
+
onClose: () => void;
|
|
274
|
+
title: string;
|
|
275
|
+
children: ReactNode;
|
|
276
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
277
|
+
}
|
|
278
|
+
|
|
264
279
|
export declare const MDSInput: ({ icon, value, onChange, placeholder, size, variant, width, label, helperText, isDisabled, required, errorText, visible, }: IMDSInputTypes) => JSX_2.Element;
|
|
265
280
|
|
|
266
281
|
export declare const MDSSelectBox: ({ options, label, value, onChange, placeholder, size, width, variant, helperText, isDisabled, required, errorText, visible, }: IMDSSelectBoxTypes) => JSX_2.Element;
|