@spark-web/field 3.0.5 → 3.0.6
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 +298 -0
- package/README.md +1 -13
- package/dist/declarations/src/{Field.d.ts → field.d.ts} +2 -0
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/spark-web-field.cjs.dev.js +5 -9
- package/dist/spark-web-field.cjs.prod.js +5 -9
- package/dist/spark-web-field.esm.js +5 -9
- package/package.json +18 -11
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# @spark-web/field
|
|
2
|
+
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#246](https://github.com/brighte-labs/spark-web/pull/246)
|
|
8
|
+
[`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c)
|
|
9
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove
|
|
10
|
+
destructuring from theme object
|
|
11
|
+
|
|
12
|
+
- [#218](https://github.com/brighte-labs/spark-web/pull/218)
|
|
13
|
+
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5)
|
|
14
|
+
Thanks [@nderkim](https://github.com/nderkim)! - Rename files to kebab case
|
|
15
|
+
|
|
16
|
+
- [#222](https://github.com/brighte-labs/spark-web/pull/222)
|
|
17
|
+
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b)
|
|
18
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
|
|
19
|
+
dependencies
|
|
20
|
+
|
|
21
|
+
- [#242](https://github.com/brighte-labs/spark-web/pull/242)
|
|
22
|
+
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)
|
|
23
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage
|
|
24
|
+
and repository keys to package.json
|
|
25
|
+
- Add CHANGELOG and README to files key in package.json
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
[[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b),
|
|
28
|
+
[`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c),
|
|
29
|
+
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5),
|
|
30
|
+
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b),
|
|
31
|
+
[`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe),
|
|
32
|
+
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]:
|
|
33
|
+
- @spark-web/box@1.1.0
|
|
34
|
+
- @spark-web/icon@1.2.2
|
|
35
|
+
- @spark-web/text@1.1.2
|
|
36
|
+
- @spark-web/a11y@1.3.2
|
|
37
|
+
- @spark-web/stack@1.0.10
|
|
38
|
+
- @spark-web/theme@3.1.0
|
|
39
|
+
- @spark-web/utils@1.2.3
|
|
40
|
+
|
|
41
|
+
## 3.0.5
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
|
|
46
|
+
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
|
|
47
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
|
|
48
|
+
node version
|
|
49
|
+
|
|
50
|
+
- Updated dependencies
|
|
51
|
+
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
|
|
52
|
+
- @spark-web/a11y@1.3.1
|
|
53
|
+
- @spark-web/box@1.0.9
|
|
54
|
+
- @spark-web/icon@1.2.1
|
|
55
|
+
- @spark-web/stack@1.0.9
|
|
56
|
+
- @spark-web/text@1.1.1
|
|
57
|
+
- @spark-web/theme@3.0.6
|
|
58
|
+
- @spark-web/utils@1.2.2
|
|
59
|
+
|
|
60
|
+
## 3.0.4
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
|
|
65
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
|
|
66
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
|
|
67
|
+
|
|
68
|
+
- Updated dependencies
|
|
69
|
+
[[`51b6c7a`](https://github.com/brighte-labs/spark-web/commit/51b6c7a43f441e02b90403b13af9cfa11e5438ef),
|
|
70
|
+
[`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
|
|
71
|
+
[`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f),
|
|
72
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
|
|
73
|
+
- @spark-web/a11y@1.3.0
|
|
74
|
+
- @spark-web/text@1.1.0
|
|
75
|
+
- @spark-web/icon@1.2.0
|
|
76
|
+
- @spark-web/box@1.0.8
|
|
77
|
+
- @spark-web/stack@1.0.8
|
|
78
|
+
- @spark-web/theme@3.0.5
|
|
79
|
+
- @spark-web/utils@1.2.1
|
|
80
|
+
|
|
81
|
+
## 3.0.3
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- [#173](https://github.com/brighte-labs/spark-web/pull/173)
|
|
86
|
+
[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25)
|
|
87
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update babel
|
|
88
|
+
dependency
|
|
89
|
+
|
|
90
|
+
- Updated dependencies
|
|
91
|
+
[[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25),
|
|
92
|
+
[`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b),
|
|
93
|
+
[`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)]:
|
|
94
|
+
- @spark-web/a11y@1.2.0
|
|
95
|
+
- @spark-web/box@1.0.7
|
|
96
|
+
- @spark-web/icon@1.1.5
|
|
97
|
+
- @spark-web/stack@1.0.7
|
|
98
|
+
- @spark-web/text@1.0.7
|
|
99
|
+
- @spark-web/theme@3.0.3
|
|
100
|
+
- @spark-web/utils@1.2.0
|
|
101
|
+
|
|
102
|
+
## 3.0.2
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- [#169](https://github.com/brighte-labs/spark-web/pull/169)
|
|
107
|
+
[`7be2283`](https://github.com/brighte-labs/spark-web/commit/7be2283c91741bf87ede08a1e3d9f7eaec586d38)
|
|
108
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Memoize Field
|
|
109
|
+
context
|
|
110
|
+
|
|
111
|
+
## 3.0.1
|
|
112
|
+
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- [#167](https://github.com/brighte-labs/spark-web/pull/167)
|
|
116
|
+
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459)
|
|
117
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
118
|
+
|
|
119
|
+
- Updated dependencies
|
|
120
|
+
[[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459),
|
|
121
|
+
[`f524009`](https://github.com/brighte-labs/spark-web/commit/f5240098cf731b0a2e351b7b585711e893a33736),
|
|
122
|
+
[`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]:
|
|
123
|
+
- @spark-web/a11y@1.1.0
|
|
124
|
+
- @spark-web/box@1.0.6
|
|
125
|
+
- @spark-web/icon@1.1.4
|
|
126
|
+
- @spark-web/stack@1.0.6
|
|
127
|
+
- @spark-web/text@1.0.6
|
|
128
|
+
- @spark-web/theme@3.0.2
|
|
129
|
+
- @spark-web/utils@1.1.5
|
|
130
|
+
|
|
131
|
+
## 3.0.0
|
|
132
|
+
|
|
133
|
+
### Major Changes
|
|
134
|
+
|
|
135
|
+
- [#99](https://github.com/brighte-labs/spark-web/pull/99)
|
|
136
|
+
[`3db131b`](https://github.com/brighte-labs/spark-web/commit/3db131bfadbc4149d05b7c74be1a3e68cdd5b18f)
|
|
137
|
+
Thanks [@oscargws](https://github.com/oscargws)! - Removed props spreading
|
|
138
|
+
from multiple packages
|
|
139
|
+
|
|
140
|
+
## 2.0.1
|
|
141
|
+
|
|
142
|
+
### Patch Changes
|
|
143
|
+
|
|
144
|
+
- [#128](https://github.com/brighte-labs/spark-web/pull/128)
|
|
145
|
+
[`2a1c354`](https://github.com/brighte-labs/spark-web/commit/2a1c3549e03f91d012906f90b13c1f8d7ba18d1e)
|
|
146
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Fix collapsing
|
|
147
|
+
gap on stack that wraps label, description, input and message
|
|
148
|
+
|
|
149
|
+
* [#123](https://github.com/brighte-labs/spark-web/pull/123)
|
|
150
|
+
[`d0ce080`](https://github.com/brighte-labs/spark-web/commit/d0ce08000f4c62d7402450b09f086d5806f1b50b)
|
|
151
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Tighten up
|
|
152
|
+
spacing
|
|
153
|
+
|
|
154
|
+
* Updated dependencies
|
|
155
|
+
[[`3d519f7`](https://github.com/brighte-labs/spark-web/commit/3d519f7cd4cf5b36dc09548891c835c294a5acef)]:
|
|
156
|
+
- @spark-web/utils@1.1.4
|
|
157
|
+
|
|
158
|
+
## 2.0.0
|
|
159
|
+
|
|
160
|
+
### Major Changes
|
|
161
|
+
|
|
162
|
+
- [#108](https://github.com/brighte-labs/spark-web/pull/108)
|
|
163
|
+
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d)
|
|
164
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor
|
|
165
|
+
useFieldContext to return tuple
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- [#113](https://github.com/brighte-labs/spark-web/pull/113)
|
|
170
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)
|
|
171
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
|
|
172
|
+
dependencies
|
|
173
|
+
|
|
174
|
+
- Updated dependencies
|
|
175
|
+
[[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33),
|
|
176
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)]:
|
|
177
|
+
- @spark-web/a11y@1.0.5
|
|
178
|
+
- @spark-web/box@1.0.5
|
|
179
|
+
- @spark-web/icon@1.1.3
|
|
180
|
+
- @spark-web/stack@1.0.5
|
|
181
|
+
- @spark-web/text@1.0.5
|
|
182
|
+
- @spark-web/theme@3.0.1
|
|
183
|
+
- @spark-web/utils@1.1.3
|
|
184
|
+
|
|
185
|
+
## 1.1.0
|
|
186
|
+
|
|
187
|
+
### Minor Changes
|
|
188
|
+
|
|
189
|
+
- [#50](https://github.com/brighte-labs/spark-web/pull/50)
|
|
190
|
+
[`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70)
|
|
191
|
+
Thanks [@justinfaynhan](https://github.com/justinfaynhan)! - Added new
|
|
192
|
+
currency input component. Some changes have been made to its underlying base
|
|
193
|
+
textinput component to provide functionality to accomodate the adornments, in
|
|
194
|
+
this case, a starting adornment currency symbol.
|
|
195
|
+
|
|
196
|
+
### Patch Changes
|
|
197
|
+
|
|
198
|
+
- [#65](https://github.com/brighte-labs/spark-web/pull/65)
|
|
199
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff)
|
|
200
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove "Inter"
|
|
201
|
+
font, change font-weights and font-sizes.
|
|
202
|
+
|
|
203
|
+
* [#52](https://github.com/brighte-labs/spark-web/pull/52)
|
|
204
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e)
|
|
205
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add files array
|
|
206
|
+
to package.json files
|
|
207
|
+
|
|
208
|
+
* Updated dependencies
|
|
209
|
+
[[`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5),
|
|
210
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff),
|
|
211
|
+
[`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27),
|
|
212
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e),
|
|
213
|
+
[`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b)]:
|
|
214
|
+
- @spark-web/text@1.0.4
|
|
215
|
+
- @spark-web/theme@3.0.0
|
|
216
|
+
- @spark-web/stack@1.0.4
|
|
217
|
+
- @spark-web/a11y@1.0.4
|
|
218
|
+
- @spark-web/box@1.0.4
|
|
219
|
+
- @spark-web/icon@1.1.2
|
|
220
|
+
- @spark-web/utils@1.1.2
|
|
221
|
+
|
|
222
|
+
## 1.0.3
|
|
223
|
+
|
|
224
|
+
### Patch Changes
|
|
225
|
+
|
|
226
|
+
- [#42](https://github.com/brighte-labs/spark-web/pull/42)
|
|
227
|
+
[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)
|
|
228
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Prevent multiple
|
|
229
|
+
versions of React
|
|
230
|
+
|
|
231
|
+
- Updated dependencies
|
|
232
|
+
[[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)]:
|
|
233
|
+
- @spark-web/a11y@1.0.3
|
|
234
|
+
- @spark-web/box@1.0.3
|
|
235
|
+
- @spark-web/icon@1.1.1
|
|
236
|
+
- @spark-web/stack@1.0.3
|
|
237
|
+
- @spark-web/text@1.0.3
|
|
238
|
+
- @spark-web/theme@2.0.2
|
|
239
|
+
- @spark-web/utils@1.1.1
|
|
240
|
+
|
|
241
|
+
## 1.0.2
|
|
242
|
+
|
|
243
|
+
### Patch Changes
|
|
244
|
+
|
|
245
|
+
- [#40](https://github.com/brighte-labs/spark-web/pull/40)
|
|
246
|
+
[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)
|
|
247
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add
|
|
248
|
+
@babel/transform-runtime
|
|
249
|
+
|
|
250
|
+
- Updated dependencies
|
|
251
|
+
[[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)]:
|
|
252
|
+
- @spark-web/a11y@1.0.2
|
|
253
|
+
- @spark-web/box@1.0.2
|
|
254
|
+
- @spark-web/icon@1.0.2
|
|
255
|
+
- @spark-web/stack@1.0.2
|
|
256
|
+
- @spark-web/text@1.0.2
|
|
257
|
+
- @spark-web/theme@2.0.1
|
|
258
|
+
- @spark-web/utils@1.0.2
|
|
259
|
+
|
|
260
|
+
## 1.0.1
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- [#36](https://github.com/brighte-labs/spark-web/pull/36)
|
|
265
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)
|
|
266
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
267
|
+
config
|
|
268
|
+
|
|
269
|
+
- Updated dependencies
|
|
270
|
+
[[`aebff30`](https://github.com/brighte-labs/spark-web/commit/aebff30c86cb0a9db22b545c46159ce0d1c14afb),
|
|
271
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)]:
|
|
272
|
+
- @spark-web/theme@2.0.0
|
|
273
|
+
- @spark-web/a11y@1.0.1
|
|
274
|
+
- @spark-web/box@1.0.1
|
|
275
|
+
- @spark-web/icon@1.0.1
|
|
276
|
+
- @spark-web/stack@1.0.1
|
|
277
|
+
- @spark-web/text@1.0.1
|
|
278
|
+
- @spark-web/utils@1.0.1
|
|
279
|
+
|
|
280
|
+
## 1.0.0
|
|
281
|
+
|
|
282
|
+
### Major Changes
|
|
283
|
+
|
|
284
|
+
- [#27](https://github.com/brighte-labs/spark-web/pull/27)
|
|
285
|
+
[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)
|
|
286
|
+
Thanks [@JedWatson](https://github.com/JedWatson)! - Initial Version
|
|
287
|
+
|
|
288
|
+
### Patch Changes
|
|
289
|
+
|
|
290
|
+
- Updated dependencies
|
|
291
|
+
[[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)]:
|
|
292
|
+
- @spark-web/a11y@1.0.0
|
|
293
|
+
- @spark-web/box@1.0.0
|
|
294
|
+
- @spark-web/icon@1.0.0
|
|
295
|
+
- @spark-web/stack@1.0.0
|
|
296
|
+
- @spark-web/text@1.0.0
|
|
297
|
+
- @spark-web/theme@1.0.0
|
|
298
|
+
- @spark-web/utils@1.0.0
|
package/README.md
CHANGED
|
@@ -126,19 +126,7 @@ Mark the field as disabled by passing true to the disabled prop.
|
|
|
126
126
|
|
|
127
127
|
## Props
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
| ---------------- | ---------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
131
|
-
| id? | string | | Sets a unique identifier for the component. |
|
|
132
|
-
| data? | [DataAttributeMap][data-attribute-map] | | Sets data attributes on the component. |
|
|
133
|
-
| adornment? | React.ReactElement | | Optionally provide a utility or contextual hint, related to the field. |
|
|
134
|
-
| children | React.ReactNode | | Children elements to be rendered within the component. Expected to be Input elements. |
|
|
135
|
-
| disabled? | boolean | | Indicates that the field is perceivable but disabled, so it is not editable or otherwise operable. |
|
|
136
|
-
| description? | string | | Sets a description for the field to provide additional information that will aid user input. |
|
|
137
|
-
| label | string | | Sets a label for the field. |
|
|
138
|
-
| labelVisibility? | 'hidden' \| 'reserve-space' \| 'visible' | 'visible' | The label must always be provided for assistive technology, but you may hide it from sighted users when the intent can be inferred from context. |
|
|
139
|
-
| message? | string | | Provide a message, informing the user about changes in state. |
|
|
140
|
-
| secondaryLabel? | string | | Provides additional context, typically used to indicate that the field is optional. |
|
|
141
|
-
| tone? | 'critical' \| 'neutral' \| 'positive' | 'neutral' | Provide a tone to influence elements of the field, and its input. |
|
|
129
|
+
<PropsTable displayName="Field" />
|
|
142
130
|
|
|
143
131
|
[data-attribute-map]:
|
|
144
132
|
https://github.com/brighte-labs/spark-web/blob/e7f6f4285b4cfd876312cc89fbdd094039aa239a/packages/utils/src/internal/buildDataAttributes.ts#L1
|
|
@@ -2,7 +2,9 @@ import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
|
2
2
|
import type { ReactElement, ReactNode } from 'react';
|
|
3
3
|
export declare type Tone = keyof typeof messageToneMap;
|
|
4
4
|
export declare type FieldProps = {
|
|
5
|
+
/** Sets a unique identifier for the component. */
|
|
5
6
|
id?: string;
|
|
7
|
+
/** Sets data attributes on the component. */
|
|
6
8
|
data?: DataAttributeMap;
|
|
7
9
|
/** Optionally provide a utility or contextual hint, related to the field. */
|
|
8
10
|
adornment?: ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FieldContextProvider, useFieldContext } from './context';
|
|
2
|
-
export { Field, FieldMessage, useFieldIds } from './
|
|
2
|
+
export { Field, FieldMessage, useFieldIds } from './field';
|
|
3
3
|
export type { FieldContextType, FieldState, InputPropsDerivedFromField, } from './context';
|
|
4
|
-
export type { FieldProps, Tone } from './
|
|
4
|
+
export type { FieldProps, Tone } from './field';
|
|
@@ -176,15 +176,11 @@ var FieldMessage = function FieldMessage(_ref3) {
|
|
|
176
176
|
|
|
177
177
|
function IndicatorContainer(_ref4) {
|
|
178
178
|
var children = _ref4.children;
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var _typography$text$smal = typography.text.small,
|
|
185
|
-
mobile = _typography$text$smal.mobile,
|
|
186
|
-
tablet = _typography$text$smal.tablet;
|
|
187
|
-
var responsiveStyles = utils.responsiveStyles({
|
|
179
|
+
var theme$1 = theme.useTheme();
|
|
180
|
+
var _theme$typography$tex = theme$1.typography.text.small,
|
|
181
|
+
mobile = _theme$typography$tex.mobile,
|
|
182
|
+
tablet = _theme$typography$tex.tablet;
|
|
183
|
+
var responsiveStyles = theme$1.utils.responsiveStyles({
|
|
188
184
|
mobile: {
|
|
189
185
|
height: mobile.capHeight
|
|
190
186
|
},
|
|
@@ -176,15 +176,11 @@ var FieldMessage = function FieldMessage(_ref3) {
|
|
|
176
176
|
|
|
177
177
|
function IndicatorContainer(_ref4) {
|
|
178
178
|
var children = _ref4.children;
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var _typography$text$smal = typography.text.small,
|
|
185
|
-
mobile = _typography$text$smal.mobile,
|
|
186
|
-
tablet = _typography$text$smal.tablet;
|
|
187
|
-
var responsiveStyles = utils.responsiveStyles({
|
|
179
|
+
var theme$1 = theme.useTheme();
|
|
180
|
+
var _theme$typography$tex = theme$1.typography.text.small,
|
|
181
|
+
mobile = _theme$typography$tex.mobile,
|
|
182
|
+
tablet = _theme$typography$tex.tablet;
|
|
183
|
+
var responsiveStyles = theme$1.utils.responsiveStyles({
|
|
188
184
|
mobile: {
|
|
189
185
|
height: mobile.capHeight
|
|
190
186
|
},
|
|
@@ -172,15 +172,11 @@ var FieldMessage = function FieldMessage(_ref3) {
|
|
|
172
172
|
|
|
173
173
|
function IndicatorContainer(_ref4) {
|
|
174
174
|
var children = _ref4.children;
|
|
175
|
-
|
|
176
|
-
var
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var _typography$text$smal = typography.text.small,
|
|
181
|
-
mobile = _typography$text$smal.mobile,
|
|
182
|
-
tablet = _typography$text$smal.tablet;
|
|
183
|
-
var responsiveStyles = utils.responsiveStyles({
|
|
175
|
+
var theme = useTheme();
|
|
176
|
+
var _theme$typography$tex = theme.typography.text.small,
|
|
177
|
+
mobile = _theme$typography$tex.mobile,
|
|
178
|
+
tablet = _theme$typography$tex.tablet;
|
|
179
|
+
var responsiveStyles = theme.utils.responsiveStyles({
|
|
184
180
|
mobile: {
|
|
185
181
|
height: mobile.capHeight
|
|
186
182
|
},
|
package/package.json
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/field",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "3.0.6",
|
|
4
|
+
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/brighte-labs/spark-web.git",
|
|
8
|
+
"directory": "packages/field"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/spark-web-field.cjs.js",
|
|
6
11
|
"module": "dist/spark-web-field.esm.js",
|
|
7
12
|
"files": [
|
|
8
|
-
"
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
"dist",
|
|
15
|
+
"README.md"
|
|
9
16
|
],
|
|
10
17
|
"dependencies": {
|
|
11
|
-
"@babel/runtime": "^7.
|
|
18
|
+
"@babel/runtime": "^7.19.0",
|
|
12
19
|
"@emotion/css": "^11.9.0",
|
|
13
|
-
"@spark-web/a11y": "^1.3.
|
|
14
|
-
"@spark-web/box": "^1.0
|
|
15
|
-
"@spark-web/icon": "^1.2.
|
|
16
|
-
"@spark-web/stack": "^1.0.
|
|
17
|
-
"@spark-web/text": "^1.1.
|
|
18
|
-
"@spark-web/theme": "^3.0
|
|
19
|
-
"@spark-web/utils": "^1.2.
|
|
20
|
+
"@spark-web/a11y": "^1.3.2",
|
|
21
|
+
"@spark-web/box": "^1.1.0",
|
|
22
|
+
"@spark-web/icon": "^1.2.2",
|
|
23
|
+
"@spark-web/stack": "^1.0.10",
|
|
24
|
+
"@spark-web/text": "^1.1.2",
|
|
25
|
+
"@spark-web/theme": "^3.1.0",
|
|
26
|
+
"@spark-web/utils": "^1.2.3"
|
|
20
27
|
},
|
|
21
28
|
"devDependencies": {
|
|
22
29
|
"@types/react": "^17.0.12",
|