@instructure/ui-date-input 9.2.1-snapshot-11 → 9.2.1-snapshot-14
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/CHANGELOG.md +1 -1
- package/package.json +21 -21
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateInput/index.d.ts +64 -64
- package/types/DateInput/index.d.ts.map +1 -1
@@ -20,81 +20,81 @@ declare class DateInput extends Component<DateInputProps, DateInputState> {
|
|
20
20
|
context: React.ContextType<typeof ApplyLocaleContext>;
|
21
21
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
22
22
|
renderLabel: import("@instructure/shared-types").Renderable;
|
23
|
-
value?: string
|
24
|
-
size?: "small" | "medium" | "large"
|
25
|
-
placeholder?: string
|
26
|
-
onChange?: (
|
23
|
+
value?: string;
|
24
|
+
size?: "small" | "medium" | "large";
|
25
|
+
placeholder?: string;
|
26
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: {
|
27
27
|
value: string;
|
28
|
-
}) => void
|
29
|
-
onBlur?: (
|
30
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
31
|
-
isRequired?: boolean
|
32
|
-
isInline?: boolean
|
33
|
-
assistiveText?: string
|
34
|
-
layout?: "stacked" | "inline"
|
35
|
-
width?: string
|
36
|
-
display?: "inline-block" | "block"
|
37
|
-
inputRef?: (
|
38
|
-
messages?: FormMessage[]
|
39
|
-
placement?: import("@instructure/ui-position").PlacementPropValues
|
40
|
-
isShowingCalendar?: boolean
|
41
|
-
onRequestValidateDate?: (
|
42
|
-
onRequestShowCalendar?: (
|
43
|
-
onRequestHideCalendar?: (
|
44
|
-
onRequestSelectNextDay?: (
|
45
|
-
onRequestSelectPrevDay?: (
|
46
|
-
onRequestRenderNextMonth?: (
|
47
|
-
onRequestRenderPrevMonth?: (
|
28
|
+
}) => void;
|
29
|
+
onBlur?: (event: React.SyntheticEvent) => void;
|
30
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
31
|
+
isRequired?: boolean;
|
32
|
+
isInline?: boolean;
|
33
|
+
assistiveText?: string;
|
34
|
+
layout?: "stacked" | "inline";
|
35
|
+
width?: string;
|
36
|
+
display?: "inline-block" | "block";
|
37
|
+
inputRef?: (element: HTMLInputElement | null) => void;
|
38
|
+
messages?: FormMessage[];
|
39
|
+
placement?: import("@instructure/ui-position").PlacementPropValues;
|
40
|
+
isShowingCalendar?: boolean;
|
41
|
+
onRequestValidateDate?: (event: React.SyntheticEvent, dateString?: string, validation?: FormMessage[]) => void | FormMessage[];
|
42
|
+
onRequestShowCalendar?: (event: React.SyntheticEvent) => void;
|
43
|
+
onRequestHideCalendar?: (event: React.SyntheticEvent) => void;
|
44
|
+
onRequestSelectNextDay?: (event: React.SyntheticEvent) => void;
|
45
|
+
onRequestSelectPrevDay?: (event: React.SyntheticEvent) => void;
|
46
|
+
onRequestRenderNextMonth?: (e: React.MouseEvent) => void;
|
47
|
+
onRequestRenderPrevMonth?: (e: React.MouseEvent) => void;
|
48
48
|
renderNavigationLabel?: React.ReactNode | (() => React.ReactNode);
|
49
|
-
renderWeekdayLabels?: (React.ReactNode | (() => React.ReactNode))[]
|
49
|
+
renderWeekdayLabels?: (React.ReactNode | (() => React.ReactNode))[];
|
50
50
|
renderNextMonthButton?: import("@instructure/shared-types").Renderable;
|
51
51
|
renderPrevMonthButton?: import("@instructure/shared-types").Renderable;
|
52
|
-
children?: React.ReactElement<CalendarDayProps
|
53
|
-
disabledDates?: string[] | ((isoDateToCheck: string) => boolean)
|
54
|
-
currentDate?: string
|
55
|
-
invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage)
|
56
|
-
disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage)
|
57
|
-
locale?: string
|
58
|
-
timezone?: string
|
52
|
+
children?: React.ReactElement<CalendarDayProps>[];
|
53
|
+
disabledDates?: string[] | ((isoDateToCheck: string) => boolean);
|
54
|
+
currentDate?: string;
|
55
|
+
invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage);
|
56
|
+
disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage);
|
57
|
+
locale?: string;
|
58
|
+
timezone?: string;
|
59
59
|
}>;
|
60
60
|
static allowedProps: readonly (keyof {
|
61
61
|
renderLabel: import("@instructure/shared-types").Renderable;
|
62
|
-
value?: string
|
63
|
-
size?: "small" | "medium" | "large"
|
64
|
-
placeholder?: string
|
65
|
-
onChange?: (
|
62
|
+
value?: string;
|
63
|
+
size?: "small" | "medium" | "large";
|
64
|
+
placeholder?: string;
|
65
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: {
|
66
66
|
value: string;
|
67
|
-
}) => void
|
68
|
-
onBlur?: (
|
69
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
70
|
-
isRequired?: boolean
|
71
|
-
isInline?: boolean
|
72
|
-
assistiveText?: string
|
73
|
-
layout?: "stacked" | "inline"
|
74
|
-
width?: string
|
75
|
-
display?: "inline-block" | "block"
|
76
|
-
inputRef?: (
|
77
|
-
messages?: FormMessage[]
|
78
|
-
placement?: import("@instructure/ui-position").PlacementPropValues
|
79
|
-
isShowingCalendar?: boolean
|
80
|
-
onRequestValidateDate?: (
|
81
|
-
onRequestShowCalendar?: (
|
82
|
-
onRequestHideCalendar?: (
|
83
|
-
onRequestSelectNextDay?: (
|
84
|
-
onRequestSelectPrevDay?: (
|
85
|
-
onRequestRenderNextMonth?: (
|
86
|
-
onRequestRenderPrevMonth?: (
|
67
|
+
}) => void;
|
68
|
+
onBlur?: (event: React.SyntheticEvent) => void;
|
69
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
70
|
+
isRequired?: boolean;
|
71
|
+
isInline?: boolean;
|
72
|
+
assistiveText?: string;
|
73
|
+
layout?: "stacked" | "inline";
|
74
|
+
width?: string;
|
75
|
+
display?: "inline-block" | "block";
|
76
|
+
inputRef?: (element: HTMLInputElement | null) => void;
|
77
|
+
messages?: FormMessage[];
|
78
|
+
placement?: import("@instructure/ui-position").PlacementPropValues;
|
79
|
+
isShowingCalendar?: boolean;
|
80
|
+
onRequestValidateDate?: (event: React.SyntheticEvent, dateString?: string, validation?: FormMessage[]) => void | FormMessage[];
|
81
|
+
onRequestShowCalendar?: (event: React.SyntheticEvent) => void;
|
82
|
+
onRequestHideCalendar?: (event: React.SyntheticEvent) => void;
|
83
|
+
onRequestSelectNextDay?: (event: React.SyntheticEvent) => void;
|
84
|
+
onRequestSelectPrevDay?: (event: React.SyntheticEvent) => void;
|
85
|
+
onRequestRenderNextMonth?: (e: React.MouseEvent) => void;
|
86
|
+
onRequestRenderPrevMonth?: (e: React.MouseEvent) => void;
|
87
87
|
renderNavigationLabel?: React.ReactNode | (() => React.ReactNode);
|
88
|
-
renderWeekdayLabels?: (React.ReactNode | (() => React.ReactNode))[]
|
88
|
+
renderWeekdayLabels?: (React.ReactNode | (() => React.ReactNode))[];
|
89
89
|
renderNextMonthButton?: import("@instructure/shared-types").Renderable;
|
90
90
|
renderPrevMonthButton?: import("@instructure/shared-types").Renderable;
|
91
|
-
children?: React.ReactElement<CalendarDayProps
|
92
|
-
disabledDates?: string[] | ((isoDateToCheck: string) => boolean)
|
93
|
-
currentDate?: string
|
94
|
-
invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage)
|
95
|
-
disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage)
|
96
|
-
locale?: string
|
97
|
-
timezone?: string
|
91
|
+
children?: React.ReactElement<CalendarDayProps>[];
|
92
|
+
disabledDates?: string[] | ((isoDateToCheck: string) => boolean);
|
93
|
+
currentDate?: string;
|
94
|
+
invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage);
|
95
|
+
disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage);
|
96
|
+
locale?: string;
|
97
|
+
timezone?: string;
|
98
98
|
})[];
|
99
99
|
static defaultProps: {
|
100
100
|
value: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DateInput/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;AAGhE,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI/E,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAUhE,OAAO,EAAY,kBAAkB,EAAU,MAAM,sBAAsB,CAAA;AAE3E,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D;;;;;;GAMG;AACH,cAEM,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAC/D,MAAM,CAAC,QAAQ,CAAC,WAAW,eAAc;IACzC,MAAM,CAAC,GAAG,uEAAe;IACjB,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;IAC7D,MAAM,CAAC,SAAS
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DateInput/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgB,MAAM,OAAO,CAAA;AAGhE,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI/E,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAUhE,OAAO,EAAY,kBAAkB,EAAU,MAAM,sBAAsB,CAAA;AAE3E,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,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