@fluidattacks/design 3.1.12 → 3.1.13

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 (172) hide show
  1. package/dist/components/@core/index.js +2 -2
  2. package/dist/components/accordion/accordion-content/index.js +18 -5
  3. package/dist/components/accordion/index.js +71 -14
  4. package/dist/components/alert/index.js +108 -57
  5. package/dist/components/button/index.js +64 -13
  6. package/dist/components/card/card-header/index.js +78 -9
  7. package/dist/components/card/card-with-image/index.js +88 -13
  8. package/dist/components/card/card-with-input/index.js +72 -23
  9. package/dist/components/card/card-with-selector/index.js +63 -8
  10. package/dist/components/card/card-with-switch/index.js +46 -8
  11. package/dist/components/carousel/index.js +54 -28
  12. package/dist/components/checkbox/index.js +66 -32
  13. package/dist/components/cloud-image/index.js +2 -2
  14. package/dist/components/code-snippet/index.js +64 -19
  15. package/dist/components/code-snippet/location-code/index.js +146 -100
  16. package/dist/components/colors/index.js +220 -5
  17. package/dist/components/confirm-dialog/index.js +41 -18
  18. package/dist/components/container/index.js +39 -15
  19. package/dist/components/content-card/category-tag/index.js +37 -8
  20. package/dist/components/content-card/event-date/index.js +53 -10
  21. package/dist/components/content-card/index.js +118 -13
  22. package/dist/components/content-card-carousel/index.js +87 -7
  23. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  24. package/dist/components/divider/index.js +22 -7
  25. package/dist/components/empty-state/empty-button/index.js +4 -4
  26. package/dist/components/empty-state/index.js +52 -15
  27. package/dist/components/file-preview/index.js +28 -12
  28. package/dist/components/form/index.js +46 -9
  29. package/dist/components/grid-container/index.js +31 -11
  30. package/dist/components/group-selector/index.js +126 -17
  31. package/dist/components/group-selector/option-container/index.js +1 -1
  32. package/dist/components/icon/index.js +78 -18
  33. package/dist/components/icon-button/index.js +63 -14
  34. package/dist/components/indicator-card/index.js +70 -11
  35. package/dist/components/info-sidebar/index.js +107 -7
  36. package/dist/components/inputs/fields/combobox/index.js +141 -21
  37. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  38. package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
  39. package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
  40. package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
  41. package/dist/components/inputs/fields/date/calendar/index.js +26 -11
  42. package/dist/components/inputs/fields/date/index.js +65 -15
  43. package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
  44. package/dist/components/inputs/fields/date-range/index.js +98 -18
  45. package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
  46. package/dist/components/inputs/fields/date-time/index.js +65 -14
  47. package/dist/components/inputs/fields/editable/index.js +22 -10
  48. package/dist/components/inputs/fields/input/index.js +74 -10
  49. package/dist/components/inputs/fields/input-file/index.js +114 -21
  50. package/dist/components/inputs/fields/input-tags/index.js +60 -11
  51. package/dist/components/inputs/fields/number/index.js +54 -7
  52. package/dist/components/inputs/fields/number-range/index.js +46 -8
  53. package/dist/components/inputs/fields/phone/index.js +446 -286
  54. package/dist/components/inputs/fields/text-area/index.js +78 -10
  55. package/dist/components/inputs/label/index.js +34 -8
  56. package/dist/components/inputs/outline-container/index.js +98 -12
  57. package/dist/components/inputs/utils/action-button/index.js +28 -7
  58. package/dist/components/inputs/utils/calendar-button/index.js +34 -10
  59. package/dist/components/inputs/utils/date-selector/index.js +60 -6
  60. package/dist/components/inputs/utils/date-time-field/index.js +129 -28
  61. package/dist/components/inputs/utils/dialog/index.js +10 -7
  62. package/dist/components/inputs/utils/number-field/index.js +81 -8
  63. package/dist/components/inputs/utils/popover/index.js +41 -10
  64. package/dist/components/interactive-card/icon/index.js +1 -1
  65. package/dist/components/interactive-card/index.js +110 -7
  66. package/dist/components/language-selector/index.js +34 -10
  67. package/dist/components/language-selector/item-list/index.js +1 -1
  68. package/dist/components/link/index.js +71 -17
  69. package/dist/components/list-item/index.js +64 -13
  70. package/dist/components/little-flag/index.js +26 -9
  71. package/dist/components/loading/index.js +48 -21
  72. package/dist/components/logo/index.js +10 -4
  73. package/dist/components/logo-carousel/index.js +40 -5
  74. package/dist/components/lottie/index.js +12 -7
  75. package/dist/components/menu/index.js +53 -9
  76. package/dist/components/message-banner/index.js +79 -13
  77. package/dist/components/modal/index.js +59 -13
  78. package/dist/components/modal/modal-confirm/index.js +48 -7
  79. package/dist/components/modal/modal-footer/index.js +22 -13
  80. package/dist/components/modal/modal-header/index.js +45 -19
  81. package/dist/components/notification/index.js +65 -20
  82. package/dist/components/notification-sign/index.js +27 -10
  83. package/dist/components/number-input/index.js +58 -21
  84. package/dist/components/oauth-selector/index.js +97 -23
  85. package/dist/components/oauth-selector/option-container/index.js +68 -7
  86. package/dist/components/plan-card/index.js +99 -28
  87. package/dist/components/plan-card/recommended-tag/index.js +23 -2
  88. package/dist/components/pop-up/description/index.js +47 -9
  89. package/dist/components/pop-up/index.js +146 -17
  90. package/dist/components/premium-feature/index.js +56 -16
  91. package/dist/components/priority-score/index.js +24 -9
  92. package/dist/components/progress/index.js +30 -17
  93. package/dist/components/progress-bar/index.js +99 -41
  94. package/dist/components/radio-button/index.js +64 -27
  95. package/dist/components/scroll-button/index.js +33 -15
  96. package/dist/components/search/index.js +77 -35
  97. package/dist/components/search-bar/index.js +211 -24
  98. package/dist/components/search-bar/item-searching/index.js +1 -1
  99. package/dist/components/severity-badge/index.js +66 -6
  100. package/dist/components/severity-overview/badge/index.js +62 -11
  101. package/dist/components/severity-overview/index.js +15 -5
  102. package/dist/components/show-on-hover/index.js +16 -10
  103. package/dist/components/slide-out-menu/index.js +2611 -1164
  104. package/dist/components/slide-out-menu/menu-item/index.js +58 -6
  105. package/dist/components/slider/index.js +79 -48
  106. package/dist/components/slider/thumb/index.js +13 -6
  107. package/dist/components/step-lapse/index.js +81 -23
  108. package/dist/components/table-button/index.js +65 -24
  109. package/dist/components/tabs/fixed-tabs/index.js +24 -4
  110. package/dist/components/tabs/index.js +54 -11
  111. package/dist/components/tabs/tab/index.js +37 -6
  112. package/dist/components/tag/index.js +95 -27
  113. package/dist/components/timeline/card/index.js +1 -1
  114. package/dist/components/timeline/index.js +15 -5
  115. package/dist/components/toggle/index.js +65 -25
  116. package/dist/components/toggle-buttons/index.js +51 -22
  117. package/dist/components/tooltip/index.js +1 -1
  118. package/dist/components/tour/index.js +3897 -1829
  119. package/dist/components/typography/heading/index.js +43 -5
  120. package/dist/components/typography/span/index.js +38 -6
  121. package/dist/components/typography/text/index.js +44 -6
  122. package/dist/components/web-form/index.js +28 -19
  123. package/dist/hooks/index.js +5 -5
  124. package/dist/index-BMHVi812.mjs +234 -0
  125. package/dist/index-BzAniA2J.mjs +135 -0
  126. package/dist/index-C6LbClYh.mjs +146 -0
  127. package/dist/index-CAIe8hBv.mjs +130 -0
  128. package/dist/index-CUQBAqt_.mjs +75 -0
  129. package/dist/index-CWlrSlUk.mjs +68 -0
  130. package/dist/index-Ckmu1TfV.mjs +86 -0
  131. package/dist/index-DwznImvK.mjs +1678 -0
  132. package/dist/index-maWH3JYC.mjs +3561 -0
  133. package/dist/index.js +11 -11
  134. package/dist/styles-B2N0JLw1.mjs +114 -0
  135. package/dist/styles-B64DVBIF.mjs +115 -0
  136. package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
  137. package/dist/styles-BZQOqe8p.mjs +141 -0
  138. package/dist/styles-Bdque9TT.mjs +65 -0
  139. package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
  140. package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
  141. package/dist/styles-CplEd2kw.mjs +228 -0
  142. package/dist/styles-D1eTIklB.mjs +110 -0
  143. package/dist/styles-ePGii_9g.mjs +74 -0
  144. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  145. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  146. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  147. package/dist/use-modal-CtgexKnf.mjs +14 -0
  148. package/dist/use-search-Dj47QDw9.mjs +15 -0
  149. package/dist/utils-V0EumEPM.mjs +6 -0
  150. package/package.json +1 -3
  151. package/dist/index-38JqtnAI.mjs +0 -122
  152. package/dist/index-B5yoGFs6.mjs +0 -54
  153. package/dist/index-BLbKylyw.mjs +0 -209
  154. package/dist/index-Bu448Tz2.mjs +0 -106
  155. package/dist/index-BwFnfaRh.mjs +0 -2310
  156. package/dist/index-Co_k0WFk.mjs +0 -75
  157. package/dist/index-Cu7uUMlx.mjs +0 -82
  158. package/dist/index-D-lcuEHY.mjs +0 -1018
  159. package/dist/index-DrfjITyT.mjs +0 -61
  160. package/dist/styles-7_q7nHce.mjs +0 -110
  161. package/dist/styles-BA0WIQL-.mjs +0 -74
  162. package/dist/styles-C3cZmKVJ.mjs +0 -131
  163. package/dist/styles-D85YYIjM.mjs +0 -131
  164. package/dist/styles-EIbGRPlk.mjs +0 -106
  165. package/dist/styles-Q1VXuWI7.mjs +0 -65
  166. package/dist/styles-fH2c4cfc.mjs +0 -77
  167. package/dist/use-carousel-CvRxi2FI.mjs +0 -17
  168. package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
  169. package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
  170. package/dist/use-modal-CkrZ-_-M.mjs +0 -14
  171. package/dist/use-search-DpLNvt7Q.mjs +0 -12
  172. package/dist/utils-CQvBF-wY.mjs +0 -4
