@lets-events/react 12.6.2 → 12.6.3

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,5 +1,5 @@
1
1
 
2
- > @lets-events/react@12.6.2 build
2
+ > @lets-events/react@12.6.3 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,11 +9,11 @@
9
9
  CLI Target: es6
10
10
  ESM Build start
11
11
  CJS Build start
12
- ESM dist\index.mjs 389.19 KB
13
- ESM ⚡️ Build success in 252ms
14
- CJS dist\index.js 404.20 KB
15
- CJS ⚡️ Build success in 253ms
12
+ ESM dist\index.mjs 389.21 KB
13
+ ESM ⚡️ Build success in 204ms
14
+ CJS dist\index.js 404.22 KB
15
+ CJS ⚡️ Build success in 205ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 4784ms
17
+ DTS ⚡️ Build success in 4468ms
18
18
  DTS dist\index.d.mts 402.87 KB
19
19
  DTS dist\index.d.ts 402.87 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - fix tooltip
8
+
3
9
  ## 12.6.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -12758,7 +12758,7 @@ interface TooltipProps {
12758
12758
  children: React$1.ReactNode;
12759
12759
  content: React$1.ReactNode;
12760
12760
  delayDuration?: number;
12761
- side?: 'top' | 'right' | 'bottom' | 'left';
12761
+ side?: "top" | "right" | "bottom" | "left";
12762
12762
  }
12763
12763
  declare function Tooltip({ children, content, delayDuration, side, }: TooltipProps): react_jsx_runtime.JSX.Element;
12764
12764
 
package/dist/index.d.ts CHANGED
@@ -12758,7 +12758,7 @@ interface TooltipProps {
12758
12758
  children: React$1.ReactNode;
12759
12759
  content: React$1.ReactNode;
12760
12760
  delayDuration?: number;
12761
- side?: 'top' | 'right' | 'bottom' | 'left';
12761
+ side?: "top" | "right" | "bottom" | "left";
12762
12762
  }
12763
12763
  declare function Tooltip({ children, content, delayDuration, side, }: TooltipProps): react_jsx_runtime.JSX.Element;
12764
12764
 
package/dist/index.js CHANGED
@@ -9690,7 +9690,7 @@ function Tooltip({
9690
9690
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TooltipRoot, { delayDuration, children: [
9691
9691
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipTrigger, { asChild: true, children }),
9692
9692
  /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(TooltipContent, { side, sideOffset: 5, children: [
9693
- typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "tooltip", children: content }) : content,
9693
+ typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text, { typography: "tooltip", color: "grey50", children: content }) : content,
9694
9694
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(TooltipArrow, {})
9695
9695
  ] })
9696
9696
  ] }) });
