@mdspl/mds-shared-ui 1.3.2 → 1.3.4
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 +4 -4
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1573 -1606
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -130,11 +130,11 @@ export declare class HttpOptionsApi implements OptionsApi {
|
|
|
130
130
|
fetchLatest(keys: string[]): Promise<OptionValue[]>;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export declare interface IFilterConfig<T =
|
|
133
|
+
export declare interface IFilterConfig<T = any> {
|
|
134
134
|
id: string;
|
|
135
135
|
label: string;
|
|
136
136
|
type?: 'date' | 'text' | 'select' | 'checkbox' | 'radio' | 'number' | 'combobox' | 'date-range';
|
|
137
|
-
value: string | number | undefined | boolean | Date;
|
|
137
|
+
value: string | number | undefined | boolean | Date | any;
|
|
138
138
|
options?: FilterOption<T>[];
|
|
139
139
|
onChange?: (value: any) => void;
|
|
140
140
|
visible: boolean;
|
|
@@ -301,7 +301,8 @@ export declare const MDSButton: ({ onClick, size, variant, label, leftIcon, righ
|
|
|
301
301
|
|
|
302
302
|
export declare const MDSCheckbox: ({ value, onChange, size, label, helperText, isDisabled, required, errorText, }: IMDSCheckboxTypes) => JSX_2.Element;
|
|
303
303
|
|
|
304
|
-
export declare function MDSCombobox<T>({ label, size, width,
|
|
304
|
+
export declare function MDSCombobox<T>({ label, size, width, // Set a default width so it doesn't shrink to 0
|
|
305
|
+
items, itemToString, itemToValue, renderItem, value, loading, placeholder, onSelect, visible, }: IMDSComboboxTypes<T>): JSX_2.Element | null;
|
|
305
306
|
|
|
306
307
|
export declare function MDSConfirmActionDialog({ open, onClose, onConfirm, title, description, confirmLabel, cancelLabel, icon, isLoading, confirmButtonColorScheme, }: ConfirmActionDialogProps): JSX_2.Element;
|
|
307
308
|
|