@@ -1,19 +1,28 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { keyframes as i, styled as o, css as n, useTheme as m } from "styled-components";
3
- import { v as d } from "../../utils-CQvBF-wY.mjs";
4
- import "../../styles-C3cZmKVJ.mjs";
5
- import { Container as c } from "../container/index.js";
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { keyframes as n, styled as o, css as a, useTheme as l } from "styled-components";
3
+ import { v as c } from "../../utils-V0EumEPM.mjs";
4
+ import "../../styles-CplEd2kw.mjs";
5
+ import { Container as d } from "../container/index.js";
6
6
  import "../typography/heading/index.js";
7
7
  import "../typography/span/index.js";
8
8
  import { Text as f } from "../typography/text/index.js";
9
- const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red: `stroke: ${e.palette.primary[500]};`, white: `stroke: ${e.palette.white};` })), k = i`
9
+ const p = {
10
+ lg: "56",
11
+ md: "30",
12
+ sm: "12"
13
+ }, { getVariant: h } = c(
14
+ (t) => ({
15
+ red: `stroke: ${t.palette.primary[500]};`,
16
+ white: `stroke: ${t.palette.white};`
17
+ })
18
+ ), g = n`
10
19
  0% {
11
20
  transform: rotateZ(0deg);
12
21
  }
