@trackunit/react-components 0.5.7 → 0.5.9

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/index.cjs.js CHANGED
@@ -3585,7 +3585,7 @@ const FloatingArrowContainer = ({ arrowRef, mode = "dark", }) => {
3585
3585
  * @param {TooltipProps} props - The props for the Tooltip component
3586
3586
  * @returns {JSX.Element} Tooltip component
3587
3587
  */
3588
- const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, childrenWrapperClassName, label, placement = "auto", mode = "dark", iconProps, id, }) => {
3588
+ const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, label, placement = "auto", mode = "dark", iconProps, id, }) => {
3589
3589
  const [isOpen, setIsOpen] = React__namespace.useState(false);
3590
3590
  const arrowRef = React__namespace.useRef(null);
3591
3591
  const { refs, floatingStyles, context } = react.useFloating({
@@ -3598,7 +3598,7 @@ const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, child
3598
3598
  const { isMounted } = react.useTransitionStatus(context);
3599
3599
  // Please don't try to move this into the component body directly
3600
3600
  // I tried and it caused infinite re-renders some places (for whatever reason)
3601
- const wrappedChildren = (jsxRuntime.jsx("div", { className: cvaTooltipContainer({ className: childrenWrapperClassName }), "data-testid": dataTestId ? `${dataTestId}-parent` : undefined, children: children }));
3601
+ const wrappedChildren = (jsxRuntime.jsx("div", { className: cvaTooltipContainer({ className }), "data-testid": dataTestId ? `${dataTestId}-parent` : undefined, children: children }));
3602
3602
  const openTooltip = React__namespace.useCallback(() => {
3603
3603
  if (disabled) {
3604
3604
  return;
package/index.esm.js CHANGED
@@ -3565,7 +3565,7 @@ const FloatingArrowContainer = ({ arrowRef, mode = "dark", }) => {
3565
3565
  * @param {TooltipProps} props - The props for the Tooltip component
3566
3566
  * @returns {JSX.Element} Tooltip component
3567
3567
  */
3568
- const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, childrenWrapperClassName, label, placement = "auto", mode = "dark", iconProps, id, }) => {
3568
+ const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, label, placement = "auto", mode = "dark", iconProps, id, }) => {
3569
3569
  const [isOpen, setIsOpen] = React.useState(false);
3570
3570
  const arrowRef = React.useRef(null);
3571
3571
  const { refs, floatingStyles, context } = useFloating({
@@ -3578,7 +3578,7 @@ const Tooltip = ({ children, dataTestId = "tool-tip", disabled, className, child
3578
3578
  const { isMounted } = useTransitionStatus(context);
3579
3579
  // Please don't try to move this into the component body directly
3580
3580
  // I tried and it caused infinite re-renders some places (for whatever reason)
3581
- const wrappedChildren = (jsx("div", { className: cvaTooltipContainer({ className: childrenWrapperClassName }), "data-testid": dataTestId ? `${dataTestId}-parent` : undefined, children: children }));
3581
+ const wrappedChildren = (jsx("div", { className: cvaTooltipContainer({ className }), "data-testid": dataTestId ? `${dataTestId}-parent` : undefined, children: children }));
3582
3582
  const openTooltip = React.useCallback(() => {
3583
3583
  if (disabled) {
3584
3584
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -28,10 +28,6 @@ export interface TooltipProps extends CommonProps {
28
28
  * The props for setting the icon on this tip.
29
29
  */
30
30
  iconProps?: Omit<IconProps, "type">;
31
- /**
32
- * The className to be passed to the children wrapper.
33
- */
34
- childrenWrapperClassName?: string;
35
31
  /**
36
32
  * Ihe id of the html element
37
33
  */
@@ -49,4 +45,4 @@ export interface TooltipProps extends CommonProps {
49
45
  * @param {TooltipProps} props - The props for the Tooltip component
50
46
  * @returns {JSX.Element} Tooltip component
51
47
  */
52
- export declare const Tooltip: ({ children, dataTestId, disabled, className, childrenWrapperClassName, label, placement, mode, iconProps, id, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
48
+ export declare const Tooltip: ({ children, dataTestId, disabled, className, label, placement, mode, iconProps, id, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;