@epam/ai-dial-ui-kit 0.5.0-rc.106 → 0.5.0-rc.108
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/dist/dial-ui-kit.es.js
CHANGED
|
@@ -3565,17 +3565,25 @@ const u1 = "flex", h1 = "pb-1 mt-2", g1 = {
|
|
|
3565
3565
|
}, x7 = ({
|
|
3566
3566
|
label: e,
|
|
3567
3567
|
text: t,
|
|
3568
|
-
|
|
3569
|
-
|
|
3568
|
+
tooltip: s,
|
|
3569
|
+
children: i,
|
|
3570
|
+
postfix: o
|
|
3570
3571
|
}) => /* @__PURE__ */ z(
|
|
3571
3572
|
"div",
|
|
3572
3573
|
{
|
|
3573
|
-
className: ee("flex flex-col",
|
|
3574
|
+
className: ee("flex flex-col", i ? "" : "max-w-[200px]"),
|
|
3574
3575
|
children: [
|
|
3575
3576
|
/* @__PURE__ */ m("label", { className: "dial-tiny mb-2 text-secondary", children: e }),
|
|
3576
|
-
|
|
3577
|
-
/* @__PURE__ */ m(
|
|
3578
|
-
|
|
3577
|
+
i || /* @__PURE__ */ z("div", { className: "flex flex-row items-center", children: [
|
|
3578
|
+
/* @__PURE__ */ m(
|
|
3579
|
+
Ks,
|
|
3580
|
+
{
|
|
3581
|
+
triggerClassName: "text-primary",
|
|
3582
|
+
tooltip: s || t,
|
|
3583
|
+
children: t
|
|
3584
|
+
}
|
|
3585
|
+
),
|
|
3586
|
+
o || null
|
|
3579
3587
|
] })
|
|
3580
3588
|
]
|
|
3581
3589
|
}
|
|
@@ -46053,7 +46061,10 @@ const yg = () => typeof window < "u" && window.innerWidth < 640, Rg = () => {
|
|
|
46053
46061
|
e && /* @__PURE__ */ m(
|
|
46054
46062
|
"span",
|
|
46055
46063
|
{
|
|
46056
|
-
className:
|
|
46064
|
+
className: ee(
|
|
46065
|
+
"pl-2 dial-small",
|
|
46066
|
+
i ? "text-secondary" : "text-primary"
|
|
46067
|
+
),
|
|
46057
46068
|
"aria-label": "switch-title",
|
|
46058
46069
|
children: e
|
|
46059
46070
|
}
|
|
@@ -50918,7 +50929,7 @@ const c7 = ({
|
|
|
50918
50929
|
/* @__PURE__ */ m("div", { className: ss, children: c }),
|
|
50919
50930
|
/* @__PURE__ */ m("div", { className: mr, children: /* @__PURE__ */ m(wt, { text: s.author || "—" }) }),
|
|
50920
50931
|
/* @__PURE__ */ m("div", { className: ss, children: r }),
|
|
50921
|
-
/* @__PURE__ */ m("div", { className: h7, children: s.path })
|
|
50932
|
+
/* @__PURE__ */ m("div", { className: h7, children: decodeURIComponent(s.path) })
|
|
50922
50933
|
] }) : null
|
|
50923
50934
|
}
|
|
50924
50935
|
) })
|
|
@@ -2,6 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
export interface DialLabelledTextProps {
|
|
3
3
|
label: string;
|
|
4
4
|
text?: string;
|
|
5
|
+
tooltip?: string;
|
|
5
6
|
children?: ReactNode;
|
|
6
7
|
postfix?: ReactNode;
|
|
7
8
|
}
|
|
@@ -19,6 +20,7 @@ export interface DialLabelledTextProps {
|
|
|
19
20
|
*
|
|
20
21
|
* @param label - The main label text for the field
|
|
21
22
|
* @param [text] - Optional tooltip and secondary text
|
|
23
|
+
* @param [tooltip] - Optional tooltip different from main text
|
|
22
24
|
* @param [children] - Custom content to render instead of the default text/tooltip
|
|
23
25
|
* @param [postfix] - Element to display after the text (e.g., an asterisk)
|
|
24
26
|
*/
|