@embeddable.com/remarkable-ui 2.0.32 → 2.0.34

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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  styles
3
- } from "./chunk-WKCRP3VT.js";
3
+ } from "./chunk-3SAVZAMC.js";
4
4
 
5
5
  // src/components/charts/bars/BarChart.tsx
6
6
  import { useRef } from "react";
@@ -3011,35 +3011,76 @@ var ButtonIcon = ({
3011
3011
 
3012
3012
  // src/components/shared/Card/Card.tsx
3013
3013
  import React4 from "react";
3014
- import styles27 from "./Card.module-YJV4R6DV.module.css";
3014
+ import styles28 from "./Card.module-AAOKM6DN.module.css";
3015
3015
  import clsx20 from "clsx";
3016
+ import { IconInfoCircle } from "@tabler/icons-react";
3017
+
3018
+ // src/components/shared/Tooltip/Tooltip.tsx
3019
+ import * as RadixTooltip from "@radix-ui/react-tooltip";
3020
+ import styles27 from "./Tooltip.module-H4WLOKLX.module.css";
3016
3021
  import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
3022
+ var Tooltip5 = ({
3023
+ side,
3024
+ align,
3025
+ trigger,
3026
+ children,
3027
+ delayDuration = 0
3028
+ }) => {
3029
+ return /* @__PURE__ */ jsx35(RadixTooltip.Provider, { children: /* @__PURE__ */ jsxs22(RadixTooltip.Root, { delayDuration, children: [
3030
+ /* @__PURE__ */ jsx35(RadixTooltip.Trigger, { asChild: true, children: trigger }),
3031
+ /* @__PURE__ */ jsx35(
3032
+ RadixTooltip.Content,
3033
+ {
3034
+ side,
3035
+ align,
3036
+ style: { zIndex: 5 },
3037
+ className: styles27.tooltipContent,
3038
+ sideOffset: 4,
3039
+ children
3040
+ }
3041
+ )
3042
+ ] }) });
3043
+ };
3044
+
3045
+ // src/components/shared/Card/Card.tsx
3046
+ import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
3017
3047
  var Card = React4.forwardRef(
3018
3048
  ({ children, className, ...props }, ref) => {
3019
- return /* @__PURE__ */ jsx35("div", { className: clsx20(styles27.card, className), ref, ...props, children });
3049
+ return /* @__PURE__ */ jsx36("div", { className: clsx20(styles28.card, className), ref, ...props, children });
3020
3050
  }
3021
3051
  );
3022
3052
  Card.displayName = "Card";
3023
- var CardHeader = ({ title, subtitle }) => {
3024
- if (!title && !subtitle) {
3053
+ var CardHeader = ({ title, subtitle, tooltip }) => {
3054
+ if (!title && !subtitle && !tooltip) {
3025
3055
  return null;
3026
3056
  }
3027
- return /* @__PURE__ */ jsxs22("div", { className: styles27.cardHeader, children: [
3028
- title && /* @__PURE__ */ jsx35("h1", { children: title }),
3029
- subtitle && /* @__PURE__ */ jsx35("p", { children: subtitle })
3057
+ return /* @__PURE__ */ jsxs23("div", { className: styles28.cardHeader, children: [
3058
+ /* @__PURE__ */ jsxs23("div", { className: styles28.cardHeaderTitle, children: [
3059
+ title && /* @__PURE__ */ jsx36("h1", { children: title }),
3060
+ tooltip && /* @__PURE__ */ jsx36(
3061
+ Tooltip5,
3062
+ {
3063
+ side: "right",
3064
+ align: "start",
3065
+ trigger: /* @__PURE__ */ jsx36("button", { className: styles28.cardHeaderTooltipButton, "aria-label": "Info", children: /* @__PURE__ */ jsx36(IconInfoCircle, {}) }),
3066
+ children: tooltip
3067
+ }
3068
+ )
3069
+ ] }),
3070
+ subtitle && /* @__PURE__ */ jsx36("p", { children: subtitle })
3030
3071
  ] });
3031
3072
  };
3032
3073
  var CardContent = React4.forwardRef(
3033
3074
  ({ children }, ref) => {
3034
- return /* @__PURE__ */ jsx35("div", { className: styles27.cardContent, ref, children });
3075
+ return /* @__PURE__ */ jsx36("div", { className: styles28.cardContent, ref, children });
3035
3076
  }
3036
3077
  );
3037
3078
  CardContent.displayName = "CardContent";
3038
3079
 
3039
3080
  // src/components/shared/Card/CardFeedback/CardFeedback.tsx
3040
3081
  import clsx21 from "clsx";
3041
- import styles28 from "./CardFeedback.module-WCSHLBSM.module.css";
3042
- import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
3082
+ import styles29 from "./CardFeedback.module-WCSHLBSM.module.css";
3083
+ import { jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
3043
3084
  var CardFeedback = ({
3044
3085
  icon: Icon,
3045
3086
  title,
@@ -3047,32 +3088,32 @@ var CardFeedback = ({
3047
3088
  className,
3048
3089
  variant = "info"
3049
3090
  }) => {
3050
- return /* @__PURE__ */ jsxs23("div", { className: clsx21(styles28.feedback, styles28[variant], className), children: [
3051
- Icon && /* @__PURE__ */ jsx36(Icon, {}),
3052
- /* @__PURE__ */ jsx36("h2", { children: title }),
3053
- /* @__PURE__ */ jsx36("p", { children: message })
3091
+ return /* @__PURE__ */ jsxs24("div", { className: clsx21(styles29.feedback, styles29[variant], className), children: [
3092
+ Icon && /* @__PURE__ */ jsx37(Icon, {}),
3093
+ /* @__PURE__ */ jsx37("h2", { children: title }),
3094
+ /* @__PURE__ */ jsx37("p", { children: message })
3054
3095
  ] });
3055
3096
  };
3056
3097
 
3057
3098
  // src/components/shared/Overlay/Overlay.tsx
3058
3099
  import clsx22 from "clsx";
3059
- import styles29 from "./Overlay.module-FCW64VWM.module.css";
3060
- import { jsx as jsx37 } from "react/jsx-runtime";
3100
+ import styles30 from "./Overlay.module-FCW64VWM.module.css";
3101
+ import { jsx as jsx38 } from "react/jsx-runtime";
3061
3102
  var Overlay = ({ className, children }) => {
3062
- return /* @__PURE__ */ jsx37("div", { className: clsx22(styles29.overlay, className), children });
3103
+ return /* @__PURE__ */ jsx38("div", { className: clsx22(styles30.overlay, className), children });
3063
3104
  };
3064
3105
 
3065
3106
  // src/components/shared/Skeleton/Skeleton.tsx
3066
- import styles30 from "./Skeleton.module-ZN5S5VRF.module.css";
3067
- import { jsx as jsx38 } from "react/jsx-runtime";
3107
+ import styles31 from "./Skeleton.module-ZN5S5VRF.module.css";
3108
+ import { jsx as jsx39 } from "react/jsx-runtime";
3068
3109
  var Skeleton = () => {
3069
- return /* @__PURE__ */ jsx38("div", { className: styles30.skeleton });
3110
+ return /* @__PURE__ */ jsx39("div", { className: styles31.skeleton });
3070
3111
  };
3071
3112
 
3072
3113
  // src/components/shared/Typography/Typography.tsx
3073
- import styles31 from "./Typography.module-SW6CT55P.module.css";
3114
+ import styles32 from "./Typography.module-SW6CT55P.module.css";
3074
3115
  import clsx23 from "clsx";
3075
- import { jsx as jsx39 } from "react/jsx-runtime";
3116
+ import { jsx as jsx40 } from "react/jsx-runtime";
3076
3117
  function Typography({
3077
3118
  children,
3078
3119
  as: Component = "p",
@@ -3080,7 +3121,7 @@ function Typography({
3080
3121
  style,
3081
3122
  title
3082
3123
  }) {
3083
- return /* @__PURE__ */ jsx39(Component, { title, className: clsx23(styles31.typography, className), style, children });
3124
+ return /* @__PURE__ */ jsx40(Component, { title, className: clsx23(styles32.typography, className), style, children });
3084
3125
  }
3085
3126
 
3086
3127
  // src/utils/object.utils.ts
@@ -3138,6 +3179,7 @@ export {
3138
3179
  TableScrollable,
3139
3180
  TableSortDirection,
3140
3181
  TextField,
3182
+ Tooltip5 as Tooltip,
3141
3183
  Typography,
3142
3184
  chartjsAxisOptionsLayoutPadding,
3143
3185
  endOfDayUTC,