@cagatayfdn/flora-components 0.0.115 → 0.0.116
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/Accordion.css +1 -1
- package/dist/ActionButton.css +1 -1
- package/dist/AlertCard.css +1 -1
- package/dist/Autocomplete.css +1 -1
- package/dist/Button.css +1 -1
- package/dist/Card.css +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Config.css +1 -1
- package/dist/Confirm.css +1 -1
- package/dist/ContentHeader.css +1 -1
- package/dist/Divider.css +1 -1
- package/dist/DropdownList.css +1 -1
- package/dist/ErrorLogModal.css +1 -1
- package/dist/FileUpload.css +1 -1
- package/dist/FileUpload.module-BxCEtOHx.js +32 -0
- package/dist/Heading.css +1 -1
- package/dist/IconBox.css +1 -1
- package/dist/InfoBoxList.css +1 -1
- package/dist/InfoBoxList.module-CmdO3WXi.js +8 -0
- package/dist/InfoDate.css +1 -1
- package/dist/InfoText.css +1 -1
- package/dist/Input.css +1 -1
- package/dist/Label.css +1 -1
- package/dist/Legends.css +1 -1
- package/dist/Loading.css +1 -1
- package/dist/MenuItem-Df6Zsa7E.js +53 -0
- package/dist/MenuItem.css +1 -1
- package/dist/Modal.css +1 -1
- package/dist/NoResult.css +1 -1
- package/dist/PageWrap.css +1 -1
- package/dist/Pager.css +1 -1
- package/dist/Panel.css +1 -1
- package/dist/Radio.css +1 -1
- package/dist/ResultError.css +1 -1
- package/dist/ScrollContainer.css +1 -1
- package/dist/{Select-DcLZCXNo.js → Select-BGHusr4q.js} +1 -1
- package/dist/Select.css +1 -1
- package/dist/Select.module-gwwx8i1I.js +20 -0
- package/dist/StatusTag.css +1 -1
- package/dist/StatusTypography.css +1 -1
- package/dist/Stepper.css +1 -1
- package/dist/Switch.css +1 -1
- package/dist/Tab.css +1 -1
- package/dist/Table.css +1 -1
- package/dist/Table.module-vUNIKXwV.js +29 -0
- package/dist/Textarea.css +1 -1
- package/dist/Tooltip.css +1 -1
- package/dist/TypographyText.css +1 -1
- package/dist/ValidationError.css +1 -1
- package/dist/components/Accordion/Accordion.js +22 -22
- package/dist/components/ActionButton/ActionButton.js +25 -25
- package/dist/components/AlertCard/AlertCard.js +9 -9
- package/dist/components/Autocomplete/Autocomplete.js +25 -25
- package/dist/components/Button/Button.js +43 -43
- package/dist/components/Card/Card.js +12 -12
- package/dist/components/Charts/Legends.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +46 -109
- package/dist/components/Config/Config.js +14 -14
- package/dist/components/Confirm/Confirm.js +20 -20
- package/dist/components/ContentHeader/ContentHeader.js +31 -31
- package/dist/components/Datepicker/Datepicker.js +18 -18
- package/dist/components/Divider/Divider.js +19 -19
- package/dist/components/Drawer/index.js +4 -4
- package/dist/components/Dropdown/DropdownList.js +23 -23
- package/dist/components/ErrorLogModal/ErrorLogModal.js +36 -31
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/FileUpload/ImagePreview.js +1 -1
- package/dist/components/FileUpload/LengthCard.js +1 -1
- package/dist/components/FileUpload/PreviewModal.js +1 -1
- package/dist/components/Heading/Heading.js +14 -14
- package/dist/components/IconBox/IconBox.js +4 -4
- package/dist/components/InfoBoxList/InfoBoxList.js +1 -1
- package/dist/components/InfoBoxList/helper.js +1 -1
- package/dist/components/InfoDate/InfoDate.js +5 -5
- package/dist/components/InfoText/InfoText.js +1 -1
- package/dist/components/Input/Input.js +38 -38
- package/dist/components/Label/Label.js +8 -8
- package/dist/components/Loading/Loading.js +25 -25
- package/dist/components/Modal/Modal.js +22 -22
- package/dist/components/NavigatorCard/index.js +27 -27
- package/dist/components/NoResult/NoResult.js +5 -5
- package/dist/components/PageWrapper/PageWrap.js +7 -7
- package/dist/components/Pager/Pager.js +23 -23
- package/dist/components/Panel/Panel.js +23 -23
- package/dist/components/Radio/Radio.js +32 -32
- package/dist/components/ResultError/ResultError.js +1 -1
- package/dist/components/ScrollContainer/ScrollContainer.js +7 -7
- package/dist/components/Select/NoData.js +1 -1
- package/dist/components/Select/OptionItem.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Sidebar/MenuItem.js +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/StatusTag/StatusTag.js +10 -10
- package/dist/components/StatusTypography/StatusTypography.js +20 -20
- package/dist/components/Stepper/Stepper.js +18 -18
- package/dist/components/Switch/Switch.js +24 -24
- package/dist/components/Tab/Tab.js +7 -7
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableHeader.js +2 -2
- package/dist/components/Table/TableSort.js +1 -1
- package/dist/components/Textarea/Textarea.js +51 -51
- package/dist/components/Tooltip/Tooltip.js +19 -19
- package/dist/components/TypographyText/TypographyText.js +29 -29
- package/dist/components/ValidationError/ValidationError.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index2.css +1 -1
- package/dist/main.css +1 -0
- package/dist/main.js +55 -0
- package/dist/prodivers.css +2 -2
- package/package.json +5 -2
- package/dist/FileUpload.module-bCNvwTRa.js +0 -32
- package/dist/InfoBoxList.module-C6t2KDOB.js +0 -8
- package/dist/MenuItem-DAf7NU3h.js +0 -53
- package/dist/Select.module-BVWgPUEN.js +0 -20
- package/dist/Table.module-DeJB9uZC.js +0 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { useState as x, useEffect as R } from "react";
|
|
3
3
|
import { c as f } from "../../index-BHf7G3IG.js";
|
|
4
|
-
import { s } from "../../Table.module-
|
|
4
|
+
import { s } from "../../Table.module-vUNIKXwV.js";
|
|
5
5
|
import { FormFieldAppearance as j, AppearanceButton as B } from "../../enums/appearance.js";
|
|
6
6
|
import D from "../Button/Button.js";
|
|
7
7
|
import W from "../Heading/Heading.js";
|
|
8
8
|
import _ from "../Pager/Pager.js";
|
|
9
|
-
import { S as b } from "../../Select-
|
|
9
|
+
import { S as b } from "../../Select-BGHusr4q.js";
|
|
10
10
|
import { u as K } from "../../useTranslation-CnCPcxVj.js";
|
|
11
11
|
import { T as L } from "../../Trans-B4ILpbwK.js";
|
|
12
12
|
const M = [
|
|
@@ -2,7 +2,7 @@ import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import { Icons as s } from "../../assets/icons/icons.js";
|
|
4
4
|
import o from "../Icon/index.js";
|
|
5
|
-
import { s as a } from "../../Table.module-
|
|
5
|
+
import { s as a } from "../../Table.module-vUNIKXwV.js";
|
|
6
6
|
import { SortEnum as t } from "../../enums/status.js";
|
|
7
7
|
const g = (m) => {
|
|
8
8
|
const [c, i] = p(t.ASC), { title: d, onClick: l } = m, x = (j) => {
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '../../Textarea.css';const
|
|
7
|
-
counter:
|
|
8
|
-
container:
|
|
9
|
-
fieldWrap:
|
|
10
|
-
control:
|
|
11
|
-
light:
|
|
1
|
+
import { j as r } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import u, { useState as E, useEffect as R } from "react";
|
|
3
|
+
import { c as g } from "../../index-BHf7G3IG.js";
|
|
4
|
+
import y from "../Label/Label.js";
|
|
5
|
+
import L from "../ValidationError/ValidationError.js";
|
|
6
|
+
import '../../Textarea.css';const S = "_counter_1mcfg_2", T = "_container_1mcfg_2", V = "_fieldWrap_1mcfg_2", $ = "_control_1mcfg_2", k = "_light_1mcfg_2", q = "_error_1mcfg_2", D = "_disabled_1mcfg_2", e = {
|
|
7
|
+
counter: S,
|
|
8
|
+
container: T,
|
|
9
|
+
fieldWrap: V,
|
|
10
|
+
control: $,
|
|
11
|
+
light: k,
|
|
12
12
|
error: q,
|
|
13
13
|
disabled: D,
|
|
14
|
-
"size-small": "_size-
|
|
15
|
-
}, G =
|
|
14
|
+
"size-small": "_size-small_1mcfg_2"
|
|
15
|
+
}, G = u.forwardRef(
|
|
16
16
|
(x, h) => {
|
|
17
17
|
const {
|
|
18
18
|
name: d,
|
|
19
|
-
id:
|
|
20
|
-
label:
|
|
21
|
-
isDisabled:
|
|
22
|
-
className:
|
|
23
|
-
wrapperClassName:
|
|
19
|
+
id: b,
|
|
20
|
+
label: m,
|
|
21
|
+
isDisabled: _,
|
|
22
|
+
className: j,
|
|
23
|
+
wrapperClassName: N,
|
|
24
24
|
maxLength: a,
|
|
25
25
|
appearance: s,
|
|
26
26
|
value: o = "",
|
|
27
|
-
size:
|
|
28
|
-
onChange:
|
|
27
|
+
size: f,
|
|
28
|
+
onChange: p,
|
|
29
29
|
error: n,
|
|
30
|
-
readOnly:
|
|
31
|
-
required:
|
|
32
|
-
rows:
|
|
33
|
-
...
|
|
34
|
-
} = x, [
|
|
35
|
-
(
|
|
36
|
-
i(
|
|
30
|
+
readOnly: v,
|
|
31
|
+
required: C,
|
|
32
|
+
rows: z = 5,
|
|
33
|
+
...W
|
|
34
|
+
} = x, [c, l] = E(o), i = (t) => t.slice(0, a), w = u.useCallback(
|
|
35
|
+
(t) => {
|
|
36
|
+
l(i(t)), p && p(i(t));
|
|
37
37
|
},
|
|
38
|
-
[a,
|
|
38
|
+
[a, l]
|
|
39
39
|
);
|
|
40
|
-
return
|
|
41
|
-
i(
|
|
42
|
-
}, [o]), /* @__PURE__ */
|
|
40
|
+
return R(() => {
|
|
41
|
+
l(i(o));
|
|
42
|
+
}, [o]), /* @__PURE__ */ r.jsxs(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
45
|
"data-testid": "textarea-container",
|
|
46
|
-
className:
|
|
46
|
+
className: g(
|
|
47
47
|
e.container,
|
|
48
48
|
{
|
|
49
49
|
[e[`${s}`]]: s,
|
|
50
50
|
[e.error]: n,
|
|
51
|
-
[e.disabled]:
|
|
51
|
+
[e.disabled]: _
|
|
52
52
|
},
|
|
53
53
|
"form-group",
|
|
54
|
-
|
|
54
|
+
N
|
|
55
55
|
),
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
/* @__PURE__ */ r.jsxs("div", { className: e.counter, children: [
|
|
58
|
+
m && /* @__PURE__ */ r.jsxs(y, { name: d, appearance: s, children: [
|
|
59
|
+
m,
|
|
60
60
|
" ",
|
|
61
|
-
|
|
61
|
+
C && "*"
|
|
62
62
|
] }),
|
|
63
|
-
a && /* @__PURE__ */
|
|
64
|
-
|
|
63
|
+
a && /* @__PURE__ */ r.jsxs("span", { children: [
|
|
64
|
+
c ? c.toString().length : 0,
|
|
65
65
|
"/",
|
|
66
66
|
a
|
|
67
67
|
] })
|
|
68
68
|
] }),
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ r.jsx("div", { className: e.fieldWrap, children: /* @__PURE__ */ r.jsx(
|
|
70
70
|
"textarea",
|
|
71
71
|
{
|
|
72
72
|
name: d,
|
|
73
|
-
id:
|
|
74
|
-
className:
|
|
75
|
-
[e[`size-${
|
|
73
|
+
id: b,
|
|
74
|
+
className: g(e.control, j, {
|
|
75
|
+
[e[`size-${f}`]]: f
|
|
76
76
|
}),
|
|
77
|
-
disabled:
|
|
77
|
+
disabled: _,
|
|
78
78
|
"data-testid": "textarea-input",
|
|
79
|
-
rows:
|
|
79
|
+
rows: z,
|
|
80
80
|
ref: h,
|
|
81
|
-
readOnly:
|
|
82
|
-
onChange: (
|
|
83
|
-
value:
|
|
84
|
-
...
|
|
81
|
+
readOnly: v,
|
|
82
|
+
onChange: (t) => w(t.currentTarget.value),
|
|
83
|
+
value: c,
|
|
84
|
+
...W
|
|
85
85
|
}
|
|
86
86
|
) }),
|
|
87
|
-
n && /* @__PURE__ */
|
|
87
|
+
n && /* @__PURE__ */ r.jsx(L, { ...n })
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
90
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as vt } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import H from "react";
|
|
3
3
|
import { P as p } from "../../index-CB61CB0b.js";
|
|
4
|
-
import { Notification as
|
|
5
|
-
import { copyToClipboard as
|
|
4
|
+
import { Notification as Ye } from "../Notification/Notification.js";
|
|
5
|
+
import { copyToClipboard as qe } from "../../utils/helper.js";
|
|
6
6
|
import { c as ht } from "../../index-BHf7G3IG.js";
|
|
7
7
|
import { AppearanceDirection as Je, NotificationAppearanceType as Ze } from "../../enums/appearance.js";
|
|
8
8
|
import { u as Qe } from "../../useTranslation-CnCPcxVj.js";
|
|
@@ -298,7 +298,7 @@ function gr(t) {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function Vt(t, e, n, r, o, i, a) {
|
|
301
|
-
for (var s = St(n), u = s.width, l = s.height, f = St(e), c = f.width, d = f.height, g = mr(t, e, i), v = g.mouseX, m = g.mouseY, y = yr(i, c, d, u, l), E = wr(a), _ = E.extraOffsetX, h = E.extraOffsetY, P = window.innerWidth, b = window.innerHeight, M = Tr(n),
|
|
301
|
+
for (var s = St(n), u = s.width, l = s.height, f = St(e), c = f.width, d = f.height, g = mr(t, e, i), v = g.mouseX, m = g.mouseY, y = yr(i, c, d, u, l), E = wr(a), _ = E.extraOffsetX, h = E.extraOffsetY, P = window.innerWidth, b = window.innerHeight, M = Tr(n), Y = M.parentTop, st = M.parentLeft, q = function(w) {
|
|
302
302
|
var I = y[w].l;
|
|
303
303
|
return v + I + _;
|
|
304
304
|
}, lt = function(w) {
|
|
@@ -311,7 +311,7 @@ function Vt(t, e, n, r, o, i, a) {
|
|
|
311
311
|
var I = y[w].b;
|
|
312
312
|
return m + I + h;
|
|
313
313
|
}, Ge = function(w) {
|
|
314
|
-
return
|
|
314
|
+
return q(w) < 0;
|
|
315
315
|
}, ze = function(w) {
|
|
316
316
|
return lt(w) > P;
|
|
317
317
|
}, We = function(w) {
|
|
@@ -335,8 +335,8 @@ function Vt(t, e, n, r, o, i, a) {
|
|
|
335
335
|
} : {
|
|
336
336
|
isNewState: !1,
|
|
337
337
|
position: {
|
|
338
|
-
left: parseInt(
|
|
339
|
-
top: parseInt(Dt(r) -
|
|
338
|
+
left: parseInt(q(r) - st, 10),
|
|
339
|
+
top: parseInt(Dt(r) - Y, 10)
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -518,7 +518,7 @@ var Er = `.__react_component_tooltip {
|
|
|
518
518
|
display: block;
|
|
519
519
|
padding: 2px 0;
|
|
520
520
|
text-align: center;
|
|
521
|
-
}`,
|
|
521
|
+
}`, Yt = {
|
|
522
522
|
dark: {
|
|
523
523
|
text: "#fff",
|
|
524
524
|
background: "#222",
|
|
@@ -557,7 +557,7 @@ var Er = `.__react_component_tooltip {
|
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
function _r(t) {
|
|
560
|
-
return
|
|
560
|
+
return Yt[t] ? ge({}, Yt[t]) : void 0;
|
|
561
561
|
}
|
|
562
562
|
function Sr(t, e, n, r) {
|
|
563
563
|
return Lr(t, xr(e, n, r));
|
|
@@ -644,7 +644,7 @@ function xr(t, e, n) {
|
|
|
644
644
|
var r = t.text, o = t.background, i = t.border, a = t.arrow ? t.arrow : t.background, s = _r(e);
|
|
645
645
|
return r && (s.text = r), o && (s.background = o), n && (i ? s.border = i : s.border = e === "light" ? "black" : "white"), a && (s.arrow = a), s;
|
|
646
646
|
}
|
|
647
|
-
var
|
|
647
|
+
var qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
648
648
|
function ye(t, e) {
|
|
649
649
|
return e = { exports: {} }, t(e, e.exports), e.exports;
|
|
650
650
|
}
|
|
@@ -653,7 +653,7 @@ var Z = function(t) {
|
|
|
653
653
|
}, T = (
|
|
654
654
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
655
655
|
Z(typeof globalThis == "object" && globalThis) || Z(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
656
|
-
Z(typeof self == "object" && self) || Z(typeof
|
|
656
|
+
Z(typeof self == "object" && self) || Z(typeof qt == "object" && qt) || // eslint-disable-next-line no-new-func -- fallback
|
|
657
657
|
/* @__PURE__ */ function() {
|
|
658
658
|
return this;
|
|
659
659
|
}() || Function("return this")()
|
|
@@ -820,10 +820,10 @@ var oe = {
|
|
|
820
820
|
return typeof t == "function" ? t : void 0;
|
|
821
821
|
}, Mt = function(t, e) {
|
|
822
822
|
return arguments.length < 2 ? ie(yt[t]) || ie(T[t]) : yt[t] && yt[t][e] || T[t] && T[t][e];
|
|
823
|
-
}, Xr = Math.ceil,
|
|
824
|
-
return isNaN(t = +t) ? 0 : (t > 0 ?
|
|
825
|
-
},
|
|
826
|
-
return t > 0 ?
|
|
823
|
+
}, Xr = Math.ceil, Yr = Math.floor, Be = function(t) {
|
|
824
|
+
return isNaN(t = +t) ? 0 : (t > 0 ? Yr : Xr)(t);
|
|
825
|
+
}, qr = Math.min, Me = function(t) {
|
|
826
|
+
return t > 0 ? qr(Be(t), 9007199254740991) : 0;
|
|
827
827
|
}, Jr = Math.max, Zr = Math.min, Qr = function(t, e) {
|
|
828
828
|
var n = Be(t);
|
|
829
829
|
return n < 0 ? Jr(n + e, 0) : Zr(n, e);
|
|
@@ -1254,8 +1254,8 @@ var O, Q, he, In = lr(O = ur(O = cr(O = pr(O = dr(O = hr(O = gr(O = (he = Q = /*
|
|
|
1254
1254
|
value: function(r, o) {
|
|
1255
1255
|
if (this.tooltipRef) {
|
|
1256
1256
|
if (o) {
|
|
1257
|
-
var i = this.getTargetArray(this.props.id), a = i.some(function(
|
|
1258
|
-
return
|
|
1257
|
+
var i = this.getTargetArray(this.props.id), a = i.some(function(Y) {
|
|
1258
|
+
return Y === r.currentTarget;
|
|
1259
1259
|
});
|
|
1260
1260
|
if (!a)
|
|
1261
1261
|
return;
|
|
@@ -1292,7 +1292,7 @@ var O, Q, he, In = lr(O = ur(O = cr(O = pr(O = dr(O = hr(O = gr(O = (he = Q = /*
|
|
|
1292
1292
|
}, function() {
|
|
1293
1293
|
g && b.addScrollListener(b.state.currentTarget), b.updateTooltip(r), l && Array.isArray(l) && (b.intervalUpdateContent = setInterval(function() {
|
|
1294
1294
|
if (b.mount) {
|
|
1295
|
-
var st = b.props.getContent,
|
|
1295
|
+
var st = b.props.getContent, q = Kt(f, "", st[0](), c), lt = b.isEmptyTip(q);
|
|
1296
1296
|
b.setState({
|
|
1297
1297
|
isEmptyTip: lt
|
|
1298
1298
|
}), b.updatePosition();
|
|
@@ -1483,7 +1483,7 @@ var O, Q, he, In = lr(O = ur(O = cr(O = pr(O = dr(O = hr(O = gr(O = (he = Q = /*
|
|
|
1483
1483
|
wrapper: "div",
|
|
1484
1484
|
clickable: !1
|
|
1485
1485
|
}), U(Q, "supportedWrappers", ["div", "span"]), U(Q, "displayName", "ReactTooltip"), he)) || O) || O) || O) || O) || O) || O) || O;
|
|
1486
|
-
const kn = "
|
|
1486
|
+
const kn = "_tooltip_4od37_2", Bn = "_tooltipContent_4od37_2", Mn = "_tooltip__ellipsis_4od37_2", Dn = "_content_4od37_2", F = {
|
|
1487
1487
|
tooltip: kn,
|
|
1488
1488
|
tooltipContent: Bn,
|
|
1489
1489
|
tooltip__ellipsis: Mn,
|
|
@@ -1502,7 +1502,7 @@ const kn = "_tooltip_1ogqn_1", Bn = "_tooltipContent_1ogqn_6", Mn = "_tooltip__e
|
|
|
1502
1502
|
copyText: f,
|
|
1503
1503
|
onClick: c
|
|
1504
1504
|
} = t, { t: d } = Qe(), g = (v) => {
|
|
1505
|
-
v && (
|
|
1505
|
+
v && (qe(v), Ye({
|
|
1506
1506
|
type: Ze.SUCCESS,
|
|
1507
1507
|
message: d("text.copied"),
|
|
1508
1508
|
closeTime: 3e3
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as k, useRef as N } from "react";
|
|
3
3
|
import f from "../Icon/index.js";
|
|
4
|
-
import { Notification as
|
|
4
|
+
import { Notification as z } from "../Notification/Notification.js";
|
|
5
5
|
import C from "../Tooltip/Tooltip.js";
|
|
6
6
|
import { c as a } from "../../index-BHf7G3IG.js";
|
|
7
7
|
import { Icons as _ } from "../../assets/icons/icons.js";
|
|
8
|
-
import { NotificationAppearanceType as
|
|
9
|
-
import { u as
|
|
10
|
-
import '../../TypographyText.css';const
|
|
11
|
-
typography:
|
|
12
|
-
ellipsis:
|
|
13
|
-
success:
|
|
14
|
-
copy:
|
|
15
|
-
checkCopy:
|
|
16
|
-
code:
|
|
8
|
+
import { NotificationAppearanceType as I, AppearanceDirection as b } from "../../enums/appearance.js";
|
|
9
|
+
import { u as w } from "../../useTranslation-CnCPcxVj.js";
|
|
10
|
+
import '../../TypographyText.css';const P = "_typography_1a64z_2", S = "_ellipsis_1a64z_2", $ = "_success_1a64z_2", A = "_copy_1a64z_2", E = "_checkCopy_1a64z_2", R = "_code_1a64z_2", e = {
|
|
11
|
+
typography: P,
|
|
12
|
+
ellipsis: S,
|
|
13
|
+
success: $,
|
|
14
|
+
copy: A,
|
|
15
|
+
checkCopy: E,
|
|
16
|
+
code: R
|
|
17
17
|
}, J = (h) => {
|
|
18
18
|
const {
|
|
19
19
|
children: t,
|
|
20
20
|
copyable: n,
|
|
21
|
-
notificationProps:
|
|
22
|
-
className:
|
|
21
|
+
notificationProps: x,
|
|
22
|
+
className: u,
|
|
23
23
|
ellipsis: r,
|
|
24
|
-
id:
|
|
24
|
+
id: p,
|
|
25
25
|
appearance: l,
|
|
26
26
|
href: m,
|
|
27
27
|
tooltipContent: y
|
|
28
|
-
} = h, [s, d] =
|
|
29
|
-
type:
|
|
30
|
-
message:
|
|
28
|
+
} = h, [s, d] = k(!1), T = N(null), { t: g } = w(), c = x || {
|
|
29
|
+
type: I.SUCCESS,
|
|
30
|
+
message: g("text.copied"),
|
|
31
31
|
closeTime: 3e3
|
|
32
|
-
},
|
|
33
|
-
s || (navigator.clipboard.writeText(i), d(!0),
|
|
34
|
-
type:
|
|
35
|
-
message:
|
|
36
|
-
closeTime:
|
|
32
|
+
}, j = (i) => {
|
|
33
|
+
s || (navigator.clipboard.writeText(i), d(!0), z({
|
|
34
|
+
type: c.type,
|
|
35
|
+
message: c.message,
|
|
36
|
+
closeTime: c.closeTime
|
|
37
37
|
})), setTimeout(() => d(!1), 1e3);
|
|
38
38
|
};
|
|
39
39
|
return /* @__PURE__ */ o.jsxs(
|
|
40
40
|
"p",
|
|
41
41
|
{
|
|
42
42
|
"data-testid": "typographytext",
|
|
43
|
-
ref:
|
|
44
|
-
className: a(
|
|
43
|
+
ref: T,
|
|
44
|
+
className: a(u, e.typography, {
|
|
45
45
|
[e.copy]: n,
|
|
46
46
|
[e[`${l}`]]: l
|
|
47
47
|
}),
|
|
@@ -50,7 +50,7 @@ import '../../TypographyText.css';const S = "_typography_1wwcb_1", $ = "_ellipsi
|
|
|
50
50
|
y ? /* @__PURE__ */ o.jsx(
|
|
51
51
|
C,
|
|
52
52
|
{
|
|
53
|
-
id: `tooltipContent${
|
|
53
|
+
id: `tooltipContent${p}`,
|
|
54
54
|
tooltipContent: y,
|
|
55
55
|
ellipsis: r,
|
|
56
56
|
children: t
|
|
@@ -59,9 +59,9 @@ import '../../TypographyText.css';const S = "_typography_1wwcb_1", $ = "_ellipsi
|
|
|
59
59
|
n && /* @__PURE__ */ o.jsx(
|
|
60
60
|
C,
|
|
61
61
|
{
|
|
62
|
-
id: `copyId${
|
|
62
|
+
id: `copyId${p}`,
|
|
63
63
|
className: "width90",
|
|
64
|
-
direction:
|
|
64
|
+
direction: b.TOP,
|
|
65
65
|
tooltipContent: s ? "Copied" : "Copy",
|
|
66
66
|
children: /* @__PURE__ */ o.jsx(
|
|
67
67
|
"span",
|
|
@@ -70,7 +70,7 @@ import '../../TypographyText.css';const S = "_typography_1wwcb_1", $ = "_ellipsi
|
|
|
70
70
|
[e.checkCopy]: s
|
|
71
71
|
}),
|
|
72
72
|
onClick: (i) => {
|
|
73
|
-
i.stopPropagation(),
|
|
73
|
+
i.stopPropagation(), j(t);
|
|
74
74
|
},
|
|
75
75
|
children: s ? /* @__PURE__ */ o.jsx(f, { name: _.Check }) : /* @__PURE__ */ o.jsx(f, { name: _.Copy })
|
|
76
76
|
}
|
|
@@ -79,7 +79,7 @@ import '../../TypographyText.css';const S = "_typography_1wwcb_1", $ = "_ellipsi
|
|
|
79
79
|
)
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
p
|
|
83
83
|
);
|
|
84
84
|
};
|
|
85
85
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import '../../ValidationError.css';const a = "
|
|
2
|
+
import '../../ValidationError.css';const a = "_message_1tml6_2", t = {
|
|
3
3
|
message: a
|
|
4
4
|
}, o = ({ message: s }) => /* @__PURE__ */ e.jsx("span", { "data-testid": "validationerror", className: t.message, children: s });
|
|
5
5
|
export {
|
package/dist/components/index.js
CHANGED
|
@@ -47,9 +47,9 @@ import { default as jo, RadioList as qo } from "./Radio/Radio.js";
|
|
|
47
47
|
import { default as Go } from "./ResultError/ResultError.js";
|
|
48
48
|
import { default as Ko } from "./ScrollContainer/ScrollContainer.js";
|
|
49
49
|
import { default as Qo } from "./Select/NoData.js";
|
|
50
|
-
import { S as Yo } from "../Select-
|
|
50
|
+
import { S as Yo } from "../Select-BGHusr4q.js";
|
|
51
51
|
import { default as _o } from "./Sidebar/index.js";
|
|
52
|
-
import { M as oe } from "../MenuItem-
|
|
52
|
+
import { M as oe } from "../MenuItem-Df6Zsa7E.js";
|
|
53
53
|
import { default as re } from "./StatusTag/StatusTag.js";
|
|
54
54
|
import { default as ae } from "./StatusTypography/StatusTypography.js";
|
|
55
55
|
import { default as le } from "./Stepper/Stepper.js";
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-content:""}}}._drawer_ltlqj_2{top:calc(var(--spacing,.25rem)*0);right:calc(var(--spacing,.25rem)*0);z-index:1000;background-color:var(--gray-57);width:540px;height:100%;position:fixed}._header_ltlqj_2{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--primary);padding-inline:calc(var(--spacing,.25rem)*7);padding-block:calc(var(--spacing,.25rem)*5);font-size:var(--font-xl);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);justify-content:space-between;display:flex;position:relative}._header_ltlqj_2:after{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*1);background-color:var(--danger);--tw-content:"";content:var(--tw-content);position:absolute;top:23px;left:-1px}._header_ltlqj_2 i{cursor:pointer;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)))}._body_ltlqj_2{padding-inline:calc(var(--spacing,.25rem)*9);padding-block:calc(var(--spacing,.25rem)*5)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}
|
package/dist/index.js
CHANGED
|
@@ -52,9 +52,9 @@ import { default as nr, RadioList as ir } from "./components/Radio/Radio.js";
|
|
|
52
52
|
import { default as Ar } from "./components/ResultError/ResultError.js";
|
|
53
53
|
import { default as Er } from "./components/ScrollContainer/ScrollContainer.js";
|
|
54
54
|
import { default as Cr } from "./components/Select/NoData.js";
|
|
55
|
-
import { S as Dr } from "./Select-
|
|
55
|
+
import { S as Dr } from "./Select-BGHusr4q.js";
|
|
56
56
|
import { default as Mr } from "./components/Sidebar/index.js";
|
|
57
|
-
import { M as gr } from "./MenuItem-
|
|
57
|
+
import { M as gr } from "./MenuItem-Df6Zsa7E.js";
|
|
58
58
|
import { default as Lr } from "./components/StatusTag/StatusTag.js";
|
|
59
59
|
import { default as Or } from "./components/StatusTypography/StatusTypography.js";
|
|
60
60
|
import { default as Pr } from "./components/Stepper/Stepper.js";
|
package/dist/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial}}}._wrapper_1bxdu_2{border-radius:10px;flex-direction:row;width:100%;height:180px;min-height:100px;max-height:180px;display:flex;overflow:hidden}._content_1bxdu_2{background-color:var(--white);width:100%;padding:calc(var(--spacing,.25rem)*5);flex-direction:column;justify-content:space-between;display:flex}._iconWrapper_1bxdu_2{background-color:var(--gray-95);justify-content:center;align-items:center;width:25%;min-width:25%;max-width:25%;font-size:32px;display:flex;color:var(--white)!important}._titleGroup_1bxdu_2{justify-content:space-between;display:flex}._title_1bxdu_2{max-width:170px;max-height:35px;font-size:var(--font-xl);--tw-leading:1;--tw-font-weight:var(--font-weight-semibold,600);line-height:1;font-weight:var(--font-weight-semibold,600);text-overflow:ellipsis;white-space:nowrap;color:var(--dark-4a);margin-bottom:5px;overflow:hidden}._textGroup_1bxdu_2{color:var(--black);flex-direction:column;display:flex}._footer_1bxdu_2{flex-direction:column;display:flex}._footer_1bxdu_2>span{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);text-decoration-line:underline}@media (hover:hover){._footer_1bxdu_2>span:hover{text-decoration-line:none}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}
|
package/dist/main.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--white: white;--whiteRGBA: hsla(0, 0%, 100%, .85);--black: #000;--blackRGBA: rgba(0, 0, 0, .5);--primary: #293245;--dark: #2b344c;--dark-1e: #1e1e2d;--dark-1d: #1d2843;--dark-12: #12161e;--dark-47: #262e47;--dark-4a: #062a4a;--dark-21: #21283a;--dark-22: #222;--dark-24: #242b3f;--dark-3c: #3c4560;--gray-3b: #232b3b;--gray-61: #3d4561;--gray-68: #3b4768;--gray-57: #333b57;--gray-3e: #30363e;--gray-5c: #3f4b5c;--gray-4a: #4a4a4a;--gray-4c: #3b404c;--gray-b6: #b6c2cf;--gray-79: #495679;--gray-71: #717a8e;--gray-6e: #535a6e;--gray-81: #5c5e81;--gray-8c: #8ca0b3;--gray-be: #6c7ebe;--gray-90: #909090;--gray-9b: #9b9b9b;--gray-94: #948686;--gray-95: #788195;--gray-67: #676767;--gray-c2: #9ca9c2;--gray-ec: #c8daec;--gray-d8: #d8d8d8;--gray-d4: #d4d6f0;--gray-fb: #fbedbe;--gray-bc: #bcbcbc;--gray-f9: #f1f3f9;--gray-f8: #f5f6f8;--gray-df: #dfdfdf;--gray-f7: #e9f0f7;--gray-f5: #f5f5f5;--gray-fd: #fdfdfd;--gray-ee: #eee;--gray-ef: #efefef;--gray-f2: #eef0f2;--gray-e2: #e2e7f2;--blue-ff: #4482ff;--blue-f9: #037cf9;--danger: #d2282e;--success: #71d200;--info: #1890ff;--warning: #ffb822;--initializing: #ffaa49;--pending: #ffdca8;--failed: #ff5365;--queued: #9387c7;--font-xs: 10px;--font-def: 14px;--font-md: 16px;--font-lg: 18px;--font-xl: 20px;--font-2xl: 24px;--font-3xl: 30px;--checkbox-checked: #6c7ebe;--border-dark-primary: #262e47;--border-dark-secondary: #3b404c;--divider-primary: #d8d8d8;--dropdown-active: #1d2843;--bg-primary: #293245;--tab-active-text: white;--tab-inactive-text: #757f96;--status-success: #e3f6cc;--status-waiting1: #fce0ce;--status-waiting2: #c6f0f2;--status-waiting3: #eae7f4;--status-failed: #f6b5b5;--status-empty: #eaeff0;--spacing-xxs: 4px;--spacing-xs: 8px;--spacing-s: 12px;--spacing-m: 16px;--spacing-l: 20px;--spacing-xl: 24px;--spacing-xxl: 28px;--spacing-column: 32px}
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import m from "./prodivers.js";
|
|
3
|
+
import p from "./components/Button/Button.js";
|
|
4
|
+
import "./index-H7XbDVmH.js";
|
|
5
|
+
import { AppearanceButton as a } from "./enums/appearance.js";
|
|
6
|
+
import "./hooks/useAauth.js";
|
|
7
|
+
import "./assets/images/500_error_2x.gif";
|
|
8
|
+
import "./locales/i18n.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import "./index-BHf7G3IG.js";
|
|
11
|
+
import "./components/Tooltip/Tooltip.js";
|
|
12
|
+
import "./react-toastify.esm-BUWNP7Nm.js";
|
|
13
|
+
import "./utils/date.js";
|
|
14
|
+
import s from "./components/Input/Input.js";
|
|
15
|
+
import "./components/Charts/index.js";
|
|
16
|
+
import "./components/Checkbox/Checkbox.js";
|
|
17
|
+
import "./components/Confirm/Confirm.js";
|
|
18
|
+
import "./components/Datepicker/Datepicker.js";
|
|
19
|
+
import "./components/Drawer/Provider.js";
|
|
20
|
+
import "./components/FileUpload/FileUpload.js";
|
|
21
|
+
import "./Select-BGHusr4q.js";
|
|
22
|
+
import "./components/Switch/Switch.js";
|
|
23
|
+
import "./components/Textarea/Textarea.js";
|
|
24
|
+
import "./utils/yup.js";
|
|
25
|
+
import c from "react-dom";
|
|
26
|
+
import './main.css';var o, r = c;
|
|
27
|
+
if (process.env.NODE_ENV === "production")
|
|
28
|
+
o = r.createRoot, r.hydrateRoot;
|
|
29
|
+
else {
|
|
30
|
+
var e = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
31
|
+
o = function(i, n) {
|
|
32
|
+
e.usingClientEntryPoint = !0;
|
|
33
|
+
try {
|
|
34
|
+
return r.createRoot(i, n);
|
|
35
|
+
} finally {
|
|
36
|
+
e.usingClientEntryPoint = !1;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const l = () => /* @__PURE__ */ t.jsx(m, { children: /* @__PURE__ */ t.jsxs("div", { style: { padding: 20 }, children: [
|
|
41
|
+
/* @__PURE__ */ t.jsx("h1", { className: "text-3xl", children: "Flora Component Library" }),
|
|
42
|
+
/* @__PURE__ */ t.jsx(
|
|
43
|
+
p,
|
|
44
|
+
{
|
|
45
|
+
appearance: a.DARK,
|
|
46
|
+
onClick: () => alert("Button Clicked!"),
|
|
47
|
+
children: "Save"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ t.jsx(s, { name: "example" })
|
|
51
|
+
] }) }), d = document.getElementById("root"), u = o(d);
|
|
52
|
+
u.render(/* @__PURE__ */ t.jsx(l, {}));
|
|
53
|
+
export {
|
|
54
|
+
l as default
|
|
55
|
+
};
|