@sequencing/design-system 1.0.15 → 1.0.16
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/documentation.json +12 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Atoms/TextField/TextField.d.ts +2 -2
- package/dist/esm/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/dist/index.d.ts +9 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/TextField/TextField.d.ts +2 -2
- package/dist/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/package.json +1 -1
|
@@ -17,8 +17,8 @@ export interface TextFieldProps {
|
|
|
17
17
|
variant?: "primary";
|
|
18
18
|
/** Callback called when the text is updated */
|
|
19
19
|
onChange?: (value: string) => void;
|
|
20
|
-
/** Callback called when the
|
|
21
|
-
onClick?: (
|
|
20
|
+
/** Callback called when the input is clicked */
|
|
21
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "react-datepicker/dist/react-datepicker-cssmodules.css";
|
|
3
3
|
export interface DatePickerProps {
|
|
4
|
-
/** Custom css class to customize the styling */
|
|
5
|
-
|
|
4
|
+
/** Custom css class to customize the styling if input. Used TextField from SDS */
|
|
5
|
+
inputCustomClass?: string;
|
|
6
6
|
/** Format of the date to be displayed. Default: ``MMMM d, yyyy`` */
|
|
7
7
|
dateFormat?: string;
|
|
8
8
|
/** Callback called when the date is updated. Return standard JS Date object */
|
|
9
9
|
onDateChange?: (date: Date | null) => void;
|
|
10
|
+
/** Start date of the date picker. Use anything which could be converted to date.
|
|
11
|
+
* If undefined or not provided - current day will be selected.
|
|
12
|
+
* If null or any falsy value - field will be empty
|
|
13
|
+
* */
|
|
14
|
+
startDate?: string | number | Date | undefined;
|
|
10
15
|
}
|
|
11
16
|
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
12
17
|
export default DatePicker;
|