@orfium/ictinus 5.41.1 → 5.41.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.
Files changed (45) hide show
  1. package/.turbo/turbo-build.log +22 -22
  2. package/CHANGELOG.md +13 -0
  3. package/dist/components/ThemeProvider/ThemeProvider.style.js +6 -4
  4. package/dist/src/components/ThemeProvider/ThemeProvider.style.d.ts +1 -3
  5. package/dist/src/sprinkles/properties.css.d.ts +36 -0
  6. package/dist/src/sprinkles/sprinkles.d.ts +53 -1
  7. package/dist/src/vanilla/Box/Box.d.ts +8 -0
  8. package/dist/src/vanilla/Box/extractBoxProps.d.ts +2 -2
  9. package/dist/src/vanilla/Table/Table.d.ts +8 -0
  10. package/dist/src/vanilla/Table/TableBody.d.ts +8 -0
  11. package/dist/src/vanilla/Table/TableCell.d.ts +8 -0
  12. package/dist/src/vanilla/Table/TableFooter.d.ts +8 -0
  13. package/dist/src/vanilla/Table/TableHeader.d.ts +8 -0
  14. package/dist/src/vanilla/Table/TableHeaderCell.d.ts +8 -0
  15. package/dist/src/vanilla/Table/TableRow.d.ts +8 -0
  16. package/dist/src/vanilla/Text/Text.d.ts +10 -2
  17. package/dist/src/vanilla/Tooltip/Tooltip.css.d.ts +20 -0
  18. package/dist/src/vanilla/Tooltip/Tooltip.d.ts +21 -0
  19. package/dist/src/vanilla/Tooltip/index.d.ts +1 -0
  20. package/dist/src/vanilla/index.d.ts +1 -0
  21. package/dist/vanilla/Table/Table-css.js +3 -3
  22. package/dist/vanilla/Table/TableCell-css.js +3 -3
  23. package/dist/vanilla/Table/TableHeader.js +10 -1
  24. package/dist/vanilla/Table/TableHeaderCell-css.js +6 -4
  25. package/dist/vanilla/Table/TableRow-css.js +1 -1
  26. package/dist/vanilla/Text/Text.js +1 -1
  27. package/dist/vanilla/Tooltip/Tooltip-css.js +12 -0
  28. package/dist/vanilla/Tooltip/Tooltip.js +96 -0
  29. package/dist/vanilla/assets/src/sprinkles/{properties.css.ts.vanilla-BQPG2W33.css → properties.css.ts.vanilla-Ckyezauv.css} +2440 -2410
  30. package/dist/vanilla/assets/src/vanilla/Table/{TableHeaderCell.css.ts.vanilla-DesAfHw6.css → TableHeaderCell.css.ts.vanilla-DHGpcMTl.css} +4 -1
  31. package/dist/vanilla/assets/src/vanilla/Tooltip/Tooltip.css.ts.vanilla-nRPDcOsw.css +39 -0
  32. package/dist/vanilla/index.d.ts +114 -8
  33. package/dist/vanilla/index.js +1 -0
  34. package/dist/vanilla/package.json.js +1 -1
  35. package/dist/vanilla/src/sprinkles/properties-css.js +4 -4
  36. package/package.json +2 -1
  37. package/src/components/ThemeProvider/ThemeProvider.style.ts +2 -32
  38. package/src/sprinkles/properties.css.ts +3 -0
  39. package/src/vanilla/Table/TableHeader.tsx +6 -1
  40. package/src/vanilla/Table/TableHeaderCell.css.ts +12 -2
  41. package/src/vanilla/Text/Text.tsx +4 -4
  42. package/src/vanilla/Tooltip/Tooltip.css.ts +93 -0
  43. package/src/vanilla/Tooltip/Tooltip.tsx +144 -0
  44. package/src/vanilla/Tooltip/index.ts +1 -0
  45. package/src/vanilla/index.ts +1 -0
@@ -22,12 +22,14 @@ export declare const TableRow: import('react').ForwardRefExoticComponent<Omit<No
22
22
  fontSize?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
23
23
  typography?: "headline01" | "headline02" | "headline03" | "headline04" | "headline05" | "title01" | "title02" | "title03" | "label01" | "label02" | "label03" | "label04" | "body01" | "body02" | "body03" | "body04";