13
22
  100% {
14
23
  transform: rotateZ(360deg)
15
24
  }
16
- `, $ = i`
25
+ `, k = n`
17
26
  0%,
18
27
  25% {
19
28
  stroke-dashoffset: 280;
@@ -30,16 +39,16 @@ const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red:
30
39
  stroke-dashoffset: 280;
31
40
  transform: rotate(360deg);
32
41
  }
33
- `, g = o.svg`
34
- ${({ $size: e = "md" }) => n`
35
- animation: ${k} 2s linear infinite;
42
+ `, y = o.svg`
43
+ ${({ $size: t = "md" }) => a`
44
+ animation: ${g} 2s linear infinite;
36
45
  animation-timing-function: linear;
37
46
  display: inline-block;
38
- width: ${p[e]}px;
47
+ width: ${p[t]}px;
39
48
  `}
40
- `, y = o.circle`
41
- ${({ theme: e, $color: t = "red" }) => n`
42
- animation: 1.4s ease-in-out infinite both ${$};
49
+ `, $ = o.circle`
50
+ ${({ theme: t, $color: r = "red" }) => a`
51
+ animation: 1.4s ease-in-out infinite both ${k};
43
52
  display: block;
44
53
  fill: transparent;
45
54
  stroke-linecap: round;
@@ -48,20 +57,38 @@ const p = { lg: "56", md: "30", sm: "12" }, { getVariant: h } = d((e) => ({ red:
48
57
  stroke-width: 10px;
49
58
  transform-origin: 50% 50%;
50
59
 
51
- ${h(e, t)}
60
+ ${h(t, r)}
52
61
  `}
53
62
  `, x = o.circle`
54
63
  display: block;
55
64
  fill: transparent;
56
- stroke: ${({ theme: e }) => e.palette.gray[200]};
65
+ stroke: ${({ theme: t }) => t.palette.gray[200]};
57
66
  stroke-linecap: round;
58
67
  stroke-width: 10px;
59
68
  transform-origin: 50% 50%;
60
- opacity: ${({ $color: e }) => e === "white" ? "20%" : "unset"};
61
- `, B = ({ color: e = "red", label: t, size: l }) => {
62
- const s = m();
63
- return a(c, { alignItems: "center", display: "flex", children: [a(g, { $size: l, viewBox: "0 0 100 100", children: [r(x, { $color: e, cx: "50", cy: "50", r: "45" }), r(y, { $color: e, cx: "50", cy: "50", r: "45" })] }), t && r(f, { color: e === "red" ? s.palette.gray[700] : s.palette.white, ml: 0.5, size: "sm", children: t })] });
69
+ opacity: ${({ $color: t }) => t === "white" ? "20%" : "unset"};
70
+ `, L = ({
71
+ color: t = "red",
72
+ label: r,
73
+ size: m
74
+ }) => {
75
+ const i = l();
76
+ return /* @__PURE__ */ s(d, { alignItems: "center", display: "flex", children: [
77
+ /* @__PURE__ */ s(y, { $size: m, viewBox: "0 0 100 100", children: [
78
+ /* @__PURE__ */ e(x, { $color: t, cx: "50", cy: "50", r: "45" }),
79
+ /* @__PURE__ */ e($, { $color: t, cx: "50", cy: "50", r: "45" })
80
+ ] }),
81
+ r && /* @__PURE__ */ e(
82
+ f,
83
+ {
84
+ color: t === "red" ? i.palette.gray[700] : i.palette.white,
85
+ ml: 0.5,
86
+ size: "sm",
87
+ children: r
88
+ }
89
+ )
90
+ ] });
64
91
  };
65
92
  export {
66
- B as Loading
93
+ L as Loading
67
94
  };
@@ -1,7 +1,13 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { M as p } from "../../index-BwFnfaRh.mjs";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { M as e } from "../../index-maWH3JYC.mjs";
3
3
  import { Container as h } from "../container/index.js";
4
- const e = { company: { height: "83px", width: "460px" }, footer: { height: "57px", width: "315px" }, header: { height: "35px", width: "160px" }, icon: { height: "40px", width: "40px" }, inline: { width: "150px" } }, d = ({ publicId: t, variant: o }) => i(h, { ...e[o], children: i(p, { alt: "logo", publicId: t }) });
4
+ const p = {
5
+ company: { height: "83px", width: "460px" },
6
+ footer: { height: "57px", width: "315px" },
7
+ header: { height: "35px", width: "160px" },
8
+ icon: { height: "40px", width: "40px" },
9
+ inline: { width: "150px" }
10
+ }, m = ({ publicId: t, variant: i }) => /* @__PURE__ */ o(h, { ...p[i], children: /* @__PURE__ */ o(e, { alt: "logo", publicId: t }) });
5
11
  export {
6
- d as Logo
12
+ m as Logo
7
13
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
- import { M as n, p as t } from "../../index-BwFnfaRh.mjs";
2
+ import { M as n, p as t } from "../../index-maWH3JYC.mjs";
3
3
  import { styled as o } from "styled-components";
4
4
  const u = o.div`
5
5
  display: flex;
@@ -7,7 +7,7 @@ const u = o.div`
7
7
  max-width: 1440px;
8
8
  overflow: hidden;
9
9
  position: relative;
10
- `, e = o.div`
10
+ `, s = o.div`
11
11
  height: 79px;
12
12
  width: 64px;
13
13
  flex-shrink: 0;
@@ -31,7 +31,7 @@ const u = o.div`
31
31
  );
32
32
  right: 0;
33
33
  }
34
- `, f = o.div`
34
+ `, p = o.div`
35
35
  display: flex;
36
36
  gap: 40px;
37
37
  animation: clients-animation 50s linear infinite;
@@ -46,7 +46,42 @@ const u = o.div`
46
46
  transform: translateX(calc(-180px * 15));
47
47
  }
48
48
  }
