@instructure/ui-date-input 8.26.2 → 8.26.4-snapshot-3
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.
|
@@ -17,7 +17,7 @@ declare class DateInput extends Component<DateInputProps> {
|
|
|
17
17
|
static readonly componentId = "DateInput";
|
|
18
18
|
static Day: typeof import("@instructure/ui-calendar/types/Calendar/Day").default;
|
|
19
19
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
20
|
-
renderLabel:
|
|
20
|
+
renderLabel: import("@instructure/shared-types").Renderable<never>;
|
|
21
21
|
value?: string | undefined;
|
|
22
22
|
size?: "small" | "medium" | "large" | undefined;
|
|
23
23
|
placeholder?: string | undefined;
|
|
@@ -45,12 +45,12 @@ declare class DateInput extends Component<DateInputProps> {
|
|
|
45
45
|
onRequestRenderPrevMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
46
46
|
renderNavigationLabel?: React.ReactNode | (() => React.ReactNode);
|
|
47
47
|
renderWeekdayLabels: (React.ReactNode | (() => React.ReactNode))[];
|
|
48
|
-
renderNextMonthButton?:
|
|
49
|
-
renderPrevMonthButton?:
|
|
48
|
+
renderNextMonthButton?: import("@instructure/shared-types").Renderable<never>;
|
|
49
|
+
renderPrevMonthButton?: import("@instructure/shared-types").Renderable<never>;
|
|
50
50
|
children?: React.ReactElement<CalendarDayProps, string | React.JSXElementConstructor<any>>[] | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
static allowedProps: readonly (keyof {
|
|
53
|
-
renderLabel:
|
|
53
|
+
renderLabel: import("@instructure/shared-types").Renderable<never>;
|
|
54
54
|
value?: string | undefined;
|
|
55
55
|
size?: "small" | "medium" | "large" | undefined;
|
|
56
56
|
placeholder?: string | undefined;
|
|
@@ -78,8 +78,8 @@ declare class DateInput extends Component<DateInputProps> {
|
|
|
78
78
|
onRequestRenderPrevMonth?: ((e: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
79
79
|
renderNavigationLabel?: React.ReactNode | (() => React.ReactNode);
|
|
80
80
|
renderWeekdayLabels: (React.ReactNode | (() => React.ReactNode))[];
|
|
81
|
-
renderNextMonthButton?:
|
|
82
|
-
renderPrevMonthButton?:
|
|
81
|
+
renderNextMonthButton?: import("@instructure/shared-types").Renderable<never>;
|
|
82
|
+
renderPrevMonthButton?: import("@instructure/shared-types").Renderable<never>;
|
|
83
83
|
children?: React.ReactElement<CalendarDayProps, string | React.JSXElementConstructor<any>>[] | undefined;
|
|
84
84
|
})[];
|
|
85
85
|
static defaultProps: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { CalendarDayProps } from '@instructure/ui-calendar';
|
|
2
2
|
import type { FormMessage } from '@instructure/ui-form-field';
|
|
3
3
|
import type { PlacementPropValues } from '@instructure/ui-position';
|
|
4
|
-
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
4
|
+
import type { Renderable, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
5
5
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
6
6
|
import React, { InputHTMLAttributes, ReactElement, SyntheticEvent } from 'react';
|
|
7
7
|
declare type DateInputOwnProps = {
|
|
8
8
|
/**
|
|
9
9
|
* Specifies the input label.
|
|
10
10
|
*/
|
|
11
|
-
renderLabel:
|
|
11
|
+
renderLabel: Renderable;
|
|
12
12
|
/**
|
|
13
13
|
* Specifies the input value.
|
|
14
14
|
*/
|
|
@@ -143,14 +143,14 @@ declare type DateInputOwnProps = {
|
|
|
143
143
|
* prop to `icon`, the `size` prop to `small`, and setting the `icon` prop to
|
|
144
144
|
* [IconArrowOpenEnd](#iconography).
|
|
145
145
|
*/
|
|
146
|
-
renderNextMonthButton?:
|
|
146
|
+
renderNextMonthButton?: Renderable;
|
|
147
147
|
/**
|
|
148
148
|
* A button to render in the calendar navigation header. The recommendation is
|
|
149
149
|
* to compose it with the [Button](#Button) component, setting the `variant`
|
|
150
150
|
* prop to `icon`, the `size` prop to `small`, and setting the `icon` prop to
|
|
151
151
|
* [IconArrowOpenStart](#iconography).
|
|
152
152
|
*/
|
|
153
|
-
renderPrevMonthButton?:
|
|
153
|
+
renderPrevMonthButton?: Renderable;
|
|
154
154
|
/**
|
|
155
155
|
* children of type `<DateInput.Day />` There should be exactly 42 provided (6
|
|
156
156
|
* weeks).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/DateInput/props.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhF,aAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/DateInput/props.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAA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