@spark-web/badge 0.0.2 → 0.0.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
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# @spark-web/badge
|
|
2
|
+
|
|
3
|
+
## 0.0.4
|
|
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/text@1.1.2
|
|
30
|
+
- @spark-web/theme@3.1.0
|
|
31
|
+
- @spark-web/utils@1.2.3
|
|
32
|
+
|
|
33
|
+
## 0.0.3
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [#208](https://github.com/brighte-labs/spark-web/pull/208)
|
|
38
|
+
[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)
|
|
39
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required
|
|
40
|
+
node version
|
|
41
|
+
|
|
42
|
+
- Updated dependencies
|
|
43
|
+
[[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]:
|
|
44
|
+
- @spark-web/box@1.0.9
|
|
45
|
+
- @spark-web/text@1.1.1
|
|
46
|
+
- @spark-web/theme@3.0.6
|
|
47
|
+
- @spark-web/utils@1.2.2
|
|
48
|
+
|
|
49
|
+
## 0.0.2
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- [#197](https://github.com/brighte-labs/spark-web/pull/197)
|
|
54
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)
|
|
55
|
+
Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages
|
|
56
|
+
|
|
57
|
+
- Updated dependencies
|
|
58
|
+
[[`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e),
|
|
59
|
+
[`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]:
|
|
60
|
+
- @spark-web/text@1.1.0
|
|
61
|
+
- @spark-web/box@1.0.8
|
|
62
|
+
- @spark-web/theme@3.0.5
|
|
63
|
+
- @spark-web/utils@1.2.1
|
|
64
|
+
|
|
65
|
+
## 0.0.1
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- [#187](https://github.com/brighte-labs/spark-web/pull/187)
|
|
70
|
+
[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)
|
|
71
|
+
Thanks [@tamm](https://github.com/tamm)! - Introduce status colours, as
|
|
72
|
+
different to foreground or background colours.
|
|
73
|
+
|
|
74
|
+
* [#187](https://github.com/brighte-labs/spark-web/pull/187)
|
|
75
|
+
[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)
|
|
76
|
+
Thanks [@tamm](https://github.com/tamm)! - Initial release of the badge
|
|
77
|
+
component
|
|
78
|
+
|
|
79
|
+
* Updated dependencies
|
|
80
|
+
[[`7b0cfdf`](https://github.com/brighte-labs/spark-web/commit/7b0cfdf6fb4d32b86e00050d8869ac2b9787cf41)]:
|
|
81
|
+
- @spark-web/theme@3.0.4
|
package/README.md
CHANGED
|
@@ -32,19 +32,11 @@ return (
|
|
|
32
32
|
|
|
33
33
|
### Badge
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
| -------- | ------------------------------------------------------------------------ | ------- | -------------------------------------- |
|
|
37
|
-
| children | string \|number | | The label of the badge. |
|
|
38
|
-
| data? | [DataAttributeMap][data-attribute-map] | | Sets data attributes on the component. |
|
|
39
|
-
| tone? | "accent" \| "caution" \| "critical" \| "info" \| "neutral" \| "positive" | | The tone of the badge. |
|
|
35
|
+
<PropsTable displayName="Badge" />
|
|
40
36
|
|
|
41
37
|
### IndicatorDot
|
|
42
38
|
|
|
43
|
-
|
|
44
|
-
| ------ | ------------------------------------------------------------------------ | ------- | ------------------------------------------------------------------------------------------------- |
|
|
45
|
-
| data? | [DataAttributeMap][data-attribute-map] | | Sets data attributes on the component. |
|
|
46
|
-
| label? | string | | When the intent isn't provided by text, you must supply an "aria-label" for assistive tech users. |
|
|
47
|
-
| tone? | "accent" \| "caution" \| "critical" \| "info" \| "neutral" \| "positive" | | The tone of the badge. |
|
|
39
|
+
<PropsTable displayName="IndicatorDot" />
|
|
48
40
|
|
|
49
41
|
[data-attribute-map]:
|
|
50
42
|
https://github.com/brighte-labs/spark-web/blob/e7f6f4285b4cfd876312cc89fbdd094039aa239a/packages/utils/src/internal/buildDataAttributes.ts#L1
|
|
@@ -10,7 +10,7 @@ export declare function Badge({ children, data, tone }: BadgeProps): JSX.Element
|
|
|
10
10
|
export declare type BadgeProps = {
|
|
11
11
|
/** The label of the badge. */
|
|
12
12
|
children: string | number;
|
|
13
|
-
/**
|
|
13
|
+
/** Sets data attributes on the component. */
|
|
14
14
|
data?: DataAttributeMap;
|
|
15
15
|
/** The tone of the badge. */
|
|
16
16
|
tone?: BadgeTones;
|
|
@@ -22,12 +22,9 @@ export declare type BadgeProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function IndicatorDot({ data, label, tone }: IndicatorDotProps): JSX.Element;
|
|
24
24
|
export declare type IndicatorDotProps = {
|
|
25
|
-
/**
|
|
25
|
+
/** Sets data attributes on the component. */
|
|
26
26
|
data?: DataAttributeMap;
|
|
27
|
-
/**
|
|
28
|
-
* When the intent isn't provided by text, you must supply an "aria-label" for
|
|
29
|
-
* assistive tech users.
|
|
30
|
-
*/
|
|
27
|
+
/** When the intent isn't provided by text, you must supply an "aria-label" for assistive tech users. */
|
|
31
28
|
label?: string;
|
|
32
29
|
/** The tone of the indicator dot. */
|
|
33
30
|
tone: BadgeTones;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Badge, IndicatorDot } from './
|
|
2
|
-
export type { BadgeProps, IndicatorDotProps } from './
|
|
1
|
+
export { Badge, IndicatorDot } from './badge';
|
|
2
|
+
export type { BadgeProps, IndicatorDotProps } from './badge';
|
package/package.json
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/badge",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.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/badge"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/spark-web-badge.cjs.js",
|
|
6
11
|
"module": "dist/spark-web-badge.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/text": "^1.1.
|
|
15
|
-
"@spark-web/theme": "^3.0
|
|
16
|
-
"@spark-web/utils": "^1.2.
|
|
20
|
+
"@spark-web/box": "^1.1.0",
|
|
21
|
+
"@spark-web/text": "^1.1.2",
|
|
22
|
+
"@spark-web/theme": "^3.1.0",
|
|
23
|
+
"@spark-web/utils": "^1.2.3"
|
|
17
24
|
},
|
|
18
25
|
"devDependencies": {
|
|
19
26
|
"@types/react": "^17.0.12",
|
|
@@ -23,6 +30,6 @@
|
|
|
23
30
|
"react": ">=17.0.2"
|
|
24
31
|
},
|
|
25
32
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
33
|
+
"node": ">=14"
|
|
27
34
|
}
|
|
28
35
|
}
|