@spark-web/badge 0.0.4 → 0.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,5 +1,23 @@
1
1
  # @spark-web/badge
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#382](https://github.com/brighte-labs/spark-web/pull/382)
8
+ [`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)
9
+ Thanks [@dilipt-brighte](https://github.com/dilipt-brighte)! - Updates React
10
+ version to latest (18.2.0)
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ [[`955bf5d`](https://github.com/brighte-labs/spark-web/commit/955bf5d7698bfdf45e7f317aa3e726c81d3444c0)]:
16
+ - @spark-web/box@1.2.0
17
+ - @spark-web/text@1.2.0
18
+ - @spark-web/theme@3.2.0
19
+ - @spark-web/utils@1.3.0
20
+
3
21
  ## 0.0.4
4
22
 
5
23
  ### Patch Changes
@@ -19,12 +19,13 @@ var jsxRuntime = require('react/jsx-runtime');
19
19
  */
20
20
  function Badge(_ref) {
21
21
  var children = _ref.children,
22
- data = _ref.data,
23
- _ref$tone = _ref.tone,
24
- tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
22
+ data = _ref.data,
23
+ _ref$tone = _ref.tone,
24
+ tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
25
25
  var textSize = 'xsmall';
26
26
  return /*#__PURE__*/jsxRuntime.jsxs(box.Box, {
27
- data: data // Styles
27
+ data: data
28
+ // Styles
28
29
  ,
29
30
  display: "inline-flex",
30
31
  alignItems: "center",
@@ -55,8 +56,8 @@ function Badge(_ref) {
55
56
  */
56
57
  function IndicatorDot(_ref2) {
57
58
  var data = _ref2.data,
58
- label = _ref2.label,
59
- tone = _ref2.tone;
59
+ label = _ref2.label,
60
+ tone = _ref2.tone;
60
61
  var theme$1 = theme.useTheme();
61
62
  var dotSize = 8;
62
63
  return /*#__PURE__*/jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread({}, label ? {
@@ -73,7 +74,6 @@ function IndicatorDot(_ref2) {
73
74
  })
74
75
  }));
75
76
  }
76
-
77
77
  ////////////////////////////////////////////////////////////////////////////////
78
78
 
79
79
  /**
@@ -84,12 +84,12 @@ function IndicatorDot(_ref2) {
84
84
  */
85
85
  function IndicatorContainer(_ref3) {
86
86
  var children = _ref3.children,
87
- _ref3$size = _ref3.size,
88
- size = _ref3$size === void 0 ? 'standard' : _ref3$size;
87
+ _ref3$size = _ref3.size,
88
+ size = _ref3$size === void 0 ? 'standard' : _ref3$size;
89
89
  var theme$1 = theme.useTheme();
90
90
  var _theme$typography$tex = theme$1.typography.text[size],
91
- mobile = _theme$typography$tex.mobile,
92
- tablet = _theme$typography$tex.tablet;
91
+ mobile = _theme$typography$tex.mobile,
92
+ tablet = _theme$typography$tex.tablet;
93
93
  var responsiveHeight = theme$1.utils.responsiveStyles({
94
94
  mobile: {
95
95
  height: mobile.capHeight
@@ -19,12 +19,13 @@ var jsxRuntime = require('react/jsx-runtime');
19
19
  */
20
20
  function Badge(_ref) {
21
21
  var children = _ref.children,
22
- data = _ref.data,
23
- _ref$tone = _ref.tone,
24
- tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
22
+ data = _ref.data,
23
+ _ref$tone = _ref.tone,
24
+ tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
25
25
  var textSize = 'xsmall';
26
26
  return /*#__PURE__*/jsxRuntime.jsxs(box.Box, {
27
- data: data // Styles
27
+ data: data
28
+ // Styles
28
29
  ,
29
30
  display: "inline-flex",
30
31
  alignItems: "center",
@@ -55,8 +56,8 @@ function Badge(_ref) {
55
56
  */
56
57
  function IndicatorDot(_ref2) {
57
58
  var data = _ref2.data,
58
- label = _ref2.label,
59
- tone = _ref2.tone;
59
+ label = _ref2.label,
60
+ tone = _ref2.tone;
60
61
  var theme$1 = theme.useTheme();
61
62
  var dotSize = 8;
62
63
  return /*#__PURE__*/jsxRuntime.jsx(box.Box, _objectSpread(_objectSpread({}, label ? {
@@ -73,7 +74,6 @@ function IndicatorDot(_ref2) {
73
74
  })
74
75
  }));
75
76
  }
76
-
77
77
  ////////////////////////////////////////////////////////////////////////////////
78
78
 
79
79
  /**
@@ -84,12 +84,12 @@ function IndicatorDot(_ref2) {
84
84
  */
85
85
  function IndicatorContainer(_ref3) {
86
86
  var children = _ref3.children,
87
- _ref3$size = _ref3.size,
88
- size = _ref3$size === void 0 ? 'standard' : _ref3$size;
87
+ _ref3$size = _ref3.size,
88
+ size = _ref3$size === void 0 ? 'standard' : _ref3$size;
89
89
  var theme$1 = theme.useTheme();
90
90
  var _theme$typography$tex = theme$1.typography.text[size],
91
- mobile = _theme$typography$tex.mobile,
92
- tablet = _theme$typography$tex.tablet;
91
+ mobile = _theme$typography$tex.mobile,
92
+ tablet = _theme$typography$tex.tablet;
93
93
  var responsiveHeight = theme$1.utils.responsiveStyles({
94
94
  mobile: {
95
95
  height: mobile.capHeight
@@ -15,12 +15,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
15
15
  */
16
16
  function Badge(_ref) {
17
17
  var children = _ref.children,
18
- data = _ref.data,
19
- _ref$tone = _ref.tone,
20
- tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
18
+ data = _ref.data,
19
+ _ref$tone = _ref.tone,
20
+ tone = _ref$tone === void 0 ? 'neutral' : _ref$tone;
21
21
  var textSize = 'xsmall';
22
22
  return /*#__PURE__*/jsxs(Box, {
23
- data: data // Styles
23
+ data: data
24
+ // Styles
24
25
  ,
25
26
  display: "inline-flex",
26
27
  alignItems: "center",
@@ -51,8 +52,8 @@ function Badge(_ref) {
51
52
  */
52
53
  function IndicatorDot(_ref2) {
53
54
  var data = _ref2.data,
54
- label = _ref2.label,
55
- tone = _ref2.tone;
55
+ label = _ref2.label,
56
+ tone = _ref2.tone;
56
57
  var theme = useTheme();
57
58
  var dotSize = 8;
58
59
  return /*#__PURE__*/jsx(Box, _objectSpread(_objectSpread({}, label ? {
@@ -69,7 +70,6 @@ function IndicatorDot(_ref2) {
69
70
  })
70
71
  }));
71
72
  }
72
-
73
73
  ////////////////////////////////////////////////////////////////////////////////
74
74
 
75
75
  /**
@@ -80,12 +80,12 @@ function IndicatorDot(_ref2) {
80
80
  */
81
81
  function IndicatorContainer(_ref3) {
82
82
  var children = _ref3.children,
83
- _ref3$size = _ref3.size,
84
- size = _ref3$size === void 0 ? 'standard' : _ref3$size;
83
+ _ref3$size = _ref3.size,
84
+ size = _ref3$size === void 0 ? 'standard' : _ref3$size;
85
85
  var theme = useTheme();
86
86
  var _theme$typography$tex = theme.typography.text[size],
87
- mobile = _theme$typography$tex.mobile,
88
- tablet = _theme$typography$tex.tablet;
87
+ mobile = _theme$typography$tex.mobile,
88
+ tablet = _theme$typography$tex.tablet;
89
89
  var responsiveHeight = theme.utils.responsiveStyles({
90
90
  mobile: {
91
91
  height: mobile.capHeight
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/badge",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "homepage": "https://github.com/brighte-labs/spark-web#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,14 +17,14 @@
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.19.0",
19
19
  "@emotion/css": "^11.9.0",
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"
20
+ "@spark-web/box": "^1.2.0",
21
+ "@spark-web/text": "^1.2.0",
22
+ "@spark-web/theme": "^3.2.0",
23
+ "@spark-web/utils": "^1.3.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/react": "^17.0.12",
27
- "react": "^17.0.2"
26
+ "@types/react": "^18.2.0",
27
+ "react": "^18.2.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=17.0.2"