@instructure/ui-number-input 8.9.2-snapshot.1 → 8.9.2-snapshot.12

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.
@@ -180,7 +180,7 @@ let NumberInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
180
180
  value = _this$props3.value,
181
181
  width = _this$props3.width;
182
182
  const interaction = this.interaction;
183
- return jsx(FormField, Object.assign({}, pickProps(this.props, FormField.propTypes), {
183
+ return jsx(FormField, Object.assign({}, pickProps(this.props, FormField.allowedProps), {
184
184
  label: callRenderProp(renderLabel),
185
185
  inline: display === 'inline-block',
186
186
  id: this.id
@@ -191,9 +191,7 @@ let NumberInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
191
191
  } : void 0
192
192
  }, jsx("span", {
193
193
  css: (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.inputContainer
194
- }, jsx("input", Object.assign({}, omitProps(this.props, { ...FormField.propTypes,
195
- ...NumberInput.propTypes
196
- }), {
194
+ }, jsx("input", Object.assign({}, omitProps(this.props, [...FormField.allowedProps, ...NumberInput.allowedProps]), {
197
195
  css: (_this$props$styles6 = this.props.styles) === null || _this$props$styles6 === void 0 ? void 0 : _this$props$styles6.input,
198
196
  "aria-invalid": this.invalid ? 'true' : void 0,
199
197
  id: this.id,
@@ -182,7 +182,7 @@ let NumberInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
182
182
  value = _this$props3.value,
183
183
  width = _this$props3.width;
184
184
  const interaction = this.interaction;
185
- return (0, _emotion.jsx)(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.propTypes), {
185
+ return (0, _emotion.jsx)(_FormField.FormField, Object.assign({}, (0, _pickProps.pickProps)(this.props, _FormField.FormField.allowedProps), {
186
186
  label: (0, _callRenderProp.callRenderProp)(renderLabel),
187
187
  inline: display === 'inline-block',
188
188
  id: this.id
@@ -193,9 +193,7 @@ let NumberInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
193
193
  } : void 0
194
194
  }, (0, _emotion.jsx)("span", {
195
195
  css: (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.inputContainer
196
- }, (0, _emotion.jsx)("input", Object.assign({}, (0, _omitProps.omitProps)(this.props, { ..._FormField.FormField.propTypes,
197
- ...NumberInput.propTypes
198
- }), {
196
+ }, (0, _emotion.jsx)("input", Object.assign({}, (0, _omitProps.omitProps)(this.props, [..._FormField.FormField.allowedProps, ...NumberInput.allowedProps]), {
199
197
  css: (_this$props$styles6 = this.props.styles) === null || _this$props$styles6 === void 0 ? void 0 : _this$props$styles6.input,
200
198
  "aria-invalid": this.invalid ? 'true' : void 0,
201
199
  id: this.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-number-input",
3
- "version": "8.9.2-snapshot.1+11d97b23e",
3
+ "version": "8.9.2-snapshot.12+6231ada93",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "homepage": "https://instructure.github.io/instructure-ui/",
@@ -24,21 +24,21 @@
24
24
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
25
25
  },
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.9.2-snapshot.1+11d97b23e",
28
- "@instructure/ui-test-locator": "8.9.2-snapshot.1+11d97b23e",
29
- "@instructure/ui-test-utils": "8.9.2-snapshot.1+11d97b23e",
30
- "@instructure/ui-themes": "8.9.2-snapshot.1+11d97b23e"
27
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
28
+ "@instructure/ui-test-locator": "8.9.2-snapshot.12+6231ada93",
29
+ "@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
30
+ "@instructure/ui-themes": "8.9.2-snapshot.12+6231ada93"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.9.2-snapshot.1+11d97b23e",
35
- "@instructure/shared-types": "8.9.2-snapshot.1+11d97b23e",
36
- "@instructure/ui-form-field": "8.9.2-snapshot.1+11d97b23e",
37
- "@instructure/ui-icons": "8.9.2-snapshot.1+11d97b23e",
38
- "@instructure/ui-react-utils": "8.9.2-snapshot.1+11d97b23e",
39
- "@instructure/ui-testable": "8.9.2-snapshot.1+11d97b23e",
40
- "@instructure/ui-utils": "8.9.2-snapshot.1+11d97b23e",
41
- "@instructure/uid": "8.9.2-snapshot.1+11d97b23e",
34
+ "@instructure/emotion": "8.9.2-snapshot.12+6231ada93",
35
+ "@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
36
+ "@instructure/ui-form-field": "8.9.2-snapshot.12+6231ada93",
37
+ "@instructure/ui-icons": "8.9.2-snapshot.12+6231ada93",
38
+ "@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
39
+ "@instructure/ui-testable": "8.9.2-snapshot.12+6231ada93",
40
+ "@instructure/ui-utils": "8.9.2-snapshot.12+6231ada93",
41
+ "@instructure/uid": "8.9.2-snapshot.12+6231ada93",
42
42
  "keycode": "^2",
43
43
  "prop-types": "^15"
44
44
  },
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "sideEffects": false,
52
- "gitHead": "11d97b23ea6f8360db54acd61c9caf51d787354b"
52
+ "gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
53
53
  }
@@ -239,7 +239,7 @@ class NumberInput extends Component<NumberInputProps, NumberInputState> {
239
239
 
240
240
  return (
241
241
  <FormField
242
- {...pickProps(this.props, FormField.propTypes)}
242
+ {...pickProps(this.props, FormField.allowedProps)}
243
243
  label={callRenderProp(renderLabel)}
244
244
  inline={display === 'inline-block'}
245
245
  id={this.id}
@@ -250,10 +250,10 @@ class NumberInput extends Component<NumberInputProps, NumberInputState> {
250
250
  >
251
251
  <span css={this.props.styles?.inputContainer}>
252
252
  <input
253
- {...omitProps(this.props, {
254
- ...FormField.propTypes,
255
- ...NumberInput.propTypes
256
- })}
253
+ {...omitProps(this.props, [
254
+ ...FormField.allowedProps,
255
+ ...NumberInput.allowedProps
256
+ ])}
257
257
  css={this.props.styles?.input}
258
258
  aria-invalid={this.invalid ? 'true' : undefined}
259
259
  id={this.id}
@@ -25,10 +25,13 @@ import PropTypes from 'prop-types'
25
25
 
26
26
  import { FormPropTypes } from '@instructure/ui-form-field'
27
27
 
28
- import type { PropValidators } from '@instructure/shared-types'
28
+ import type {
29
+ PropValidators,
30
+ NumberInputTheme
31
+ } from '@instructure/shared-types'
29
32
  import type { FormMessage } from '@instructure/ui-form-field'
30
33
  import type { InteractionType } from '@instructure/ui-react-utils'
31
- import type { WithStyleProps } from '@instructure/emotion'
34
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
32
35
 
33
36
  type NumberInputOwnProps = {
34
37
  renderLabel: React.ReactNode | ((...args: any[]) => any)
@@ -65,7 +68,17 @@ type PropKeys = keyof NumberInputOwnProps
65
68
 
66
69
  type AllowedPropKeys = Readonly<Array<PropKeys>>
67
70
 
68
- type NumberInputProps = NumberInputOwnProps & WithStyleProps
71
+ type NumberInputProps = NumberInputOwnProps &
72
+ WithStyleProps<NumberInputTheme, NumberInputStyle>
73
+
74
+ type NumberInputStyle = ComponentStyle<
75
+ | 'numberInput'
76
+ | 'arrowContainer'
77
+ | 'arrow'
78
+ | 'inputWidth'
79
+ | 'inputContainer'
80
+ | 'input'
81
+ >
69
82
 
70
83
  const propTypes: PropValidators<PropKeys> = {
71
84
  /**
@@ -179,5 +192,10 @@ const allowedProps: AllowedPropKeys = [
179
192
  'inputMode'
180
193
  ]
181
194
 
182
- export type { NumberInputProps, NumberInputState, NumberInputStyleProps }
195
+ export type {
196
+ NumberInputProps,
197
+ NumberInputState,
198
+ NumberInputStyleProps,
199
+ NumberInputStyle
200
+ }
183
201
  export { propTypes, allowedProps }
@@ -22,8 +22,12 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { NumberInputTheme } from '@instructure/shared-types'
26
- import { NumberInputProps, NumberInputStyleProps } from './props'
25
+ import type { NumberInputTheme } from '@instructure/shared-types'
26
+ import type {
27
+ NumberInputProps,
28
+ NumberInputStyleProps,
29
+ NumberInputStyle
30
+ } from './props'
27
31
 
28
32
  /**
29
33
  * ---
@@ -39,7 +43,7 @@ const generateStyle = (
39
43
  componentTheme: NumberInputTheme,
40
44
  props: NumberInputProps,
41
45
  state: NumberInputStyleProps
42
- ) => {
46
+ ): NumberInputStyle => {
43
47
  const { size } = props
44
48
  const { interaction, hasFocus, invalid } = state
45
49
 
@@ -64,11 +68,13 @@ const generateStyle = (
64
68
  borderColor: componentTheme.errorOutlineColor
65
69
  }
66
70
  : {}
71
+
67
72
  const invalidContainerStyles = invalid
68
73
  ? {
69
74
  borderColor: componentTheme.errorBorderColor
70
75
  }
71
76
  : {}
77
+
72
78
  return {
73
79
  numberInput: {
74
80
  label: 'numberInput'
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { PropValidators } from '@instructure/shared-types';
2
+ import type { PropValidators, NumberInputTheme } from '@instructure/shared-types';
3
3
  import type { FormMessage } from '@instructure/ui-form-field';
4
4
  import type { InteractionType } from '@instructure/ui-react-utils';
5
- import type { WithStyleProps } from '@instructure/emotion';
5
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
6
6
  declare type NumberInputOwnProps = {
7
7
  renderLabel: React.ReactNode | ((...args: any[]) => any);
8
8
  id?: string;
@@ -33,9 +33,10 @@ declare type NumberInputStyleProps = NumberInputState & {
33
33
  };
34
34
  declare type PropKeys = keyof NumberInputOwnProps;
35
35
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
36
- declare type NumberInputProps = NumberInputOwnProps & WithStyleProps;
36
+ declare type NumberInputProps = NumberInputOwnProps & WithStyleProps<NumberInputTheme, NumberInputStyle>;
37
+ declare type NumberInputStyle = ComponentStyle<'numberInput' | 'arrowContainer' | 'arrow' | 'inputWidth' | 'inputContainer' | 'input'>;
37
38
  declare const propTypes: PropValidators<PropKeys>;
38
39
  declare const allowedProps: AllowedPropKeys;
39
- export type { NumberInputProps, NumberInputState, NumberInputStyleProps };
40
+ export type { NumberInputProps, NumberInputState, NumberInputStyleProps, NumberInputStyle };
40
41
  export { propTypes, allowedProps };
41
42
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/NumberInput/props.ts"],"names":[],"mappings":";AA2BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,aAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IAClC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IAClC,OAAO,CAAC,EAAE,CA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AC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACnC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,KAAK,CAAA;CAC1C,CAAA;AAED,aAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,aAAK,qBAAqB,GAAG,gBAAgB,GAAG;IAC9C,WAAW,EAAE,eAAe,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,mBAAmB,CAAA;AAEzC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,gBAAgB,GAAG,mBAAmB,GACzC,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;AAEpD,aAAK,gBAAgB,GAAG,cAAc,CAClC,aAAa,GACb,gBAAgB,GAChB,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,OAAO,CACV,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAwFvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAoBnB,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EACjB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { NumberInputTheme } from '@instructure/shared-types';
2
- import { NumberInputProps, NumberInputStyleProps } from './props';
1
+ import type { NumberInputTheme } from '@instructure/shared-types';
2
+ import type { NumberInputProps, NumberInputStyleProps, NumberInputStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,210 +10,6 @@ import { NumberInputProps, NumberInputStyleProps } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: NumberInputTheme, props: NumberInputProps, state: NumberInputStyleProps) => {
14
- numberInput: {
15
- label: string;
16
- };
17
- arrowContainer: {
18
- cursor: string;
19
- pointerEvents: string;
20
- opacity: number;
21
- label: string;
22
- flex: string;
23
- display: string;
24
- flexDirection: string;
25
- } | {
26
- cursor?: undefined;
27
- pointerEvents?: undefined;
28
- opacity?: undefined;
29
- label: string;
30
- flex: string;
31
- display: string;
32
- flexDirection: string;
33
- };
34
- arrow: {
35
- label: string;
36
- cursor: string;
37
- userSelect: string;
38
- textAlign: string;
39
- flex: number;
40
- display: string;
41
- justifyContent: string;
42
- alignItems: string;
43
- backgroundColor: string;
44
- borderTop: string;
45
- borderInlineEnd: string;
46
- borderInlineStart: string;
47
- borderBottom: string;
48
- color: string;
49
- '&:last-child': {
50
- borderBottom: string;
51
- };
52
- '&:hover': {
53
- backgroundColor: string;
54
- };
55
- '&:active': {
56
- boxShadow: string;
57
- };
58
- };
59
- inputWidth: {
60
- label: string;
61
- display: string;
62
- position: string;
63
- '&::before': {
64
- borderColor: string;
65
- opacity: number;
66
- transform: string;
67
- content: string;
68
- pointerEvents: string;
69
- boxSizing: string;
70
- display: string;
71
- position: string;
72
- top: string;
73
- bottom: string;
74
- left: string;
75
- right: string;
76
- border: string;
77
- borderRadius: string;
78
- transition: string;
79
- } | {
80
- borderColor?: undefined;
81
- opacity: number;
82
- transform: string;
83
- content: string;
84
- pointerEvents: string;
85
- boxSizing: string;
86
- display: string;
87
- position: string;
88
- top: string;
89
- bottom: string;
90
- left: string;
91
- right: string;
92
- border: string;
93
- borderRadius: string;
94
- transition: string;
95
- } | {
96
- borderColor: string;
97
- opacity: number;
98
- transform: string;
99
- content: string;
100
- pointerEvents: string;
101
- boxSizing: string;
102
- display: string;
103
- position: string;
104
- top: string;
105
- bottom: string;
106
- left: string;
107
- right: string;
108
- border: string;
109
- borderRadius: string;
110
- transition: string;
111
- } | {
112
- borderColor?: undefined;
113
- opacity: number;
114
- transform: string;
115
- content: string;
116
- pointerEvents: string;
117
- boxSizing: string;
118
- display: string;
119
- position: string;
120
- top: string;
121
- bottom: string;
122
- left: string;
123
- right: string;
124
- border: string;
125
- borderRadius: string;
126
- transition: string;
127
- };
128
- };
129
- inputContainer: {
130
- fontSize: string | 0;
131
- height: string;
132
- borderColor: string;
133
- cursor: string;
134
- pointerEvents: string;
135
- opacity: number;
136
- label: string;
137
- display: string;
138
- margin: string;
139
- boxSizing: string;
140
- transition: string;
141
- overflow: string;
142
- fontFamily: string;
143
- border: string;
144
- borderRadius: string | 0;
145
- } | {
146
- fontSize: string | 0;
147
- height: string;
148
- borderColor?: undefined;
149
- cursor: string;
150
- pointerEvents: string;
151
- opacity: number;
152
- label: string;
153
- display: string;
154
- margin: string;
155
- boxSizing: string;
156
- transition: string;
157
- overflow: string;
158
- fontFamily: string;
159
- border: string;
160
- borderRadius: string | 0;
161
- } | {
162
- fontSize: string | 0;
163
- height: string;
164
- borderColor: string;
165
- cursor?: undefined;
166
- pointerEvents?: undefined;
167
- opacity?: undefined;
168
- label: string;
169
- display: string;
170
- margin: string;
171
- boxSizing: string;
172
- transition: string;
173
- overflow: string;
174
- fontFamily: string;
175
- border: string;
176
- borderRadius: string | 0;
177
- } | {
178
- fontSize: string | 0;
179
- height: string;
180
- borderColor?: undefined;
181
- cursor?: undefined;
182
- pointerEvents?: undefined;
183
- opacity?: undefined;
184
- label: string;
185
- display: string;
186
- margin: string;
187
- boxSizing: string;
188
- transition: string;
189
- overflow: string;
190
- fontFamily: string;
191
- border: string;
192
- borderRadius: string | 0;
193
- };
194
- input: {
195
- label: string;
196
- all: string;
197
- textAlign: string;
198
- direction: string;
199
- WebkitFontSmoothing: string;
200
- MozOsxFontSmoothing: string;
201
- appearance: string;
202
- lineHeight: number;
203
- margin: string;
204
- flex: number;
205
- minWidth: string;
206
- boxSizing: string;
207
- fontFamily: string;
208
- fontSize: string;
209
- fontWeight: number;
210
- color: string;
211
- background: string;
212
- padding: string | 0;
213
- '&::placeholder': {
214
- color: string;
215
- };
216
- };
217
- };
13
+ declare const generateStyle: (componentTheme: NumberInputTheme, props: NumberInputProps, state: NumberInputStyleProps) => NumberInputStyle;
218
14
  export default generateStyle;
219
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/NumberInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEjE;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,gBAAgB,SACzB,gBAAgB,SAChB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgI7B,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/NumberInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EACV,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,gBAAgB,SACzB,gBAAgB,SAChB,qBAAqB,KAC3B,gBAiIF,CAAA;AAED,eAAe,aAAa,CAAA"}