package/dist/index.mjs CHANGED
@@ -9576,7 +9576,7 @@ function Tooltip({
9576
9576
  return /* @__PURE__ */ jsx26(TooltipProvider, { children: /* @__PURE__ */ jsxs15(TooltipRoot, { delayDuration, children: [
9577
9577
  /* @__PURE__ */ jsx26(TooltipTrigger, { asChild: true, children }),
9578
9578
  /* @__PURE__ */ jsxs15(TooltipContent, { side, sideOffset: 5, children: [
9579
- typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", children: content }) : content,
9579
+ typeof content === "string" ? /* @__PURE__ */ jsx26(Text, { typography: "tooltip", color: "grey50", children: content }) : content,
9580
9580
  /* @__PURE__ */ jsx26(TooltipArrow, {})
9581
9581
  ] })
9582
9582
  ] }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.6.2",
3
+ "version": "12.6.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -1,67 +1,73 @@
1
- import * as React from 'react'
2
- import * as TooltipPrimitive from '@radix-ui/react-tooltip'
3
- import { styled } from '../../styles'
4
- import { Text } from '../Text'
1
+ import * as React from "react";
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
+ import { styled } from "../../styles";
4
+ import { Text } from "../Text";
5
5
 
6
- const TooltipProvider = TooltipPrimitive.Provider
7
- const TooltipRoot = TooltipPrimitive.Root
8
- const TooltipTrigger = TooltipPrimitive.Trigger
6
+ const TooltipProvider = TooltipPrimitive.Provider;
7
+ const TooltipRoot = TooltipPrimitive.Root;
8
+ const TooltipTrigger = TooltipPrimitive.Trigger;
9
9
 
10
10
  const TooltipContent = styled(TooltipPrimitive.Content, {
11
- backgroundColor: '$dark800',
12
- color: '$neutral50',
13
- borderRadius: '4px',
14
- padding: '10px 15px',
15
- fontSize: '14px',
11
+ backgroundColor: "$dark800",
12
+ color: "$neutral50",
13
+ borderRadius: "4px",
14
+ padding: "10px 15px",
15
+ fontSize: "14px",
16
16
  lineHeight: 1,
17
17
  zIndex: 100,
18
- boxShadow: '0 2px 10px rgba(0, 0, 0, 0.1)',
19
- userSelect: 'none',
20
- animationDuration: '400ms',
21
- animationTimingFunction: 'cubic-bezier(0.16, 1, 0.3, 1)',
22
- willChange: 'transform, opacity',
18
+ boxShadow: "0 2px 10px rgba(0, 0, 0, 0.1)",
19
+ userSelect: "none",
20
+ animationDuration: "400ms",
21
+ animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
22
+ willChange: "transform, opacity",
23
23
  '&[data-state="delayed-open"][data-side="top"]': {
24
- animationName: 'slideDownAndFade',
24
+ animationName: "slideDownAndFade",
25
25
  },
26
26
  '&[data-state="delayed-open"][data-side="right"]': {
27
- animationName: 'slideLeftAndFade',
27
+ animationName: "slideLeftAndFade",
28
28
  },
29
29
  '&[data-state="delayed-open"][data-side="bottom"]': {
30
- animationName: 'slideUpAndFade',
30
+ animationName: "slideUpAndFade",
31
31
  },
32
32
  '&[data-state="delayed-open"][data-side="left"]': {
33
- animationName: 'slideRightAndFade',
33
+ animationName: "slideRightAndFade",
34
34
  },
35
- })
35
+ });
36
36
 
37
37
  const TooltipArrow = styled(TooltipPrimitive.Arrow, {
38
- fill: '$dark800',
39
- })
38
+ fill: "$dark800",
39
+ });
40
40
 
41
41
  export interface TooltipProps {
42
- children: React.ReactNode
43
- content: React.ReactNode
44
- delayDuration?: number
45
- side?: 'top' | 'right' | 'bottom' | 'left'
42
+ children: React.ReactNode;
43
+ content: React.ReactNode;
44
+ delayDuration?: number;
45
+ side?: "top" | "right" | "bottom" | "left";
46
46
  }
47
47
 
48
48
  export function Tooltip({
49
49
  children,
50
50
  content,
51
51
  delayDuration = 200,
52
- side = 'top',
52
+ side = "top",
53
53
  }: TooltipProps) {
54
54
  return (
55
55
  <TooltipProvider>
56
56
  <TooltipRoot delayDuration={delayDuration}>
57
57
  <TooltipTrigger asChild>{children}</TooltipTrigger>
58
58
  <TooltipContent side={side} sideOffset={5}>
59
- {typeof content === 'string' ? <Text typography={'tooltip'}>{content}</Text>:(content)}
59
+ {typeof content === "string" ? (
60
+ <Text typography={"tooltip"} color="grey50">
61
+ {content}
62
+ </Text>
63
+ ) : (
64
+ content
65
+ )}
60
66
  <TooltipArrow />
61
67
  </TooltipContent>
62
68
  </TooltipRoot>
63
69
  </TooltipProvider>
64
- )
70
+ );
65
71
  }
66
72
 
67
- export { TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent }
73
+ export { TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent };