@spark-web/badge 5.1.0-rc.0 → 5.1.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
CHANGED
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
# @spark-web/badge
|
|
2
2
|
|
|
3
|
-
## 5.1.0
|
|
3
|
+
## 5.1.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- [#667](https://github.com/brighte-labs/spark-web/pull/667)
|
|
8
|
+
[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)
|
|
9
|
+
Thanks [@Leo704099](https://github.com/Leo704099)! - Support react 17 to 19
|
|
8
10
|
|
|
9
11
|
### Patch Changes
|
|
10
12
|
|
|
11
|
-
- Updated dependencies
|
|
12
|
-
-
|
|
13
|
-
- @spark-web/
|
|
14
|
-
- @spark-web/
|
|
15
|
-
- @spark-web/
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
[[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)]:
|
|
15
|
+
- @spark-web/theme@5.13.0
|
|
16
|
+
- @spark-web/utils@5.1.0
|
|
17
|
+
- @spark-web/text@5.3.0
|
|
18
|
+
- @spark-web/box@6.0.0
|
|
19
|
+
|
|
20
|
+
## 5.0.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#698](https://github.com/brighte-labs/spark-web/pull/698)
|
|
25
|
+
[`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)
|
|
26
|
+
Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Bump version
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
[[`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)]:
|
|
30
|
+
- @spark-web/box@5.2.2
|
|
31
|
+
- @spark-web/text@5.2.3
|
|
32
|
+
- @spark-web/theme@5.12.1
|
|
33
|
+
|
|
34
|
+
## 5.0.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
[[`1995db7`](https://github.com/brighte-labs/spark-web/commit/1995db7f4342803732c7648ab3ca6d32442cc347)]:
|
|
40
|
+
- @spark-web/theme@5.12.0
|
|
41
|
+
- @spark-web/text@5.2.2
|
|
16
42
|
|
|
17
43
|
## 5.0.0
|
|
18
44
|
|
|
@@ -6,7 +6,7 @@ import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
|
6
6
|
* communicating non-actionable, supplemental information.
|
|
7
7
|
*/
|
|
8
8
|
export declare function Badge({ children, data, tone }: BadgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
9
|
+
export type BadgeProps = {
|
|
10
10
|
/** The label of the badge. */
|
|
11
11
|
children: string | number;
|
|
12
12
|
/** Sets data attributes on the component. */
|
|
@@ -20,7 +20,7 @@ export declare type BadgeProps = {
|
|
|
20
20
|
* A small decorative indicator used to call attention to an item.
|
|
21
21
|
*/
|
|
22
22
|
export declare function IndicatorDot({ data, label, tone }: IndicatorDotProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
-
export
|
|
23
|
+
export type IndicatorDotProps = {
|
|
24
24
|
/** Sets data attributes on the component. */
|
|
25
25
|
data?: DataAttributeMap;
|
|
26
26
|
/** When the intent isn't provided by text, you must supply an "aria-label" for assistive tech users. */
|
|
@@ -32,5 +32,5 @@ export declare type IndicatorDotProps = {
|
|
|
32
32
|
* Shared Types
|
|
33
33
|
*/
|
|
34
34
|
/** The tone of the badge. */
|
|
35
|
-
|
|
35
|
+
type BadgeTones = 'accent' | 'caution' | 'critical' | 'info' | 'neutral' | 'positive';
|
|
36
36
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./declarations/src/index";
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
2
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLWJhZGdlLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/badge",
|
|
3
|
-
"version": "5.1.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"@emotion/react": "^11.14.0",
|
|
20
|
-
"@spark-web/box": "^6.0.0
|
|
21
|
-
"@spark-web/text": "^5.3.0
|
|
22
|
-
"@spark-web/theme": "^5.
|
|
23
|
-
"@spark-web/utils": "^5.1.0
|
|
20
|
+
"@spark-web/box": "^6.0.0",
|
|
21
|
+
"@spark-web/text": "^5.3.0",
|
|
22
|
+
"@spark-web/theme": "^5.13.0",
|
|
23
|
+
"@spark-web/utils": "^5.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^19.1.0",
|
|
27
27
|
"react": "^19.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"react": "
|
|
30
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=14"
|