@instructure/ui-date-input 10.25.0 → 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.
@@ -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 }
@@ -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" },