24
24
  fontWeight?: "regular" | "medium" | "bold";
25
+ fontStyle?: "italic";
25
26
  lineHeight?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11";
26
27
  letterSpacing?: "0" | "1" | "2" | "3";
27
28
  isolation?: "isolate";
28
29
  objectFit?: "contain" | "cover";
29
30
  pointerEvents?: "none" | "auto";
30
31
  textTransform?: "none" | "capitalize" | "uppercase";
32
+ textDecoration?: "underline";
31
33
  visibility?: "hidden" | "visible";
32
34
  wordBreak?: "break-word";
33
35
  wordWrap?: "normal" | "break-word";
@@ -129,6 +131,12 @@ export declare const TableRow: import('react').ForwardRefExoticComponent<Omit<No
129
131
  lg?: "row" | "column" | "row-reverse" | "column-reverse";
130
132
  xl?: "row" | "column" | "row-reverse" | "column-reverse";
131
133
  };
134
+ flexShrink?: "0" | "1" | {
135
+ xs?: "0" | "1";
136
+ md?: "0" | "1";
137
+ lg?: "0" | "1";
138
+ xl?: "0" | "1";
139
+ };
132
140
  position?: "absolute" | "fixed" | "relative" | "sticky" | {
133
141
  xs?: "absolute" | "fixed" | "relative" | "sticky";
134
142
  md?: "absolute" | "fixed" | "relative" | "sticky";
@@ -2,7 +2,7 @@ import { ElementType } from 'react';
2
2
  import { ExtendProps } from '../../utils/ExtendProps';
3
3
  import { BoxProps } from '../Box';
4
4
  import * as styles from './Text.css';
5
- export type TextProps<T extends ElementType = 'p', P = unknown> = BoxProps<T, ExtendProps<styles.TextVariants, P>>;
5
+ export type TextProps<T extends ElementType = 'span', P = unknown> = BoxProps<T, ExtendProps<styles.TextVariants, P>>;
6
6
  export declare const Text: import('react').ForwardRefExoticComponent<Omit<{
7
7
  lineClamp?: "1" | "2" | "3" | "4";
8
8
  truncate?: boolean;
@@ -28,12 +28,14 @@ export declare const Text: import('react').ForwardRefExoticComponent<Omit<{
28
28
  fontSize?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
29
29
  typography?: "headline01" | "headline02" | "headline03" | "headline04" | "headline05" | "title01" | "title02" | "title03" | "label01" | "label02" | "label03" | "label04" | "body01" | "body02" | "body03" | "body04";
30
30
  fontWeight?: "regular" | "medium" | "bold";
31
+ fontStyle?: "italic";
31
32
  lineHeight?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11";
32
33
  letterSpacing?: "0" | "1" | "2" | "3";
33
34
  isolation?: "isolate";
34
35
  objectFit?: "contain" | "cover";
35
36
  pointerEvents?: "none" | "auto";
36
37
  textTransform?: "none" | "capitalize" | "uppercase";
38
+ textDecoration?: "underline";
37
39
  visibility?: "hidden" | "visible";
38
40
  wordBreak?: "break-word";
39
41
  wordWrap?: "normal" | "break-word";
@@ -135,6 +137,12 @@ export declare const Text: import('react').ForwardRefExoticComponent<Omit<{
135
137
  lg?: "row" | "column" | "row-reverse" | "column-reverse";
136
138
  xl?: "row" | "column" | "row-reverse" | "column-reverse";
137
139
  };
140
+ flexShrink?: "0" | "1" | {
141
+ xs?: "0" | "1";
142
+ md?: "0" | "1";
143
+ lg?: "0" | "1";
144
+ xl?: "0" | "1";
145
+ };
138
146
  position?: "absolute" | "fixed" | "relative" | "sticky" | {
139
147
  xs?: "absolute" | "fixed" | "relative" | "sticky";
140
148
  md?: "absolute" | "fixed" | "relative" | "sticky";
@@ -361,4 +369,4 @@ export declare const Text: import('react').ForwardRefExoticComponent<Omit<{
361
369
  } & {
362
370
  asChild?: boolean;
363
371
  className?: string;
364
- }>, never> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "color" | "className"> & import('react').RefAttributes<HTMLParagraphElement>>;
372
+ }>, never> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "color" | "className"> & import('react').RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,20 @@
1
+ import { RecipeVariants } from '@vanilla-extract/recipes';
2
+ export declare const tooltip: import('@vanilla-extract/recipes').RuntimeFn<{
3
+ inverse: {
4
+ true: string;
5
+ false: string;
6
+ };
7
+ }>;
8
+ export declare const trigger: string;
9
+ export declare const arrow: import('@vanilla-extract/recipes').RuntimeFn<{
10
+ [x: string]: {
11
+ [x: string]: string | import('@vanilla-extract/css').ComplexStyleRule;
12
+ };
13
+ }>;
14
+ export declare const arrowInverse: import('@vanilla-extract/recipes').RuntimeFn<{
15
+ [x: string]: {
16
+ [x: string]: string | import('@vanilla-extract/css').ComplexStyleRule;
17
+ };
18
+ }>;
19
+ export declare const arrowInverseBorder: string;
20
+ export type TooltipVariants = RecipeVariants<typeof tooltip>;
@@ -0,0 +1,21 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { TooltipProps as TooltipPrimitiveProps, Focusable, TooltipTrigger as TooltipTriggerPrimitive } from 'react-aria-components';
3
+ import * as styles from './Tooltip.css';
4
+ type TooltipProps = ComponentProps<typeof TooltipTriggerPrimitive> & {
5
+ /**
6
+ * Only show the tooltip when children are partially hidden due to text overflow.
7
+ */
8
+ auto?: boolean;
9
+ };
10
+ declare const Tooltip: {
11
+ ({ delay, auto, defaultOpen, onOpenChange, isOpen: openProp, ...props }: TooltipProps): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ interface TooltipContentProps extends Omit<TooltipPrimitiveProps, 'children'>, NonNullable<styles.TooltipVariants> {
15
+ showArrow?: boolean;
16
+ children?: ReactNode;
17
+ }
18
+ declare const TooltipContent: ({ offset, inverse, showArrow, children, ...props }: TooltipContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
+ declare function TooltipTrigger({ ...props }: ComponentProps<typeof Focusable>): import("@emotion/react/jsx-runtime").JSX.Element;
20
+ export { Tooltip, TooltipContent, TooltipTrigger };
21
+ export type { TooltipContentProps, TooltipProps };
@@ -0,0 +1 @@
1
+ export * from './Tooltip';
@@ -2,3 +2,4 @@ export * from './Box';
2
2
  export * from './Table';
3
3
  export * from './Text';
4
4
  export * from './ThemeProvider';
5
+ export * from './Tooltip';
@@ -1,10 +1,10 @@
1
1
  import './../assets/src/layers/layers.css.ts.vanilla-CBkaYCBT.css';
2
2
  import './../assets/src/vanilla-extract/global.css.ts.vanilla-t__QdzLU.css';
3
- import './../assets/src/sprinkles/properties.css.ts.vanilla-BQPG2W33.css';
3
+ import './../assets/src/sprinkles/properties.css.ts.vanilla-Ckyezauv.css';
4
4
  import './../assets/src/vanilla/Table/Table.css.ts.vanilla-D8zK7RSt.css';
5
5
  import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
6
6
 
7
- var table = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf212 _146hxcf1i7 ekwznl0',variantClassNames:{layout:{auto:'ekwznl1',fixed:'ekwznl5 ekwznl2'}},defaultVariants:{},compoundVariants:[]});
8
- var wrapper = createRuntimeFn({defaultClassName:'_146hxcf1ht _146hxcf1hw _146hxcf1hh _146hxcf1g4 _146hxcf1hb _146hxcf1he _146hxcf1g9 _146hxcfh8 _146hxcf1ki _146hxcf1g2 _146hxcf1u2 ekwznl6',variantClassNames:{},defaultVariants:{},compoundVariants:[]});
7
+ var table = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf21c _146hxcf1if ekwznl0',variantClassNames:{layout:{auto:'ekwznl1',fixed:'ekwznl5 ekwznl2'}},defaultVariants:{},compoundVariants:[]});
8
+ var wrapper = createRuntimeFn({defaultClassName:'_146hxcf1i1 _146hxcf1i4 _146hxcf1hp _146hxcf1gc _146hxcf1hj _146hxcf1hm _146hxcf1gh _146hxcfh8 _146hxcf1ks _146hxcf1ga _146hxcf1uc ekwznl6',variantClassNames:{},defaultVariants:{},compoundVariants:[]});
9
9
 
10
10
  export { table, wrapper };
@@ -1,10 +1,10 @@
1
1
  import './../assets/src/layers/layers.css.ts.vanilla-CBkaYCBT.css';
2
2
  import './../assets/src/vanilla-extract/global.css.ts.vanilla-t__QdzLU.css';
3
- import './../assets/src/sprinkles/properties.css.ts.vanilla-BQPG2W33.css';
3
+ import './../assets/src/sprinkles/properties.css.ts.vanilla-Ckyezauv.css';
4
4
  import './../assets/src/vanilla/Table/TableCell.css.ts.vanilla-BmF3z2D_.css';
5
5
  import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
6
6
 
7
- var cell = createRuntimeFn({defaultClassName:'_146hxcf1u2 _1p0g5yn0',variantClassNames:{pinned:{false:'_1p0g5yn1',true:'_1p0g5yn2'}},defaultVariants:{},compoundVariants:[]});
8
- var content = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf8w _146hxcf4 _146hxcf212 _146hxcf2c _146hxcf1is _146hxcf1u2 _146hxcfd4 _1p0g5yn6',variantClassNames:{size:{sm:'_146hxcf7k',md:'_146hxcf7s',lg:'_146hxcf80'},bordered:{true:'_1p0g5yn7'}},defaultVariants:{},compoundVariants:[]});
7
+ var cell = createRuntimeFn({defaultClassName:'_146hxcf1uc _1p0g5yn0',variantClassNames:{pinned:{false:'_1p0g5yn1',true:'_1p0g5yn2'}},defaultVariants:{},compoundVariants:[]});
8
+ var content = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf8w _146hxcf4 _146hxcf21c _146hxcf2c _146hxcf1j0 _146hxcf1uc _146hxcfd4 _1p0g5yn6',variantClassNames:{size:{sm:'_146hxcf7k',md:'_146hxcf7s',lg:'_146hxcf80'},bordered:{true:'_1p0g5yn7'}},defaultVariants:{},compoundVariants:[]});
9
9
 
10
10
  export { cell, content };
@@ -6,7 +6,16 @@ import '../src/sprinkles/sprinkles.js';
6
6
  import { header } from './TableHeader-css.js';
7
7
 
8
8
  const TableHeader = forwardRef(
9
- ({ children, className, pinned, ...props }, ref) => /* @__PURE__ */ jsx(Box, { asChild: true, className: cn(header({ pinned }), className), ...props, children: /* @__PURE__ */ jsx("thead", { ref, children }) })
9
+ ({ children, className, pinned, ...props }, ref) => /* @__PURE__ */ jsx(
10
+ Box,
11
+ {
12
+ asChild: true,
13
+ "data-pinned": pinned ? "" : void 0,
14
+ className: cn(header({ pinned }), className),
15
+ ...props,
16
+ children: /* @__PURE__ */ jsx("thead", { ref, children })
17
+ }
18
+ )
10
19
  );
11
20
  TableHeader.displayName = "TableHeader";
12
21
 
@@ -1,10 +1,12 @@
1
1
  import './../assets/src/layers/layers.css.ts.vanilla-CBkaYCBT.css';
2
2
  import './../assets/src/vanilla-extract/global.css.ts.vanilla-t__QdzLU.css';
3
- import './../assets/src/sprinkles/properties.css.ts.vanilla-BQPG2W33.css';
4
- import './../assets/src/vanilla/Table/TableHeaderCell.css.ts.vanilla-DesAfHw6.css';
3
+ import './../assets/src/sprinkles/properties.css.ts.vanilla-Ckyezauv.css';
4
+ import './../assets/src/vanilla/Table/TableHeader.css.ts.vanilla-2yw_MsU1.css';
5
+ import './../assets/src/vanilla/Table/TableRow.css.ts.vanilla-CZN81sTW.css';
6
+ import './../assets/src/vanilla/Table/TableHeaderCell.css.ts.vanilla-DHGpcMTl.css';
5
7
  import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
6
8
 
7
- var cell = createRuntimeFn({defaultClassName:'_146hxcf1u2 _92ef850',variantClassNames:{pinned:{false:'_92ef851',true:'_92ef852'}},defaultVariants:{},compoundVariants:[]});
8
- var content = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf8w _146hxcf4 _146hxcf216 _146hxcf2c _146hxcf1is _146hxcfd4 _146hxcf1u2 _92ef856',variantClassNames:{size:{sm:'_146hxcf7k',md:'_146hxcf7s',lg:'_146hxcf80'},bordered:{true:'_92ef857'}},defaultVariants:{},compoundVariants:[]});
9
+ var cell = createRuntimeFn({defaultClassName:'_146hxcf1uc _92ef850',variantClassNames:{pinned:{false:'_92ef851',true:'_92ef852'}},defaultVariants:{},compoundVariants:[]});
10
+ var content = createRuntimeFn({defaultClassName:'_146hxcf64 _146hxcf8w _146hxcf4 _146hxcf21g _146hxcf2c _146hxcf1j0 _146hxcfd4 _146hxcf1uc _92ef856',variantClassNames:{size:{sm:'_146hxcf7k',md:'_146hxcf7s',lg:'_146hxcf80'},bordered:{true:'_92ef857'}},defaultVariants:{},compoundVariants:[]});
9
11
 
10
12
  export { cell, content };
@@ -1,6 +1,6 @@
1
1
  import './../assets/src/layers/layers.css.ts.vanilla-CBkaYCBT.css';
2
2
  import './../assets/src/vanilla-extract/global.css.ts.vanilla-t__QdzLU.css';
3
- import './../assets/src/sprinkles/properties.css.ts.vanilla-BQPG2W33.css';
3
+ import './../assets/src/sprinkles/properties.css.ts.vanilla-Ckyezauv.css';
4
4
  import './../assets/src/vanilla/Table/TableRow.css.ts.vanilla-CZN81sTW.css';
5
5
  import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
6
6
 
@@ -9,7 +9,7 @@ import { text } from './Text-css.js';
9
9
  const Slot = createSlot("@orfium/ictinus/Text");
10
10
  const Text = forwardRef(
11
11
  ({ asChild, children, className, lineClamp, truncate, ...props }, ref) => {
12
- const Comp = asChild ? Slot : "p";
12
+ const Comp = asChild ? Slot : "span";
13
13
  return /* @__PURE__ */ jsx(
14
14
  Box,
15
15
  {
@@ -0,0 +1,12 @@
1
+ import './../assets/src/layers/layers.css.ts.vanilla-CBkaYCBT.css';
2
+ import './../assets/src/vanilla-extract/global.css.ts.vanilla-t__QdzLU.css';
3
+ import './../assets/src/sprinkles/properties.css.ts.vanilla-Ckyezauv.css';
4
+ import './../assets/src/vanilla/Tooltip/Tooltip.css.ts.vanilla-nRPDcOsw.css';
5
+ import { createRuntimeFn } from '@vanilla-extract/recipes/createRuntimeFn';
6
+
7
+ var arrow = createRuntimeFn({defaultClassName:'_1gov5q56',variantClassNames:{},defaultVariants:{},compoundVariants:[]});
8
+ var arrowInverse = createRuntimeFn({defaultClassName:'_1gov5q58',variantClassNames:{},defaultVariants:{},compoundVariants:[]});
9
+ var arrowInverseBorder = '_1gov5q5a';
10
+ var tooltip = createRuntimeFn({defaultClassName:'_146hxcf13o _146hxcf2c _146hxcfk8 _146hxcf1gh _146hxcf1j1 _1gov5q50',variantClassNames:{inverse:{true:'_146hxcf1hp _146hxcf1gc _146hxcf1hj _146hxcf1hm _146hxcf1kw _146hxcf21c _146hxcf1uc _146hxcf1hu',false:'_146hxcf1l0 _146hxcf224'}},defaultVariants:{},compoundVariants:[]});
11
+
12
+ export { arrow, arrowInverse, arrowInverseBorder, tooltip };
@@ -0,0 +1,96 @@
1
+ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
2
+ import { useControllableState } from '@radix-ui/react-use-controllable-state';
3
+ import { createContext, useRef, useContext } from 'react';
4
+ import { TooltipTrigger as TooltipTrigger$1, Tooltip as Tooltip$1, composeRenderProps, OverlayArrow, Focusable } from 'react-aria-components';
5
+ import { cn } from '../src/utils/cn.js';
6
+ import { arrowInverse, arrowInverseBorder, arrow, tooltip } from './Tooltip-css.js';
7
+
8
+ const TooltipContext = createContext({ triggerRef: null });
9
+ const Tooltip = ({
10
+ delay = 500,
11
+ auto = false,
12
+ defaultOpen = false,
13
+ onOpenChange,
14
+ isOpen: openProp,
15
+ ...props
16
+ }) => {
17
+ const triggerRef = useRef(null);
18
+ const [open, setOpen] = useControllableState({
19
+ caller: "Tooltip",
20
+ defaultProp: defaultOpen,
21
+ onChange: onOpenChange,
22
+ prop: openProp
23
+ });
24
+ return /* @__PURE__ */ jsx(TooltipContext.Provider, { value: { triggerRef }, children: /* @__PURE__ */ jsx(
25
+ TooltipTrigger$1,
26
+ {
27
+ delay,
28
+ defaultOpen: auto ? open : defaultOpen,
29
+ isDisabled: auto && openProp === void 0 ? void 0 : props.isDisabled,
30
+ isOpen: auto ? open : openProp,
31
+ onOpenChange: (isOpen) => {
32
+ if (auto && isOpen && triggerRef.current && !hasTruncatedContent(triggerRef.current)) {
33
+ return;
34
+ }
35
+ setOpen(isOpen);
36
+ },
37
+ ...props
38
+ }
39
+ ) });
40
+ };
41
+ Tooltip.displayName = "Tooltip";
42
+ const TooltipContent = ({
43
+ offset = 8,
44
+ inverse = false,
45
+ showArrow = true,
46
+ children,
47
+ ...props
48
+ }) => {
49
+ return /* @__PURE__ */ jsxs(
50
+ Tooltip$1,
51
+ {
52
+ ...props,
53
+ offset,
54
+ className: composeRenderProps(
55
+ props.className,
56
+ (className) => cn(tooltip({ inverse }), className)
57
+ ),
58
+ children: [
59
+ showArrow && /* @__PURE__ */ jsx(OverlayArrow, { children: inverse ? /* @__PURE__ */ jsxs("svg", { width: 18, height: 8, viewBox: "0 0 18 8", className: arrowInverse(), children: [
60
+ /* @__PURE__ */ jsx("path", { d: "M9.00744 6.52304L1.6397 0.000488281L16.3752 0.000489658L9.00744 6.52304Z" }),
61
+ /* @__PURE__ */ jsx(
62
+ "path",
63
+ {
64
+ d: "M9.00337 6.51095L16.3588 0.00158653H18.0034L9.00337 8.00049L0.00337219 0.00158653L1.6397 0.000488281L9.00337 6.51095Z",
65
+ className: arrowInverseBorder
66
+ }
67
+ )
68
+ ] }) : /* @__PURE__ */ jsx("svg", { width: 15, height: 6, viewBox: "0 0 15 6", className: arrow(), children: /* @__PURE__ */ jsx("path", { d: "M7.5 6L0.500001 -1.22392e-06L14.5 0L7.5 6Z" }) }) }),
69
+ children
70
+ ]
71
+ }
72
+ );
73
+ };
74
+ function TooltipTrigger({ ...props }) {
75
+ const { triggerRef } = useContext(TooltipContext);
76
+ return /* @__PURE__ */ jsx(Focusable, { ref: triggerRef, "data-slot": "tooltip-trigger", ...props });
77
+ }
78
+ const hasTruncatedContent = (element) => {
79
+ let truncated = false;
80
+ const elements = [element];
81
+ while (!truncated && elements.length) {
82
+ const element2 = elements.shift();
83
+ if (!(element2 instanceof HTMLElement)) {
84
+ continue;
85
+ }
86
+ const { offsetHeight, offsetWidth, scrollHeight, scrollWidth } = element2;
87
+ if (offsetWidth < scrollWidth || offsetHeight < scrollHeight) {
88
+ truncated = true;
89
+ break;
90
+ }
91
+ elements.push(...element2.children);
92
+ }
93
+ return truncated;
94
+ };
95
+
96
+ export { Tooltip, TooltipContent, TooltipTrigger };