@mdspl/mds-shared-ui 1.0.3 → 1.0.5

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
@@ -126,8 +126,8 @@ export declare class HttpOptionsApi implements OptionsApi {
126
126
  export declare interface IFilterConfig {
127
127
  id: string;
128
128
  label: string;
129
- type?: 'date' | 'text' | 'select' | 'checkbox' | 'radio' | 'number' | 'combobox';
130
- value: string | number | undefined | boolean;
129
+ type?: 'date' | 'text' | 'select' | 'checkbox' | 'radio' | 'number' | 'combobox' | 'date-range';
130
+ value: string | number | undefined | boolean | Date;
131
131
  options?: {
132
132
  label: string;
133
133
  value: string;
@@ -137,6 +137,8 @@ export declare interface IFilterConfig {
137
137
  size?: 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 4.5 | 5;
138
138
  customComponent?: JSX.Element;
139
139
  placeholder?: string;
140
+ startDate?: string | null;
141
+ endDate?: string | null;
140
142
  }
141
143
 
142
144
  export declare interface IFilterDrawerProps {
@@ -218,6 +220,24 @@ export declare interface IMDSComboboxTypes<T> {
218
220
  visible?: boolean;
219
221
  }
220
222
 
223
+ export declare type IMDSDatePickerTypes = {
224
+ value?: Date;
225
+ onChange: (date: Date | null) => void;
226
+ width?: string;
227
+ visible?: boolean;
228
+ label?: string;
229
+ };
230
+
231
+ export declare type IMDSDateRangePickerTypes = {
232
+ startDate?: Date;
233
+ endDate?: Date;
234
+ onChange: (start: Date | null, end: Date | null) => void;
235
+ width?: string;
236
+ showLabel?: boolean;
237
+ label?: string;
238
+ visible?: boolean;
239
+ };
240
+
221
241
  export declare interface IMDSInputTypes {
222
242
  icon?: React.ReactNode;
223
243
  value?: string | number;
@@ -284,6 +304,11 @@ export declare function MDSConfirmActionDialog({ open, onClose, onConfirm, title
284
304
 
285
305
  export declare function MDSConfirmDeleteDialog({ open, onClose, onConfirm, title, entityName, confirmText, confirmLabel, isLoading, }: ConfirmDeleteDialogProps): JSX_2.Element;
286
306
 
307
+ export declare function MDSDatePicker({ value, onChange, width, visible, label, }: IMDSDatePickerTypes): JSX_2.Element;
308
+
309
+ export declare function MDSDateRangePicker({ startDate, endDate, onChange, width, // Slightly wider for " to "
310
+ showLabel, label, visible, }: IMDSDateRangePickerTypes): JSX_2.Element;
311
+
287
312
  export declare const MDSDialogAction: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
288
313
 
289
314
  export declare const MDSDialogActions: default_2.FC<SlotProps>;