revdev-components 0.187.0 → 0.189.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.
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { RegularIconName } from "../icon";
3
3
  export interface HelpTipProps {
4
- title: React.ReactNode;
4
+ title?: React.ReactNode;
5
+ children?: React.ReactNode;
5
6
  className?: string;
6
7
  iconName?: RegularIconName;
7
8
  href?: string;
package/build/index.js CHANGED
@@ -5787,9 +5787,9 @@ var AudioPlayer = function (_a) {
5787
5787
  var s = {"icon":"index-module_icon__-KK3y"};
5788
5788
 
5789
5789
  var HelpTip = function (_a) {
5790
- var title = _a.title, className = _a.className, _b = _a.iconName, iconName = _b === void 0 ? "help" : _b, href = _a.href, target = _a.target;
5790
+ var title = _a.title, className = _a.className, _b = _a.iconName, iconName = _b === void 0 ? "help" : _b, href = _a.href, target = _a.target, children = _a.children;
5791
5791
  var iconNode = React.createElement(RegularIcon, { name: iconName, className: classNames(s.icon, className) });
5792
- return (React.createElement(AppTooltip, { title: title, placement: "top" }, href ? (React.createElement(AppLink, { href: href, target: target }, iconNode)) : (iconNode)));
5792
+ return (React.createElement(AppTooltip, { title: title || children, placement: "top" }, href ? (React.createElement(AppLink, { href: href, target: target }, iconNode)) : (iconNode)));
5793
5793
  };
5794
5794
 
5795
5795
  exports.AlfaAttributor = AlfaAttributor;
package/build/styles.css CHANGED
@@ -34,6 +34,7 @@
34
34
  --backLayoutHeaderBackgroundColor: white;
35
35
  --backLayoutSpinColor: rgb(58, 63, 81);
36
36
  --iconDropBackgroundColor: white;
37
+ --helpTipMargin: none;
37
38
  }
38
39
 
39
40
  html,
@@ -663,5 +664,5 @@ body {
663
664
  }
664
665
  .index-module_icon__-KK3y {
665
666
  font-size: 0.8em;
666
- margin: 0 0.4em;
667
+ margin: var(--helpTipMargin);
667
668
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.187.0",
3
+ "version": "0.189.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {