@spark-web/badge 0.1.0 → 1.0.0-rc.1
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 +28 -0
- package/dist/declarations/src/badge.d.ts +2 -3
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/spark-web-badge.cjs.d.ts +1 -0
- package/dist/spark-web-badge.cjs.dev.js +11 -3
- package/dist/spark-web-badge.cjs.prod.js +11 -3
- package/dist/spark-web-badge.esm.js +11 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @spark-web/badge
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.1
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- rc
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @spark-web/theme@4.0.0-rc.1
|
|
13
|
+
- @spark-web/utils@2.0.0-rc.1
|
|
14
|
+
- @spark-web/text@2.0.0-rc.1
|
|
15
|
+
- @spark-web/box@2.0.0-rc.1
|
|
16
|
+
|
|
17
|
+
## 1.0.0-rc.0
|
|
18
|
+
|
|
19
|
+
### Major Changes
|
|
20
|
+
|
|
21
|
+
- rc versio
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies []:
|
|
26
|
+
- @spark-web/theme@4.0.0-rc.0
|
|
27
|
+
- @spark-web/text@2.0.0-rc.0
|
|
28
|
+
- @spark-web/box@2.0.0-rc.0
|
|
29
|
+
- @spark-web/utils@2.0.0-rc.0
|
|
30
|
+
|
|
3
31
|
## 0.1.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
3
2
|
/**
|
|
4
3
|
* Badge
|
|
@@ -6,7 +5,7 @@ import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
|
6
5
|
* A decorative indicator used to either call attention to an item or for
|
|
7
6
|
* communicating non-actionable, supplemental information.
|
|
8
7
|
*/
|
|
9
|
-
export declare function Badge({ children, data, tone }: BadgeProps): JSX.Element;
|
|
8
|
+
export declare function Badge({ children, data, tone }: BadgeProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
9
|
export declare type BadgeProps = {
|
|
11
10
|
/** The label of the badge. */
|
|
12
11
|
children: string | number;
|
|
@@ -20,7 +19,7 @@ export declare type BadgeProps = {
|
|
|
20
19
|
*
|
|
21
20
|
* A small decorative indicator used to call attention to an item.
|
|
22
21
|
*/
|
|
23
|
-
export declare function IndicatorDot({ data, label, tone }: IndicatorDotProps): JSX.Element;
|
|
22
|
+
export declare function IndicatorDot({ data, label, tone }: IndicatorDotProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
23
|
export declare type IndicatorDotProps = {
|
|
25
24
|
/** Sets data attributes on the component. */
|
|
26
25
|
data?: DataAttributeMap;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Badge, IndicatorDot } from
|
|
2
|
-
export type { BadgeProps, IndicatorDotProps } from
|
|
1
|
+
export { Badge, IndicatorDot } from "./badge.js";
|
|
2
|
+
export type { BadgeProps, IndicatorDotProps } from "./badge.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLWJhZGdlLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
-
var
|
|
6
|
+
var react = require('@emotion/react');
|
|
7
7
|
var box = require('@spark-web/box');
|
|
8
8
|
var text = require('@spark-web/text');
|
|
9
9
|
var theme = require('@spark-web/theme');
|
|
@@ -67,7 +67,7 @@ function IndicatorDot(_ref2) {
|
|
|
67
67
|
}), {}, {
|
|
68
68
|
data: data,
|
|
69
69
|
borderRadius: "full",
|
|
70
|
-
|
|
70
|
+
css: react.css({
|
|
71
71
|
height: dotSize,
|
|
72
72
|
width: dotSize,
|
|
73
73
|
background: theme$1.color.status[tone]
|
|
@@ -104,10 +104,18 @@ function IndicatorContainer(_ref3) {
|
|
|
104
104
|
"aria-hidden": "true",
|
|
105
105
|
cursor: "default",
|
|
106
106
|
flexShrink: 0,
|
|
107
|
-
|
|
107
|
+
css: react.css(responsiveHeight),
|
|
108
108
|
children: children
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Shared Types
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/** The tone of the badge. */
|
|
119
|
+
|
|
112
120
|
exports.Badge = Badge;
|
|
113
121
|
exports.IndicatorDot = IndicatorDot;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
-
var
|
|
6
|
+
var react = require('@emotion/react');
|
|
7
7
|
var box = require('@spark-web/box');
|
|
8
8
|
var text = require('@spark-web/text');
|
|
9
9
|
var theme = require('@spark-web/theme');
|
|
@@ -67,7 +67,7 @@ function IndicatorDot(_ref2) {
|
|
|
67
67
|
}), {}, {
|
|
68
68
|
data: data,
|
|
69
69
|
borderRadius: "full",
|
|
70
|
-
|
|
70
|
+
css: react.css({
|
|
71
71
|
height: dotSize,
|
|
72
72
|
width: dotSize,
|
|
73
73
|
background: theme$1.color.status[tone]
|
|
@@ -104,10 +104,18 @@ function IndicatorContainer(_ref3) {
|
|
|
104
104
|
"aria-hidden": "true",
|
|
105
105
|
cursor: "default",
|
|
106
106
|
flexShrink: 0,
|
|
107
|
-
|
|
107
|
+
css: react.css(responsiveHeight),
|
|
108
108
|
children: children
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Shared Types
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/** The tone of the badge. */
|
|
119
|
+
|
|
112
120
|
exports.Badge = Badge;
|
|
113
121
|
exports.IndicatorDot = IndicatorDot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
|
|
2
|
-
import { css } from '@emotion/
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
3
|
import { Box } from '@spark-web/box';
|
|
4
4
|
import { Text } from '@spark-web/text';
|
|
5
5
|
import { useTheme } from '@spark-web/theme';
|
|
@@ -63,7 +63,7 @@ function IndicatorDot(_ref2) {
|
|
|
63
63
|
}), {}, {
|
|
64
64
|
data: data,
|
|
65
65
|
borderRadius: "full",
|
|
66
|
-
|
|
66
|
+
css: css({
|
|
67
67
|
height: dotSize,
|
|
68
68
|
width: dotSize,
|
|
69
69
|
background: theme.color.status[tone]
|
|
@@ -100,9 +100,17 @@ function IndicatorContainer(_ref3) {
|
|
|
100
100
|
"aria-hidden": "true",
|
|
101
101
|
cursor: "default",
|
|
102
102
|
flexShrink: 0,
|
|
103
|
-
|
|
103
|
+
css: css(responsiveHeight),
|
|
104
104
|
children: children
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Shared Types
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/** The tone of the badge. */
|
|
115
|
+
|
|
108
116
|
export { Badge, IndicatorDot };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/badge",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.
|
|
19
|
-
"@emotion/
|
|
20
|
-
"@spark-web/box": "^
|
|
21
|
-
"@spark-web/text": "^
|
|
22
|
-
"@spark-web/theme": "^
|
|
23
|
-
"@spark-web/utils": "^
|
|
18
|
+
"@babel/runtime": "^7.25.0",
|
|
19
|
+
"@emotion/react": "^11.13.5",
|
|
20
|
+
"@spark-web/box": "^2.0.0-rc.1",
|
|
21
|
+
"@spark-web/text": "^2.0.0-rc.1",
|
|
22
|
+
"@spark-web/theme": "^4.0.0-rc.1",
|
|
23
|
+
"@spark-web/utils": "^2.0.0-rc.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.2.0",
|