@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.
@@ -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 | undefined;
24
- size?: "small" | "medium" | "large" | undefined;
25
- placeholder?: string | undefined;
26
- onChange?: ((event: React.ChangeEvent<HTMLInputElement>, value: {
23
+ value?: string;
24
+ size?: "small" | "medium" | "large";
25
+ placeholder?: string;
26
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: {
27
27
  value: string;
28
- }) => void) | undefined;
29
- onBlur?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
30
- interaction?: "enabled" | "disabled" | "readonly" | undefined;
31
- isRequired?: boolean | undefined;
32
- isInline?: boolean | undefined;
33
- assistiveText?: string | undefined;
34
- layout?: "stacked" | "inline" | undefined;
35
- width?: string | undefined;
36
- display?: "inline-block" | "block" | undefined;
37
- inputRef?: ((element: HTMLInputElement | null) => void) | undefined;
38
- messages?: FormMessage[] | undefined;
39
- placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
40
- isShowingCalendar?: boolean | undefined;
41
- onRequestValidateDate?: ((event: React.SyntheticEvent<Element, Event>, dateString?: string | undefined, validation?: FormMessage[] | undefined) => void | FormMessage[]) | undefined;
42
- onRequestShowCalendar?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
43
- onRequestHideCalendar?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
44
- onRequestSelectNextDay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
45
- onRequestSelectPrevDay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
46
- onRequestRenderNextMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
47
- onRequestRenderPrevMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
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))[] | undefined;
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, string | React.JSXElementConstructor<any>>[] | undefined;
53
- disabledDates?: string[] | ((isoDateToCheck: string) => boolean) | undefined;
54
- currentDate?: string | undefined;
55
- invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage) | undefined;
56
- disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage) | undefined;
57
- locale?: string | undefined;
58
- timezone?: string | undefined;
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 | undefined;
63
- size?: "small" | "medium" | "large" | undefined;
64
- placeholder?: string | undefined;
65
- onChange?: ((event: React.ChangeEvent<HTMLInputElement>, value: {
62
+ value?: string;
63
+ size?: "small" | "medium" | "large";
64
+ placeholder?: string;
65
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: {
66
66
  value: string;
67
- }) => void) | undefined;
68
- onBlur?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
69
- interaction?: "enabled" | "disabled" | "readonly" | undefined;
70
- isRequired?: boolean | undefined;
71
- isInline?: boolean | undefined;
72
- assistiveText?: string | undefined;
73
- layout?: "stacked" | "inline" | undefined;
74
- width?: string | undefined;
75
- display?: "inline-block" | "block" | undefined;
76
- inputRef?: ((element: HTMLInputElement | null) => void) | undefined;
77
- messages?: FormMessage[] | undefined;
78
- placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
79
- isShowingCalendar?: boolean | undefined;
80
- onRequestValidateDate?: ((event: React.SyntheticEvent<Element, Event>, dateString?: string | undefined, validation?: FormMessage[] | undefined) => void | FormMessage[]) | undefined;
81
- onRequestShowCalendar?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
82
- onRequestHideCalendar?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
83
- onRequestSelectNextDay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
84
- onRequestSelectPrevDay?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
85
- onRequestRenderNextMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
86
- onRequestRenderPrevMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
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))[] | undefined;
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, string | React.JSXElementConstructor<any>>[] | undefined;
92
- disabledDates?: string[] | ((isoDateToCheck: string) => boolean) | undefined;
93
- currentDate?: string | undefined;
94
- invalidDateErrorMessage?: string | ((rawDateValue: string) => FormMessage) | undefined;
95
- disabledDateErrorMessage?: string | ((rawDateValue: string) => FormMessage) | undefined;
96
- locale?: string | undefined;
97
- timezone?: string | undefined;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;MAUlB;IAED,KAAK;;;;;MAKJ;IACD,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAY;IAC5C,GAAG,EAAE,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