@ballistix.digital/react-components 9.0.0 → 9.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/dist/index.js CHANGED
@@ -827,7 +827,7 @@ var $361f07a251f13e6f$export$2e2bcd8739ae039 = $361f07a251f13e6f$var$Badge;
827
827
 
828
828
 
829
829
  var $9cacad684e30e1ba$var$base = {
830
- container: 'w-fit h-fit relative group/tooltip',
830
+ container: 'w-fit h-fit inline-block',
831
831
  content: 'absolute flex justify-center items-center z-200 tooltip-animate px-4 py-2 border whitespace-nowrap border-palette-grayDarker bg-white font-light text-xs rounded-xs',
832
832
  arrow: {
833
833
  stroke: '#e5e7eb',
@@ -897,17 +897,18 @@ var $861db172649fba92$var$Tooltip = function(props) {
897
897
  return result;
898
898
  };
899
899
  var styles = handleGenerateStyle();
900
- var childrenWithProps = (0, ($parcel$interopDefault($iA2ta$react))).Children.map(children, function(child) {
901
- var props = $861db172649fba92$var$__assign({
902
- ref: refs.setReference
903
- }, getReferenceProps());
904
- if (/*#__PURE__*/ (0, ($parcel$interopDefault($iA2ta$react))).isValidElement(child)) return /*#__PURE__*/ (0, ($parcel$interopDefault($iA2ta$react))).cloneElement(child, props);
905
- return child;
900
+ var triggerContent = (0, $iA2ta$reactjsxruntime.jsx)("div", $861db172649fba92$var$__assign({
901
+ ref: refs.setReference
902
+ }, getReferenceProps(), {
903
+ className: styles.container,
904
+ children: children
905
+ }));
906
+ if (isHidden) return (0, $iA2ta$reactjsxruntime.jsx)((0, $iA2ta$reactjsxruntime.Fragment), {
907
+ children: children
906
908
  });
907
- if (isHidden) return children;
908
909
  return (0, $iA2ta$reactjsxruntime.jsxs)((0, $iA2ta$reactjsxruntime.Fragment), {
909
910
  children: [
910
- childrenWithProps,
911
+ triggerContent,
911
912
  isOpen && (0, $iA2ta$reactjsxruntime.jsxs)("div", $861db172649fba92$var$__assign({
912
913
  "data-cy": dataCy,
913
914
  ref: refs.setFloating,