@spark-web/text-input 2.0.3 → 3.0.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/CHANGELOG.md ADDED
@@ -0,0 +1,331 @@
1
+ # @spark-web/text-input
2
+
3
+ ## 3.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#382](https://github.com/brighte-labs/spark-web/pull/382)
8
+ [`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)
9
+ Thanks [@dilipt-brighte](https://github.com/dilipt-brighte)! - Updates React
10
+ version to latest (18.2.0)
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ [[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)]:
16
+ - @spark-web/a11y@1.4.0
17
+ - @spark-web/box@1.2.0
18
+ - @spark-web/field@3.1.0
19
+ - @spark-web/text@1.2.0
20
+ - @spark-web/theme@3.2.0
21
+ - @spark-web/utils@1.3.0
22
+
23
+ ## 2.0.4
24
+
25
+ ### Patch Changes
26
+
27
+ - [#246](https://github.com/brighte-labs/spark-web/pull/246)
28
+ [`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c)
29
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove
30
+ destructuring from theme object
31
+
32
+ - [#218](https://github.com/brighte-labs/spark-web/pull/218)
33
+ [`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5)
34
+ Thanks [@nderkim](https://github.com/nderkim)! - Rename files to kebab case
35
+
36
+ - [#222](https://github.com/brighte-labs/spark-web/pull/222)
37
+ [`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b)
38
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
39
+ dependencies
40
+
41
+ - [#242](https://github.com/brighte-labs/spark-web/pull/242)
42
+ [`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)
43
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage
44
+ and repository keys to package.json
45
+ - Add CHANGELOG and README to files key in package.json
46
+ - Updated dependencies
47
+ [[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b),
48
+ [`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c),
49
+ [`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5),
50
+ [`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b),
51
+ [`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe),
52
+ [`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]:
53
+ - @spark-web/box@1.1.0
54
+ - @spark-web/field@3.0.6
55
+ - @spark-web/text@1.1.2
56
+ - @spark-web/a11y@1.3.2
57
+ - @spark-web/theme@3.1.0
58
+ - @spark-web/utils@1.2.3
59
+
60
+ ## 2.0.3
61
+
62
+ ### Patch Changes
63
+
64
+ - [#208](https://github.com/brighte-labs/spark-web/pull/208)
65
+ [`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
66
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
67
+ node version
68
+
69
+ - Updated dependencies
70
+ [[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
71
+ - @spark-web/a11y@1.3.1
72
+ - @spark-web/box@1.0.9
73
+ - @spark-web/field@3.0.5
74
+ - @spark-web/text@1.1.1
75
+ - @spark-web/theme@3.0.6
76
+ - @spark-web/utils@1.2.2
77
+
78
+ ## 2.0.2
79
+
80
+ ### Patch Changes
81
+
82
+ - [#197](https://github.com/brighte-labs/spark-web/pull/197)
83
+ [`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
84
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
85
+
86
+ - Updated dependencies
87
+ [[`51b6c7a`](https://github.com/brighte-labs/spark-web/commit/51b6c7a43f441e02b90403b13af9cfa11e5438ef),
88
+ [`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
89
+ [`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
90
+ - @spark-web/a11y@1.3.0
91
+ - @spark-web/text@1.1.0
92
+ - @spark-web/box@1.0.8
93
+ - @spark-web/field@3.0.4
94
+ - @spark-web/theme@3.0.5
95
+ - @spark-web/utils@1.2.1
96
+
97
+ ## 2.0.1
98
+
99
+ ### Patch Changes
100
+
101
+ - [#173](https://github.com/brighte-labs/spark-web/pull/173)
102
+ [`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25)
103
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update babel
104
+ dependency
105
+
106
+ * [#178](https://github.com/brighte-labs/spark-web/pull/178)
107
+ [`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)
108
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Switch from using
109
+ `:invalid` pseudo-class to using data-attribute for invalid styles of inputs
110
+ * Updated dependencies
111
+ [[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25),
112
+ [`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b),
113
+ [`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)]:
114
+ - @spark-web/a11y@1.2.0
115
+ - @spark-web/box@1.0.7
116
+ - @spark-web/field@3.0.3
117
+ - @spark-web/text@1.0.7
118
+ - @spark-web/theme@3.0.3
119
+ - @spark-web/utils@1.2.0
120
+
121
+ ## 2.0.0
122
+
123
+ ### Major Changes
124
+
125
+ - [#158](https://github.com/brighte-labs/spark-web/pull/158)
126
+ [`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e)
127
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Rename useInput
128
+ to useInputStyles which now returns a tuple (boxProps and CSS object) and adds
129
+ box shadow
130
+
131
+ ### Patch Changes
132
+
133
+ - [#148](https://github.com/brighte-labs/spark-web/pull/148)
134
+ [`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72)
135
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Make Field a peer
136
+ dep to avoid context bug
137
+
138
+ * [#154](https://github.com/brighte-labs/spark-web/pull/154)
139
+ [`2ba486a`](https://github.com/brighte-labs/spark-web/commit/2ba486a504bd0704935aaad2b8442907dc1899ac)
140
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Enable text
141
+ truncation when input value is too long
142
+
143
+ - [#167](https://github.com/brighte-labs/spark-web/pull/167)
144
+ [`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459)
145
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
146
+
147
+ - Updated dependencies
148
+ [[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459),
149
+ [`f524009`](https://github.com/brighte-labs/spark-web/commit/f5240098cf731b0a2e351b7b585711e893a33736),
150
+ [`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]:
151
+ - @spark-web/a11y@1.1.0
152
+ - @spark-web/box@1.0.6
153
+ - @spark-web/field@3.0.1
154
+ - @spark-web/text@1.0.6
155
+ - @spark-web/theme@3.0.2
156
+ - @spark-web/utils@1.1.5
157
+
158
+ ## 1.2.1
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies
163
+ [[`3db131b`](https://github.com/brighte-labs/spark-web/commit/3db131bfadbc4149d05b7c74be1a3e68cdd5b18f)]:
164
+ - @spark-web/field@3.0.0
165
+
166
+ ## 1.2.0
167
+
168
+ ### Minor Changes
169
+
170
+ - [#101](https://github.com/brighte-labs/spark-web/pull/101)
171
+ [`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33)
172
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Create
173
+ InputContainer component and update focus and disabled styles
174
+
175
+ ### Patch Changes
176
+
177
+ - [#105](https://github.com/brighte-labs/spark-web/pull/105)
178
+ [`27bc235`](https://github.com/brighte-labs/spark-web/commit/27bc235168b09bf8c03710b5fcde6ea0fd70824c)
179
+ Thanks [@nderkim](https://github.com/nderkim)! - Fix TextInput type
180
+
181
+ * [#113](https://github.com/brighte-labs/spark-web/pull/113)
182
+ [`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)
183
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
184
+ dependencies
185
+
186
+ - [#108](https://github.com/brighte-labs/spark-web/pull/108)
187
+ [`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d)
188
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work
189
+ with updated field context
190
+
191
+ - Updated dependencies
192
+ [[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33),
193
+ [`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d),
194
+ [`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)]:
195
+ - @spark-web/a11y@1.0.5
196
+ - @spark-web/field@2.0.0
197
+ - @spark-web/box@1.0.5
198
+ - @spark-web/text@1.0.5
199
+ - @spark-web/theme@3.0.1
200
+ - @spark-web/utils@1.1.3
201
+
202
+ ## 1.1.1
203
+
204
+ ### Patch Changes
205
+
206
+ - [#94](https://github.com/brighte-labs/spark-web/pull/94)
207
+ [`4ad9817`](https://github.com/brighte-labs/spark-web/commit/4ad9817d1f7acdecd3c8bbb3be517f5c11fe8d4b)
208
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Fix alignment of
209
+ icon adornments
210
+
211
+ * [#98](https://github.com/brighte-labs/spark-web/pull/98)
212
+ [`4750af7`](https://github.com/brighte-labs/spark-web/commit/4750af73f0e3a82ebde940cb13659a21c7e88007)
213
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add aria-invalid
214
+ attribute
215
+
216
+ - [#72](https://github.com/brighte-labs/spark-web/pull/72)
217
+ [`dc53688`](https://github.com/brighte-labs/spark-web/commit/dc53688cc271316f00ef25f101e94c3891f4f75d)
218
+ Thanks [@matildaPan](https://github.com/matildaPan)! - Add name and required
219
+ to valid TextInput props
220
+
221
+ ## 1.1.0
222
+
223
+ ### Minor Changes
224
+
225
+ - [#50](https://github.com/brighte-labs/spark-web/pull/50)
226
+ [`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70)
227
+ Thanks [@justinfaynhan](https://github.com/justinfaynhan)! - Added new
228
+ currency input component. Some changes have been made to its underlying base
229
+ textinput component to provide functionality to accomodate the adornments, in
230
+ this case, a starting adornment currency symbol.
231
+
232
+ ### Patch Changes
233
+
234
+ - [#87](https://github.com/brighte-labs/spark-web/pull/87)
235
+ [`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27)
236
+ Thanks [@ChristopherMitchell242](https://github.com/ChristopherMitchell242)! -
237
+ Data attribute added to component props to allow consumers to attach
238
+ customattributes to components
239
+
240
+ * [#52](https://github.com/brighte-labs/spark-web/pull/52)
241
+ [`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e)
242
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add files array
243
+ to package.json files
244
+
245
+ * Updated dependencies
246
+ [[`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70),
247
+ [`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5),
248
+ [`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff),
249
+ [`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27),
250
+ [`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e),
251
+ [`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b)]:
252
+ - @spark-web/field@1.1.0
253
+ - @spark-web/text@1.0.4
254
+ - @spark-web/theme@3.0.0
255
+ - @spark-web/a11y@1.0.4
256
+ - @spark-web/box@1.0.4
257
+ - @spark-web/utils@1.1.2
258
+
259
+ ## 1.0.3
260
+
261
+ ### Patch Changes
262
+
263
+ - [#42](https://github.com/brighte-labs/spark-web/pull/42)
264
+ [`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)
265
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Prevent multiple
266
+ versions of React
267
+
268
+ - Updated dependencies
269
+ [[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)]:
270
+ - @spark-web/a11y@1.0.3
271
+ - @spark-web/box@1.0.3
272
+ - @spark-web/field@1.0.3
273
+ - @spark-web/text@1.0.3
274
+ - @spark-web/theme@2.0.2
275
+ - @spark-web/utils@1.1.1
276
+
277
+ ## 1.0.2
278
+
279
+ ### Patch Changes
280
+
281
+ - [#40](https://github.com/brighte-labs/spark-web/pull/40)
282
+ [`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)
283
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add
284
+ @babel/transform-runtime
285
+
286
+ - Updated dependencies
287
+ [[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)]:
288
+ - @spark-web/a11y@1.0.2
289
+ - @spark-web/box@1.0.2
290
+ - @spark-web/field@1.0.2
291
+ - @spark-web/text@1.0.2
292
+ - @spark-web/theme@2.0.1
293
+ - @spark-web/utils@1.0.2
294
+
295
+ ## 1.0.1
296
+
297
+ ### Patch Changes
298
+
299
+ - [#36](https://github.com/brighte-labs/spark-web/pull/36)
300
+ [`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)
301
+ Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
302
+ config
303
+
304
+ - Updated dependencies
305
+ [[`aebff30`](https://github.com/brighte-labs/spark-web/commit/aebff30c86cb0a9db22b545c46159ce0d1c14afb),
306
+ [`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)]:
307
+ - @spark-web/theme@2.0.0
308
+ - @spark-web/a11y@1.0.1
309
+ - @spark-web/box@1.0.1
310
+ - @spark-web/field@1.0.1
311
+ - @spark-web/text@1.0.1
312
+ - @spark-web/utils@1.0.1
313
+
314
+ ## 1.0.0
315
+
316
+ ### Major Changes
317
+
318
+ - [#27](https://github.com/brighte-labs/spark-web/pull/27)
319
+ [`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)
320
+ Thanks [@JedWatson](https://github.com/JedWatson)! - Initial Version
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies
325
+ [[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)]:
326
+ - @spark-web/a11y@1.0.0
327
+ - @spark-web/box@1.0.0
328
+ - @spark-web/field@1.0.0
329
+ - @spark-web/text@1.0.0
330
+ - @spark-web/theme@1.0.0
331
+ - @spark-web/utils@1.0.0
package/README.md CHANGED
@@ -100,17 +100,7 @@ slots to place the start and end adornments.
100
100
 
101
101
  ### TextInput
102
102
 
103
- | Prop | Type | Default | Description |
104
- | ------------ | ----------------------------------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------- |
105
- | data? | [DataAttributeMap][data-attribute-map] | | Sets data attributes for the component. |
106
- | type? | 'text' \| 'password' \| 'email' \| 'search' \| 'number' \| 'tel' \| 'url' | 'text' | Sets the type attribute for the component. |
107
- | mode? | 'none' \| 'text' \| 'tel' \| 'url' \| 'email' \| 'numeric' \| 'decimal' \| 'search' | | Sets the input mode attribute for the component. |
108
- | onBlur? | React.FocusEventHandler\<HTMLInputElement\> | | Callback function when input field component loses focuses. |
109
- | onFocus? | React.FocusEventHandler\<HTMLInputElement\> | | Callback function when the input field component is in focus. |
110
- | onChange? | React.FormEventHandler\<HTMLInputElement\> | | Callback function when value of the input field has been changed. |
111
- | placeholder? | string | | Specifies a short hint that describes the expected value (type of value) of the input field. |
112
- | value? | string \| number \| readonly string[] | | Specifies the value of the input field. |
113
- | children? | [AdornmentChildren][adornment-children] | | Allows setting of adornments at the start and/or end of the input component. |
103
+ <PropsTable displayName="TextInput" />
114
104
 
115
105
  [data-attribute-map]:
116
106
  https://github.com/brighte-labs/spark-web/blob/e7f6f4285b4cfd876312cc89fbdd094039aa239a/packages/utils/src/internal/buildDataAttributes.ts#L1
@@ -119,9 +109,6 @@ slots to place the start and end adornments.
119
109
 
120
110
  ### InputContainer
121
111
 
122
- | Prop | Type | Default | Description |
123
- | --------------- | ----------------------------------- | ------- | ------------------------------- |
124
- | startAdornment? | ReactElement\<InputAdornmentProps\> | | Slot to start render adornment. |
125
- | endAdornment? | ReactElement\<InputAdornmentProps\> | | Slot to end render adornment. |
112
+ <PropsTable displayName="InputContainer" />
126
113
 
127
114
  Extra props are passed into the underlying [`Box`](/package/box) component.
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { InputAdornmentProps } from './InputAdornment';
2
+ import type { InputAdornmentProps } from './input-adornment';
3
3
  export declare type AdornmentChild = ReactElement<InputAdornmentProps> | null | undefined;
4
4
  export declare type AdornmentsAsChildren = AdornmentChild | [AdornmentChild, AdornmentChild];
5
5
  /**
@@ -1,6 +1,6 @@
1
- export { InputAdornment } from './InputAdornment';
2
- export { InputContainer } from './InputContainer';
3
- export { TextInput, useInputStyles } from './TextInput';
4
- export type { AdornmentChild } from './childrenToAdornments';
5
- export type { InputContainerProps } from './InputContainer';
6
- export type { TextInputProps, UseInputStylesProps } from './TextInput';
1
+ export { InputAdornment } from './input-adornment';
2
+ export { InputContainer } from './input-container';
3
+ export { TextInput, useInputStyles } from './text-input';
4
+ export type { AdornmentChild } from './children-to-adornments';
5
+ export type { InputContainerProps } from './input-container';
6
+ export type { TextInputProps, UseInputStylesProps } from './text-input';
@@ -1,6 +1,6 @@
1
1
  import type { BoxProps } from '@spark-web/box';
2
2
  import type { ReactElement } from 'react';
3
- import type { InputAdornmentProps } from './InputAdornment';
3
+ import type { InputAdornmentProps } from './input-adornment';
4
4
  export declare type InputContainerProps = {
5
5
  /** Slot to start render adornment. */
6
6
  startAdornment?: ReactElement<InputAdornmentProps> | null;