@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,21 +1,21 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
2
  import { RecommendedTag as g } from "./recommended-tag/index.js";
3
- import { styled as o } from "styled-components";
4
- import { Button as x } from "../button/index.js";
5
- import { theme as r } from "../colors/index.js";
6
- import { Container as b } from "../container/index.js";
3
+ import { styled as s } from "styled-components";
4
+ import { Button as b } from "../button/index.js";
5
+ import { theme as n } from "../colors/index.js";
6
+ import { Container as m } from "../container/index.js";
7
7
  import { Heading as u } from "../typography/heading/index.js";
8
8
  import "../typography/span/index.js";
9
- import { Text as s } from "../typography/text/index.js";
10
- const f = o.div`
11
- ${({ className: t, theme: n }) => `
9
+ import { Text as o } from "../typography/text/index.js";
10
+ const f = s.div`
11
+ ${({ className: t, theme: e }) => `
12
12
  align-items: flex-start;
13
- border-radius: ${n.spacing[1]};
14
- background: ${n.palette.white};
13
+ border-radius: ${e.spacing[1]};
14
+ background: ${e.palette.white};
15
15
  display: flex;
16
16
  flex-direction: column;
17
- gap: ${n.spacing[1]};
18
- padding: ${n.spacing[1.5]};
17
+ gap: ${e.spacing[1]};
18
+ padding: ${e.spacing[1.5]};
19
19
  position: relative;
20
20
  width: 320px;
21
21
 
@@ -24,13 +24,13 @@ const f = o.div`
24
24
  width: 100%;
25
25
  }
26
26
 
27
- ${t === "essential" ? `border: 2px solid ${n.palette.gray[300]};` : `
27
+ ${t === "essential" ? `border: 2px solid ${e.palette.gray[300]};` : `
28
28
  box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
29
29
  0px 18px 27px 0px rgba(243, 38, 55, 0.10);
30
30
 
31
31
  &::before {
32
- background: ${n.palette.gradients["01"]} border-box;
33
- border-radius: ${n.spacing[1]};
32
+ background: ${e.palette.gradients["01"]} border-box;
33
+ border-radius: ${e.spacing[1]};
34
34
  content: "";
35
35
  position: absolute;
36
36
  inset: 0;
@@ -42,15 +42,15 @@ const f = o.div`
42
42
  `}
43
43
  `}
