@@ -9,14 +9,6 @@ type Margin = {
99} ;
1010
1111type Props = {
12- /**
13- * Text to be placed above the date.
14- */
15- label ?: string ;
16- /**
17- * Name attribute of the input element.
18- */
19- name ?: string ;
2012 /**
2113 * Initial value of the input element, only when it is uncontrolled.
2214 */
@@ -26,9 +18,13 @@ type Props = {
2618 */
2719 value ?: string ;
2820 /**
29- * The format in which the date value will be displayed. User must use this format when editing the value or it will be considered as an invalid date.
21+ * Text to be placed above the date input .
3022 */
31- format ?: string ;
23+ label ?: string ;
24+ /**
25+ * Name attribute of the input element.
26+ */
27+ name ?: string ;
3228 /**
3329 * Helper text to be placed above the date.
3430 */
@@ -37,6 +33,10 @@ type Props = {
3733 * If true, the date format will appear as placeholder in the field.
3834 */
3935 placeholder ?: boolean ;
36+ /**
37+ * The format in which the date value will be displayed. User must use this format when editing the value or it will be considered as an invalid date.
38+ */
39+ format ?: string ;
4040 /**
4141 * If true, the date input will have an action to clear the entered value.
4242 */
@@ -46,18 +46,18 @@ type Props = {
4646 */
4747 disabled ?: boolean ;
4848 /**
49- * If true, the component will not be mutable, meaning the user can not edit the control.
50- * The date picker cannot be opened either. In addition, the clear action will not be displayed
51- * even if the flag is set to true.
52- */
53- readOnly ?: boolean ;
54- /**
55- * If true, the date will be optional, showing '(Optional)'
49+ * If true, the date will be optional, showing the text '(Optional)'
5650 * next to the label. Otherwise, the field will be considered required and an error will be
5751 * passed as a parameter to the OnBlur and onChange functions when it has
5852 * not been filled.
5953 */
6054 optional ?: boolean ;
55+ /**
56+ * If true, the component will not be mutable, meaning the user can not edit the control.
57+ * The date picker cannot be opened either. In addition, the clear action will not be displayed
58+ * even if the flag is set to true.
59+ */
60+ readOnly ?: boolean ;
6161 /**
6262 * This function will be called when the user types within the input
6363 * element of the component. An object including the string value, the
@@ -127,15 +127,15 @@ export type CalendarPropsType = {
127127 */
128128 innerDate : Dayjs ;
129129 /**
130- * Function called when the date showned needs to be updated
130+ * Function called when the showed date needs to be updated.
131131 */
132132 onInnerDateChange : ( date : Dayjs ) => void ;
133133 /**
134134 * Function called when a date is selected.
135135 */
136136 onDaySelect : ( date : Dayjs ) => void ;
137137 /**
138- * Current date
138+ * Current date.
139139 */
140140 today : Dayjs ;
141141} ;
@@ -150,7 +150,7 @@ export type YearPickerPropsType = {
150150 */
151151 onYearSelect : ( year : number ) => void ;
152152 /**
153- * Current date
153+ * Current date.
154154 */
155155 today : Dayjs ;
156156} ;
0 commit comments