49
- `, p = ["airs/clients-carousel/color/bancolombia", "airs/clients-carousel/color/itau_colombia", "airs/clients-carousel/color/lulo_bank", "airs/clients-carousel/color/oxxo_international", "airs/clients-carousel/color/interbank", "airs/clients-carousel/color/global_bank", "airs/clients-carousel/color/gesa", "airs/clients-carousel/color/copa_airlines", "airs/clients-carousel/color/consubanco", "airs/clients-carousel/color/bantrab", "airs/clients-carousel/color/banistmo", "airs/clients-carousel/color/banco_internacional", "airs/clients-carousel/color/banco_general", "airs/clients-carousel/color/banbif", "airs/clients-carousel/color/avianca"], m = ({ fusion: l = !1, logos: r = p }) => c(u, { children: [l && a(e, { className: "left" }), a(f, { children: [...r, ...r].map((i, s) => a(n, { alt: `${i}-${s}`, height: "80px", plugins: [t()], publicId: i, width: "140px" }, `${i}-${s}`)) }), l && a(e, { className: "right" })] });
49
+ `, f = [
50
+ "airs/clients-carousel/color/bancolombia",
51
+ "airs/clients-carousel/color/itau_colombia",
52
+ "airs/clients-carousel/color/lulo_bank",
53
+ "airs/clients-carousel/color/oxxo_international",
54
+ "airs/clients-carousel/color/interbank",
55
+ "airs/clients-carousel/color/global_bank",
56
+ "airs/clients-carousel/color/gesa",
57
+ "airs/clients-carousel/color/copa_airlines",
58
+ "airs/clients-carousel/color/consubanco",
59
+ "airs/clients-carousel/color/bantrab",
60
+ "airs/clients-carousel/color/banistmo",
61
+ "airs/clients-carousel/color/banco_internacional",
62
+ "airs/clients-carousel/color/banco_general",
63
+ "airs/clients-carousel/color/banbif",
64
+ "airs/clients-carousel/color/avianca"
65
+ ], h = ({
66
+ fusion: l = !1,
67
+ logos: r = f
68
+ }) => /* @__PURE__ */ c(u, { children: [
69
+ l && /* @__PURE__ */ a(s, { className: "left" }),
70
+ /* @__PURE__ */ a(p, { children: [...r, ...r].map(
71
+ (i, e) => /* @__PURE__ */ a(
72
+ n,
73
+ {
74
+ alt: `${i}-${e}`,
75
+ height: "80px",
76
+ plugins: [t()],
77
+ publicId: i,
78
+ width: "140px"
79
+ },
80
+ `${i}-${e}`
81
+ )
82
+ ) }),
83
+ l && /* @__PURE__ */ a(s, { className: "right" })
84
+ ] });
50
85
  export {
51
- m as LogoCarousel
86
+ h as LogoCarousel
52
87
  };
