@trackunit/react-components 0.1.145 → 0.1.147

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
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var React = require('react');
7
- var tailwindStyledComponents = require('@trackunit/tailwind-styled-components');
8
7
  var cssClassVarianceUtilities = require('@trackunit/css-class-variance-utilities');
9
8
  var uiIcons = require('@trackunit/ui-icons');
10
9
  var ReactDOM = require('react-dom');
@@ -351,9 +350,13 @@ const cvaIconButtonContainer = cssClassVarianceUtilities.cvaMerge(["w-5", "h-5",
351
350
  */
352
351
  const Button$1 = React__namespace.forwardRef((_a, ref) => {
353
352
  var { onClick, children, loading, disabled, className, fullWidth = false, prefix, suffix, color = "primary", variant = "filled", type = "button", size = "medium", square = false, dataTestId, title, role, tabIndex, renderAs = "button", circular } = _a, rest = __rest$1(_a, ["onClick", "children", "loading", "disabled", "className", "fullWidth", "prefix", "suffix", "color", "variant", "type", "size", "square", "dataTestId", "title", "role", "tabIndex", "renderAs", "circular"]);
354
- return (jsxRuntime.jsxs(StyledButton, Object.assign({ "$as": renderAs, onClick: onClick, disabled: disabled || loading, type: type, className: cvaButton({ rounded: circular, disabled, size, square, color, variant, fullWidth, className }), title: title, "aria-label": title, role: role, tabIndex: tabIndex, "data-testid": dataTestId, ref: ref }, rest, { children: [loading && jsxRuntime.jsx(Spinner, { className: cvaButtonSpinner(), centering: "vertically" }), prefix, children, suffix] })));
353
+ return React__namespace.createElement(renderAs, Object.assign({ ref,
354
+ title,
355
+ type,
356
+ role,
357
+ onClick,
358
+ tabIndex, disabled: disabled || loading, className: cvaButton({ rounded: circular, disabled, size, square, color, variant, fullWidth, className }), "aria-label": title, "data-testid": dataTestId, children: (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [loading && jsxRuntime.jsx(Spinner, { className: cvaButtonSpinner(), centering: "vertically" }), prefix, children, suffix] })) }, rest));
355
359
  });
356
- const StyledButton = tailwindStyledComponents.tw.button ``;
357
360
 
