@oneplatformdev/ui 0.1.99-beta.237 → 0.1.99-beta.239
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/CHANGELOG.md +16 -0
- package/Tooltip/Tooltip.d.ts.map +1 -1
- package/Tooltip/Tooltip.js +13 -12
- package/Tooltip/Tooltip.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 0.1.99-beta.239 (2026-03-03)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @oneplatformdev/utils to 0.1.99-beta.239
|
|
6
|
+
- Updated @oneplatformdev/hooks to 0.1.99-beta.239
|
|
7
|
+
- Updated @oneplatformdev/tokens to 0.1.99-beta.239
|
|
8
|
+
|
|
9
|
+
## 0.1.99-beta.238 (2026-03-03)
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated @oneplatformdev/utils to 0.1.99-beta.238
|
|
14
|
+
- Updated @oneplatformdev/hooks to 0.1.99-beta.238
|
|
15
|
+
- Updated @oneplatformdev/tokens to 0.1.99-beta.238
|
|
16
|
+
|
|
1
17
|
## 0.1.99-beta.237 (2026-03-02)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/Tooltip/Tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,4CAyDlE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,4CAQ7D,CAAC"}
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { CircleQuestionMarkIcon as
|
|
2
|
+
import { CircleQuestionMarkIcon as f } from "lucide-react";
|
|
3
3
|
import { cn as n } from "@oneplatformdev/utils";
|
|
4
4
|
import { TooltipProvider as x, TooltipRoot as g, TooltipTrigger as h, TooltipContent as w } from "./TooltipRoot.js";
|
|
5
5
|
import { tooltipQuestionIconVariants as N } from "./tooltipVariants.js";
|
|
6
6
|
const l = (t) => {
|
|
7
|
-
const { triggerProps: r, contentProps:
|
|
7
|
+
const { triggerProps: r, contentProps: s, message: c, children: p, showQuestionMark: m = !1, size: i = "md", questionIconSize: u = i, slotProps: e, ...d } = t;
|
|
8
8
|
return /* @__PURE__ */ a(
|
|
9
9
|
g,
|
|
10
10
|
{
|
|
11
11
|
defaultOpen: !1,
|
|
12
12
|
delayDuration: 300,
|
|
13
|
-
...
|
|
13
|
+
...d,
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ a(
|
|
16
16
|
h,
|
|
@@ -27,13 +27,14 @@ const l = (t) => {
|
|
|
27
27
|
),
|
|
28
28
|
type: "button",
|
|
29
29
|
children: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
p,
|
|
31
|
+
m && /* @__PURE__ */ o(
|
|
32
|
+
f,
|
|
33
33
|
{
|
|
34
34
|
...e?.questionIcon || {},
|
|
35
35
|
className: n(
|
|
36
|
-
N({ size:
|
|
36
|
+
N({ size: i || u }),
|
|
37
|
+
"cursor-help",
|
|
37
38
|
e?.questionIcon?.className
|
|
38
39
|
)
|
|
39
40
|
}
|
|
@@ -46,7 +47,7 @@ const l = (t) => {
|
|
|
46
47
|
{
|
|
47
48
|
align: "center",
|
|
48
49
|
sideOffset: 8,
|
|
49
|
-
...
|
|
50
|
+
...s || {},
|
|
50
51
|
...e?.content || {},
|
|
51
52
|
className: n(
|
|
52
53
|
"flex items-center justify-center",
|
|
@@ -57,8 +58,8 @@ const l = (t) => {
|
|
|
57
58
|
"text-primary",
|
|
58
59
|
"text-md font-normal leading-normal",
|
|
59
60
|
"shadow-[1px_1px_10px_0px_rgba(6,8,13,0.1)]",
|
|
60
|
-
"whitespace-pre-wrap",
|
|
61
|
-
|
|
61
|
+
"whitespace-pre-wrap break-words",
|
|
62
|
+
s?.className,
|
|
62
63
|
e?.content?.className
|
|
63
64
|
),
|
|
64
65
|
children: c || ""
|
|
@@ -67,12 +68,12 @@ const l = (t) => {
|
|
|
67
68
|
]
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
|
-
},
|
|
71
|
+
}, k = (t) => {
|
|
71
72
|
const { skipProvider: r = !0 } = t;
|
|
72
73
|
return r ? /* @__PURE__ */ o(l, { ...t }) : /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(l, { ...t }) });
|
|
73
74
|
};
|
|
74
75
|
export {
|
|
75
|
-
|
|
76
|
+
k as Tooltip,
|
|
76
77
|
l as TooltipInner
|
|
77
78
|
};
|
|
78
79
|
//# sourceMappingURL=Tooltip.js.map
|
package/Tooltip/Tooltip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import { CircleQuestionMarkIcon } from 'lucide-react';\nimport { PropsWithChildren } from \"react\";\n\nimport { cn } from \"@oneplatformdev/utils\";\nimport type { TooltipProps } from \"./Tooltip.types\";\nimport { TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider } from \"./TooltipRoot\";\nimport { tooltipQuestionIconVariants } from './tooltipVariants';\n\nexport const TooltipInner = (props: PropsWithChildren<TooltipProps>) => {\n const { triggerProps, contentProps, message, children, showQuestionMark = false, size = 'md', questionIconSize = size, slotProps, ...rest } = props;\n return (\n <TooltipRoot\n defaultOpen={false}\n delayDuration={300}\n {...rest}\n >\n <TooltipTrigger\n {...(triggerProps || {})}\n {...(slotProps?.trigger || {})}\n className={cn(\n 'flex flex-row gap-1 w-fit',\n 'items-center',\n 'cursor-pointer',\n 'outline-none',\n triggerProps?.className,\n slotProps?.trigger?.className\n )}\n type='button'\n >\n {children}\n {showQuestionMark && (\n <CircleQuestionMarkIcon\n {...(slotProps?.questionIcon || {})}\n className={cn(\n tooltipQuestionIconVariants({ size: size || questionIconSize }),\n slotProps?.questionIcon?.className\n )}\n />\n )}\n </TooltipTrigger>\n\n <TooltipContent\n align=\"center\"\n sideOffset={8}\n {...(contentProps || {})}\n {...(slotProps?.content || {})}\n className={cn(\n 'flex items-center justify-center',\n 'w-auto max-w-80',\n 'rounded-xl',\n 'px-4 py-3',\n 'bg-white',\n 'text-primary',\n 'text-md font-normal leading-normal',\n 'shadow-[1px_1px_10px_0px_rgba(6,8,13,0.1)]',\n 'whitespace-pre-wrap',\n contentProps?.className,\n slotProps?.content?.className\n )}\n >\n {message || ''}\n </TooltipContent>\n </TooltipRoot>\n );\n};\n\nexport const Tooltip = (props: PropsWithChildren<TooltipProps>) => {\n const { skipProvider = true } = props;\n if (skipProvider) return <TooltipInner {...props}/>;\n return (\n <TooltipProvider>\n <TooltipInner {...props}/>\n </TooltipProvider>\n );\n};\n"],"names":["TooltipInner","props","triggerProps","contentProps","message","children","showQuestionMark","size","questionIconSize","slotProps","rest","jsxs","TooltipRoot","TooltipTrigger","cn","jsx","CircleQuestionMarkIcon","tooltipQuestionIconVariants","TooltipContent","Tooltip","skipProvider","TooltipProvider"],"mappings":";;;;;AAQO,MAAMA,IAAe,CAACC,MAA2C;AACtE,QAAM,EAAE,cAAAC,GAAc,cAAAC,GAAc,SAAAC,GAAS,UAAAC,GAAU,kBAAAC,IAAmB,IAAO,MAAAC,IAAO,MAAM,kBAAAC,IAAmBD,GAAM,WAAAE,GAAW,GAAGC,MAAST;AAC9I,SACE,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,aAAa;AAAA,MACb,eAAe;AAAA,MACd,GAAGF;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAACE;AAAA,UAAA;AAAA,YACE,GAAIX,KAAgB,CAAA;AAAA,YACpB,GAAIO,GAAW,WAAW,CAAA;AAAA,YAC3B,WAAWK;AAAA,cACT;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACAZ,GAAc;AAAA,cACdO,GAAW,SAAS;AAAA,YAAA;AAAA,YAEtB,MAAK;AAAA,YAEJ,UAAA;AAAA,cAAAJ;AAAA,cACAC,KACC,gBAAAS;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACE,GAAIP,GAAW,gBAAgB,CAAA;AAAA,kBAChC,WAAWK;AAAA,oBACTG,EAA4B,EAAE,MAAMV,KAAQC,GAAkB;AAAA,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import { CircleQuestionMarkIcon } from 'lucide-react';\nimport { PropsWithChildren } from \"react\";\n\nimport { cn } from \"@oneplatformdev/utils\";\nimport type { TooltipProps } from \"./Tooltip.types\";\nimport { TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider } from \"./TooltipRoot\";\nimport { tooltipQuestionIconVariants } from './tooltipVariants';\n\nexport const TooltipInner = (props: PropsWithChildren<TooltipProps>) => {\n const { triggerProps, contentProps, message, children, showQuestionMark = false, size = 'md', questionIconSize = size, slotProps, ...rest } = props;\n return (\n <TooltipRoot\n defaultOpen={false}\n delayDuration={300}\n {...rest}\n >\n <TooltipTrigger\n {...(triggerProps || {})}\n {...(slotProps?.trigger || {})}\n className={cn(\n 'flex flex-row gap-1 w-fit',\n 'items-center',\n 'cursor-pointer',\n 'outline-none',\n triggerProps?.className,\n slotProps?.trigger?.className\n )}\n type='button'\n >\n {children}\n {showQuestionMark && (\n <CircleQuestionMarkIcon\n {...(slotProps?.questionIcon || {})}\n className={cn(\n tooltipQuestionIconVariants({ size: size || questionIconSize }),\n 'cursor-help',\n slotProps?.questionIcon?.className\n )}\n />\n )}\n </TooltipTrigger>\n\n <TooltipContent\n align=\"center\"\n sideOffset={8}\n {...(contentProps || {})}\n {...(slotProps?.content || {})}\n className={cn(\n 'flex items-center justify-center',\n 'w-auto max-w-80',\n 'rounded-xl',\n 'px-4 py-3',\n 'bg-white',\n 'text-primary',\n 'text-md font-normal leading-normal',\n 'shadow-[1px_1px_10px_0px_rgba(6,8,13,0.1)]',\n 'whitespace-pre-wrap break-words',\n contentProps?.className,\n slotProps?.content?.className\n )}\n >\n {message || ''}\n </TooltipContent>\n </TooltipRoot>\n );\n};\n\nexport const Tooltip = (props: PropsWithChildren<TooltipProps>) => {\n const { skipProvider = true } = props;\n if (skipProvider) return <TooltipInner {...props}/>;\n return (\n <TooltipProvider>\n <TooltipInner {...props}/>\n </TooltipProvider>\n );\n};\n"],"names":["TooltipInner","props","triggerProps","contentProps","message","children","showQuestionMark","size","questionIconSize","slotProps","rest","jsxs","TooltipRoot","TooltipTrigger","cn","jsx","CircleQuestionMarkIcon","tooltipQuestionIconVariants","TooltipContent","Tooltip","skipProvider","TooltipProvider"],"mappings":";;;;;AAQO,MAAMA,IAAe,CAACC,MAA2C;AACtE,QAAM,EAAE,cAAAC,GAAc,cAAAC,GAAc,SAAAC,GAAS,UAAAC,GAAU,kBAAAC,IAAmB,IAAO,MAAAC,IAAO,MAAM,kBAAAC,IAAmBD,GAAM,WAAAE,GAAW,GAAGC,MAAST;AAC9I,SACE,gBAAAU;AAAA,IAACC;AAAA,IAA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AAc,GAAGC,GAAM,GAC1B;AAEJ;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/ui",
|
|
3
|
-
"version": "0.1.99-beta.
|
|
3
|
+
"version": "0.1.99-beta.239",
|
|
4
4
|
"description": "UI component library for OnePlatform",
|
|
5
5
|
"author": "One Platform Development Team",
|
|
6
6
|
"keywords": [
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"recharts": "^3.2.0",
|
|
107
107
|
"sonner": "^2.0.7",
|
|
108
108
|
"vaul": "^1.1.2",
|
|
109
|
-
"@oneplatformdev/
|
|
110
|
-
"@oneplatformdev/
|
|
111
|
-
"@oneplatformdev/utils": "^0.1.99-beta.
|
|
109
|
+
"@oneplatformdev/tokens": "^0.1.99-beta.239",
|
|
110
|
+
"@oneplatformdev/hooks": "^0.1.99-beta.239",
|
|
111
|
+
"@oneplatformdev/utils": "^0.1.99-beta.239"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
114
114
|
"chromatic": "chromatic"
|