@@ -1,15 +1,20 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import e from "lottie-light-react";
3
- import { styled as i } from "styled-components";
4
- const r = i(e).attrs(({ autoplay: t = !0 }) => ({ autoplay: t, className: "comp-lottie" }))`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import i from "lottie-light-react";
3
+ import { styled as r } from "styled-components";
4
+ const m = r(i).attrs(
5
+ ({ autoplay: t = !0 }) => ({
6
+ autoplay: t,
7
+ className: "comp-lottie"
8
+ })
9
+ )`
5
10
  ${({ $size: t = 16 }) => `
6
11
  height: ${t}px;
7
12
  width: ${t}px;
8
13
  `}
9
- `, n = (t) => {
14
+ `, l = (t) => {
10
15
  const { size: o } = t;
11
- return s(r, { $size: o, ...t });
16
+ return /* @__PURE__ */ e(m, { $size: o, ...t });
12
17
  };
13
18
  export {
14
- n as Lottie
19
+ l as Lottie
15
20
  };
@@ -1,22 +1,66 @@
1
- import { jsxs as o, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { isUndefined as g } from "lodash";
3
3
  import { useTheme as x } from "styled-components";
4
4
  import { Container as t } from "../container/index.js";
5
- import { Divider as m } from "../divider/index.js";
5
+ import { Divider as l } from "../divider/index.js";
6
6
  import { Link as y } from "../link/index.js";
7
7
  import "react";
8
- import { a as b } from "../../styles-Q1VXuWI7.mjs";
8
+ import { a as z } from "../../styles-Bdque9TT.mjs";
9
9
  import "../icon/index.js";
10
- import { Tag as v } from "../tag/index.js";
10
+ import { Tag as b } from "../tag/index.js";
11
11
  import "../typography/heading/index.js";
12
12
  import "../typography/span/index.js";
13
13
  import { Text as r } from "../typography/text/index.js";
14
- import { u as z } from "../../use-click-outside-BtZLIoU1.mjs";
15
- const R = ({ children: s, commitSha: l, commitShortSha: n, parentElement: c, userInfo: p, setVisibility: d }) => {
16
- const e = x(), { userName: h, email: f, phone: a, userRole: u } = p;
17
- return z(c, () => {
14
+ import { u as k } from "../../use-click-outside-BUll8Ag-.mjs";
15
+ const R = ({
16
+ children: n,
17
+ commitSha: s,
18
+ commitShortSha: a,
19
+ parentElement: c,
20
+ userInfo: p,
21
+ setVisibility: d
22
+ }) => {
23
+ const i = x(), { userName: f, email: h, phone: m, userRole: u } = p;
24
+ return k(c, () => {
18
25
  d(!1);
19
- }), o(b, { children: [i("li", { className: "user-info", children: o(t, { display: "inline-flex", gap: 0.25, width: "100%", children: [o(t, { display: "flex", flexDirection: "column", gap: 0.25, width: "100%", children: [i(r, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", children: h }), i(r, { color: e.palette.gray[400], size: "sm", children: f }), g(a) ? void 0 : i(r, { color: e.palette.gray[400], size: "sm", children: a })] }), i(t, { children: i(v, { tagLabel: u, variant: "role" }) })] }) }), i(m, {}), s, i(m, {}), i("li", { className: "commit-info", children: i(y, { href: `https://gitlab.com/fluidattacks/universe/-/tree/${l}`, iconPosition: "hidden", children: i(r, { color: e.palette.gray[400], size: "xs", children: `commit : ${n}` }) }) })] });
26
+ }), /* @__PURE__ */ o(z, { children: [
27
+ /* @__PURE__ */ e("li", { className: "user-info", children: /* @__PURE__ */ o(t, { display: "inline-flex", gap: 0.25, width: "100%", children: [
28
+ /* @__PURE__ */ o(
29
+ t,
30
+ {
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ gap: 0.25,
34
+ width: "100%",
35
+ children: [
36
+ /* @__PURE__ */ e(
37
+ r,
38
+ {
39
+ color: i.palette.gray[800],
40
+ fontWeight: "bold",
41
+ size: "sm",
42
+ children: f
43
+ }
44
+ ),
45
+ /* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "sm", children: h }),
46
+ g(m) ? void 0 : /* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "sm", children: m })
47
+ ]
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(b, { tagLabel: u, variant: "role" }) })
51
+ ] }) }),
52
+ /* @__PURE__ */ e(l, {}),
53
+ n,
54
+ /* @__PURE__ */ e(l, {}),
55
+ /* @__PURE__ */ e("li", { className: "commit-info", children: /* @__PURE__ */ e(
56
+ y,
57
+ {
58
+ href: `https://gitlab.com/fluidattacks/universe/-/tree/${s}`,
59
+ iconPosition: "hidden",
60
+ children: /* @__PURE__ */ e(r, { color: i.palette.gray[400], size: "xs", children: `commit : ${a}` })
61
+ }
62
+ ) })
63
+ ] });
20
64
  };
21
65
  export {
22
66
  R as Menu
@@ -1,13 +1,13 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { useState as x, useCallback as C } from "react";
3
- import { styled as w, useTheme as j } from "styled-components";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { useState as x, useCallback as w } from "react";
3
+ import { styled as b, useTheme as z } from "styled-components";
4
4
  import { theme as c } from "../colors/index.js";
5
- import { Container as n } from "../container/index.js";
6
- import { Icon as m } from "../icon/index.js";
5
+ import { Container as l } from "../container/index.js";
6
+ import { Icon as p } from "../icon/index.js";
7
7
  import "../typography/heading/index.js";
8
8
  import "../typography/span/index.js";
9
- import { Text as p } from "../typography/text/index.js";
10
- const k = w.button`
9
+ import { Text as m } from "../typography/text/index.js";
10
+ const S = b.button`
11
11
  align-items: center;
12
12
  background-color: transparent;
13
13
  border: unset;
@@ -24,12 +24,78 @@ const k = w.button`
24
24
  &:hover span {
25
25
  color: ${c.palette.primary[200]};
26
26
  }
27
- `, F = ({ message: i, onClickButton: l, buttonText: d, buttonFontWeight: s = "regular", icon: f, onClose: o, variant: g = "web" }) => {
28
- const e = j(), [u, h] = x(!0), y = C(() => {
29
- h(!1), o == null || o();
30
- }, [o]), r = /* @__PURE__ */ ((b) => b === "platform" ? { normal: "sm", small: void 0 } : { normal: "md", small: "sm" })(g);
31
- return a(n, { alignItems: "center", bgGradient: e.palette.gradients["01"], display: u ? "flex" : "none", id: "message-banner", justify: "space-between", padding: [0.75, 0.75, 0.75, 0.75], children: [a(n, { display: "flex", gap: 0.5, justify: "center", width: "100%", children: [t(n, { children: typeof i == "string" ? t(p, { color: e.palette.white, display: "inline", size: r.normal, sizeSm: r.small, children: i }) : i }), l ? a(k, { onClick: l, children: [t(p, { color: e.palette.white, fontWeight: s, size: r.normal, sizeSm: r.small, textDecoration: "underline", children: d }), t(m, { icon: f ?? "arrow-right", iconColor: e.palette.white, iconSize: "xs", iconType: s === "bold" ? "fa-regular" : "fa-light" })] }) : void 0] }), t(m, { clickable: !0, hoverColor: e.palette.primary[200], icon: "close", iconColor: e.palette.white, iconSize: "xs", iconType: "fa-light", onClick: y })] });
27
+ `, j = (t) => t === "platform" ? { normal: "sm", small: void 0 } : { normal: "md", small: "sm" }, M = ({
28
+ message: t,
29
+ onClickButton: a,
30
+ buttonText: d,
31
+ buttonFontWeight: s = "regular",
32
+ icon: f,
33
+ onClose: i,
34
+ variant: h = "web"
35
+ }) => {
36
+ const e = z(), [u, g] = x(!0), y = w(() => {
37
+ g(!1), i == null || i();
38
+ }, [i]), o = j(h);
39
+ return /* @__PURE__ */ n(
40
+ l,
41
+ {
42
+ alignItems: "center",
43
+ bgGradient: e.palette.gradients["01"],
44
+ display: u ? "flex" : "none",
45
+ id: "message-banner",
46
+ justify: "space-between",
47
+ padding: [0.75, 0.75, 0.75, 0.75],
48
+ children: [
49
+ /* @__PURE__ */ n(l, { display: "flex", gap: 0.5, justify: "center", width: "100%", children: [
50
+ /* @__PURE__ */ r(l, { children: typeof t == "string" ? /* @__PURE__ */ r(
51
+ m,
52
+ {
53
+ color: e.palette.white,
54
+ display: "inline",
55
+ size: o.normal,
56
+ sizeSm: o.small,
57
+ children: t
58
+ }
59
+ ) : t }),
60
+ a ? /* @__PURE__ */ n(S, { onClick: a, children: [
61
+ /* @__PURE__ */ r(
62
+ m,
63
+ {
64
+ color: e.palette.white,
65
+ fontWeight: s,
66
+ size: o.normal,
67
+ sizeSm: o.small,
68
+ textDecoration: "underline",
69
+ children: d
70
+ }
71
+ ),
72
+ /* @__PURE__ */ r(
73
+ p,
74
+ {
75
+ icon: f ?? "arrow-right",
76
+ iconColor: e.palette.white,
77
+ iconSize: "xs",
78
+ iconType: s === "bold" ? "fa-regular" : "fa-light"
79
+ }
80
+ )
81
+ ] }) : void 0
82
+ ] }),
83
+ /* @__PURE__ */ r(
84
+ p,
85
+ {
86
+ clickable: !0,
87
+ hoverColor: e.palette.primary[200],
88
+ icon: "close",
89
+ iconColor: e.palette.white,
90
+ iconSize: "xs",
91
+ iconType: "fa-light",
92
+ onClick: y
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ );
32
98
  };
33
99
  export {
34
- F as MessageBanner
100
+ M as MessageBanner
35
101
  };
@@ -1,19 +1,65 @@
1
- import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
- import r from "lodash";
3
- import { createPortal as x } from "react-dom";
4
- import { ModalConfirm as j } from "./modal-confirm/index.js";
5
- import { ModalFooter as M } from "./modal-footer/index.js";
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import a from "lodash";
3
+ import { createPortal as M } from "react-dom";
4
+ import { ModalConfirm as k } from "./modal-confirm/index.js";
5
+ import { ModalFooter as x } from "./modal-footer/index.js";
6
6
  import { ModalHeader as b } from "./modal-header/index.js";
7
- import { M as B, a as S, I as g } from "../../styles-D85YYIjM.mjs";
8
- import { M as y } from "../../index-BwFnfaRh.mjs";
7
+ import { M as I, a as h, I as j } from "../../styles-BZQOqe8p.mjs";
8
+ import { M as O } from "../../index-maWH3JYC.mjs";
9
9
  import "../typography/heading/index.js";
10
10
  import "../typography/span/index.js";
11
- import { Text as z } from "../typography/text/index.js";
12
- const H = ({ _portal: n = !0, cancelButton: s, children: l, confirmButton: d, content: o, description: c = "", modalRef: e, otherActions: p, onClose: f, title: i = "", size: u, id: a = "modal-container" }) => {
13
- const m = () => t(B, { "aria-label": e.name, "aria-modal": "true", id: "modal-wrapper", children: h(S, { $size: u, "data-testid": a, id: a, children: [!r.isEmpty(i) && t(b, { description: c, modalRef: e, onClose: f, otherActions: p, title: i }), l, r.isObject(o) && r.isString(o.imageSrc) && t(g, { $framed: o.imageFramed, children: t(y, { alt: "modal-img", publicId: o.imageSrc }) }), r.isObject(o) && r.isString(o.imageText) && t(z, { mb: 1.5, size: "sm", children: o.imageText }), t(M, { cancelButton: s, confirmButton: d, modalRef: e })] }) });
14
- return n && e.isOpen ? x(m(), document.getElementById("portals") ?? document.body) : e.isOpen ? m() : null;
11
+ import { Text as S } from "../typography/text/index.js";
12
+ const P = ({
13
+ _portal: t = !0,
14
+ cancelButton: n = void 0,
15
+ children: p = void 0,
16
+ confirmButton: s = void 0,
17
+ content: r = void 0,
18
+ description: l = "",
19
+ modalRef: i,
20
+ otherActions: u = void 0,
21
+ onClose: f = void 0,
22
+ title: m = "",
23
+ size: g,
24
+ id: o = "modal-container"
25
+ }) => {
26
+ const d = () => /* @__PURE__ */ e(
27
+ I,
28
+ {
29
+ "aria-label": i.name,
30
+ "aria-modal": "true",
31
+ id: "modal-wrapper",
32
+ children: /* @__PURE__ */ c(h, { $size: g, "data-testid": o, id: o, children: [
33
+ !a.isEmpty(m) && /* @__PURE__ */ e(
34
+ b,
35
+ {
36
+ description: l,
37
+ modalRef: i,
38
+ onClose: f,
39
+ otherActions: u,
40
+ title: m
41
+ }
42
+ ),
43
+ p,
44
+ a.isObject(r) && a.isString(r.imageSrc) && /* @__PURE__ */ e(j, { $framed: r.imageFramed, children: /* @__PURE__ */ e(O, { alt: "modal-img", publicId: r.imageSrc }) }),
45
+ a.isObject(r) && a.isString(r.imageText) && /* @__PURE__ */ e(S, { mb: 1.5, size: "sm", children: r.imageText }),
46
+ /* @__PURE__ */ e(
47
+ x,
48
+ {
49
+ cancelButton: n,
50
+ confirmButton: s,
51
+ modalRef: i
52
+ }
53
+ )
54
+ ] })
55
+ }
56
+ );
57
+ return t && i.isOpen ? M(
58
+ d(),
59
+ document.getElementById("portals") ?? document.body
60
+ ) : i.isOpen ? d() : null;
15
61
  };
16
62
  export {
17
- H as Modal,
18
- j as ModalConfirm
63
+ P as Modal,
64
+ k as ModalConfirm
19
65
  };
@@ -1,10 +1,51 @@
1
- import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { Button as a } from "../../button/index.js";
3
- import { Container as l } from "../../container/index.js";
4
- const C = ({ disabled: e, id: t = "modal-confirm", onCancel: i, onConfirm: n = "submit", txtCancel: m, txtConfirm: s }) => {
5
- const r = n === "submit";
6
- return d(l, { display: "flex", gap: 0.75, maxWidth: i ? "392px" : "190px", mt: 1.5, children: [i ? o(a, { id: `${t}-cancel`, justify: "center", onClick: i, variant: "tertiary", width: "100%", children: m ?? "Cancel" }) : void 0, o(a, { disabled: e, id: t, justify: "center", onClick: r ? void 0 : n, type: r ? "submit" : "button", variant: "primary", width: "100%", children: s ?? "Confirm" })] });
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { Button as m } from "../../button/index.js";
3
+ import { Container as c } from "../../container/index.js";
4
+ const l = ({
5
+ disabled: o,
6
+ id: i = "modal-confirm",
7
+ onCancel: t,
8
+ onConfirm: r = "submit",
9
+ txtCancel: d,
10
+ txtConfirm: a
11
+ }) => {
12
+ const n = r === "submit";
13
+ return /* @__PURE__ */ s(
14
+ c,
15
+ {
16
+ display: "flex",
17
+ gap: 0.75,
18
+ maxWidth: t ? "392px" : "190px",
19
+ mt: 1.5,
20
+ children: [
21
+ t ? /* @__PURE__ */ e(
22
+ m,
23
+ {
24
+ id: `${i}-cancel`,
25
+ justify: "center",
26
+ onClick: t,
27
+ variant: "tertiary",
28
+ width: "100%",
29
+ children: d ?? "Cancel"
30
+ }
31
+ ) : void 0,
32
+ /* @__PURE__ */ e(
33
+ m,
34
+ {
35
+ disabled: o,
36
+ id: i,
37
+ justify: "center",
38
+ onClick: n ? void 0 : r,
39
+ type: n ? "submit" : "button",
40
+ variant: "primary",
41
+ width: "100%",
42
+ children: a ?? "Confirm"
43
+ }
44
+ )
45
+ ]
46
+ }
47
+ );
7
48
  };
8
49
  export {
9
- C as ModalConfirm
50
+ l as ModalConfirm
10
51
  };
@@ -1,16 +1,25 @@
1
- import { jsx as i, jsxs as l } from "react/jsx-runtime";
2
- import { isEmpty as p } from "lodash";
3
- import { useCallback as n } from "react";
4
- import { F as f } from "../../../styles-D85YYIjM.mjs";
5
- import { Button as a } from "../../button/index.js";
6
- const C = ({ modalRef: s, confirmButton: o, cancelButton: t }) => {
7
- const { close: r } = s, c = n(() => {
8
- t == null || t.onClick(), r();
9
- }, [t, r]), e = n(() => {
10
- o == null || o.onClick(), r();
11
- }, [o, r]);
12
- return [o, t].some((d) => !p(d)) ? i(f, { children: l("div", { children: [t && i(a, { onClick: c, variant: "tertiary", width: "100%", children: t.text }), o && i(a, { onClick: e, variant: "primary", width: "100%", children: o.text })] }) }) : null;
1
+ import { jsx as s, jsxs as x } from "react/jsx-runtime";
2
+ import { isEmpty as C } from "lodash";
3
+ import { useCallback as d } from "react";
4
+ import { F as m } from "../../../styles-BZQOqe8p.mjs";
5
+ import { Button as h } from "../../button/index.js";
6
+ const j = ({
7
+ modalRef: l,
8
+ confirmButton: r = void 0,
9
+ cancelButton: i = void 0
10
+ }) => {
11
+ const { close: e } = l, p = d(() => {
12
+ i == null || i.onClick(), e();
13
+ }, [i, e]), a = d(() => {
14
+ r == null || r.onClick(), e();
15
+ }, [r, e]);
16
+ return [r, i].some(
17
+ (o) => !C(o)
18
+ ) ? /* @__PURE__ */ s(m, { children: /* @__PURE__ */ x("div", { children: [
19
+ i && /* @__PURE__ */ s(h, { onClick: p, variant: "tertiary", width: "100%", children: i.text }),
20
+ r && /* @__PURE__ */ s(h, { onClick: a, variant: "primary", width: "100%", children: r.text })
21
+ ] }) }) : null;
13
22
  };
14
23
  export {
15
- C as ModalFooter
24
+ j as ModalFooter
16
25
  };