@trsys-tech/matrix-library 0.5.4 → 0.5.6
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,9 +1,11 @@
|
|
|
1
|
-
import { TooltipProps, TooltipProviderProps, TooltipTriggerProps
|
|
1
|
+
import { Content, TooltipContentProps as ContentProps, TooltipProps, TooltipProviderProps, TooltipTriggerProps } from '@radix-ui/react-tooltip';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const TooltipProvider: React.FC<TooltipProviderProps>;
|
|
4
4
|
declare const Tooltip: React.FC<TooltipProps>;
|
|
5
5
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const TooltipContent: React.ForwardRefExoticComponent<
|
|
7
|
-
type TooltipContentProps =
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
type TooltipContentProps = ContentProps & {
|
|
8
|
+
ref: React.Ref<React.ElementRef<typeof Content>>;
|
|
9
|
+
};
|
|
8
10
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, type TooltipProps, type TooltipContentProps, type TooltipTriggerProps, type TooltipProviderProps, };
|
|
9
11
|
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,OAAO,EACP,mBAAmB,IAAI,YAAY,EAEnC,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAIjC,QAAA,MAAM,eAAe,gCAAW,CAAC;AAEjC,QAAA,MAAM,OAAO,wBAAO,CAAC;AAErB,QAAA,MAAM,cAAc,+FAAU,CAAC;AAE/B,QAAA,MAAM,cAAc,qFAelB,CAAC;AAEH,KAAK,mBAAmB,GAAG,YAAY,GAAG;IAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CAAE,CAAC;AAE/F,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,CAAC"}
|
package/dist/tooltip.es.js
CHANGED
|
@@ -2,29 +2,27 @@ import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import { Root as n, Trigger as l, Provider as p, Portal as f, Content as t, Arrow as c } from "@radix-ui/react-tooltip";
|
|
4
4
|
import { cn as g } from "./utils.es.js";
|
|
5
|
-
const y = p,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
) })
|
|
22
|
-
);
|
|
5
|
+
const y = p, w = n, N = l, x = m.forwardRef(({ className: a, sideOffset: e = 4, children: r, ...i }, d) => /* @__PURE__ */ o(f, { children: /* @__PURE__ */ s(
|
|
6
|
+
t,
|
|
7
|
+
{
|
|
8
|
+
ref: d,
|
|
9
|
+
sideOffset: e,
|
|
10
|
+
className: g(
|
|
11
|
+
"z-50 rounded-sm bg-primary-900 px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
12
|
+
a
|
|
13
|
+
),
|
|
14
|
+
...i,
|
|
15
|
+
children: [
|
|
16
|
+
r,
|
|
17
|
+
/* @__PURE__ */ o(c, { "data-role": "arrow", className: "w-2 h-1.5" })
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
) }));
|
|
23
21
|
x.displayName = t.displayName;
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
w as Tooltip,
|
|
26
24
|
x as TooltipContent,
|
|
27
25
|
y as TooltipProvider,
|
|
28
|
-
|
|
26
|
+
N as TooltipTrigger
|
|
29
27
|
};
|
|
30
28
|
//# sourceMappingURL=tooltip.es.js.map
|
package/dist/tooltip.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.es.js","sources":["../src/components/tooltip/Tooltip.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport {
|
|
1
|
+
{"version":3,"file":"tooltip.es.js","sources":["../src/components/tooltip/Tooltip.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport {\r\n Root,\r\n Provider,\r\n Trigger,\r\n Portal,\r\n Content,\r\n TooltipContentProps as ContentProps,\r\n Arrow,\r\n TooltipProps,\r\n TooltipProviderProps,\r\n TooltipTriggerProps,\r\n} from \"@radix-ui/react-tooltip\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst TooltipProvider = Provider;\r\n\r\nconst Tooltip = Root;\r\n\r\nconst TooltipTrigger = Trigger;\r\n\r\nconst TooltipContent = React.forwardRef<React.ElementRef<typeof Content>, ContentProps>(({ className, sideOffset = 4, children, ...props }, ref) => (\r\n <Portal>\r\n <Content\r\n ref={ref}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n \"z-50 rounded-sm bg-primary-900 px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\r\n className,\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n <Arrow data-role=\"arrow\" className=\"w-2 h-1.5\" />\r\n </Content>\r\n </Portal>\r\n));\r\nTooltipContent.displayName = Content.displayName;\r\ntype TooltipContentProps = ContentProps & { ref: React.Ref<React.ElementRef<typeof Content>> };\r\n\r\nexport {\r\n Tooltip,\r\n TooltipTrigger,\r\n TooltipContent,\r\n TooltipProvider,\r\n type TooltipProps,\r\n type TooltipContentProps,\r\n type TooltipTriggerProps,\r\n type TooltipProviderProps,\r\n};\r\n"],"names":["TooltipProvider","Provider","Tooltip","Root","TooltipTrigger","Trigger","TooltipContent","React","className","sideOffset","children","props","ref","Portal","jsxs","Content","cn","jsx","Arrow"],"mappings":";;;;AAkBA,MAAMA,IAAkBC,GAElBC,IAAUC,GAEVC,IAAiBC,GAEjBC,IAAiBC,EAAM,WAA2D,CAAC,EAAE,WAAAC,GAAW,YAAAC,IAAa,GAAG,UAAAC,GAAU,GAAGC,EAAA,GAASC,wBACzIC,GAAA,EACC,UAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,KAAAH;AAAA,IACA,YAAAH;AAAA,IACA,WAAWO;AAAA,MACT;AAAA,MACAR;AAAA,IAAA;AAAA,IAED,GAAGG;AAAA,IAEH,UAAA;AAAA,MAAAD;AAAA,MACD,gBAAAO,EAACC,GAAA,EAAM,aAAU,SAAQ,WAAU,YAAA,CAAY;AAAA,IAAA;AAAA,EAAA;AACjD,GACF,CACD;AACDZ,EAAe,cAAcS,EAAQ;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@trsys-tech/matrix-library",
|
|
3
3
|
"description": "MatrixUI Library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.6",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"@radix-ui/react-tooltip": "^1.1.4",
|
|
77
77
|
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
78
78
|
"@trsys-tech/matrix-icons": "^0.1.0",
|
|
79
|
-
"ag-grid-community": "^
|
|
80
|
-
"ag-grid-react": "^
|
|
79
|
+
"ag-grid-community": "^35.0.0",
|
|
80
|
+
"ag-grid-react": "^35.0.0",
|
|
81
81
|
"clsx": "^2.1.1",
|
|
82
82
|
"cmdk": "^1.0.4",
|
|
83
83
|
"lucide-react": "^0.454.0",
|