@spark-web/button 1.4.2 → 1.4.4
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 +339 -0
- package/README.md +9 -5
- package/dist/declarations/src/{BaseButton.d.ts → base-button.d.ts} +0 -0
- package/dist/declarations/src/{ButtonLink.d.ts → button-link.d.ts} +0 -0
- package/dist/declarations/src/{Button.d.ts → button.d.ts} +0 -0
- package/dist/declarations/src/index.d.ts +9 -8
- package/dist/declarations/src/{resolveButtonChildren.d.ts → resolve-button-children.d.ts} +0 -0
- package/dist/declarations/src/types.d.ts +1 -1
- package/dist/declarations/src/{useButtonStyles.d.ts → use-button-styles.d.ts} +0 -0
- package/package.json +19 -12
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# @spark-web/button
|
|
2
|
+
|
|
3
|
+
## 1.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#245](https://github.com/brighte-labs/spark-web/pull/245)
|
|
8
|
+
[`21c6e08`](https://github.com/brighte-labs/spark-web/commit/21c6e08e821ada32feea7c34f1bf451573b5023d)
|
|
9
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove explicit
|
|
10
|
+
JSX.Element return types
|
|
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/link@1.0.10
|
|
38
|
+
- @spark-web/spinner@1.0.8
|
|
39
|
+
- @spark-web/theme@3.1.0
|
|
40
|
+
- @spark-web/utils@1.2.3
|
|
41
|
+
|
|
42
|
+
## 1.4.3
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- [#204](https://github.com/brighte-labs/spark-web/pull/204)
|
|
47
|
+
[`76522bd`](https://github.com/brighte-labs/spark-web/commit/76522bd266e8d07f0a2c003c0f78314ab002cf40)
|
|
48
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Export
|
|
49
|
+
`ButtonChildrenProps`, `ButtonProminence`, `ButtonSize` and `ButtonTone`
|
|
50
|
+
types.
|
|
51
|
+
|
|
52
|
+
## 1.4.2
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
|
|
57
|
+
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
|
|
58
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
|
|
59
|
+
node version
|
|
60
|
+
|
|
61
|
+
- Updated dependencies
|
|
62
|
+
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
|
|
63
|
+
- @spark-web/a11y@1.3.1
|
|
64
|
+
- @spark-web/box@1.0.9
|
|
65
|
+
- @spark-web/icon@1.2.1
|
|
66
|
+
- @spark-web/link@1.0.9
|
|
67
|
+
- @spark-web/spinner@1.0.7
|
|
68
|
+
- @spark-web/text@1.1.1
|
|
69
|
+
- @spark-web/theme@3.0.6
|
|
70
|
+
- @spark-web/utils@1.2.2
|
|
71
|
+
|
|
72
|
+
## 1.4.1
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
|
|
77
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
|
|
78
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
|
|
79
|
+
|
|
80
|
+
- Updated dependencies
|
|
81
|
+
[[`51b6c7a`](https://github.com/brighte-labs/spark-web/commit/51b6c7a43f441e02b90403b13af9cfa11e5438ef),
|
|
82
|
+
[`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
|
|
83
|
+
[`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f),
|
|
84
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
|
|
85
|
+
- @spark-web/a11y@1.3.0
|
|
86
|
+
- @spark-web/text@1.1.0
|
|
87
|
+
- @spark-web/icon@1.2.0
|
|
88
|
+
- @spark-web/box@1.0.8
|
|
89
|
+
- @spark-web/link@1.0.8
|
|
90
|
+
- @spark-web/spinner@1.0.6
|
|
91
|
+
- @spark-web/theme@3.0.5
|
|
92
|
+
- @spark-web/utils@1.2.1
|
|
93
|
+
|
|
94
|
+
## 1.4.0
|
|
95
|
+
|
|
96
|
+
### Minor Changes
|
|
97
|
+
|
|
98
|
+
- [#188](https://github.com/brighte-labs/spark-web/pull/188)
|
|
99
|
+
[`891f839`](https://github.com/brighte-labs/spark-web/commit/891f839c5a5608d771183189cb12116a60f66209)
|
|
100
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Move
|
|
101
|
+
aria-disabled logic from Button onto underlying BaseButton
|
|
102
|
+
|
|
103
|
+
* [#188](https://github.com/brighte-labs/spark-web/pull/188)
|
|
104
|
+
[`891f839`](https://github.com/brighte-labs/spark-web/commit/891f839c5a5608d771183189cb12116a60f66209)
|
|
105
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Export
|
|
106
|
+
useButtonStyles hook
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- Updated dependencies
|
|
111
|
+
[[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)]:
|
|
112
|
+
- @spark-web/theme@3.0.4
|
|
113
|
+
|
|
114
|
+
## 1.3.1
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- [#185](https://github.com/brighte-labs/spark-web/pull/185)
|
|
119
|
+
[`82413df`](https://github.com/brighte-labs/spark-web/commit/82413df8f27ba2508911d0edb4380d3d366c75c0)
|
|
120
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove "cursor:
|
|
121
|
+
pointer" when buttons are disabled
|
|
122
|
+
|
|
123
|
+
## 1.3.0
|
|
124
|
+
|
|
125
|
+
### Minor Changes
|
|
126
|
+
|
|
127
|
+
- [#181](https://github.com/brighte-labs/spark-web/pull/181)
|
|
128
|
+
[`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b)
|
|
129
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add disabled
|
|
130
|
+
styles for buttons
|
|
131
|
+
|
|
132
|
+
Move aria-disabled logic from Button onto underlying BaseButton
|
|
133
|
+
|
|
134
|
+
* [#179](https://github.com/brighte-labs/spark-web/pull/179)
|
|
135
|
+
[`d935c57`](https://github.com/brighte-labs/spark-web/commit/d935c57c2302700e8a2332b757d38220b9c47f84)
|
|
136
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Accept number as
|
|
137
|
+
child for button
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- [#173](https://github.com/brighte-labs/spark-web/pull/173)
|
|
142
|
+
[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25)
|
|
143
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update babel
|
|
144
|
+
dependency
|
|
145
|
+
|
|
146
|
+
- Updated dependencies
|
|
147
|
+
[[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25),
|
|
148
|
+
[`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b),
|
|
149
|
+
[`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)]:
|
|
150
|
+
- @spark-web/a11y@1.2.0
|
|
151
|
+
- @spark-web/box@1.0.7
|
|
152
|
+
- @spark-web/icon@1.1.5
|
|
153
|
+
- @spark-web/link@1.0.7
|
|
154
|
+
- @spark-web/spinner@1.0.5
|
|
155
|
+
- @spark-web/text@1.0.7
|
|
156
|
+
- @spark-web/theme@3.0.3
|
|
157
|
+
- @spark-web/utils@1.2.0
|
|
158
|
+
|
|
159
|
+
## 1.2.0
|
|
160
|
+
|
|
161
|
+
### Minor Changes
|
|
162
|
+
|
|
163
|
+
- [#153](https://github.com/brighte-labs/spark-web/pull/153)
|
|
164
|
+
[`e17ddb6`](https://github.com/brighte-labs/spark-web/commit/e17ddb6328a792bd5905cff20ced5907ca055f82)
|
|
165
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Create BaseButton
|
|
166
|
+
and focus button on click to address Safari bug
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- [#167](https://github.com/brighte-labs/spark-web/pull/167)
|
|
171
|
+
[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459)
|
|
172
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
173
|
+
|
|
174
|
+
- Updated dependencies
|
|
175
|
+
[[`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459),
|
|
176
|
+
[`f524009`](https://github.com/brighte-labs/spark-web/commit/f5240098cf731b0a2e351b7b585711e893a33736),
|
|
177
|
+
[`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]:
|
|
178
|
+
- @spark-web/a11y@1.1.0
|
|
179
|
+
- @spark-web/box@1.0.6
|
|
180
|
+
- @spark-web/icon@1.1.4
|
|
181
|
+
- @spark-web/link@1.0.6
|
|
182
|
+
- @spark-web/spinner@1.0.4
|
|
183
|
+
- @spark-web/text@1.0.6
|
|
184
|
+
- @spark-web/theme@3.0.2
|
|
185
|
+
- @spark-web/utils@1.1.5
|
|
186
|
+
|
|
187
|
+
## 1.1.2
|
|
188
|
+
|
|
189
|
+
### Patch Changes
|
|
190
|
+
|
|
191
|
+
- [#144](https://github.com/brighte-labs/spark-web/pull/144)
|
|
192
|
+
[`949001a`](https://github.com/brighte-labs/spark-web/commit/949001aca3304a4f13750885575de8ec9e8503b3)
|
|
193
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Better align
|
|
194
|
+
icons inside of buttons
|
|
195
|
+
|
|
196
|
+
- Updated dependencies
|
|
197
|
+
[[`500939d`](https://github.com/brighte-labs/spark-web/commit/500939de7c45c93d48078f39151035ab9eba057f)]:
|
|
198
|
+
- @spark-web/spinner@1.0.3
|
|
199
|
+
|
|
200
|
+
## 1.1.1
|
|
201
|
+
|
|
202
|
+
### Patch Changes
|
|
203
|
+
|
|
204
|
+
- [#113](https://github.com/brighte-labs/spark-web/pull/113)
|
|
205
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)
|
|
206
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
|
|
207
|
+
dependencies
|
|
208
|
+
|
|
209
|
+
- Updated dependencies
|
|
210
|
+
[[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33),
|
|
211
|
+
[`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba)]:
|
|
212
|
+
- @spark-web/a11y@1.0.5
|
|
213
|
+
- @spark-web/box@1.0.5
|
|
214
|
+
- @spark-web/icon@1.1.3
|
|
215
|
+
- @spark-web/link@1.0.5
|
|
216
|
+
- @spark-web/spinner@1.0.2
|
|
217
|
+
- @spark-web/text@1.0.5
|
|
218
|
+
- @spark-web/theme@3.0.1
|
|
219
|
+
- @spark-web/utils@1.1.3
|
|
220
|
+
|
|
221
|
+
## 1.1.0
|
|
222
|
+
|
|
223
|
+
### Minor Changes
|
|
224
|
+
|
|
225
|
+
- [#77](https://github.com/brighte-labs/spark-web/pull/77)
|
|
226
|
+
[`8ff39aa`](https://github.com/brighte-labs/spark-web/commit/8ff39aa7e51d8d3f17dcbd87ebe60502a8d8d260)
|
|
227
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add loading state
|
|
228
|
+
to button
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- [#59](https://github.com/brighte-labs/spark-web/pull/59)
|
|
233
|
+
[`7a91941`](https://github.com/brighte-labs/spark-web/commit/7a91941385dcb4744384818bb5c4866c24c357f5)
|
|
234
|
+
Thanks [@tamm](https://github.com/tamm)! - Fixed spelling mistake from Buttton
|
|
235
|
+
to Button
|
|
236
|
+
|
|
237
|
+
* [#65](https://github.com/brighte-labs/spark-web/pull/65)
|
|
238
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff)
|
|
239
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Remove "Inter"
|
|
240
|
+
font, change font-weights and font-sizes.
|
|
241
|
+
|
|
242
|
+
- [#52](https://github.com/brighte-labs/spark-web/pull/52)
|
|
243
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e)
|
|
244
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add files array
|
|
245
|
+
to package.json files
|
|
246
|
+
|
|
247
|
+
- Updated dependencies
|
|
248
|
+
[[`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5),
|
|
249
|
+
[`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff),
|
|
250
|
+
[`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27),
|
|
251
|
+
[`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e),
|
|
252
|
+
[`58a7284`](https://github.com/brighte-labs/spark-web/commit/58a728457bbbda86ac406a72d8ec4ad6c1c16630),
|
|
253
|
+
[`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b)]:
|
|
254
|
+
- @spark-web/text@1.0.4
|
|
255
|
+
- @spark-web/theme@3.0.0
|
|
256
|
+
- @spark-web/link@1.0.4
|
|
257
|
+
- @spark-web/spinner@1.0.1
|
|
258
|
+
- @spark-web/a11y@1.0.4
|
|
259
|
+
- @spark-web/box@1.0.4
|
|
260
|
+
- @spark-web/icon@1.1.2
|
|
261
|
+
- @spark-web/utils@1.1.2
|
|
262
|
+
|
|
263
|
+
## 1.0.3
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- [#42](https://github.com/brighte-labs/spark-web/pull/42)
|
|
268
|
+
[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)
|
|
269
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Prevent multiple
|
|
270
|
+
versions of React
|
|
271
|
+
|
|
272
|
+
- Updated dependencies
|
|
273
|
+
[[`435779a`](https://github.com/brighte-labs/spark-web/commit/435779aa42bd635bbf43e1fd41724c666402caa2)]:
|
|
274
|
+
- @spark-web/a11y@1.0.3
|
|
275
|
+
- @spark-web/box@1.0.3
|
|
276
|
+
- @spark-web/icon@1.1.1
|
|
277
|
+
- @spark-web/link@1.0.3
|
|
278
|
+
- @spark-web/text@1.0.3
|
|
279
|
+
- @spark-web/theme@2.0.2
|
|
280
|
+
- @spark-web/utils@1.1.1
|
|
281
|
+
|
|
282
|
+
## 1.0.2
|
|
283
|
+
|
|
284
|
+
### Patch Changes
|
|
285
|
+
|
|
286
|
+
- [#40](https://github.com/brighte-labs/spark-web/pull/40)
|
|
287
|
+
[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)
|
|
288
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add
|
|
289
|
+
@babel/transform-runtime
|
|
290
|
+
|
|
291
|
+
- Updated dependencies
|
|
292
|
+
[[`062c8ab`](https://github.com/brighte-labs/spark-web/commit/062c8ab8c7b4120f8d14c269b5f7801288c678ca)]:
|
|
293
|
+
- @spark-web/a11y@1.0.2
|
|
294
|
+
- @spark-web/box@1.0.2
|
|
295
|
+
- @spark-web/icon@1.0.2
|
|
296
|
+
- @spark-web/link@1.0.2
|
|
297
|
+
- @spark-web/text@1.0.2
|
|
298
|
+
- @spark-web/theme@2.0.1
|
|
299
|
+
- @spark-web/utils@1.0.2
|
|
300
|
+
|
|
301
|
+
## 1.0.1
|
|
302
|
+
|
|
303
|
+
### Patch Changes
|
|
304
|
+
|
|
305
|
+
- [#36](https://github.com/brighte-labs/spark-web/pull/36)
|
|
306
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)
|
|
307
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel
|
|
308
|
+
config
|
|
309
|
+
|
|
310
|
+
- Updated dependencies
|
|
311
|
+
[[`aebff30`](https://github.com/brighte-labs/spark-web/commit/aebff30c86cb0a9db22b545c46159ce0d1c14afb),
|
|
312
|
+
[`8546f8f`](https://github.com/brighte-labs/spark-web/commit/8546f8f05daaa79ea3ff954c6c4928a7a2d0622d)]:
|
|
313
|
+
- @spark-web/theme@2.0.0
|
|
314
|
+
- @spark-web/a11y@1.0.1
|
|
315
|
+
- @spark-web/box@1.0.1
|
|
316
|
+
- @spark-web/icon@1.0.1
|
|
317
|
+
- @spark-web/link@1.0.1
|
|
318
|
+
- @spark-web/text@1.0.1
|
|
319
|
+
- @spark-web/utils@1.0.1
|
|
320
|
+
|
|
321
|
+
## 1.0.0
|
|
322
|
+
|
|
323
|
+
### Major Changes
|
|
324
|
+
|
|
325
|
+
- [#27](https://github.com/brighte-labs/spark-web/pull/27)
|
|
326
|
+
[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)
|
|
327
|
+
Thanks [@JedWatson](https://github.com/JedWatson)! - Initial Version
|
|
328
|
+
|
|
329
|
+
### Patch Changes
|
|
330
|
+
|
|
331
|
+
- Updated dependencies
|
|
332
|
+
[[`4c8e398`](https://github.com/brighte-labs/spark-web/commit/4c8e3988f8a59d3dab60a6b67b1128b6ff2a5f2c)]:
|
|
333
|
+
- @spark-web/a11y@1.0.0
|
|
334
|
+
- @spark-web/box@1.0.0
|
|
335
|
+
- @spark-web/icon@1.0.0
|
|
336
|
+
- @spark-web/link@1.0.0
|
|
337
|
+
- @spark-web/text@1.0.0
|
|
338
|
+
- @spark-web/theme@1.0.0
|
|
339
|
+
- @spark-web/utils@1.0.0
|
package/README.md
CHANGED
|
@@ -23,13 +23,13 @@ Defaults to `primary`.
|
|
|
23
23
|
|
|
24
24
|
```jsx live
|
|
25
25
|
<Stack gap="large">
|
|
26
|
-
<Text weight="
|
|
26
|
+
<Text weight="semibold">Decorative tones</Text>
|
|
27
27
|
<Inline gap="small">
|
|
28
28
|
<Button tone="primary">Primary</Button>
|
|
29
29
|
<Button tone="secondary">Secondary</Button>
|
|
30
30
|
</Inline>
|
|
31
31
|
<Divider />
|
|
32
|
-
<Text weight="
|
|
32
|
+
<Text weight="semibold">Semantic tones</Text>
|
|
33
33
|
<Inline gap="small">
|
|
34
34
|
<Button tone="neutral">Neutral</Button>
|
|
35
35
|
<Button tone="positive">Positive</Button>
|
|
@@ -62,7 +62,7 @@ const extraButtonTones = [
|
|
|
62
62
|
return (
|
|
63
63
|
<Stack gap="large" dividers>
|
|
64
64
|
<Stack gap="large">
|
|
65
|
-
<Text weight="
|
|
65
|
+
<Text weight="semibold">High prominence</Text>
|
|
66
66
|
<Inline gap="small">
|
|
67
67
|
{baseButtonTones.map(({ label, tone }) => (
|
|
68
68
|
<Button key={label} tone={tone} prominence="high">
|
|
@@ -73,7 +73,7 @@ return (
|
|
|
73
73
|
</Inline>
|
|
74
74
|
</Stack>
|
|
75
75
|
<Stack gap="large">
|
|
76
|
-
<Text weight="
|
|
76
|
+
<Text weight="semibold">Low prominence</Text>
|
|
77
77
|
<Inline gap="small">
|
|
78
78
|
{baseButtonTones.concat(extraButtonTones).map(({ label, tone }) => (
|
|
79
79
|
<Button key={label} tone={tone} prominence="low">
|
|
@@ -84,7 +84,7 @@ return (
|
|
|
84
84
|
</Inline>
|
|
85
85
|
</Stack>
|
|
86
86
|
<Stack gap="large">
|
|
87
|
-
<Text weight="
|
|
87
|
+
<Text weight="semibold">None prominence</Text>
|
|
88
88
|
<Inline gap="small">
|
|
89
89
|
{baseButtonTones.concat(extraButtonTones).map(({ label, tone }) => (
|
|
90
90
|
<Button key={label} tone={tone} prominence="none">
|
|
@@ -211,3 +211,7 @@ Unstyled button primitive that:
|
|
|
211
211
|
## Button Props
|
|
212
212
|
|
|
213
213
|
<PropsTable displayName="Button" />
|
|
214
|
+
|
|
215
|
+
## Button Link Props
|
|
216
|
+
|
|
217
|
+
<PropsTable displayName="ButtonLink" />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { BaseButton } from './
|
|
2
|
-
export { Button } from './
|
|
3
|
-
export { ButtonLink } from './
|
|
4
|
-
export { useButtonStyles } from './
|
|
5
|
-
export type { BaseButtonProps } from './
|
|
6
|
-
export type { ButtonProps } from './
|
|
7
|
-
export type { ButtonLinkProps } from './
|
|
8
|
-
export type {
|
|
1
|
+
export { BaseButton } from './base-button';
|
|
2
|
+
export { Button } from './button';
|
|
3
|
+
export { ButtonLink } from './button-link';
|
|
4
|
+
export { useButtonStyles } from './use-button-styles';
|
|
5
|
+
export type { BaseButtonProps } from './base-button';
|
|
6
|
+
export type { ButtonProps } from './button';
|
|
7
|
+
export type { ButtonLinkProps } from './button-link';
|
|
8
|
+
export type { ButtonChildrenProps, ButtonProminence, ButtonSize, ButtonTone, } from './types';
|
|
9
|
+
export type { UseButtonStylesProps } from './use-button-styles';
|
|
File without changes
|
|
@@ -21,7 +21,7 @@ declare type IconOnly = {
|
|
|
21
21
|
export declare type ButtonChildrenProps = ChildrenWithText | IconOnly;
|
|
22
22
|
export declare type NativeButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
23
23
|
export declare type CommonButtonProps = {
|
|
24
|
-
/**
|
|
24
|
+
/** Sets data attributes for the element. */
|
|
25
25
|
data?: DataAttributeMap;
|
|
26
26
|
/** Unique identifier for the underlying element. */
|
|
27
27
|
id?: string;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/button",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.4.4",
|
|
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/button"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/spark-web-button.cjs.js",
|
|
6
11
|
"module": "dist/spark-web-button.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/link": "^1.0.
|
|
17
|
-
"@spark-web/spinner": "^1.0.
|
|
18
|
-
"@spark-web/text": "^1.1.
|
|
19
|
-
"@spark-web/theme": "^3.0
|
|
20
|
-
"@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/link": "^1.0.10",
|
|
24
|
+
"@spark-web/spinner": "^1.0.8",
|
|
25
|
+
"@spark-web/text": "^1.1.2",
|
|
26
|
+
"@spark-web/theme": "^3.1.0",
|
|
27
|
+
"@spark-web/utils": "^1.2.3"
|
|
21
28
|
},
|
|
22
29
|
"devDependencies": {
|
|
23
30
|
"@types/react": "^17.0.12",
|