@cagatayfdn/flora-components 0.0.42 → 0.0.43
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/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +33 -28
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1301,6 +1301,11 @@ declare type TypographyTextProps = {
|
|
|
1301
1301
|
children: string;
|
|
1302
1302
|
id?: string;
|
|
1303
1303
|
copyable?: boolean;
|
|
1304
|
+
notificationProps?: {
|
|
1305
|
+
type: NotificationAppearanceType;
|
|
1306
|
+
message: string;
|
|
1307
|
+
closeTime: number;
|
|
1308
|
+
} | null;
|
|
1304
1309
|
className?: string;
|
|
1305
1310
|
ellipsis?: boolean;
|
|
1306
1311
|
href?: string;
|
package/dist/index.es.js
CHANGED
|
@@ -21743,63 +21743,68 @@ const Jq = "_typography_1wwcb_1", Qq = "_ellipsis_1wwcb_6", Uq = "_success_1wwcb
|
|
|
21743
21743
|
const {
|
|
21744
21744
|
children: t,
|
|
21745
21745
|
copyable: e,
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21746
|
+
notificationProps: i,
|
|
21747
|
+
className: r,
|
|
21748
|
+
ellipsis: s,
|
|
21749
|
+
id: o,
|
|
21750
|
+
appearance: a,
|
|
21751
|
+
href: l,
|
|
21752
|
+
tooltipContent: c
|
|
21753
|
+
} = n, [u, d] = Ne(!1), h = vt(null), { t: g } = wt(), f = i || {
|
|
21754
|
+
type: ic.SUCCESS,
|
|
21755
|
+
message: g("text.copied"),
|
|
21756
|
+
closeTime: 3e3
|
|
21757
|
+
}, p = (m) => {
|
|
21758
|
+
u || (navigator.clipboard.writeText(m), d(!0), cb({
|
|
21759
|
+
type: f.type,
|
|
21760
|
+
message: f.message,
|
|
21761
|
+
closeTime: f.closeTime
|
|
21762
|
+
})), setTimeout(() => d(!1), 1e3);
|
|
21758
21763
|
};
|
|
21759
21764
|
return /* @__PURE__ */ y.jsxs(
|
|
21760
21765
|
"p",
|
|
21761
21766
|
{
|
|
21762
21767
|
"data-testid": "typographytext",
|
|
21763
|
-
ref:
|
|
21764
|
-
className: $(
|
|
21768
|
+
ref: h,
|
|
21769
|
+
className: $(r, Ni.typography, {
|
|
21765
21770
|
[Ni.copy]: e,
|
|
21766
|
-
[Ni[`${
|
|
21771
|
+
[Ni[`${a}`]]: a
|
|
21767
21772
|
}),
|
|
21768
|
-
onClick: () =>
|
|
21773
|
+
onClick: () => l && window.open(l, "_blank"),
|
|
21769
21774
|
children: [
|
|
21770
|
-
|
|
21775
|
+
c ? /* @__PURE__ */ y.jsx(
|
|
21771
21776
|
Ji,
|
|
21772
21777
|
{
|
|
21773
|
-
id: `tooltipContent${
|
|
21774
|
-
tooltipContent:
|
|
21775
|
-
ellipsis:
|
|
21778
|
+
id: `tooltipContent${o}`,
|
|
21779
|
+
tooltipContent: c,
|
|
21780
|
+
ellipsis: s,
|
|
21776
21781
|
children: t
|
|
21777
21782
|
}
|
|
21778
|
-
) : /* @__PURE__ */ y.jsx("span", { className: $({ [Ni.ellipsis]:
|
|
21783
|
+
) : /* @__PURE__ */ y.jsx("span", { className: $({ [Ni.ellipsis]: s }), children: t }),
|
|
21779
21784
|
e && /* @__PURE__ */ y.jsx(
|
|
21780
21785
|
Ji,
|
|
21781
21786
|
{
|
|
21782
|
-
id: `copyId${
|
|
21787
|
+
id: `copyId${o}`,
|
|
21783
21788
|
className: "width90",
|
|
21784
21789
|
direction: rs.TOP,
|
|
21785
|
-
tooltipContent:
|
|
21790
|
+
tooltipContent: u ? "Copied" : "Copy",
|
|
21786
21791
|
children: /* @__PURE__ */ y.jsx(
|
|
21787
21792
|
"span",
|
|
21788
21793
|
{
|
|
21789
21794
|
className: $(Ni.copy, {
|
|
21790
|
-
[Ni.checkCopy]:
|
|
21795
|
+
[Ni.checkCopy]: u
|
|
21791
21796
|
}),
|
|
21792
|
-
onClick: (
|
|
21793
|
-
|
|
21797
|
+
onClick: (m) => {
|
|
21798
|
+
m.stopPropagation(), p(t);
|
|
21794
21799
|
},
|
|
21795
|
-
children:
|
|
21800
|
+
children: u ? /* @__PURE__ */ y.jsx(Ye, { name: Ue.Check }) : /* @__PURE__ */ y.jsx(Ye, { name: Ue.Copy })
|
|
21796
21801
|
}
|
|
21797
21802
|
)
|
|
21798
21803
|
}
|
|
21799
21804
|
)
|
|
21800
21805
|
]
|
|
21801
21806
|
},
|
|
21802
|
-
|
|
21807
|
+
o
|
|
21803
21808
|
);
|
|
21804
21809
|
}, t8 = "_item_agw97_1", n8 = "_connectedService_agw97_54", i8 = "_subUrl_agw97_59", r8 = {
|
|
21805
21810
|
item: t8,
|