@spark-web/badge
Version:
--- title: Badge isExperimentalPackage: true ---
562 lines (379 loc) • 12.7 kB
Markdown
# @spark-web/badge
## 5.0.0
### Major Changes
- This release of spark-web standardises the version across all packages to be
**`v5`**, primarily signifying the switch from `@emotion/css` to
`@emotion/react` as one of the key dependencies of the entire library, in
order to support server-side rendering / SSR.
This release also introduces support for theming, to allow for more co-branded
experiences across our web applications. It also supports component-level
theming for `<Button />`, `<ButtonLink />`, and `<Checkbox />`, which provides
the capability to override the global theme available inside an application.
To use this in an application, you can wrap the affected areas with a
`ThemeProvider`:
```
<ThemeProvider theme="pantheon">
<Input type="text" />
<Button type="submit" />
</ThemeProvider>
```
Part of the theming capabilities includes a new theme for `spark-web` called
"pantheon", which should map with our co-branding efforts in the Pantheon
project. It currently includes a small set of colors and its corresponding
font family.
### Patch Changes
- [#532](https://github.com/brighte-labs/spark-web/pull/532)
[`631573c`](https://github.com/brighte-labs/spark-web/commit/631573cb72981d99b9afa4ad559123f44e47b2a9)
Thanks [@ralcoriza-brighte](https://github.com/ralcoriza-brighte)! - Fix
type-related issues
- Updated dependencies
[[`631573c`](https://github.com/brighte-labs/spark-web/commit/631573cb72981d99b9afa4ad559123f44e47b2a9)]:
- @spark-web/theme@5.0.0
- @spark-web/utils@5.0.0
- @spark-web/text@5.0.0
- @spark-web/box@5.0.0
## 5.0.0-rc.31
### Patch Changes
- Fix type-related issues
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.31
- @spark-web/utils@5.0.0-rc.31
- @spark-web/text@5.0.0-rc.31
- @spark-web/box@5.0.0-rc.31
## 5.0.0-rc.30
### Minor Changes
- Adopt latest changes from stable main branch
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.30
- @spark-web/utils@5.0.0-rc.30
- @spark-web/text@5.0.0-rc.30
- @spark-web/box@5.0.0-rc.30
## 5.0.0-rc.29
### Minor Changes
- Revise stylesheet maps to align with theme name change
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.29
- @spark-web/utils@5.0.0-rc.29
- @spark-web/text@5.0.0-rc.29
- @spark-web/box@5.0.0-rc.29
## 5.0.0-rc.28
### Minor Changes
- Move fonts to theme package; Introduce Pantheon font family and stylesheet
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.28
- @spark-web/utils@5.0.0-rc.28
- @spark-web/text@5.0.0-rc.28
- @spark-web/box@5.0.0-rc.28
## 5.0.0-rc.27
### Minor Changes
- Remove theme prop in button link
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.27
- @spark-web/utils@5.0.0-rc.27
- @spark-web/text@5.0.0-rc.27
- @spark-web/box@5.0.0-rc.27
## 5.0.0-rc.26
### Minor Changes
- Roll back on using theme prop for component level theming; prefer using
ThemeProvider in applications instead
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.26
- @spark-web/utils@5.0.0-rc.26
- @spark-web/text@5.0.0-rc.26
- @spark-web/box@5.0.0-rc.26
## 5.0.0-rc.25
### Minor Changes
- Implement checkbox tokens for test theme
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.25
- @spark-web/utils@5.0.0-rc.25
- @spark-web/text@5.0.0-rc.25
- @spark-web/box@5.0.0-rc.25
## 5.0.0-rc.24
### Minor Changes
- Resolve issues with package build output
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@5.0.0-rc.24
- @spark-web/utils@5.0.0-rc.24
- @spark-web/text@5.0.0-rc.24
- @spark-web/box@5.0.0-rc.24
## 1.0.0-rc.21
### Minor Changes
- Introduce global theming provider to set global default theme
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.21
- @spark-web/utils@2.0.0-rc.21
- @spark-web/text@2.0.0-rc.21
- @spark-web/box@2.0.0-rc.21
## 1.0.0-rc.20
### Minor Changes
- Support for component-level theming; button-level theming
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.20
- @spark-web/utils@2.0.0-rc.20
- @spark-web/text@2.0.0-rc.20
- @spark-web/box@2.0.0-rc.20
## 1.0.0-rc.19
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.19
- @spark-web/utils@2.0.0-rc.19
- @spark-web/text@2.0.0-rc.19
- @spark-web/box@2.0.0-rc.19
## 1.0.0-rc.18
### Major Changes
- tests
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.18
- @spark-web/utils@2.0.0-rc.18
- @spark-web/text@2.0.0-rc.18
- @spark-web/box@2.0.0-rc.18
## 1.0.0-rc.17
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.17
- @spark-web/utils@2.0.0-rc.17
- @spark-web/text@2.0.0-rc.17
- @spark-web/box@2.0.0-rc.17
## 1.0.0-rc.16
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.16
- @spark-web/utils@2.0.0-rc.16
- @spark-web/text@2.0.0-rc.16
- @spark-web/box@2.0.0-rc.16
## 1.0.0-rc.15
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.15
- @spark-web/utils@2.0.0-rc.15
- @spark-web/text@2.0.0-rc.15
- @spark-web/box@2.0.0-rc.15
## 1.0.0-rc.14
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.14
- @spark-web/utils@2.0.0-rc.14
- @spark-web/text@2.0.0-rc.14
- @spark-web/box@2.0.0-rc.14
## 1.0.0-rc.13
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.13
- @spark-web/utils@2.0.0-rc.13
- @spark-web/text@2.0.0-rc.13
- @spark-web/box@2.0.0-rc.13
## 1.0.0-rc.12
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.12
- @spark-web/utils@2.0.0-rc.12
- @spark-web/text@2.0.0-rc.12
- @spark-web/box@2.0.0-rc.12
## 1.0.0-rc.11
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.11
- @spark-web/utils@2.0.0-rc.11
- @spark-web/text@2.0.0-rc.11
- @spark-web/box@2.0.0-rc.11
## 1.0.0-rc.10
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.10
- @spark-web/utils@2.0.0-rc.10
- @spark-web/text@2.0.0-rc.10
- @spark-web/box@2.0.0-rc.10
## 1.0.0-rc.9
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.9
- @spark-web/utils@2.0.0-rc.9
- @spark-web/text@2.0.0-rc.9
- @spark-web/box@2.0.0-rc.9
## 1.0.0-rc.8
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.8
- @spark-web/utils@2.0.0-rc.8
- @spark-web/text@2.0.0-rc.8
- @spark-web/box@2.0.0-rc.8
## 1.0.0-rc.7
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.7
- @spark-web/utils@2.0.0-rc.7
- @spark-web/text@2.0.0-rc.7
- @spark-web/box@2.0.0-rc.7
## 1.0.0-rc.6
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.6
- @spark-web/utils@2.0.0-rc.6
- @spark-web/text@2.0.0-rc.6
- @spark-web/box@2.0.0-rc.6
## 1.0.0-rc.5
### Major Changes
- test
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.5
- @spark-web/utils@2.0.0-rc.5
- @spark-web/text@2.0.0-rc.5
- @spark-web/box@2.0.0-rc.5
## 1.0.0-rc.4
### Major Changes
- bug
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.4
- @spark-web/utils@2.0.0-rc.4
- @spark-web/text@2.0.0-rc.4
- @spark-web/box@2.0.0-rc.4
## 1.0.0-rc.3
### Major Changes
- upgrade package
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.3
- @spark-web/utils@2.0.0-rc.3
- @spark-web/text@2.0.0-rc.3
- @spark-web/box@2.0.0-rc.3
## 1.0.0-rc.2
### Major Changes
- add parser
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.2
- @spark-web/utils@2.0.0-rc.2
- @spark-web/text@2.0.0-rc.2
- @spark-web/box@2.0.0-rc.2
## 1.0.0-rc.1
### Major Changes
- rc
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.1
- @spark-web/utils@2.0.0-rc.1
- @spark-web/text@2.0.0-rc.1
- @spark-web/box@2.0.0-rc.1
## 1.0.0-rc.0
### Major Changes
- rc versio
### Patch Changes
- Updated dependencies []:
- @spark-web/theme@4.0.0-rc.0
- @spark-web/text@2.0.0-rc.0
- @spark-web/box@2.0.0-rc.0
- @spark-web/utils@2.0.0-rc.0
## 0.1.0
### Minor Changes
- [#382](https://github.com/brighte-labs/spark-web/pull/382)
[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)
Thanks [@dilipt-brighte](https://github.com/dilipt-brighte)! - Updates React
version to latest (18.2.0)
### Patch Changes
- Updated dependencies
[[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)]:
- @spark-web/box@1.2.0
- @spark-web/text@1.2.0
- @spark-web/theme@3.2.0
- @spark-web/utils@1.3.0
## 0.0.4
### Patch Changes
- [#218](https://github.com/brighte-labs/spark-web/pull/218)
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5)
Thanks [@nderkim](https://github.com/nderkim)! - Rename files to kebab case
- [#222](https://github.com/brighte-labs/spark-web/pull/222)
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update
dependencies
- [#242](https://github.com/brighte-labs/spark-web/pull/242)
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage
and repository keys to package.json
- Add CHANGELOG and README to files key in package.json
- Updated dependencies
[[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b),
[`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c),
[`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5),
[`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b),
[`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe),
[`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]:
- @spark-web/box@1.1.0
- @spark-web/text@1.1.2
- @spark-web/theme@3.1.0
- @spark-web/utils@1.2.3
## 0.0.3
### Patch Changes
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
node version
- Updated dependencies
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
- @spark-web/box@1.0.9
- @spark-web/text@1.1.1
- @spark-web/theme@3.0.6
- @spark-web/utils@1.2.2
## 0.0.2
### Patch Changes
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
- Updated dependencies
[[`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
- @spark-web/text@1.1.0
- @spark-web/box@1.0.8
- @spark-web/theme@3.0.5
- @spark-web/utils@1.2.1
## 0.0.1
### Patch Changes
- [#187](https://github.com/brighte-labs/spark-web/pull/187)
[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)
Thanks [@tamm](https://github.com/tamm)! - Introduce status colours, as
different to foreground or background colours.
* [#187](https://github.com/brighte-labs/spark-web/pull/187)
[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)
Thanks [@tamm](https://github.com/tamm)! - Initial release of the badge
component
* Updated dependencies
[[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)]:
- @spark-web/theme@3.0.4