44
44
  `;
45
- o.div`
46
- ${({ className: t, theme: n }) => `
45
+ s.div`
46
+ ${({ className: t, theme: e }) => `
47
47
  align-items: flex-start;
48
- border-radius: ${n.spacing[1]};
48
+ border-radius: ${e.spacing[1]};
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  justify-content: center;
52
- gap: ${n.spacing[1.5]};
53
- padding: ${n.spacing[1.5]};
52
+ gap: ${e.spacing[1.5]};
53
+ padding: ${e.spacing[1.5]};
54
54
  width: 466px;
55
55
 
56
56
  button {
@@ -61,23 +61,94 @@ o.div`
61
61
  ${t === "essential" ? `
62
62
  background: linear-gradient(
63
63
  180deg,
64
- ${n.palette.primary[400]} 0%,
65
- ${n.palette.black} 100%
64
+ ${e.palette.primary[400]} 0%,
65
+ ${e.palette.black} 100%
66
66
  );` : `
67
- background: ${n.palette.white};
67
+ background: ${e.palette.white};
68
68
  box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
69
69
  0px 18px 27px 0px rgba(243, 38, 55, 0.10);
70
70
  `}
71
71
 
72
- @media screen and (max-width: ${n.breakpoints.mobile}) {
72
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
73
73
  width: 320px;
74
74
  }
75
75
  `}
76
76
  `;
77
- const h = { advanced: { title: "Advanced plan", benefits: "Leverage vulnerability scanning + AI + expert intelligence", buttonText: "Contact sales", description: "For teams that want to discover risk exposure with speed and accuracy.", priceGroup: "$1,579" }, essential: { title: "Essential plan", benefits: "Leverage vulnerability scanning", buttonText: "Start a 21-day free trial", description: `For teams that want to discover risk exposure quickly
78
- through our scanning tool.`, priceAuthor: "$499", priceGroup: "$1,579" } }, j = ({ description: t, onClick: n, plan: e }) => {
79
- const { title: p, description: l, benefits: d, buttonText: c } = h[e], m = t ?? l;
80
- return a(f, { className: e, children: [a(b, { display: "flex", flexDirection: "column", gap: 0.25, pt: e === "essential" ? 1.75 : 0, children: [e === "advanced" && i(g, {}), i(u, { color: r.palette.gray[900], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: p }), i(s, { color: r.palette.gray[400], fontWeight: "semibold", pb: e === "essential" ? 1.25 : 0, size: "sm", sizeSm: "xs", children: d })] }), i(s, { lineSpacing: 1.5, lineSpacingSm: 1.25, pb: e === "advanced" ? 1.5 : 0, size: "md", sizeSm: "sm", children: m }), i(x, { onClick: n, variant: "primary", children: c })] });
77
+ const $ = {
78
+ advanced: {
79
+ title: "Advanced plan",
80
+ benefits: "Leverage vulnerability scanning + AI + expert intelligence",
81
+ buttonText: "Contact sales",
82
+ description: "For teams that want to discover risk exposure with speed and accuracy.",
83
+ priceGroup: "$1,579"
84
+ },
85
+ essential: {
86
+ title: "Essential plan",
87
+ benefits: "Leverage vulnerability scanning",
88
+ buttonText: "Start a 21-day free trial",
89
+ description: `For teams that want to discover risk exposure quickly
90
+ through our scanning tool.`,
91
+ priceAuthor: "$499",
92
+ priceGroup: "$1,579"
93
+ }
94
+ }, j = ({
95
+ description: t,
96
+ onClick: e,
97
+ plan: i
98
+ }) => {
99
+ const {
100
+ title: p,
101
+ description: d,
102
+ benefits: l,
103
+ buttonText: c
104
+ } = $[i], x = t ?? d;
105
+ return /* @__PURE__ */ a(f, { className: i, children: [
106
+ /* @__PURE__ */ a(
107
+ m,
108
+ {
109
+ display: "flex",
110
+ flexDirection: "column",
111
+ gap: 0.25,
112
+ pt: i === "essential" ? 1.75 : 0,
113
+ children: [
114
+ i === "advanced" && /* @__PURE__ */ r(g, {}),
115
+ /* @__PURE__ */ r(
116
+ u,
117
+ {
118
+ color: n.palette.gray[900],
119
+ fontWeight: "semibold",
120
+ size: "sm",
121
+ sizeSm: "xs",
122
+ children: p
123
+ }
124
+ ),
125
+ /* @__PURE__ */ r(
126
+ o,
127
+ {
128
+ color: n.palette.gray[400],
129
+ fontWeight: "semibold",
130
+ pb: i === "essential" ? 1.25 : 0,
131
+ size: "sm",
132
+ sizeSm: "xs",
133
+ children: l
134
+ }
135
+ )
136
+ ]
137
+ }
138
+ ),
139
+ /* @__PURE__ */ r(
140
+ o,
141
+ {
142
+ lineSpacing: 1.5,
143
+ lineSpacingSm: 1.25,
144
+ pb: i === "advanced" ? 1.5 : 0,
145
+ size: "md",
146
+ sizeSm: "sm",
147
+ children: x
148
+ }
149
+ ),
150
+ /* @__PURE__ */ r(b, { onClick: e, variant: "primary", children: c })
151
+ ] });
81
152
  };
82
153
  export {
83
154
  j as PlanCard
@@ -4,7 +4,28 @@ import { Container as r } from "../../container/index.js";
4
4
  import "../../typography/heading/index.js";
5
5
  import "../../typography/span/index.js";
6
6
  import { Text as i } from "../../typography/text/index.js";
7
- const p = () => e(r, { alignItems: "center", bgColor: t.palette.primary[25], borderRadius: "8px", gap: 0.5, justify: "center", padding: [0.125, 0.25, 0.125, 0.25], width: "max-content", children: e(i, { bgGradient: t.palette.gradients["01"], fontWeight: "semibold", size: "xs", textFill: "transparent", children: "Recommended" }) });
7
+ const s = () => /* @__PURE__ */ e(
8
+ r,
9
+ {
10
+ alignItems: "center",
11
+ bgColor: t.palette.primary[25],
12
+ borderRadius: "8px",
13
+ gap: 0.5,
14
+ justify: "center",
15
+ padding: [0.125, 0.25, 0.125, 0.25],
16
+ width: "max-content",
17
+ children: /* @__PURE__ */ e(
18
+ i,
19
+ {
20
+ bgGradient: t.palette.gradients["01"],
21
+ fontWeight: "semibold",
22
+ size: "xs",
23
+ textFill: "transparent",
24
+ children: "Recommended"
25
+ }
26
+ )
27
+ }
28
+ );
8
29
  export {
9
- p as RecommendedTag
30
+ s as RecommendedTag
10
31
  };
@@ -1,13 +1,51 @@
1
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { Fragment as p } from "react";
3
- import { useTheme as m } from "styled-components";
1
+ import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
+ import { Fragment as c } from "react";
3
+ import { useTheme as g } from "styled-components";
4
4
  import "../../typography/heading/index.js";
5
- import { Span as o } from "../../typography/span/index.js";
6
- import { Text as s } from "../../typography/text/index.js";
7
- const u = ({ description: n = "", highlightDescription: i = "" }) => {
8
- const l = m(), r = typeof i == "string", a = r ? "" : new RegExp(`(${i.join("|")})`, "u");
9
- return i.length > 0 ? e(s, { display: "inline", lineSpacing: 1.5, size: "lg", textAlign: "center", children: r ? c(p, { children: [e(o, { color: l.palette.gray[600], display: "inline", fontWeight: "bold", lineSpacing: 1.5, size: "lg", children: i }), n] }) : n.split(a).map((t, g) => i.includes(t) ? e(o, { color: l.palette.gray[600], display: "inline", fontWeight: "bold", lineSpacing: 1.5, size: "lg", children: t }, `${g + 1}-bold`) : t) }) : e(s, { lineSpacing: 1.5, size: "lg", textAlign: "center", children: n });
5
+ import { Span as t } from "../../typography/span/index.js";
6
+ import { Text as p } from "../../typography/text/index.js";
7
+ const z = ({
8
+ description: l = "",
9
+ highlightDescription: e = ""
10
+ }) => {
11
+ const i = g(), o = typeof e == "string", a = o ? "" : new RegExp(`(${e.join("|")})`, "u");
12
+ return e.length > 0 ? /* @__PURE__ */ n(
13
+ p,
14
+ {
15
+ display: "inline",
16
+ lineSpacing: 1.5,
17
+ size: "lg",
18
+ textAlign: "center",
19
+ children: o ? /* @__PURE__ */ s(c, { children: [
20
+ /* @__PURE__ */ n(
21
+ t,
22
+ {
23
+ color: i.palette.gray[600],
24
+ display: "inline",
25
+ fontWeight: "bold",
26
+ lineSpacing: 1.5,
27
+ size: "lg",
28
+ children: e
29
+ }
30
+ ),
31
+ l
32
+ ] }) : l.split(a).map(
33
+ (r, m) => e.includes(r) ? /* @__PURE__ */ n(
34
+ t,
35
+ {
36
+ color: i.palette.gray[600],
37
+ display: "inline",
38
+ fontWeight: "bold",
39
+ lineSpacing: 1.5,
40
+ size: "lg",
41
+ children: r
42
+ },
43
+ `${m + 1}-bold`
44
+ ) : r
45
+ )
46
+ }
47
+ ) : /* @__PURE__ */ n(p, { lineSpacing: 1.5, size: "lg", textAlign: "center", children: l });
10
48
  };
11
49
  export {
12
- u as Description
50
+ z as Description
13
51
  };
@@ -1,23 +1,152 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { isObject as p } from "lodash";
3
- import { useCallback as s } from "react";
4
- import { createPortal as B } from "react-dom";
5
- import { useTheme as g } from "styled-components";
6
- import { Description as z } from "./description/index.js";
7
- import { Button as h } from "../button/index.js";
8
- import { M as W } from "../../index-BwFnfaRh.mjs";
9
- import { Container as r } from "../container/index.js";
10
- import { Heading as A } from "../typography/heading/index.js";
1
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
+ import { isObject as g } from "lodash";
3
+ import { useCallback as m } from "react";
4
+ import { createPortal as A } from "react-dom";
5
+ import { useTheme as H } from "styled-components";
6
+ import { Description as O } from "./description/index.js";
7
+ import { Button as b } from "../button/index.js";
8
+ import { M as R } from "../../index-maWH3JYC.mjs";
9
+ import { Container as l } from "../container/index.js";
10
+ import { Heading as S } from "../typography/heading/index.js";
11
11
  import "../typography/span/index.js";
12
12
  import "../typography/text/index.js";
13
- const F = ({ _portal: l = !1, cancelButton: i, darkBackground: f = !1, children: a, confirmButton: t, container: x, description: m, highlightDescription: u = "", image: b, maxWidth: y, title: n, titleColor: C }) => {
14
- const c = g(), { alt: k, src: w, width: v = "77px", height: D = "77px" } = b, I = s(() => {
13
+ const Q = ({
14
+ _portal: p = !1,
15
+ cancelButton: e,
16
+ darkBackground: y = !1,
17
+ children: s,
18
+ confirmButton: i,
19
+ container: C,
20
+ description: f,
21
+ highlightDescription: k = "",
22
+ image: I,
23
+ maxWidth: w,
24
+ title: a,
25
+ titleColor: j
26
+ }) => {
27
+ const h = H(), { alt: v, src: o, width: z = "77px", height: D = "77px" } = I, M = m(() => {
28
+ e == null || e.onClick();
29
+ }, [e]), P = m(() => {
15
30
  i == null || i.onClick();
16
- }, [i]), j = s(() => {
17
- t == null || t.onClick();
18
- }, [t]), d = e(r, { alignItems: "center", "aria-label": n, "aria-modal": "true", bgColor: f ? "rgba(52, 64, 84, 70%)" : "", display: "flex", height: "100vh", justify: "center", left: "0", position: l ? "fixed" : "absolute", top: "0px", width: "100%", zIndex: 99999, children: o(r, { bgColor: c.palette.white, border: `1px solid ${c.palette.gray[200]}`, borderRadius: "8px", display: "inline-flex", flexDirection: "column", maxWidth: y, pb: 2.5, pl: 2.5, pr: 2.5, pt: 2.5, shadow: "lg", width: "100%", zIndex: 11, children: [o(r, { alignItems: "center", display: "flex", flexDirection: "column", width: "100%", children: [e(r, { children: e(W, { alt: k, height: D, publicId: w, width: v }) }), o(r, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, mt: 1.5, children: [e(A, { color: C, fontWeight: "bold", lineSpacing: 2.5, size: "lg", textAlign: "center", children: n }), e(z, { description: m, highlightDescription: u })] })] }), a && e(r, { mb: 1, scroll: "y", children: e(r, { height: "100%", children: a }) }), o(r, { alignItems: "flex-start", display: "flex", gap: 1, justify: "center", children: [p(t) ? e(h, { onClick: j, variant: (t == null ? void 0 : t.variant) ?? "primary", children: t == null ? void 0 : t.text }, t == null ? void 0 : t.key) : void 0, p(i) ? e(h, { onClick: I, variant: (i == null ? void 0 : i.variant) ?? "tertiary", children: i == null ? void 0 : i.text }, i == null ? void 0 : i.key) : void 0] })] }) });
19
- return l ? B(d, x ?? document.body) : d;
31
+ }, [i]), x = /* @__PURE__ */ r(
32
+ l,
33
+ {
34
+ alignItems: "center",
35
+ "aria-label": a,
36
+ "aria-modal": "true",
37
+ bgColor: y ? "rgba(52, 64, 84, 70%)" : "",
38
+ display: "flex",
39
+ height: "100vh",
40
+ justify: "center",
41
+ left: "0",
42
+ position: p ? "fixed" : "absolute",
43
+ top: "0px",
44
+ width: "100%",
45
+ zIndex: 99999,
46
+ children: /* @__PURE__ */ d(
47
+ l,
48
+ {
49
+ bgColor: h.palette.white,
50
+ border: `1px solid ${h.palette.gray[200]}`,
51
+ borderRadius: "8px",
52
+ display: "inline-flex",
53
+ flexDirection: "column",
54
+ maxWidth: w,
55
+ pb: 2.5,
56
+ pl: 2.5,
57
+ pr: 2.5,
58
+ pt: 2.5,
59
+ shadow: "lg",
60
+ width: "100%",
61
+ zIndex: 11,
62
+ children: [
63
+ /* @__PURE__ */ d(
64
+ l,
65
+ {
66
+ alignItems: "center",
67
+ display: "flex",
68
+ flexDirection: "column",
69
+ width: "100%",
70
+ children: [
71
+ /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(
72
+ R,
73
+ {
74
+ alt: v,
75
+ height: D,
76
+ publicId: o,
77
+ width: z
78
+ }
79
+ ) }),
80
+ /* @__PURE__ */ d(
81
+ l,
82
+ {
83
+ display: "flex",
84
+ flexDirection: "column",
85
+ gap: 0.5,
86
+ mb: 1.5,
87
+ mt: 1.5,
88
+ children: [
89
+ /* @__PURE__ */ r(
90
+ S,
91
+ {
92
+ color: j,
93
+ fontWeight: "bold",
94
+ lineSpacing: 2.5,
95
+ size: "lg",
96
+ textAlign: "center",
97
+ children: a
98
+ }
99
+ ),
100
+ /* @__PURE__ */ r(
101
+ O,
102
+ {
103
+ description: f,
104
+ highlightDescription: k
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ )
110
+ ]
111
+ }
112
+ ),
113
+ s && /* @__PURE__ */ r(l, { mb: 1, scroll: "y", children: /* @__PURE__ */ r(l, { height: "100%", children: s }) }),
114
+ /* @__PURE__ */ d(
115
+ l,
116
+ {
117
+ alignItems: "flex-start",
118
+ display: "flex",
119
+ gap: 1,
120
+ justify: "center",
121
+ children: [
122
+ g(i) ? /* @__PURE__ */ r(
123
+ b,
124
+ {
125
+ onClick: P,
126
+ variant: (i == null ? void 0 : i.variant) ?? "primary",
127
+ children: i == null ? void 0 : i.text
128
+ },
129
+ i == null ? void 0 : i.key
130
+ ) : void 0,
131
+ g(e) ? /* @__PURE__ */ r(
132
+ b,
133
+ {
134
+ onClick: M,
135
+ variant: (e == null ? void 0 : e.variant) ?? "tertiary",
136
+ children: e == null ? void 0 : e.text
137
+ },
138
+ e == null ? void 0 : e.key
139
+ ) : void 0
140
+ ]
141
+ }
142
+ )
143
+ ]
144
+ }
145
+ )
146
+ }
147
+ );
148
+ return p ? A(x, C ?? document.body) : x;
20
149
  };
21
150
  export {
22
- F as PopUp
151
+ Q as PopUp
23
152
  };
@@ -1,14 +1,14 @@
1
- import { jsx as i, jsxs as t } from "react/jsx-runtime";
2
- import { styled as c, useTheme as p } from "styled-components";
3
- import { Container as a } from "../container/index.js";
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
+ import { styled as a, useTheme as p } from "styled-components";
3
+ import { Container as o } from "../container/index.js";
4
4
  import { Icon as e } from "../icon/index.js";
5
5
  import "../typography/heading/index.js";
6
6
  import "../typography/span/index.js";
7
- import { Text as m } from "../typography/text/index.js";
8
- const d = c.div`
9
- ${({ theme: n }) => `
10
- height: ${n.spacing[1]};
11
- width: ${n.spacing[1]};
7
+ import { Text as d } from "../typography/text/index.js";
8
+ const m = a.div`
9
+ ${({ theme: i }) => `
10
+ height: ${i.spacing[1]};
11
+ width: ${i.spacing[1]};
12
12
  position: relative;
13
13
  flex-shrink: 0;
14
14
 
@@ -22,24 +22,64 @@ const d = c.div`
22
22
  }
23
23
 
24
24
  & .ellipse-1 {
25
- color: ${n.palette.warning[200]};
25
+ color: ${i.palette.warning[200]};
26
26
  position: absolute;
27
27
  }
28
28
 
29
29
  & .ellipse-2 {
30
30
  transform: scale(0.75) translate(-67%, -66%);
31
- color: ${n.palette.warning[400]};
31
+ color: ${i.palette.warning[400]};
32
32
  }
33
33
 
34
34
  & .icon {
35
- color: ${n.palette.warning[600]};
36
- font-size: ${n.spacing[0.5]};
35
+ color: ${i.palette.warning[600]};
36
+ font-size: ${i.spacing[0.5]};
37
37
  }
38
38
  `}
39
- `, $ = ({ margin: n, onClick: o, text: l }) => {
40
- const s = p(), r = t(d, { children: [i(e, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }), i(e, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }), i(e, { icon: "crown", iconClass: "icon", iconSize: "xs" })] });
41
- return i(a, l !== void 0 ? { cursor: "pointer", display: "inline-block", mr: n, onClick: o, children: t(a, { alignItems: "center", bgColor: s.palette.warning[50], borderRadius: "4px", display: "flex", padding: [0.25, 0.25, 0.25, 0.25], width: "fit-content", children: [r, i(m, { color: s.palette.warning[500], display: "inline", ml: 0.25, size: "xs", children: l })] }) } : { display: "inline-block", mr: n, onClick: o, children: r });
39
+ `, b = ({
40
+ margin: i,
41
+ onClick: r,
42
+ text: l
43
+ }) => {
44
+ const s = p(), t = /* @__PURE__ */ c(m, { children: [
45
+ /* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }),
46
+ /* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }),
47
+ /* @__PURE__ */ n(e, { icon: "crown", iconClass: "icon", iconSize: "xs" })
48
+ ] });
49
+ return l !== void 0 ? /* @__PURE__ */ n(
50
+ o,
51
+ {
52
+ cursor: "pointer",
53
+ display: "inline-block",
54
+ mr: i,
55
+ onClick: r,
56
+ children: /* @__PURE__ */ c(
57
+ o,
58
+ {
59
+ alignItems: "center",
60
+ bgColor: s.palette.warning[50],
61
+ borderRadius: "4px",
62
+ display: "flex",
63
+ padding: [0.25, 0.25, 0.25, 0.25],
64
+ width: "fit-content",
65
+ children: [
66
+ t,
67
+ /* @__PURE__ */ n(
68
+ d,
69
+ {
70
+ color: s.palette.warning[500],
71
+ display: "inline",
72
+ ml: 0.25,
73
+ size: "xs",
74
+ children: l
75
+ }
76
+ )
77
+ ]
78
+ }
79
+ )
80
+ }
81
+ ) : /* @__PURE__ */ n(o, { display: "inline-block", mr: i, onClick: r, children: t });
42
82
  };
43
83
  export {
44
- $ as PremiumFeature
84
+ b as PremiumFeature
45
85
  };
@@ -1,14 +1,29 @@
1
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
2
- import { useTheme as e } from "styled-components";
3
- import { Container as a } from "../container/index.js";
4
- import { Icon as s } from "../icon/index.js";
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import { useTheme as a } from "styled-components";
3
+ import { Container as m } from "../container/index.js";
4
+ import { Icon as p } from "../icon/index.js";
5
5
  import "../typography/heading/index.js";
6
6
  import "../typography/span/index.js";
7
- import { Text as n } from "../typography/text/index.js";
8
- const x = ({ score: r }) => {
9
- const o = e();
10
- return t(a, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [i(s, { icon: r > 66 || r === 0 ? "priority-bars-high" : r <= 33 ? "priority-bars-low" : "priority-bars-medium", iconClass: r <= 66 ? "fa-kit-duotone" : "", iconColor: r > 0 ? o.palette.primary[500] : o.palette.gray[200], iconSize: "xs", iconType: "fa-kit", secondaryColor: o.palette.gray[200] }), i(n, { color: o.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })] });
7
+ import { Text as l } from "../typography/text/index.js";
8
+ const d = ({
9
+ score: r
10
+ }) => {
11
+ const i = a(), t = r <= 33 ? "priority-bars-low" : "priority-bars-medium", e = r > 66 || r === 0 ? "priority-bars-high" : t;
12
+ return /* @__PURE__ */ n(m, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [
13
+ /* @__PURE__ */ o(
14
+ p,
15
+ {
16
+ icon: e,
17
+ iconClass: r <= 66 ? "fa-kit-duotone" : "",
18
+ iconColor: r > 0 ? i.palette.primary[500] : i.palette.gray[200],
19
+ iconSize: "xs",
20
+ iconType: "fa-kit",
21
+ secondaryColor: i.palette.gray[200]
22
+ }
23
+ ),
24
+ /* @__PURE__ */ o(l, { color: i.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })
25
+ ] });
11
26
  };
12
27
  export {
13
- x as PriorityScore
28
+ d as PriorityScore
14
29
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useState as p, useEffect as i } from "react";
3
- import { styled as l, useTheme as g } from "styled-components";
4
- import { B as h } from "../../styles-C3cZmKVJ.mjs";
5
- import { Container as f } from "../container/index.js";
6
- const d = l(h)`
7
- animation: ${({ $animationTime: e }) => `progress-bar ${e}s ease-in-out`};
2
+ import { useState as f, useEffect as n } from "react";
3
+ import { styled as g, useTheme as c } from "styled-components";
4
+ import { B as d } from "../../styles-CplEd2kw.mjs";
5
+ import { Container as l } from "../container/index.js";
6
+ const p = g(d)`
7
+ animation: ${({ $animationTime: t }) => `progress-bar ${t}s ease-in-out`};
8
8
  animation-fill-mode: both;
9
9
 
10
10
  @keyframes progress-bar {
@@ -16,19 +16,32 @@ const d = l(h)`
16
16
  width: 100%;
17
17
  }
18
18
  }
19
- `, w = ({ progressTime: e = 10, onComplete: t }) => {
20
- const s = g(), [r, m] = p(0);
21
- return i(() => {
22
- r === 100 && (t == null || t());
23
- }, [r, t]), i(() => {
24
- const n = setInterval(() => {
25
- m((a) => a === 100 ? 0 : a + 1);
26
- }, ((a) => 1e3 * a / 100)(e));
19
+ `, b = (t) => t * 1e3 / 100, x = ({
20
+ progressTime: t = 10,
21
+ onComplete: r
22
+ }) => {
23
+ const s = c(), i = 100, [e, m] = f(0);
24
+ return n(() => {
25
+ e === i && (r == null || r());
26
+ }, [e, r]), n(() => {
27
+ const h = setInterval(() => {
28
+ m(
29
+ (a) => a === i ? 0 : a + 1
30
+ );
31
+ }, b(t));
27
32
  return () => {
28
- clearInterval(n);
33
+ clearInterval(h);
29
34
  };
30
- }, [r, e]), o(f, { bgColor: s.palette.gray[200], height: "4px", children: o(d, { $animationTime: e, bgGradient: s.palette.gradients["01"], height: "100%", width: `${r}%` }) });
35
+ }, [e, t]), /* @__PURE__ */ o(l, { bgColor: s.palette.gray[200], height: "4px", children: /* @__PURE__ */ o(
36
+ p,
37
+ {
38
+ $animationTime: t,
39
+ bgGradient: s.palette.gradients["01"],
40
+ height: "100%",
41
+ width: `${e}%`
42
+ }
43
+ ) });
31
44
  };
32
45
  export {
33
- w as Progress
46
+ x as Progress
34
47
  };