@useblu/ocean-react 1.33.0 → 1.33.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 +6 -0
- package/index.es.js +1 -1
- package/index.es.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.33.1](https://github.com/ocean-ds/ocean-web/compare/v1.33.0...v1.33.1) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **badge:** fixes badge not being displayed properly on count=0 ([#991](https://github.com/ocean-ds/ocean-web/issues/991)) ([6255e31](https://github.com/ocean-ds/ocean-web/commit/6255e3150c7e4b372e34964fa7936e3541621c2c))
|
|
11
|
+
|
|
6
12
|
# [1.33.0](https://github.com/ocean-ds/ocean-web/compare/v1.32.0...v1.33.0) (2022-07-07)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/index.es.js
CHANGED
|
@@ -25447,7 +25447,7 @@ var Badge = e$1.forwardRef(function Badge(_a, ref) {
|
|
|
25447
25447
|
return (e$1.createElement("div", __assign({ ref: ref, role: "tag", className: classNames('ods-badge', "ods-badge--".concat(variation), "ods-badge--".concat(color), className, {
|
|
25448
25448
|
'ods-badge--overflow': count && count > 99
|
|
25449
25449
|
}) }, rest),
|
|
25450
|
-
variation !== 'tiny' && count && (e$1.createElement("div", { className: "ods-badge__content ods-badge__count" }, countToShow)),
|
|
25450
|
+
variation !== 'tiny' && typeof count !== 'undefined' && (e$1.createElement("div", { className: "ods-badge__content ods-badge__count" }, countToShow)),
|
|
25451
25451
|
variation !== 'tiny' && typeof count === 'undefined' && children && (e$1.createElement("div", { className: "ods-badge__content ods-badge__text" }, children)),
|
|
25452
25452
|
variation === 'tiny' && e$1.createElement("div", { className: "ods-badge__content" })));
|
|
25453
25453
|
});
|