@spark-web/badge 5.0.0-rc.31 → 5.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 +43 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @spark-web/badge
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- This release of spark-web standardises the version across all packages to be
|
|
8
|
+
**`v5`**, primarily signifying the switch from `@emotion/css` to
|
|
9
|
+
`@emotion/react` as one of the key dependencies of the entire library, in
|
|
10
|
+
order to support server-side rendering / SSR.
|
|
11
|
+
|
|
12
|
+
This release also introduces support for theming, to allow for more co-branded
|
|
13
|
+
experiences across our web applications. It also supports component-level
|
|
14
|
+
theming for `<Button />`, `<ButtonLink />`, and `<Checkbox />`, which provides
|
|
15
|
+
the capability to override the global theme available inside an application.
|
|
16
|
+
|
|
17
|
+
To use this in an application, you can wrap the affected areas with a
|
|
18
|
+
`ThemeProvider`:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
<ThemeProvider theme="pantheon">
|
|
22
|
+
<Input type="text" />
|
|
23
|
+
<Button type="submit" />
|
|
24
|
+
</ThemeProvider>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Part of the theming capabilities includes a new theme for `spark-web` called
|
|
28
|
+
"pantheon", which should map with our co-branding efforts in the Pantheon
|
|
29
|
+
project. It currently includes a small set of colors and its corresponding
|
|
30
|
+
font family.
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#532](https://github.com/brighte-labs/spark-web/pull/532)
|
|
35
|
+
[`631573c`](https://github.com/brighte-labs/spark-web/commit/631573cb72981d99b9afa4ad559123f44e47b2a9)
|
|
36
|
+
Thanks [@ralcoriza-brighte](https://github.com/ralcoriza-brighte)! - Fix
|
|
37
|
+
type-related issues
|
|
38
|
+
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
[[`631573c`](https://github.com/brighte-labs/spark-web/commit/631573cb72981d99b9afa4ad559123f44e47b2a9)]:
|
|
41
|
+
- @spark-web/theme@5.0.0
|
|
42
|
+
- @spark-web/utils@5.0.0
|
|
43
|
+
- @spark-web/text@5.0.0
|
|
44
|
+
- @spark-web/box@5.0.0
|
|
45
|
+
|
|
3
46
|
## 5.0.0-rc.31
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/badge",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"@emotion/react": "^11.14.0",
|
|
20
|
-
"@spark-web/box": "^5.0.0
|
|
21
|
-
"@spark-web/text": "^5.0.0
|
|
22
|
-
"@spark-web/theme": "^5.0.0
|
|
23
|
-
"@spark-web/utils": "^5.0.0
|
|
20
|
+
"@spark-web/box": "^5.0.0",
|
|
21
|
+
"@spark-web/text": "^5.0.0",
|
|
22
|
+
"@spark-web/theme": "^5.0.0",
|
|
23
|
+
"@spark-web/utils": "^5.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.2.0",
|