@up42/up-components 4.3.1 → 4.4.0
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/cjs/index.js +1 -1
- package/dist/cjs/types/components/FormDatePickers/FormDateRangePickerList/FormDateRangePickerList.d.ts +6 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/FormDatePickers/FormDateRangePickerList/FormDateRangePickerList.d.ts +6 -1
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -24,8 +24,13 @@ export type FormDateRangePickerListProps = {
|
|
|
24
24
|
* Defines the maximum number of days after the "start date" that the "end date" can be selected.
|
|
25
25
|
*/
|
|
26
26
|
maxEndDateOffset?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the text to display in the action button to add a new Date Range.
|
|
29
|
+
* It defaults to "Add new date".
|
|
30
|
+
*/
|
|
31
|
+
addButtonText?: string;
|
|
27
32
|
} & DatePickerWrapperProps & Omit<DateRangePickerProps<DatePickerDateType | Date>, 'value' | 'onChange'>;
|
|
28
33
|
/**
|
|
29
34
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepickerlist--docs
|
|
30
35
|
*/
|
|
31
|
-
export declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, ...props }: FormDateRangePickerListProps) => React.JSX.Element;
|
|
36
|
+
export declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, addButtonText, ...props }: FormDateRangePickerListProps) => React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -231,11 +231,16 @@ type FormDateRangePickerListProps = {
|
|
|
231
231
|
* Defines the maximum number of days after the "start date" that the "end date" can be selected.
|
|
232
232
|
*/
|
|
233
233
|
maxEndDateOffset?: number;
|
|
234
|
+
/**
|
|
235
|
+
* Defines the text to display in the action button to add a new Date Range.
|
|
236
|
+
* It defaults to "Add new date".
|
|
237
|
+
*/
|
|
238
|
+
addButtonText?: string;
|
|
234
239
|
} & DatePickerWrapperProps & Omit<DateRangePickerProps<DatePickerDateType | Date>, 'value' | 'onChange'>;
|
|
235
240
|
/**
|
|
236
241
|
* Documentation: https://up-components.up42.com/?path=/docs/patterns-form-formdaterangepickerlist--docs
|
|
237
242
|
*/
|
|
238
|
-
declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, ...props }: FormDateRangePickerListProps) => React__default.JSX.Element;
|
|
243
|
+
declare const FormDateRangePickerList: ({ value, onChange, label, helperText, error, startLabel, endLabel, disabled, minEndDateOffset, maxEndDateOffset, allowKeyboard, addButtonText, ...props }: FormDateRangePickerListProps) => React__default.JSX.Element;
|
|
239
244
|
|
|
240
245
|
type RadioProps = MUIGlobalOmit<RadioProps$1>;
|
|
241
246
|
/**
|