@oneplatformdev/ui 0.1.10-39 → 0.1.10-40
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 +8 -0
- package/Tooltip/Tooltip.d.ts.map +1 -1
- package/Tooltip/Tooltip.js +7 -6
- package/Tooltip/Tooltip.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.1.10-40 (2025-10-02)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @oneplatformdev/utils to 0.1.1-89
|
|
6
|
+
- Updated @oneplatformdev/hooks to 0.1.0-75
|
|
7
|
+
- Updated @oneplatformdev/tokens to 0.0.1-62
|
|
8
|
+
|
|
1
9
|
## 0.1.10-39 (2025-10-02)
|
|
2
10
|
|
|
3
11
|
### 🧱 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,EAAgC,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAGnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,4CAwClE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,iBAAiB,CAAC,YAAY,CAAC,mDAS7D,CAAC"}
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { CircleQuestionMarkIcon as m } from "lucide-react";
|
|
3
3
|
import { cn as i } from "@oneplatformdev/utils";
|
|
4
|
+
import { TooltipProvider as d, TooltipRoot as f, TooltipTrigger as u, TooltipContent as x } from "./TooltipRoot.js";
|
|
4
5
|
const l = (e) => {
|
|
5
6
|
const { triggerProps: t, contentProps: o, message: s, children: a, hiddenQuestionMark: c = !1, ...p } = e;
|
|
6
7
|
return /* @__PURE__ */ n(
|
|
7
|
-
|
|
8
|
+
f,
|
|
8
9
|
{
|
|
9
10
|
defaultOpen: !1,
|
|
10
11
|
delayDuration: 300,
|
|
@@ -12,7 +13,7 @@ const l = (e) => {
|
|
|
12
13
|
...p,
|
|
13
14
|
children: [
|
|
14
15
|
/* @__PURE__ */ n(
|
|
15
|
-
|
|
16
|
+
u,
|
|
16
17
|
{
|
|
17
18
|
...t || {},
|
|
18
19
|
className: i(
|
|
@@ -30,7 +31,7 @@ const l = (e) => {
|
|
|
30
31
|
}
|
|
31
32
|
),
|
|
32
33
|
/* @__PURE__ */ r(
|
|
33
|
-
|
|
34
|
+
x,
|
|
34
35
|
{
|
|
35
36
|
align: "center",
|
|
36
37
|
...o || {},
|
|
@@ -49,12 +50,12 @@ const l = (e) => {
|
|
|
49
50
|
]
|
|
50
51
|
}
|
|
51
52
|
);
|
|
52
|
-
},
|
|
53
|
+
}, w = (e) => {
|
|
53
54
|
const { message: t = "", skipProvider: o = !0 } = e;
|
|
54
|
-
return t ? o ? /* @__PURE__ */ r(l, { ...e }) : /* @__PURE__ */ r(
|
|
55
|
+
return t ? o ? /* @__PURE__ */ r(l, { ...e }) : /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r(l, { ...e }) }) : null;
|
|
55
56
|
};
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
w as Tooltip,
|
|
58
59
|
l as TooltipInner
|
|
59
60
|
};
|
|
60
61
|
//# 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 { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactNode } from \"react\";\n\nimport { cn } from \"@oneplatformdev/utils\";\nimport { TooltipProps } from \"./Tooltip.types\";\n\nexport const TooltipInner = (props: PropsWithChildren<TooltipProps>) => {\n const { triggerProps, contentProps, message, children, hiddenQuestionMark = false, ...rest } = props;\n return (\n <TooltipRoot\n defaultOpen={false}\n delayDuration={300}\n disableHoverableContent\n {...rest}\n >\n <TooltipTrigger\n {...(triggerProps || {})}\n className={cn(\n 'flex flex-row gap-1 w-fit',\n 'items-center',\n 'cursor-pointer',\n 'outline-none',\n triggerProps?.className\n )}\n type='button'\n >\n {children}\n {!hiddenQuestionMark && <CircleQuestionMarkIcon/>}\n </TooltipTrigger>\n <TooltipContent\n align=\"center\"\n {...(contentProps || {})}\n className={cn(\n 'flex items-center justify-center',\n 'max-w-[320px] p-4 pb-3',\n 'bg-[#FCFCFC] border-none',\n 'shadow-[0px_4px_8px_rgba(13,14,43,0.125)]',\n 'text-[#363B4E] font-normal text-md leading-normal',\n 'whitespace-pre-wrap',\n contentProps?.className\n )}\n >\n {message || ''}\n </TooltipContent>\n </TooltipRoot>\n );\n};\n\nexport const Tooltip = (props: PropsWithChildren<TooltipProps>) => {\n const { message = '', skipProvider = true } = props;\n if (!message) return null;\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","hiddenQuestionMark","rest","jsxs","cn","jsx","CircleQuestionMarkIcon","Tooltip","skipProvider"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import { CircleQuestionMarkIcon } from 'lucide-react';\nimport { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactNode } from \"react\";\n\nimport { cn } from \"@oneplatformdev/utils\";\nimport type { TooltipProps } from \"./Tooltip.types\";\nimport { TooltipRoot, TooltipTrigger, TooltipContent, TooltipProvider } from \"./TooltipRoot\";\n\nexport const TooltipInner = (props: PropsWithChildren<TooltipProps>) => {\n const { triggerProps, contentProps, message, children, hiddenQuestionMark = false, ...rest } = props;\n return (\n <TooltipRoot\n defaultOpen={false}\n delayDuration={300}\n disableHoverableContent\n {...rest}\n >\n <TooltipTrigger\n {...(triggerProps || {})}\n className={cn(\n 'flex flex-row gap-1 w-fit',\n 'items-center',\n 'cursor-pointer',\n 'outline-none',\n triggerProps?.className\n )}\n type='button'\n >\n {children}\n {!hiddenQuestionMark && <CircleQuestionMarkIcon/>}\n </TooltipTrigger>\n <TooltipContent\n align=\"center\"\n {...(contentProps || {})}\n className={cn(\n 'flex items-center justify-center',\n 'max-w-[320px] p-4 pb-3',\n 'bg-[#FCFCFC] border-none',\n 'shadow-[0px_4px_8px_rgba(13,14,43,0.125)]',\n 'text-[#363B4E] font-normal text-md leading-normal',\n 'whitespace-pre-wrap',\n contentProps?.className\n )}\n >\n {message || ''}\n </TooltipContent>\n </TooltipRoot>\n );\n};\n\nexport const Tooltip = (props: PropsWithChildren<TooltipProps>) => {\n const { message = '', skipProvider = true } = props;\n if (!message) return null;\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","hiddenQuestionMark","rest","jsxs","TooltipRoot","TooltipTrigger","cn","jsx","CircleQuestionMarkIcon","TooltipContent","Tooltip","skipProvider","TooltipProvider"],"mappings":";;;;AAOO,MAAMA,IAAe,CAACC,MAA2C;AACtE,QAAM,EAAE,cAAAC,GAAc,cAAAC,GAAc,SAAAC,GAAS,UAAAC,GAAU,oBAAAC,IAAqB,IAAO,GAAGC,EAAA,IAASN;AAC/F,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,aAAa;AAAA,MACb,eAAe;AAAA,MACf,yBAAuB;AAAA,MACtB,GAAGF;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAACE;AAAA,UAAA;AAAA,YACE,GAAIR,KAAgB,CAAA;AAAA,YACrB,WAAWS;AAAA,cACT;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACAT,GAAc;AAAA,YAAA;AAAA,YAEhB,MAAK;AAAA,YAEJ,UAAA;AAAA,cAAAG;AAAA,cACA,CAACC,KAAsB,gBAAAM,EAACC,GAAA,CAAA,CAAsB;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAEjD,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACL,GAAIX,KAAgB,CAAA;AAAA,YACrB,WAAWQ;AAAA,cACT;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACAR,GAAc;AAAA,YAAA;AAAA,YAGf,UAAAC,KAAW;AAAA,UAAA;AAAA,QAAA;AAAA,MACd;AAAA,IAAA;AAAA,EAAA;AAGN,GAEaW,IAAU,CAACd,MAA2C;AACjE,QAAM,EAAE,SAAAG,IAAU,IAAI,cAAAY,IAAe,OAASf;AAC9C,SAAKG,IACDY,IAAqB,gBAAAJ,EAACZ,GAAA,EAAc,GAAGC,EAAA,CAAM,sBAE9CgB,GAAA,EACC,UAAA,gBAAAL,EAACZ,GAAA,EAAc,GAAGC,GAAM,GAC1B,IALmB;AAOvB;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/ui",
|
|
3
|
-
"version": "0.1.10-
|
|
3
|
+
"version": "0.1.10-40",
|
|
4
4
|
"description": "UI component library for OnePlatform",
|
|
5
5
|
"author": "One Platform Development Team",
|
|
6
6
|
"keywords": [
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"recharts": "^3.2.0",
|
|
106
106
|
"sonner": "^2.0.7",
|
|
107
107
|
"vaul": "^1.1.2",
|
|
108
|
-
"@oneplatformdev/tokens": "^0.0.1-
|
|
109
|
-
"@oneplatformdev/utils": "^0.1.1-
|
|
110
|
-
"@oneplatformdev/hooks": "^0.1.0-
|
|
108
|
+
"@oneplatformdev/tokens": "^0.0.1-62",
|
|
109
|
+
"@oneplatformdev/utils": "^0.1.1-89",
|
|
110
|
+
"@oneplatformdev/hooks": "^0.1.0-75"
|
|
111
111
|
}
|
|
112
112
|
}
|