@spark-web/select 1.0.12 → 1.0.13
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 +313 -0
- package/README.md +1 -11
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/{Select.d.ts → select.d.ts} +2 -2
- package/package.json +18 -11
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# @spark-web/select
|
|
2
|
+
|
|
3
|
+
## 1.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#218](https://github.com/brighte-labs/spark-web/pull/218)
|
|
8
|
+
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5)
|
|
9
|
+
Thanks [@nderkim](https://github.com/nderkim)! - Rename files to kebab case
|
|
10
|
+
|
|
11
|
+
- [#222](https://github.com/brighte-labs/spark-web/pull/222)
|
|
12
|
+
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b)
|
|
13
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
|
|
14
|
+
dependencies
|
|
15
|
+
|
|
16
|
+
- [#242](https://github.com/brighte-labs/spark-web/pull/242)
|
|
17
|
+
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)
|
|
18
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage
|
|
19
|
+
and repository keys to package.json
|
|
20
|
+
- Add CHANGELOG and README to files key in package.json
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
[[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b),
|
|
23
|
+
[`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c),
|
|
24
|
+
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5),
|
|
25
|
+
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b),
|
|
26
|
+
[`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe),
|
|
27
|
+
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]:
|
|
28
|
+
- @spark-web/box@1.1.0
|
|
29
|
+
- @spark-web/field@3.0.6
|
|
30
|
+
- @spark-web/icon@1.2.2
|
|
31
|
+
- @spark-web/text-input@2.0.4
|
|
32
|
+
- @spark-web/theme@3.1.0
|
|
33
|
+
|
|
34
|
+
## 1.0.12
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
|
|
39
|
+
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
|
|
40
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
|
|
41
|
+
node version
|
|
42
|
+
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
|
|
45
|
+
- @spark-web/box@1.0.9
|
|
46
|
+
- @spark-web/field@3.0.5
|
|
47
|
+
- @spark-web/icon@1.2.1
|
|
48
|
+
- @spark-web/text-input@2.0.3
|
|
49
|
+
- @spark-web/theme@3.0.6
|
|
50
|
+
|
|
51
|
+
## 1.0.11
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
|
|
56
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
|
|
57
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
|
|
58
|
+
|
|
59
|
+
- Updated dependencies
|
|
60
|
+
[[`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f),
|
|
61
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
|
|
62
|
+
- @spark-web/icon@1.2.0
|
|
63
|
+
- @spark-web/box@1.0.8
|
|
64
|
+
- @spark-web/field@3.0.4
|
|
65
|
+
- @spark-web/text-input@2.0.2
|
|
66
|
+
- @spark-web/theme@3.0.5
|
|
67
|
+
|
|
68
|
+
## 1.0.10
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- [#184](https://github.com/brighte-labs/spark-web/pull/184)
|
|
73
|
+
[`6d68601`](https://github.com/brighte-labs/spark-web/commit/6d68601d1d7ac6b7de9c388f286d523935a98ea0)
|
|
74
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Enable Select to
|
|
75
|
+
have a blank option selected when value is blank
|
|
76
|
+
|
|
77
|
+
- Updated dependencies
|
|
78
|
+
[[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)]:
|
|
79
|
+
- @spark-web/theme@3.0.4
|
|
80
|
+
|
|
81
|
+
## 1.0.9
|
|
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
|
+
* [#178](https://github.com/brighte-labs/spark-web/pull/178)
|
|
91
|
+
[`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)
|
|
92
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Switch from using
|
|
93
|
+
`:invalid` pseudo-class to using data-attribute for invalid styles of inputs
|
|
94
|
+
* Updated dependencies
|
|
95
|
+
[[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25),
|
|
96
|
+
[`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)]:
|
|
97
|
+
- @spark-web/box@1.0.7
|
|
98
|
+
- @spark-web/field@3.0.3
|
|
99
|
+
- @spark-web/icon@1.1.5
|
|
100
|
+
- @spark-web/text-input@2.0.1
|
|
101
|
+
- @spark-web/theme@3.0.3
|
|
102
|
+
|
|
103
|
+
## 1.0.8
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- [#158](https://github.com/brighte-labs/spark-web/pull/158)
|
|
108
|
+
[`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e)
|
|
109
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work
|
|
110
|
+
with updated useInputStyles
|
|
111
|
+
|
|
112
|
+
* [#148](https://github.com/brighte-labs/spark-web/pull/148)
|
|
113
|
+
[`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72)
|
|
114
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Make Field a peer
|
|
115
|
+
dep to avoid context bug
|
|
116
|
+
|
|
117
|
+
- [#167](https://github.com/brighte-labs/spark-web/pull/167)
|
|
118
|
+
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459)
|
|
119
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
120
|
+
|
|
121
|
+
* [#158](https://github.com/brighte-labs/spark-web/pull/158)
|
|
122
|
+
[`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e)
|
|
123
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove unused
|
|
124
|
+
dependencies
|
|
125
|
+
|
|
126
|
+
* Updated dependencies
|
|
127
|
+
[[`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e),
|
|
128
|
+
[`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72),
|
|
129
|
+
[`2ba486a`](https://github.com/brighte-labs/spark-web/commit/2ba486a504bd0704935aaad2b8442907dc1899ac),
|
|
130
|
+
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459),
|
|
131
|
+
[`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]:
|
|
132
|
+
- @spark-web/text-input@2.0.0
|
|
133
|
+
- @spark-web/box@1.0.6
|
|
134
|
+
- @spark-web/field@3.0.1
|
|
135
|
+
- @spark-web/icon@1.1.4
|
|
136
|
+
- @spark-web/theme@3.0.2
|
|
137
|
+
|
|
138
|
+
## 1.0.7
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- Updated dependencies
|
|
143
|
+
[[`3db131b`](https://github.com/brighte-labs/spark-web/commit/3db131bfadbc4149d05b7c74be1a3e68cdd5b18f)]:
|
|
144
|
+
- @spark-web/field@3.0.0
|
|
145
|
+
- @spark-web/text-input@1.2.1
|
|
146
|
+
|
|
147
|
+
## 1.0.6
|
|
148
|
+
|
|
149
|
+
### Patch Changes
|
|
150
|
+
|
|
151
|
+
- [#113](https://github.com/brighte-labs/spark-web/pull/113)
|
|
152
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)
|
|
153
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
|
|
154
|
+
dependencies
|
|
155
|
+
|
|
156
|
+
* [#101](https://github.com/brighte-labs/spark-web/pull/101)
|
|
157
|
+
[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33)
|
|
158
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update focus and
|
|
159
|
+
disabled styles
|
|
160
|
+
|
|
161
|
+
- [#108](https://github.com/brighte-labs/spark-web/pull/108)
|
|
162
|
+
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d)
|
|
163
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work
|
|
164
|
+
with updated field context
|
|
165
|
+
|
|
166
|
+
- Updated dependencies
|
|
167
|
+
[[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33),
|
|
168
|
+
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d),
|
|
169
|
+
[`27bc235`](https://github.com/brighte-labs/spark-web/commit/27bc235168b09bf8c03710b5fcde6ea0fd70824c),
|
|
170
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba),
|
|
171
|
+
[`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d),
|
|
172
|
+
[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33)]:
|
|
173
|
+
- @spark-web/a11y@1.0.5
|
|
174
|
+
- @spark-web/field@2.0.0
|
|
175
|
+
- @spark-web/text-input@1.2.0
|
|
176
|
+
- @spark-web/box@1.0.5
|
|
177
|
+
- @spark-web/icon@1.1.3
|
|
178
|
+
- @spark-web/text@1.0.5
|
|
179
|
+
- @spark-web/theme@3.0.1
|
|
180
|
+
- @spark-web/utils@1.1.3
|
|
181
|
+
|
|
182
|
+
## 1.0.5
|
|
183
|
+
|
|
184
|
+
### Patch Changes
|
|
185
|
+
|
|
186
|
+
- [#98](https://github.com/brighte-labs/spark-web/pull/98)
|
|
187
|
+
[`4750af7`](https://github.com/brighte-labs/spark-web/commit/4750af73f0e3a82ebde940cb13659a21c7e88007)
|
|
188
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add aria-invalid
|
|
189
|
+
attribute
|
|
190
|
+
|
|
191
|
+
- Updated dependencies
|
|
192
|
+
[[`4ad9817`](https://github.com/brighte-labs/spark-web/commit/4ad9817d1f7acdecd3c8bbb3be517f5c11fe8d4b),
|
|
193
|
+
[`4750af7`](https://github.com/brighte-labs/spark-web/commit/4750af73f0e3a82ebde940cb13659a21c7e88007),
|
|
194
|
+
[`dc53688`](https://github.com/brighte-labs/spark-web/commit/dc53688cc271316f00ef25f101e94c3891f4f75d)]:
|
|
195
|
+
- @spark-web/text-input@1.1.1
|
|
196
|
+
|
|
197
|
+
## 1.0.4
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- [#65](https://github.com/brighte-labs/spark-web/pull/65)
|
|
202
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff)
|
|
203
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove "Inter"
|
|
204
|
+
font, change font-weights and font-sizes.
|
|
205
|
+
|
|
206
|
+
* [#87](https://github.com/brighte-labs/spark-web/pull/87)
|
|
207
|
+
[`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27)
|
|
208
|
+
Thanks [@ChristopherMitchell242](https://github.com/ChristopherMitchell242)! -
|
|
209
|
+
Data attribute added to component props to allow consumers to attach
|
|
210
|
+
customattributes to components
|
|
211
|
+
|
|
212
|
+
- [#52](https://github.com/brighte-labs/spark-web/pull/52)
|
|
213
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e)
|
|
214
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add files array
|
|
215
|
+
to package.json files
|
|
216
|
+
|
|
217
|
+
- Updated dependencies
|
|
218
|
+
[[`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70),
|
|
219
|
+
[`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5),
|
|
220
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff),
|
|
221
|
+
[`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27),
|
|
222
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e),
|
|
223
|
+
[`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b)]:
|
|
224
|
+
- @spark-web/field@1.1.0
|
|
225
|
+
- @spark-web/text-input@1.1.0
|
|
226
|
+
- @spark-web/text@1.0.4
|
|
227
|
+
- @spark-web/theme@3.0.0
|
|
228
|
+
- @spark-web/a11y@1.0.4
|
|
229
|
+
- @spark-web/box@1.0.4
|
|
230
|
+
- @spark-web/icon@1.1.2
|
|
231
|
+
- @spark-web/utils@1.1.2
|
|
232
|
+
|
|
233
|
+
## 1.0.3
|
|
234
|
+
|
|
235
|
+
### Patch Changes
|
|
236
|
+
|
|
237
|
+
- [#42](https://github.com/brighte-labs/spark-web/pull/42)
|
|
238
|
+
[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)
|
|
239
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Prevent multiple
|
|
240
|
+
versions of React
|
|
241
|
+
|
|
242
|
+
- Updated dependencies
|
|
243
|
+
[[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)]:
|
|
244
|
+
- @spark-web/a11y@1.0.3
|
|
245
|
+
- @spark-web/box@1.0.3
|
|
246
|
+
- @spark-web/field@1.0.3
|
|
247
|
+
- @spark-web/icon@1.1.1
|
|
248
|
+
- @spark-web/text@1.0.3
|
|
249
|
+
- @spark-web/text-input@1.0.3
|
|
250
|
+
- @spark-web/theme@2.0.2
|
|
251
|
+
- @spark-web/utils@1.1.1
|
|
252
|
+
|
|
253
|
+
## 1.0.2
|
|
254
|
+
|
|
255
|
+
### Patch Changes
|
|
256
|
+
|
|
257
|
+
- [#40](https://github.com/brighte-labs/spark-web/pull/40)
|
|
258
|
+
[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)
|
|
259
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add
|
|
260
|
+
@babel/transform-runtime
|
|
261
|
+
|
|
262
|
+
- Updated dependencies
|
|
263
|
+
[[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)]:
|
|
264
|
+
- @spark-web/a11y@1.0.2
|
|
265
|
+
- @spark-web/box@1.0.2
|
|
266
|
+
- @spark-web/field@1.0.2
|
|
267
|
+
- @spark-web/icon@1.0.2
|
|
268
|
+
- @spark-web/text@1.0.2
|
|
269
|
+
- @spark-web/text-input@1.0.2
|
|
270
|
+
- @spark-web/theme@2.0.1
|
|
271
|
+
- @spark-web/utils@1.0.2
|
|
272
|
+
|
|
273
|
+
## 1.0.1
|
|
274
|
+
|
|
275
|
+
### Patch Changes
|
|
276
|
+
|
|
277
|
+
- [#36](https://github.com/brighte-labs/spark-web/pull/36)
|
|
278
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)
|
|
279
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
280
|
+
config
|
|
281
|
+
|
|
282
|
+
- Updated dependencies
|
|
283
|
+
[[`aebff30`](https://github.com/brighte-labs/spark-web/commit/aebff30c86cb0a9db22b545c46159ce0d1c14afb),
|
|
284
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)]:
|
|
285
|
+
- @spark-web/theme@2.0.0
|
|
286
|
+
- @spark-web/a11y@1.0.1
|
|
287
|
+
- @spark-web/box@1.0.1
|
|
288
|
+
- @spark-web/field@1.0.1
|
|
289
|
+
- @spark-web/icon@1.0.1
|
|
290
|
+
- @spark-web/text@1.0.1
|
|
291
|
+
- @spark-web/text-input@1.0.1
|
|
292
|
+
- @spark-web/utils@1.0.1
|
|
293
|
+
|
|
294
|
+
## 1.0.0
|
|
295
|
+
|
|
296
|
+
### Major Changes
|
|
297
|
+
|
|
298
|
+
- [#27](https://github.com/brighte-labs/spark-web/pull/27)
|
|
299
|
+
[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)
|
|
300
|
+
Thanks [@JedWatson](https://github.com/JedWatson)! - Initial Version
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- Updated dependencies
|
|
305
|
+
[[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)]:
|
|
306
|
+
- @spark-web/a11y@1.0.0
|
|
307
|
+
- @spark-web/box@1.0.0
|
|
308
|
+
- @spark-web/field@1.0.0
|
|
309
|
+
- @spark-web/icon@1.0.0
|
|
310
|
+
- @spark-web/text@1.0.0
|
|
311
|
+
- @spark-web/text-input@1.0.0
|
|
312
|
+
- @spark-web/theme@1.0.0
|
|
313
|
+
- @spark-web/utils@1.0.0
|
package/README.md
CHANGED
|
@@ -124,17 +124,7 @@ return (
|
|
|
124
124
|
|
|
125
125
|
## Props
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
| ------------- | -------------------------------------------- | ------- | -------------------------------------------------------------------------------------- |
|
|
129
|
-
| data? | [DataAttributeMap][data-attribute-map] | | Sets data attributes on the component. |
|
|
130
|
-
| options | Readonly\<Array\<Option \| Group>> | | The values that can be selected by the input. |
|
|
131
|
-
| placeholder? | string | | Placeholder text for when the input does not have an initial value. |
|
|
132
|
-
| defaultValue? | string \| number \| readonly string[] | | Default value of the select. |
|
|
133
|
-
| name? | string | | This attribute is used to specify the name of the control. |
|
|
134
|
-
| onBlur? | React.FocusEventHandler\<HTMLSelectElement> | | Function for handling change events. |
|
|
135
|
-
| onChange? | React.ChangeEventHandler\<HTMLSelectElement> | | Function for handling blur events. |
|
|
136
|
-
| required? | boolean | | Boolean that indicating that an option with a non-empty string value must be selected. |
|
|
137
|
-
| value | string \| number \| readonly string[] | | Value of the select. |
|
|
127
|
+
<PropsTable displayName="Select" />
|
|
138
128
|
|
|
139
129
|
[data-attribute-map]:
|
|
140
130
|
https://github.com/brighte-labs/spark-web/blob/e7f6f4285b4cfd876312cc89fbdd094039aa239a/packages/utils/src/internal/buildDataAttributes.ts#L1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Select } from './
|
|
2
|
-
export type { SelectProps } from './
|
|
1
|
+
export { Select } from './select';
|
|
2
|
+
export type { SelectProps } from './select';
|
|
@@ -17,7 +17,7 @@ export declare type Group = {
|
|
|
17
17
|
export declare type OptionsOrGroups = Array<Option | Group>;
|
|
18
18
|
export declare type NativeSelectProps = Pick<SelectHTMLAttributes<HTMLSelectElement>, 'defaultValue' | 'name' | 'onBlur' | 'onChange' | 'required' | 'value'>;
|
|
19
19
|
export declare type SelectProps = NativeSelectProps & {
|
|
20
|
-
/**
|
|
20
|
+
/** Sets data attributes for the element. */
|
|
21
21
|
data?: DataAttributeMap;
|
|
22
22
|
/** The values that can be selected by the input. */
|
|
23
23
|
options: OptionsOrGroups;
|
|
@@ -25,7 +25,7 @@ export declare type SelectProps = NativeSelectProps & {
|
|
|
25
25
|
placeholder?: string;
|
|
26
26
|
};
|
|
27
27
|
export declare const Select: import("react").ForwardRefExoticComponent<NativeSelectProps & {
|
|
28
|
-
/**
|
|
28
|
+
/** Sets data attributes for the element. */
|
|
29
29
|
data?: DataAttributeMap | undefined;
|
|
30
30
|
/** The values that can be selected by the input. */
|
|
31
31
|
options: OptionsOrGroups;
|
package/package.json
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/select",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.0.13",
|
|
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/select"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/spark-web-select.cjs.js",
|
|
6
11
|
"module": "dist/spark-web-select.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/box": "^1.0
|
|
14
|
-
"@spark-web/icon": "^1.2.
|
|
15
|
-
"@spark-web/text-input": "^2.0.
|
|
16
|
-
"@spark-web/theme": "^3.0
|
|
20
|
+
"@spark-web/box": "^1.1.0",
|
|
21
|
+
"@spark-web/icon": "^1.2.2",
|
|
22
|
+
"@spark-web/text-input": "^2.0.4",
|
|
23
|
+
"@spark-web/theme": "^3.1.0"
|
|
17
24
|
},
|
|
18
25
|
"devDependencies": {
|
|
19
|
-
"@spark-web/field": "^3.0.
|
|
20
|
-
"@spark-web/utils": "^1.2.
|
|
26
|
+
"@spark-web/field": "^3.0.6",
|
|
27
|
+
"@spark-web/utils": "^1.2.3",
|
|
21
28
|
"@types/react": "^17.0.12",
|
|
22
29
|
"react": "^17.0.2"
|
|
23
30
|
},
|
|
24
31
|
"peerDependencies": {
|
|
25
|
-
"@spark-web/field": "^3.0.
|
|
32
|
+
"@spark-web/field": "^3.0.6",
|
|
26
33
|
"react": ">=17.0.2"
|
|
27
34
|
},
|
|
28
35
|
"engines": {
|