@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.
Files changed (117) hide show
  1. package/dist/Accordion.css +1 -1
  2. package/dist/ActionButton.css +1 -1
  3. package/dist/AlertCard.css +1 -1
  4. package/dist/Autocomplete.css +1 -1
  5. package/dist/Button.css +1 -1
  6. package/dist/Card.css +1 -1
  7. package/dist/Checkbox.css +1 -1
  8. package/dist/Config.css +1 -1
  9. package/dist/Confirm.css +1 -1
  10. package/dist/ContentHeader.css +1 -1
  11. package/dist/Divider.css +1 -1
  12. package/dist/DropdownList.css +1 -1
  13. package/dist/ErrorLogModal.css +1 -1
  14. package/dist/FileUpload.css +1 -1
  15. package/dist/FileUpload.module-BxCEtOHx.js +32 -0
  16. package/dist/Heading.css +1 -1
  17. package/dist/IconBox.css +1 -1
  18. package/dist/InfoBoxList.css +1 -1
  19. package/dist/InfoBoxList.module-CmdO3WXi.js +8 -0
  20. package/dist/InfoDate.css +1 -1
  21. package/dist/InfoText.css +1 -1
  22. package/dist/Input.css +1 -1
  23. package/dist/Label.css +1 -1
  24. package/dist/Legends.css +1 -1
  25. package/dist/Loading.css +1 -1
  26. package/dist/MenuItem-Df6Zsa7E.js +53 -0
  27. package/dist/MenuItem.css +1 -1
  28. package/dist/Modal.css +1 -1
  29. package/dist/NoResult.css +1 -1
  30. package/dist/PageWrap.css +1 -1
  31. package/dist/Pager.css +1 -1
  32. package/dist/Panel.css +1 -1
  33. package/dist/Radio.css +1 -1
  34. package/dist/ResultError.css +1 -1
  35. package/dist/ScrollContainer.css +1 -1
  36. package/dist/{Select-DcLZCXNo.js → Select-BGHusr4q.js} +1 -1
  37. package/dist/Select.css +1 -1
  38. package/dist/Select.module-gwwx8i1I.js +20 -0
  39. package/dist/StatusTag.css +1 -1
  40. package/dist/StatusTypography.css +1 -1
  41. package/dist/Stepper.css +1 -1
  42. package/dist/Switch.css +1 -1
  43. package/dist/Tab.css +1 -1
  44. package/dist/Table.css +1 -1
  45. package/dist/Table.module-vUNIKXwV.js +29 -0
  46. package/dist/Textarea.css +1 -1
  47. package/dist/Tooltip.css +1 -1
  48. package/dist/TypographyText.css +1 -1
  49. package/dist/ValidationError.css +1 -1
  50. package/dist/components/Accordion/Accordion.js +22 -22
  51. package/dist/components/ActionButton/ActionButton.js +25 -25
  52. package/dist/components/AlertCard/AlertCard.js +9 -9
  53. package/dist/components/Autocomplete/Autocomplete.js +25 -25
  54. package/dist/components/Button/Button.js +43 -43
  55. package/dist/components/Card/Card.js +12 -12
  56. package/dist/components/Charts/Legends.js +8 -8
  57. package/dist/components/Checkbox/Checkbox.js +46 -109
  58. package/dist/components/Config/Config.js +14 -14
  59. package/dist/components/Confirm/Confirm.js +20 -20
  60. package/dist/components/ContentHeader/ContentHeader.js +31 -31
  61. package/dist/components/Datepicker/Datepicker.js +18 -18
  62. package/dist/components/Divider/Divider.js +19 -19
  63. package/dist/components/Drawer/index.js +4 -4
  64. package/dist/components/Dropdown/DropdownList.js +23 -23
  65. package/dist/components/ErrorLogModal/ErrorLogModal.js +36 -31
  66. package/dist/components/FileUpload/FileUpload.js +1 -1
  67. package/dist/components/FileUpload/ImagePreview.js +1 -1
  68. package/dist/components/FileUpload/LengthCard.js +1 -1
  69. package/dist/components/FileUpload/PreviewModal.js +1 -1
  70. package/dist/components/Heading/Heading.js +14 -14
  71. package/dist/components/IconBox/IconBox.js +4 -4
  72. package/dist/components/InfoBoxList/InfoBoxList.js +1 -1
  73. package/dist/components/InfoBoxList/helper.js +1 -1
  74. package/dist/components/InfoDate/InfoDate.js +5 -5
  75. package/dist/components/InfoText/InfoText.js +1 -1
  76. package/dist/components/Input/Input.js +38 -38
  77. package/dist/components/Label/Label.js +8 -8
  78. package/dist/components/Loading/Loading.js +25 -25
  79. package/dist/components/Modal/Modal.js +22 -22
  80. package/dist/components/NavigatorCard/index.js +27 -27
  81. package/dist/components/NoResult/NoResult.js +5 -5
  82. package/dist/components/PageWrapper/PageWrap.js +7 -7
  83. package/dist/components/Pager/Pager.js +23 -23
  84. package/dist/components/Panel/Panel.js +23 -23
  85. package/dist/components/Radio/Radio.js +32 -32
  86. package/dist/components/ResultError/ResultError.js +1 -1
  87. package/dist/components/ScrollContainer/ScrollContainer.js +7 -7
  88. package/dist/components/Select/NoData.js +1 -1
  89. package/dist/components/Select/OptionItem.js +1 -1
  90. package/dist/components/Select/Select.js +2 -2
  91. package/dist/components/Sidebar/MenuItem.js +1 -1
  92. package/dist/components/Sidebar/index.js +1 -1
  93. package/dist/components/StatusTag/StatusTag.js +10 -10
  94. package/dist/components/StatusTypography/StatusTypography.js +20 -20
  95. package/dist/components/Stepper/Stepper.js +18 -18
  96. package/dist/components/Switch/Switch.js +24 -24
  97. package/dist/components/Tab/Tab.js +7 -7
  98. package/dist/components/Table/Table.js +2 -2
  99. package/dist/components/Table/TableHeader.js +2 -2
  100. package/dist/components/Table/TableSort.js +1 -1
  101. package/dist/components/Textarea/Textarea.js +51 -51
  102. package/dist/components/Tooltip/Tooltip.js +19 -19
  103. package/dist/components/TypographyText/TypographyText.js +29 -29
  104. package/dist/components/ValidationError/ValidationError.js +1 -1
  105. package/dist/components/index.js +2 -2
  106. package/dist/index.css +1 -1
  107. package/dist/index.js +2 -2
  108. package/dist/index2.css +1 -1
  109. package/dist/main.css +1 -0
  110. package/dist/main.js +55 -0
  111. package/dist/prodivers.css +2 -2
  112. package/package.json +5 -2
  113. package/dist/FileUpload.module-bCNvwTRa.js +0 -32
  114. package/dist/InfoBoxList.module-C6t2KDOB.js +0 -8
  115. package/dist/MenuItem-DAf7NU3h.js +0 -53
  116. package/dist/Select.module-BVWgPUEN.js +0 -20
  117. 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-DeJB9uZC.js";
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-DcLZCXNo.js";
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-DeJB9uZC.js";
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 t } from "../../jsx-runtime-BcAkpsdy.js";
2
- import f, { useState as W, useEffect as E } from "react";
3
- import { c as v } from "../../index-BHf7G3IG.js";
4
- import R from "../Label/Label.js";
5
- import y from "../ValidationError/ValidationError.js";
6
- import '../../Textarea.css';const L = "_counter_1tkwv_1", S = "_container_1tkwv_10", T = "_fieldWrap_1tkwv_10", V = "_control_1tkwv_16", $ = "_light_1tkwv_31", q = "_error_1tkwv_38", D = "_disabled_1tkwv_45", e = {
7
- counter: L,
8
- container: S,
9
- fieldWrap: T,
10
- control: V,
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-small_1tkwv_49"
15
- }, G = f.forwardRef(
14
+ "size-small": "_size-small_1mcfg_2"
15
+ }, G = u.forwardRef(
16
16
  (x, h) => {
17
17
  const {
18
18
  name: d,
19
- id: w,
20
- label: _,
21
- isDisabled: m,
22
- className: g,
23
- wrapperClassName: b,
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: p,
28
- onChange: u,
27
+ size: f,
28
+ onChange: p,
29
29
  error: n,
30
- readOnly: j,
31
- required: k,
32
- rows: N = 5,
33
- ...C
34
- } = x, [l, i] = W(o), c = (r) => r.slice(0, a), z = f.useCallback(
35
- (r) => {
36
- i(c(r)), u && u(c(r));
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, i]
38
+ [a, l]
39
39
  );
40
- return E(() => {
41
- i(c(o));
42
- }, [o]), /* @__PURE__ */ t.jsxs(
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: v(
46
+ className: g(
47
47
  e.container,
48
48
  {
49
49
  [e[`${s}`]]: s,
50
50
  [e.error]: n,
51
- [e.disabled]: m
51
+ [e.disabled]: _
52
52
  },
53
53
  "form-group",
54
- b
54
+ N
55
55
  ),
56
56
  children: [
57
- /* @__PURE__ */ t.jsxs("div", { className: e.counter, children: [
58
- _ && /* @__PURE__ */ t.jsxs(R, { name: d, appearance: s, children: [
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
- k && "*"
61
+ C && "*"
62
62
  ] }),
63
- a && /* @__PURE__ */ t.jsxs("span", { children: [
64
- l ? l.toString().length : 0,
63
+ a && /* @__PURE__ */ r.jsxs("span", { children: [
64
+ c ? c.toString().length : 0,
65
65
  "/",
66
66
  a
67
67
  ] })
68
68
  ] }),
69
- /* @__PURE__ */ t.jsx("div", { className: e.fieldWrap, children: /* @__PURE__ */ t.jsx(
69
+ /* @__PURE__ */ r.jsx("div", { className: e.fieldWrap, children: /* @__PURE__ */ r.jsx(
70
70
  "textarea",
71
71
  {
72
72
  name: d,
73
- id: w,
74
- className: v(e.control, g, {
75
- [e[`size-${p}`]]: p
73
+ id: b,
74
+ className: g(e.control, j, {
75
+ [e[`size-${f}`]]: f
76
76
  }),
77
- disabled: m,
77
+ disabled: _,
78
78
  "data-testid": "textarea-input",
79
- rows: N,
79
+ rows: z,
80
80
  ref: h,
81
- readOnly: j,
82
- onChange: (r) => z(r.currentTarget.value),
83
- value: l,
84
- ...C
81
+ readOnly: v,
82
+ onChange: (t) => w(t.currentTarget.value),
83
+ value: c,
84
+ ...W
85
85
  }
86
86
  ) }),
87
- n && /* @__PURE__ */ t.jsx(y, { ...n })
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 qe } from "../Notification/Notification.js";
5
- import { copyToClipboard as Ye } from "../../utils/helper.js";
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), q = M.parentTop, st = M.parentLeft, Y = function(w) {
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 Y(w) < 0;
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(Y(r) - st, 10),
339
- top: parseInt(Dt(r) - q, 10)
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
- }`, qt = {
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 qt[t] ? ge({}, qt[t]) : void 0;
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 Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
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 Yt == "object" && Yt) || // eslint-disable-next-line no-new-func -- fallback
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, qr = Math.floor, Be = function(t) {
824
- return isNaN(t = +t) ? 0 : (t > 0 ? qr : Xr)(t);
825
- }, Yr = Math.min, Me = function(t) {
826
- return t > 0 ? Yr(Be(t), 9007199254740991) : 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(q) {
1258
- return q === r.currentTarget;
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, Y = Kt(f, "", st[0](), c), lt = b.isEmptyTip(Y);
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 = "_tooltip_1ogqn_1", Bn = "_tooltipContent_1ogqn_6", Mn = "_tooltip__ellipsis_1ogqn_14", Dn = "_content_1ogqn_14", F = {
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 && (Ye(v), qe({
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 b, useRef as j } from "react";
2
+ import { useState as k, useRef as N } from "react";
3
3
  import f from "../Icon/index.js";
4
- import { Notification as k } from "../Notification/Notification.js";
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 N, AppearanceDirection as I } from "../../enums/appearance.js";
9
- import { u as P } from "../../useTranslation-CnCPcxVj.js";
10
- import '../../TypographyText.css';const S = "_typography_1wwcb_1", $ = "_ellipsis_1wwcb_6", A = "_success_1wwcb_12", E = "_copy_1wwcb_17", R = "_checkCopy_1wwcb_21", v = "_code_1wwcb_25", e = {
11
- typography: S,
12
- ellipsis: $,
13
- success: A,
14
- copy: E,
15
- checkCopy: R,
16
- code: v
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: w,
22
- className: x,
21
+ notificationProps: x,
22
+ className: u,
23
23
  ellipsis: r,
24
- id: c,
24
+ id: p,
25
25
  appearance: l,
26
26
  href: m,
27
27
  tooltipContent: y
28
- } = h, [s, d] = b(!1), u = j(null), { t: T } = P(), p = w || {
29
- type: N.SUCCESS,
30
- message: T("text.copied"),
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
- }, g = (i) => {
33
- s || (navigator.clipboard.writeText(i), d(!0), k({
34
- type: p.type,
35
- message: p.message,
36
- closeTime: p.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: u,
44
- className: a(x, e.typography, {
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${c}`,
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${c}`,
62
+ id: `copyId${p}`,
63
63
  className: "width90",
64
- direction: I.TOP,
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(), g(t);
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
- c
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 = "_message_byr9z_1", t = {
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 {
@@ -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-DcLZCXNo.js";
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-DAf7NU3h.js";
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
- ._drawer_1bno3_1{position:fixed;background-color:#333b57;top:0;right:0;height:100%;width:540px;z-index:1000}._drawer_1bno3_1 ._header_1bno3_10{padding:20px 28px;position:relative;display:flex;justify-content:space-between;font-size:20px;font-weight:500;border-bottom:1px solid #293245}._drawer_1bno3_1 ._header_1bno3_10:after{content:"";position:absolute;left:-1px;top:23px;width:4px;height:16px;background-color:#d2282e}._drawer_1bno3_1 ._header_1bno3_10 i{font-size:12px;cursor:pointer}._drawer_1bno3_1 ._body_1bno3_32{padding:20px 36px}
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-DcLZCXNo.js";
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-DAf7NU3h.js";
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
- ._wrapper_14erv_1{width:100%;height:180px;display:flex;overflow:hidden;min-height:100px;max-height:180px;flex-direction:row;border-radius:10px}._wrapper_14erv_1 ._content_14erv_11{width:100%;background:#fff;padding:20px;display:flex;flex-direction:column;justify-content:space-between}._wrapper_14erv_1 ._iconWrapper_14erv_19{width:25%;min-width:25%;max-width:25%;background:#788195;color:#fff!important;font-size:32px;display:flex;align-items:center;justify-content:center}._wrapper_14erv_1 ._titleGroup_14erv_30{display:flex;justify-content:space-between}._wrapper_14erv_1 ._title_14erv_30{color:#062a4a;font-size:20px;overflow:hidden;max-height:35px;max-width:170px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;line-height:1;margin-bottom:5px}._wrapper_14erv_1 ._textGroup_14erv_46{color:#000;display:flex;flex-direction:column}._wrapper_14erv_1 ._footer_14erv_51{display:flex;flex-direction:column}._wrapper_14erv_1 ._footer_14erv_51>span{text-decoration:underline;font-weight:500}._wrapper_14erv_1 ._footer_14erv_51>span:hover{text-decoration:none}
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
+ };