358
361
  const IconButton = React__namespace.forwardRef((_a, ref) => {
359
362
  var { icon, size = "small", square = true, loading, disabled } = _a, rest = __rest$1(_a, ["icon", "size", "square", "loading", "disabled"]);
@@ -512,11 +515,11 @@ const cvaText = cssClassVarianceUtilities.cvaMerge(["m-0", "relative", "text-sm"
512
515
  * @param {TextProps} props - The props for the Text component
513
516
  * @returns {JSX.Element} Text component
514
517
  */
515
- const Text = ({ children, type = "p", size = "medium", align = "left", weight = "normal", underline = false, inverted = false, subtle = false, italicize = false, uppercase = false, className, dataTestId, }) => {
518
+ const Text = (_a) => {
519
+ var { children, type = "p", size = "medium", align = "left", weight = "normal", underline = false, inverted = false, subtle = false, italicize = false, uppercase = false, className, dataTestId } = _a, rest = __rest$1(_a, ["children", "type", "size", "align", "weight", "underline", "inverted", "subtle", "italicize", "uppercase", "className", "dataTestId"]);
516
520
  const color = inverted && subtle ? "subtleInverted" : inverted ? "inverted" : subtle ? "subtle" : "default";
517
- return (jsxRuntime.jsx(StyledText, { "$as": type, className: cvaText({ color, uppercase, align, italic: italicize, size, underline, weight, className }), "data-testid": dataTestId, children: children }));
521
+ return React__namespace.createElement(type, Object.assign({ className: cvaText({ color, uppercase, align, italic: italicize, size, underline, weight, className }), "data-testid": dataTestId, children }, rest));
518
522
  };
519
- const StyledText = tailwindStyledComponents.tw.text ``;
520
523
 
521
524
  const cvaAlert = cssClassVarianceUtilities.cvaMerge(["flex", "relative", "p-4", "rounded"], {
522
525
  variants: {
@@ -833,16 +836,16 @@ const cvaHeading = cssClassVarianceUtilities.cvaMerge(["m-0", "leading-normal",
833
836
  * @param {HeadingProps} props - The props for the Heading component
834
837
  * @returns {JSX.Element} Heading component
835
838
  */
836
- const Heading = ({ children, variant = "primary", inverted = false, subtle = false, className, dataTestId, }) => {
839
+ const Heading = (_a) => {
840
+ var { variant = "primary", inverted = false, subtle = false, className, dataTestId } = _a, rest = __rest$1(_a, ["variant", "inverted", "subtle", "className", "dataTestId"]);
837
841
  const semanticType = {
838
842
  primary: "h1",
839
843
  secondary: "h2",
840
844
  tertiary: "h3",
841
845
  subtitle: "h4",
842
846
  };
843
- return (jsxRuntime.jsx(StyledHeading, { "$as": semanticType[variant], className: cvaHeading({ subtle, inverted, size: variant, className }), "data-testid": dataTestId, children: children }));
847
+ return React__namespace.createElement(semanticType[variant], Object.assign(Object.assign({}, rest), { className: cvaHeading({ subtle, inverted, size: variant, className }), "data-testid": dataTestId }));
844
848
  };
845
- const StyledHeading = tailwindStyledComponents.tw.div ``;
846
849
 
847
850
  /**
848
851
  * Header for Cards and Modals.
@@ -18933,6 +18936,37 @@ const ExternalLink = ({ rel = "noreferrer", target = "_blank", href, className,
18933
18936
  return (jsxRuntime.jsx("a", { "data-testid": dataTestId, className: className, title: title, href: href, rel: rel, target: target, children: children }));
18934
18937
  };
18935
18938
 
18939
+ const cvaTooltipFlexContainer = cssClassVarianceUtilities.cvaMerge("inline-flex");
18940
+ const cvaTooltipPopover = cssClassVarianceUtilities.cvaMerge("pointer-events-none origin-center");
18941
+ cssClassVarianceUtilities.cvaMerge("pointer-events-none origin-center");
18942
+ const cvaTooltipContent = cssClassVarianceUtilities.cvaMerge("p-2 rounded max-w-sm", {
18943
+ variants: {
18944
+ color: {
18945
+ light: "shadow-md bg-white",
18946
+ dark: "text-white bg-neutral-800",
18947
+ },
18948
+ },
18949
+ defaultVariants: {
18950
+ color: "light",
18951
+ },
18952
+ });
18953
+
18954
+ /**
18955
+ * The Tooltip component is used to show helpful tips or contextual information to the users.
18956
+ *
18957
+ * @param {TooltipProps} props - The props for the Tooltip component
18958
+ * @returns {JSX.Element} Tooltip component
18959
+ */
18960
+ const Tooltip = (_a) => {
18961
+ var { children, dataTestId, disabled, className } = _a, rest = __rest$1(_a, ["children", "dataTestId", "disabled", "className"]);
18962
+ const wrappedChildren = (jsxRuntime.jsx("div", { className: cvaTooltipFlexContainer({ className }), "data-testid": dataTestId && `${dataTestId}-parent`, children: children }));
18963
+ if (disabled) {
18964
+ return wrappedChildren;
18965
+ }
18966
+ return (jsxRuntime.jsx(TooltipContainer, Object.assign({ dataTestId: dataTestId }, rest, { children: wrappedChildren })));
18967
+ };
18968
+ const TooltipContainer = ({ label, placement = "bottom", mode = "dark", contentTextType = "p", children, dataTestId, }) => (jsxRuntime.jsxs(Popover, { className: cvaTooltipPopover(), placement: placement, activation: { hover: true }, dataTestId: dataTestId !== null && dataTestId !== void 0 ? dataTestId : "", children: [jsxRuntime.jsx(PopoverTrigger, { children: children }), jsxRuntime.jsx(PopoverContent, { children: jsxRuntime.jsx("div", { "aria-label": typeof label === "string" ? label : undefined, className: cvaTooltipContent({ color: mode }), children: jsxRuntime.jsx(Text, { inverted: mode === "dark", type: contentTextType, children: label }) }) })] }));
18969
+
18936
18970
  const cvaIndicator = cssClassVarianceUtilities.cvaMerge(["flex", "items-center"]);
18937
18971
  const cvaIndicatorIcon = cssClassVarianceUtilities.cvaMerge(["mr-2"]);
18938
18972
  const cvaIndicatorLabel = cssClassVarianceUtilities.cvaMerge(["pl-2", "pr-2", "font-medium", "capitalize", "text-sm", "xl:text-base"]);
@@ -19033,7 +19067,7 @@ const cvaIndicatorIconBackground = cssClassVarianceUtilities.cvaMerge(["rounded-
19033
19067
  */
19034
19068
  const Indicator = (_a) => {
19035
19069
  var { dataTestId, icon, label, color = "unknown", withBackground = true, withLabel = true, ping = false, className } = _a, rest = __rest$1(_a, ["dataTestId", "icon", "label", "color", "withBackground", "withLabel", "ping", "className"]);
19036
- return (jsxRuntime.jsxs("div", Object.assign({ className: cvaIndicator({ className }), "data-testid": dataTestId }, rest, { title: !withLabel ? label : undefined, children: [jsxRuntime.jsxs("div", { className: cvaIndicatorIconBackground({ color, background: withBackground ? "visible" : "hidden" }), "data-testid": dataTestId ? `${dataTestId}-background` : "indicator-background", children: [ping && (jsxRuntime.jsx("div", { className: cvaIndicatorPing({ color }), "data-testid": dataTestId ? `${dataTestId}-ping` : "indicator-ping" })), icon] }), label !== undefined && withLabel && (jsxRuntime.jsx("div", { className: cvaIndicatorLabel(), "data-testid": dataTestId ? `${dataTestId}-label` : "indicator-label", children: label }))] })));
19070
+ return (jsxRuntime.jsx(Tooltip, { disabled: withLabel, label: label, children: jsxRuntime.jsxs("div", Object.assign({ className: cvaIndicator({ className }), "data-testid": dataTestId, "aria-label": label }, rest, { children: [jsxRuntime.jsxs("div", { className: cvaIndicatorIconBackground({ color, background: withBackground ? "visible" : "hidden" }), "data-testid": dataTestId ? `${dataTestId}-background` : "indicator-background", children: [ping && (jsxRuntime.jsx("div", { className: cvaIndicatorPing({ color }), "data-testid": dataTestId ? `${dataTestId}-ping` : "indicator-ping" })), icon] }), label !== undefined && withLabel && (jsxRuntime.jsx("div", { className: cvaIndicatorLabel(), "data-testid": dataTestId ? `${dataTestId}-label` : "indicator-label", children: label }))] })) }));
19037
19071
  };
19038
19072
 
19039
19073
  const cvaMenuItem = cssClassVarianceUtilities.cvaMerge([
@@ -38832,37 +38866,6 @@ function defaultHeader(date, showTime) {
38832
38866
  })})`;
38833
38867
  }
38834
38868
 
38835
- const cvaTooltipFlexContainer = cssClassVarianceUtilities.cvaMerge("inline-flex");
38836
- const cvaTooltipPopover = cssClassVarianceUtilities.cvaMerge("pointer-events-none origin-center");
38837
- cssClassVarianceUtilities.cvaMerge("pointer-events-none origin-center");
38838
- const cvaTooltipContent = cssClassVarianceUtilities.cvaMerge("p-2 rounded max-w-sm", {
38839
- variants: {
38840
- color: {
38841
- light: "shadow-md bg-white",
38842
- dark: "text-white bg-neutral-800",
38843
- },
38844
- },
38845
- defaultVariants: {
38846
- color: "light",
38847
- },
38848
- });
38849
-
38850
- /**
38851
- * The Tooltip component is used to show helpful tips or contextual information to the users.
38852
- *
38853
- * @param {TooltipProps} props - The props for the Tooltip component
38854
- * @returns {JSX.Element} Tooltip component
38855
- */
38856
- const Tooltip = (_a) => {
38857
- var { children, dataTestId, disabled, className } = _a, rest = __rest$1(_a, ["children", "dataTestId", "disabled", "className"]);
38858
- const wrappedChildren = (jsxRuntime.jsx("div", { className: cvaTooltipFlexContainer({ className }), "data-testid": dataTestId && `${dataTestId}-parent`, children: children }));
38859
- if (disabled) {
38860
- return wrappedChildren;
38861
- }
38862
- return (jsxRuntime.jsx(TooltipContainer, Object.assign({ dataTestId: dataTestId }, rest, { children: wrappedChildren })));
38863
- };
38864
- const TooltipContainer = ({ label, placement = "bottom", mode = "dark", contentTextType = "p", children, dataTestId, }) => (jsxRuntime.jsxs(Popover, { className: cvaTooltipPopover(), placement: placement, activation: { hover: true }, dataTestId: dataTestId !== null && dataTestId !== void 0 ? dataTestId : "", children: [jsxRuntime.jsx(PopoverTrigger, { children: children }), jsxRuntime.jsx(PopoverContent, { children: jsxRuntime.jsx("div", { className: cvaTooltipContent({ color: mode }), children: jsxRuntime.jsx(Text, { inverted: mode === "dark", type: contentTextType, children: label }) }) })] }));
38865
-
38866
38869
  const cvaValueBar = cssClassVarianceUtilities.cvaMerge(["w-full"], {
38867
38870
  variants: {
38868
38871
  size: {
package/index.esm.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { useRef, useCallback, useEffect, useState, useLayoutEffect, useMemo, createContext, forwardRef, useContext, isValidElement, cloneElement, memo, Children, useReducer, Component } from 'react';
4
- import { tw } from '@trackunit/tailwind-styled-components';
5
4
  import { cvaMerge } from '@trackunit/css-class-variance-utilities';
6
5
  import { HeroIconsArray, heroIconLookup, TrackunitSolidIconsArray, TrackunitOutlineIconsArray, trackunitIconLookup } from '@trackunit/ui-icons';
7
6
  import * as ReactDOM from 'react-dom';
@@ -324,9 +323,13 @@ const cvaIconButtonContainer = cvaMerge(["w-5", "h-5", "flex", "justify-center",
324
323
  */
325
324
  const Button$1 = React.forwardRef((_a, ref) => {
326
325
  var { onClick, children, loading, disabled, className, fullWidth = false, prefix, suffix, color = "primary", variant = "filled", type = "button", size = "medium", square = false, dataTestId, title, role, tabIndex, renderAs = "button", circular } = _a, rest = __rest$1(_a, ["onClick", "children", "loading", "disabled", "className", "fullWidth", "prefix", "suffix", "color", "variant", "type", "size", "square", "dataTestId", "title", "role", "tabIndex", "renderAs", "circular"]);
327
- return (jsxs(StyledButton, Object.assign({ "$as": renderAs, onClick: onClick, disabled: disabled || loading, type: type, className: cvaButton({ rounded: circular, disabled, size, square, color, variant, fullWidth, className }), title: title, "aria-label": title, role: role, tabIndex: tabIndex, "data-testid": dataTestId, ref: ref }, rest, { children: [loading && jsx(Spinner, { className: cvaButtonSpinner(), centering: "vertically" }), prefix, children, suffix] })));
326
+ return React.createElement(renderAs, Object.assign({ ref,
327
+ title,
328
+ type,
329
+ role,
330
+ onClick,
331
+ tabIndex, disabled: disabled || loading, className: cvaButton({ rounded: circular, disabled, size, square, color, variant, fullWidth, className }), "aria-label": title, "data-testid": dataTestId, children: (jsxs(Fragment, { children: [loading && jsx(Spinner, { className: cvaButtonSpinner(), centering: "vertically" }), prefix, children, suffix] })) }, rest));
328
332
  });
329
- const StyledButton = tw.button ``;
330
333
 
331
334
  const IconButton = React.forwardRef((_a, ref) => {
332
335
  var { icon, size = "small", square = true, loading, disabled } = _a, rest = __rest$1(_a, ["icon", "size", "square", "loading", "disabled"]);
@@ -485,11 +488,11 @@ const cvaText = cvaMerge(["m-0", "relative", "text-sm", "font-normal"], {
485
488
  * @param {TextProps} props - The props for the Text component
486
489
  * @returns {JSX.Element} Text component
487
490
  */
488
- const Text = ({ children, type = "p", size = "medium", align = "left", weight = "normal", underline = false, inverted = false, subtle = false, italicize = false, uppercase = false, className, dataTestId, }) => {
491
+ const Text = (_a) => {
492
+ var { children, type = "p", size = "medium", align = "left", weight = "normal", underline = false, inverted = false, subtle = false, italicize = false, uppercase = false, className, dataTestId } = _a, rest = __rest$1(_a, ["children", "type", "size", "align", "weight", "underline", "inverted", "subtle", "italicize", "uppercase", "className", "dataTestId"]);
489
493
  const color = inverted && subtle ? "subtleInverted" : inverted ? "inverted" : subtle ? "subtle" : "default";
490
- return (jsx(StyledText, { "$as": type, className: cvaText({ color, uppercase, align, italic: italicize, size, underline, weight, className }), "data-testid": dataTestId, children: children }));
494
+ return React.createElement(type, Object.assign({ className: cvaText({ color, uppercase, align, italic: italicize, size, underline, weight, className }), "data-testid": dataTestId, children }, rest));
491
495
  };
492
- const StyledText = tw.text ``;
493
496
 
494
497
  const cvaAlert = cvaMerge(["flex", "relative", "p-4", "rounded"], {
495
498
  variants: {
@@ -806,16 +809,16 @@ const cvaHeading = cvaMerge(["m-0", "leading-normal", "text-black"], {
806
809
  * @param {HeadingProps} props - The props for the Heading component
807
810
  * @returns {JSX.Element} Heading component
808
811
  */
809
- const Heading = ({ children, variant = "primary", inverted = false, subtle = false, className, dataTestId, }) => {
812
+ const Heading = (_a) => {
813
+ var { variant = "primary", inverted = false, subtle = false, className, dataTestId } = _a, rest = __rest$1(_a, ["variant", "inverted", "subtle", "className", "dataTestId"]);
810
814
  const semanticType = {
811
815
  primary: "h1",
812
816
  secondary: "h2",
813
817
  tertiary: "h3",
814
818
  subtitle: "h4",
815
819
  };
816
- return (jsx(StyledHeading, { "$as": semanticType[variant], className: cvaHeading({ subtle, inverted, size: variant, className }), "data-testid": dataTestId, children: children }));
820
+ return React.createElement(semanticType[variant], Object.assign(Object.assign({}, rest), { className: cvaHeading({ subtle, inverted, size: variant, className }), "data-testid": dataTestId }));
817
821
  };
818
- const StyledHeading = tw.div ``;
819
822
 
820
823
  /**
821
824
  * Header for Cards and Modals.
@@ -18906,6 +18909,37 @@ const ExternalLink = ({ rel = "noreferrer", target = "_blank", href, className,
18906
18909
  return (jsx("a", { "data-testid": dataTestId, className: className, title: title, href: href, rel: rel, target: target, children: children }));
18907
18910
  };
18908
18911
 
18912
+ const cvaTooltipFlexContainer = cvaMerge("inline-flex");
18913
+ const cvaTooltipPopover = cvaMerge("pointer-events-none origin-center");
18914
+ cvaMerge("pointer-events-none origin-center");
18915
+ const cvaTooltipContent = cvaMerge("p-2 rounded max-w-sm", {
18916
+ variants: {
18917
+ color: {
18918
+ light: "shadow-md bg-white",
18919
+ dark: "text-white bg-neutral-800",
18920
+ },
18921
+ },
18922
+ defaultVariants: {
18923
+ color: "light",
18924
+ },
18925
+ });
18926
+
18927
+ /**
18928
+ * The Tooltip component is used to show helpful tips or contextual information to the users.
18929
+ *
18930
+ * @param {TooltipProps} props - The props for the Tooltip component
18931
+ * @returns {JSX.Element} Tooltip component
18932
+ */
18933
+ const Tooltip = (_a) => {
18934
+ var { children, dataTestId, disabled, className } = _a, rest = __rest$1(_a, ["children", "dataTestId", "disabled", "className"]);
18935
+ const wrappedChildren = (jsx("div", { className: cvaTooltipFlexContainer({ className }), "data-testid": dataTestId && `${dataTestId}-parent`, children: children }));
18936
+ if (disabled) {
18937
+ return wrappedChildren;
18938
+ }
18939
+ return (jsx(TooltipContainer, Object.assign({ dataTestId: dataTestId }, rest, { children: wrappedChildren })));
18940
+ };
18941
+ const TooltipContainer = ({ label, placement = "bottom", mode = "dark", contentTextType = "p", children, dataTestId, }) => (jsxs(Popover, { className: cvaTooltipPopover(), placement: placement, activation: { hover: true }, dataTestId: dataTestId !== null && dataTestId !== void 0 ? dataTestId : "", children: [jsx(PopoverTrigger, { children: children }), jsx(PopoverContent, { children: jsx("div", { "aria-label": typeof label === "string" ? label : undefined, className: cvaTooltipContent({ color: mode }), children: jsx(Text, { inverted: mode === "dark", type: contentTextType, children: label }) }) })] }));
18942
+
18909
18943
  const cvaIndicator = cvaMerge(["flex", "items-center"]);
18910
18944
  const cvaIndicatorIcon = cvaMerge(["mr-2"]);
18911
18945
  const cvaIndicatorLabel = cvaMerge(["pl-2", "pr-2", "font-medium", "capitalize", "text-sm", "xl:text-base"]);
@@ -19006,7 +19040,7 @@ const cvaIndicatorIconBackground = cvaMerge(["rounded-full", "items-center", "ju
19006
19040
  */
19007
19041
  const Indicator = (_a) => {
19008
19042
  var { dataTestId, icon, label, color = "unknown", withBackground = true, withLabel = true, ping = false, className } = _a, rest = __rest$1(_a, ["dataTestId", "icon", "label", "color", "withBackground", "withLabel", "ping", "className"]);
19009
- return (jsxs("div", Object.assign({ className: cvaIndicator({ className }), "data-testid": dataTestId }, rest, { title: !withLabel ? label : undefined, children: [jsxs("div", { className: cvaIndicatorIconBackground({ color, background: withBackground ? "visible" : "hidden" }), "data-testid": dataTestId ? `${dataTestId}-background` : "indicator-background", children: [ping && (jsx("div", { className: cvaIndicatorPing({ color }), "data-testid": dataTestId ? `${dataTestId}-ping` : "indicator-ping" })), icon] }), label !== undefined && withLabel && (jsx("div", { className: cvaIndicatorLabel(), "data-testid": dataTestId ? `${dataTestId}-label` : "indicator-label", children: label }))] })));
19043
+ return (jsx(Tooltip, { disabled: withLabel, label: label, children: jsxs("div", Object.assign({ className: cvaIndicator({ className }), "data-testid": dataTestId, "aria-label": label }, rest, { children: [jsxs("div", { className: cvaIndicatorIconBackground({ color, background: withBackground ? "visible" : "hidden" }), "data-testid": dataTestId ? `${dataTestId}-background` : "indicator-background", children: [ping && (jsx("div", { className: cvaIndicatorPing({ color }), "data-testid": dataTestId ? `${dataTestId}-ping` : "indicator-ping" })), icon] }), label !== undefined && withLabel && (jsx("div", { className: cvaIndicatorLabel(), "data-testid": dataTestId ? `${dataTestId}-label` : "indicator-label", children: label }))] })) }));
19010
19044
  };
19011
19045
 
19012
19046
  const cvaMenuItem = cvaMerge([
@@ -38805,37 +38839,6 @@ function defaultHeader(date, showTime) {
38805
38839
  })})`;
38806
38840
  }
38807
38841
 
38808
- const cvaTooltipFlexContainer = cvaMerge("inline-flex");
38809
- const cvaTooltipPopover = cvaMerge("pointer-events-none origin-center");
38810
- cvaMerge("pointer-events-none origin-center");
38811
- const cvaTooltipContent = cvaMerge("p-2 rounded max-w-sm", {
38812
- variants: {
38813
- color: {
38814
- light: "shadow-md bg-white",
38815
- dark: "text-white bg-neutral-800",
38816
- },
38817
- },
38818
- defaultVariants: {
38819
- color: "light",
38820
- },
38821
- });
38822
-
38823
- /**
38824
- * The Tooltip component is used to show helpful tips or contextual information to the users.
38825
- *
38826
- * @param {TooltipProps} props - The props for the Tooltip component
38827
- * @returns {JSX.Element} Tooltip component
38828
- */
38829
- const Tooltip = (_a) => {
38830
- var { children, dataTestId, disabled, className } = _a, rest = __rest$1(_a, ["children", "dataTestId", "disabled", "className"]);
38831
- const wrappedChildren = (jsx("div", { className: cvaTooltipFlexContainer({ className }), "data-testid": dataTestId && `${dataTestId}-parent`, children: children }));
38832
- if (disabled) {
38833
- return wrappedChildren;
38834
- }
38835
- return (jsx(TooltipContainer, Object.assign({ dataTestId: dataTestId }, rest, { children: wrappedChildren })));
38836
- };
38837
- const TooltipContainer = ({ label, placement = "bottom", mode = "dark", contentTextType = "p", children, dataTestId, }) => (jsxs(Popover, { className: cvaTooltipPopover(), placement: placement, activation: { hover: true }, dataTestId: dataTestId !== null && dataTestId !== void 0 ? dataTestId : "", children: [jsx(PopoverTrigger, { children: children }), jsx(PopoverContent, { children: jsx("div", { className: cvaTooltipContent({ color: mode }), children: jsx(Text, { inverted: mode === "dark", type: contentTextType, children: label }) }) })] }));
38838
-
38839
38842
  const cvaValueBar = cvaMerge(["w-full"], {
38840
38843
  variants: {
38841
38844
  size: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.145",
3
+ "version": "0.1.147",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,7 +10,6 @@
10
10
  "@floating-ui/react": "0.22.2",
11
11
  "@trackunit/css-class-variance-utilities": "0.0.11",
12
12
  "@trackunit/css-core": "0.0.92",
13
- "@trackunit/tailwind-styled-components": "0.0.60",
14
13
  "@trackunit/ui-design-tokens": "0.0.75",
15
14
  "@trackunit/ui-icons": "0.0.73",
16
15
  "date-fns": "2.29.3",
@@ -25,4 +25,4 @@ export interface HeadingProps extends CommonProps {
25
25
  * @param {HeadingProps} props - The props for the Heading component
26
26
  * @returns {JSX.Element} Heading component
27
27
  */
28
- export declare const Heading: ({ children, variant, inverted, subtle, className, dataTestId, }: HeadingProps) => JSX.Element;
28
+ export declare const Heading: ({ variant, inverted, subtle, className, dataTestId, ...rest }: HeadingProps) => JSX.Element;
@@ -55,4 +55,4 @@ export interface TextProps extends CommonProps {
55
55
  * @param {TextProps} props - The props for the Text component
56
56
  * @returns {JSX.Element} Text component
57
57
  */
58
- export declare const Text: ({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, className, dataTestId, }: TextProps) => JSX.Element;
58
+ export declare const Text: ({ children, type, size, align, weight, underline, inverted, subtle, italicize, uppercase, className, dataTestId, ...rest }: TextProps) => JSX.Element;