@instructure/ui-date-input 10.25.1-pr-snapshot-1757670033771 → 10.25.1-pr-snapshot-1757941125745
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 +5 -2
- package/es/DateInput/index.js +9 -7
- package/es/DateInput/props.js +1 -44
- package/es/DateInput2/index.js +3 -3
- package/es/DateInput2/props.js +1 -51
- package/lib/DateInput/index.js +8 -6
- package/lib/DateInput/props.js +1 -46
- package/lib/DateInput2/index.js +3 -3
- package/lib/DateInput2/props.js +1 -53
- package/package.json +18 -21
- package/src/DateInput/index.tsx +5 -5
- package/src/DateInput/props.ts +2 -63
- package/src/DateInput2/index.tsx +3 -10
- package/src/DateInput2/props.ts +1 -40
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/DateInput/index.d.ts +0 -45
- package/types/DateInput/index.d.ts.map +1 -1
- package/types/DateInput/props.d.ts +2 -3
- package/types/DateInput/props.d.ts.map +1 -1
- package/types/DateInput2/index.d.ts.map +1 -1
- package/types/DateInput2/props.d.ts +1 -4
- package/types/DateInput2/props.d.ts.map +1 -1
package/src/DateInput2/props.ts
CHANGED
@@ -22,17 +22,9 @@
|
|
22
22
|
* SOFTWARE.
|
23
23
|
*/
|
24
24
|
|
25
|
-
import PropTypes from 'prop-types'
|
26
25
|
import type { SyntheticEvent, InputHTMLAttributes } from 'react'
|
27
|
-
|
28
|
-
import { controllable } from '@instructure/ui-prop-types'
|
29
|
-
import { FormPropTypes } from '@instructure/ui-form-field'
|
30
26
|
import type { FormMessage } from '@instructure/ui-form-field'
|
31
|
-
import type {
|
32
|
-
OtherHTMLAttributes,
|
33
|
-
Renderable,
|
34
|
-
PropValidators
|
35
|
-
} from '@instructure/shared-types'
|
27
|
+
import type { OtherHTMLAttributes, Renderable } from '@instructure/shared-types'
|
36
28
|
import type { Spacing } from '@instructure/emotion'
|
37
29
|
|
38
30
|
type DateInput2OwnProps = {
|
@@ -188,40 +180,9 @@ type DateInput2OwnProps = {
|
|
188
180
|
inputRef?: (inputElement: HTMLInputElement | null) => void
|
189
181
|
}
|
190
182
|
|
191
|
-
type PropKeys = keyof DateInput2OwnProps
|
192
|
-
|
193
183
|
type DateInput2Props = DateInput2OwnProps &
|
194
184
|
OtherHTMLAttributes<
|
195
185
|
DateInput2OwnProps,
|
196
186
|
InputHTMLAttributes<DateInput2OwnProps & Element>
|
197
187
|
>
|
198
|
-
|
199
|
-
const propTypes: PropValidators<PropKeys> = {
|
200
|
-
renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
201
|
-
screenReaderLabels: PropTypes.object.isRequired,
|
202
|
-
value: controllable(PropTypes.string),
|
203
|
-
placeholder: PropTypes.string,
|
204
|
-
onChange: PropTypes.func,
|
205
|
-
onBlur: PropTypes.func,
|
206
|
-
interaction: PropTypes.oneOf(['enabled', 'disabled', 'readonly']),
|
207
|
-
isRequired: PropTypes.bool,
|
208
|
-
isInline: PropTypes.bool,
|
209
|
-
width: PropTypes.string,
|
210
|
-
messages: PropTypes.arrayOf(FormPropTypes.message),
|
211
|
-
invalidDateErrorMessage: PropTypes.oneOfType([
|
212
|
-
PropTypes.func,
|
213
|
-
PropTypes.string
|
214
|
-
]),
|
215
|
-
locale: PropTypes.string,
|
216
|
-
timezone: PropTypes.string,
|
217
|
-
withYearPicker: PropTypes.object,
|
218
|
-
dateFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
219
|
-
onRequestValidateDate: PropTypes.func,
|
220
|
-
renderCalendarIcon: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
221
|
-
margin: PropTypes.string,
|
222
|
-
disabledDates: PropTypes.oneOfType([PropTypes.array, PropTypes.func]),
|
223
|
-
inputRef: PropTypes.func
|
224
|
-
}
|
225
|
-
|
226
188
|
export type { DateInput2Props }
|
227
|
-
export { propTypes }
|
package/tsconfig.build.json
CHANGED
@@ -15,11 +15,9 @@
|
|
15
15
|
{ "path": "../ui-icons/tsconfig.build.json" },
|
16
16
|
{ "path": "../ui-popover/tsconfig.build.json" },
|
17
17
|
{ "path": "../ui-position/tsconfig.build.json" },
|
18
|
-
{ "path": "../ui-prop-types/tsconfig.build.json" },
|
19
18
|
{ "path": "../ui-react-utils/tsconfig.build.json" },
|
20
19
|
{ "path": "../ui-selectable/tsconfig.build.json" },
|
21
20
|
{ "path": "../shared-types/tsconfig.build.json" },
|
22
|
-
{ "path": "../ui-testable/tsconfig.build.json" },
|
23
21
|
{ "path": "../ui-text-input/tsconfig.build.json" },
|
24
22
|
{ "path": "../ui-utils/tsconfig.build.json" },
|
25
23
|
{ "path": "../ui-i18n/tsconfig.build.json" },
|