@instructure/ui-time-select 8.8.1-snapshot.8 → 8.9.0

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/src/index.ts CHANGED
@@ -23,4 +23,4 @@
23
23
  */
24
24
 
25
25
  export { TimeSelect } from './TimeSelect'
26
- export type { TimeSelectProps } from './TimeSelect/types'
26
+ export type { TimeSelectProps } from './TimeSelect/props'
@@ -1,8 +1,7 @@
1
1
  import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import dayjs from 'dayjs';
4
3
  import './locales';
5
- import { TimeSelectProps } from './types';
4
+ import type { TimeSelectProps } from './props';
6
5
  /**
7
6
  ---
8
7
  category: components
@@ -10,177 +9,75 @@ category: components
10
9
  **/
11
10
  declare class TimeSelect extends Component<TimeSelectProps> {
12
11
  static readonly componentId = "TimeSelect";
13
- static propTypes: {
14
- /**
15
- * The form field label.
16
- */
17
- renderLabel: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
18
- /**
19
- * Whether to default to the first option when `defaultValue` hasn't been specified.
20
- */
21
- defaultToFirstOption: PropTypes.Requireable<boolean>;
22
- /**
23
- * An ISO 8601 formatted date string representing the current selected value. If defined,
24
- * the component will act controlled and will not manage its own state.
25
- */
26
- value: (props: Record<string, any>, propName: string, componentName: string) => Error | null;
27
- /**
28
- * An ISO 8601 formatted date string to use if `value` isn't provided.
29
- */
30
- defaultValue: PropTypes.Requireable<any>;
31
- /**
32
- * The id of the text input. One is generated if not supplied.
33
- */
34
- id: PropTypes.Requireable<string>;
35
- /**
36
- * The format to use when displaying the possible and currently selected options.
37
- *
38
- * See [moment.js formats](https://momentjs.com/docs/#/displaying/format/) for the list of available formats.
39
- */
40
- format: PropTypes.Requireable<string>;
41
- /**
42
- * The number of minutes to increment by when generating the allowable options.
43
- */
44
- step: PropTypes.Requireable<number>;
45
- /**
46
- * Specifies if interaction with the input is enabled, disabled, or readonly.
47
- * When "disabled", the input changes visibly to indicate that it cannot
48
- * receive user interactions. When "readonly" the input still cannot receive
49
- * user interactions but it keeps the same styles as if it were enabled.
50
- */
51
- interaction: PropTypes.Requireable<string>;
52
- /**
53
- * Html placeholder text to display when the input has no value. This should
54
- * be hint text, not a label replacement.
55
- */
56
- placeholder: PropTypes.Requireable<string>;
57
- /**
58
- * Whether or not the text input is required.
59
- */
60
- isRequired: PropTypes.Requireable<boolean>;
61
- /**
62
- * Whether the input is rendered inline with other elements or if it
63
- * is rendered as a block level element.
64
- */
65
- isInline: PropTypes.Requireable<boolean>;
66
- /**
67
- * The width of the text input.
68
- */
69
- width: PropTypes.Requireable<string>;
70
- /**
71
- * The max width the options list can be before option text wraps. If not
72
- * set, the list will only display as wide as the text input.
73
- */
74
- optionsMaxWidth: PropTypes.Requireable<string>;
75
- /**
76
- * The number of options that should be visible before having to scroll.
77
- */
78
- visibleOptionsCount: PropTypes.Requireable<number>;
79
- /**
80
- * Displays messages and validation for the input. It should be an object
81
- * with the following shape:
82
- * `{
83
- * text: PropTypes.string,
84
- * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
85
- * }`
86
- */
87
- messages: PropTypes.Requireable<(PropTypes.InferProps<{
88
- text: PropTypes.Requireable<string>;
89
- type: PropTypes.Requireable<string>;
90
- }> | null | undefined)[]>;
91
- /**
92
- * The placement of the options list.
93
- */
94
- placement: PropTypes.Requireable<string>;
95
- /**
96
- * The parent in which to constrain the placement.
97
- */
98
- constrain: PropTypes.Requireable<string | Element | PropTypes.ReactElementLike | ((...args: any[]) => any)>;
99
- /**
100
- * Callback fired when a new option is selected.
101
- * @param {Object} event - the event object
102
- * @param {Object} data - additional data
103
- * @param data.value - the value of selected option
104
- */
105
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
106
- /**
107
- * Callback fired when text input receives focus.
108
- */
109
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
110
- /**
111
- * Callback fired when text input loses focus.
112
- */
113
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
114
- /**
115
- * Callback fired when the options list is shown.
116
- */
117
- onShowOptions: PropTypes.Requireable<(...args: any[]) => any>;
118
- /**
119
- * Callback fired when the options list is hidden.
120
- */
121
- onHideOptions: PropTypes.Requireable<(...args: any[]) => any>;
122
- /**
123
- * A ref to the html `input` element.
124
- */
125
- inputRef: PropTypes.Requireable<(...args: any[]) => any>;
126
- /**
127
- * A ref to the html `ul` element.
128
- */
129
- listRef: PropTypes.Requireable<(...args: any[]) => any>;
130
- /**
131
- * Content to display in the list when no options are available.
132
- */
133
- renderEmptyOption: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
134
- /**
135
- * Content to display before the text input. This will commonly be an icon.
136
- */
137
- renderBeforeInput: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
138
- /**
139
- * Content to display after the text input. This content will replace the
140
- * default arrow icons.
141
- */
142
- renderAfterInput: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
143
- /**
144
- * A standard language identifier.
145
- *
146
- * See [moment.js i18n](https://momentjs.com/docs/#/i18n/) for more details.
147
- *
148
- * This property can also be set via a context property and if both are set then the component property takes
149
- * precedence over the context property.
150
- *
151
- * The web browser's locale will be used if no value is set via a component property or a context
152
- * property.
153
- */
154
- locale: PropTypes.Requireable<string>;
155
- /**
156
- * A timezone identifier in the format: Area/Location
157
- *
158
- * See [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the list
159
- * of possible options.
160
- *
161
- * This property can also be set via a context property and if both are set then the component property takes
162
- * precedence over the context property.
163
- *
164
- * The web browser's timezone will be used if no value is set via a component property or a context
165
- * property.
166
- */
167
- timezone: PropTypes.Requireable<string>;
168
- };
12
+ static allowedProps: readonly (keyof {
13
+ renderLabel: React.ReactNode | ((...args: any[]) => any);
14
+ defaultToFirstOption?: boolean | undefined;
15
+ value?: any;
16
+ defaultValue?: string | undefined;
17
+ id?: string | undefined;
18
+ format?: string | undefined;
19
+ step?: 5 | 10 | 15 | 20 | 30 | 60 | undefined;
20
+ interaction?: "enabled" | "disabled" | "readonly" | undefined;
21
+ placeholder?: string | undefined;
22
+ isRequired?: boolean | undefined;
23
+ isInline?: boolean | undefined;
24
+ width?: string | undefined;
25
+ optionsMaxWidth?: string | undefined;
26
+ visibleOptionsCount?: number | undefined;
27
+ messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
28
+ placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
29
+ constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
30
+ onChange?: ((...args: any[]) => any) | undefined;
31
+ onFocus?: ((...args: any[]) => any) | undefined;
32
+ onBlur?: ((...args: any[]) => any) | undefined;
33
+ onShowOptions?: ((...args: any[]) => any) | undefined;
34
+ onHideOptions?: ((...args: any[]) => any) | undefined;
35
+ inputRef?: ((...args: any[]) => any) | undefined;
36
+ listRef?: ((...args: any[]) => any) | undefined;
37
+ renderEmptyOption?: React.ReactNode | ((...args: any[]) => any);
38
+ renderBeforeInput?: React.ReactNode | ((...args: any[]) => any);
39
+ renderAfterInput?: React.ReactNode | ((...args: any[]) => any);
40
+ locale?: string | undefined;
41
+ timezone?: string | undefined;
42
+ })[];
43
+ static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
44
+ renderLabel: React.ReactNode | ((...args: any[]) => any);
45
+ defaultToFirstOption?: boolean | undefined;
46
+ value?: any;
47
+ defaultValue?: string | undefined;
48
+ id?: string | undefined;
49
+ format?: string | undefined;
50
+ step?: 5 | 10 | 15 | 20 | 30 | 60 | undefined;
51
+ interaction?: "enabled" | "disabled" | "readonly" | undefined;
52
+ placeholder?: string | undefined;
53
+ isRequired?: boolean | undefined;
54
+ isInline?: boolean | undefined;
55
+ width?: string | undefined;
56
+ optionsMaxWidth?: string | undefined;
57
+ visibleOptionsCount?: number | undefined;
58
+ messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
59
+ placement?: import("@instructure/ui-position").PlacementPropValues | undefined;
60
+ constrain?: import("@instructure/ui-position").PositionConstraint | undefined;
61
+ onChange?: ((...args: any[]) => any) | undefined;
62
+ onFocus?: ((...args: any[]) => any) | undefined;
63
+ onBlur?: ((...args: any[]) => any) | undefined;
64
+ onShowOptions?: ((...args: any[]) => any) | undefined;
65
+ onHideOptions?: ((...args: any[]) => any) | undefined;
66
+ inputRef?: ((...args: any[]) => any) | undefined;
67
+ listRef?: ((...args: any[]) => any) | undefined;
68
+ renderEmptyOption?: React.ReactNode | ((...args: any[]) => any);
69
+ renderBeforeInput?: React.ReactNode | ((...args: any[]) => any);
70
+ renderAfterInput?: React.ReactNode | ((...args: any[]) => any);
71
+ locale?: string | undefined;
72
+ timezone?: string | undefined;
73
+ }>;
169
74
  static defaultProps: {
170
- value: undefined;
171
- defaultValue: undefined;
172
75
  defaultToFirstOption: boolean;
173
- id: undefined;
174
76
  format: string;
175
77
  step: number;
176
- interaction: undefined;
177
- placeholder: undefined;
178
78
  isRequired: boolean;
179
79
  isInline: boolean;
180
- width: undefined;
181
- optionsMaxWidth: undefined;
182
80
  visibleOptionsCount: number;
183
- messages: undefined;
184
81
  placement: string;
185
82
  constrain: string;
186
83
  onChange: (event: any, data: any) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TimeSelect/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,SAAS,MAAM,YAAY,CAAA;AAIlC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,WAAW,CAAA;AAiBlB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AAEH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM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B;;eAUpB;IAGD,kBAAkB;;eA+BjB;IAED,aAAa;IA8Bb,iBAAiB;IAYjB,MAAM;CAgEP;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AACrB,eAAe,UAAU,CAAA"}
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { FormMessage } from '@instructure/ui-form-field';
3
+ import type { PropValidators } from '@instructure/shared-types';
3
4
  import type { PlacementPropValues, PositionConstraint } from '@instructure/ui-position';
4
- export declare type TimeSelectProps = {
5
+ declare type TimeSelectOwnProps = {
5
6
  renderLabel: React.ReactNode | ((...args: any[]) => any);
6
7
  defaultToFirstOption?: boolean;
7
8
  value?: any;
@@ -32,4 +33,11 @@ export declare type TimeSelectProps = {
32
33
  locale?: string;
33
34
  timezone?: string;
34
35
  };
35
- //# sourceMappingURL=types.d.ts.map
36
+ declare type PropKeys = keyof TimeSelectOwnProps;
37
+ declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
38
+ declare type TimeSelectProps = TimeSelectOwnProps;
39
+ declare const propTypes: PropValidators<PropKeys>;
40
+ declare const allowedProps: AllowedPropKeys;
41
+ export type { TimeSelectProps };
42
+ export { propTypes, allowedProps };
43
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TimeSelect/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,0BAA0B,CAAA;AAEjC,aAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,oBAAoB,CAA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EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC/D,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC/D,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,eAAe,GAAG,kBAAkB,CAAA;AAEzC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA2JvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eA8BnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { TimeSelect } from './TimeSelect';
2
- export type { TimeSelectProps } from './TimeSelect/types';
2
+ export type { TimeSelectProps } from './TimeSelect/props';
3
3
  //# sourceMappingURL=index.d.ts.map
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,62 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import React from 'react'
26
- import type { FormMessage } from '@instructure/ui-form-field'
27
- import type {
28
- PlacementPropValues,
29
- PositionConstraint
30
- } from '@instructure/ui-position'
31
-
32
- export type TimeSelectProps = {
33
- renderLabel: React.ReactNode | ((...args: any[]) => any)
34
- defaultToFirstOption?: boolean
35
- value?: any // TODO: controllable(I18nPropTypes.iso8601, 'onChange'),
36
- defaultValue?: string
37
- id?: string
38
- format?: string
39
- step?: 5 | 10 | 15 | 20 | 30 | 60
40
- interaction?: 'enabled' | 'disabled' | 'readonly'
41
- placeholder?: string
42
- isRequired?: boolean
43
- isInline?: boolean
44
- width?: string
45
- optionsMaxWidth?: string
46
- visibleOptionsCount?: number
47
- messages?: FormMessage[]
48
- placement?: PlacementPropValues
49
- constrain?: PositionConstraint
50
- onChange?: (...args: any[]) => any
51
- onFocus?: (...args: any[]) => any
52
- onBlur?: (...args: any[]) => any
53
- onShowOptions?: (...args: any[]) => any
54
- onHideOptions?: (...args: any[]) => any
55
- inputRef?: (...args: any[]) => any
56
- listRef?: (...args: any[]) => any
57
- renderEmptyOption?: React.ReactNode | ((...args: any[]) => any)
58
- renderBeforeInput?: React.ReactNode | ((...args: any[]) => any)
59
- renderAfterInput?: React.ReactNode | ((...args: any[]) => any)
60
- locale?: string
61
- timezone?: string
62
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/TimeSelect/types.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,0BAA0B,CAAA;AAEjC,oBAAY,eAAe,GAAG;IAC5B,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CA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