@fluidattacks/design 3.1.11 → 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 (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,100 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),n=require("styled-components"),t=require("./option-container/index.js"),r=require("../button/index.js"),o=require("../container/index.js"),l=require("../../use-click-outside-BqkLISED.js");exports.OptionContainer=t.OptionContainer,exports.OAuthSelector=({align:s="end",buttonLabel:a="Add Credential",children:u,id:d,manualOption:c,providers:p})=>{const x=n.useTheme(),[b,C]=i.useState(!1),m=i.useRef(null);l.useClickOutside(m.current,(()=>{C(!1)}),!0);const j=i.useCallback((e=>{null==c||c.onClick(e),C(!1)}),[c]),h=i.useCallback((()=>{C((e=>!e))}),[C]),k=i.useCallback((e=>i=>{var n;null==(n=p[e])||n.onClick(i),C(!1)}),[p]);return e.jsxs(o.Container,{alignItems:s,display:"flex",flexDirection:"column",position:"relative",ref:m,width:"max-content",zIndex:10,children:[e.jsx(r.Button,{icon:"plus",onClick:h,variant:"primary",children:a}),e.jsxs(o.Container,{alignItems:"center",bgColor:"#fff",border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:d,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:b?"visible":"hidden",zIndex:10,children:[Object.keys(p).map((i=>e.jsx(t.OptionContainer,{onClick:k(i),provider:i},i))),void 0===c?void 0:e.jsx(t.OptionContainer,{icon:"square-plus",label:c.label??"Add manually",onClick:j}),u]})]})};
1
+ import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
+ import { useState as y, useRef as w, useCallback as n } from "react";
3
+ import { useTheme as I } from "styled-components";
4
+ import { OptionContainer as d } from "./option-container/index.js";
5
+ import { Button as S } from "../button/index.js";
6
+ import { Container as a } from "../container/index.js";
7
+ import { u as j } from "../../use-click-outside-BUll8Ag-.mjs";
8
+ const O = ({
9
+ align: f = "end",
10
+ buttonLabel: p = "Add Credential",
11
+ children: m,
12
+ id: u,
13
+ manualOption: t,
14
+ providers: i
15
+ }) => {
16
+ const h = I(), [x, o] = y(!1), s = w(null);
17
+ j(
18
+ s.current,
19
+ () => {
20
+ o(!1);
21
+ },
22
+ !0
23
+ );
24
+ const C = n(
25
+ (e) => {
26
+ t == null || t.onClick(e), o(!1);
27
+ },
28
+ [t]
29
+ ), b = n(() => {
30
+ o((e) => !e);
31
+ }, [o]), k = n(
32
+ (e) => (g) => {
33
+ var r;
34
+ (r = i[e]) == null || r.onClick(g), o(!1);
35
+ },
36
+ [i]
37
+ );
38
+ return /* @__PURE__ */ c(
39
+ a,
40
+ {
41
+ alignItems: f,
42
+ display: "flex",
43
+ flexDirection: "column",
44
+ position: "relative",
45
+ ref: s,
46
+ width: "max-content",
47
+ zIndex: 10,
48
+ children: [
49
+ /* @__PURE__ */ l(S, { icon: "plus", onClick: b, variant: "primary", children: p }),
50
+ /* @__PURE__ */ c(
51
+ a,
52
+ {
53
+ alignItems: "center",
54
+ bgColor: "#fff",
55
+ border: `1px solid ${h.palette.gray[200]}`,
56
+ borderRadius: "4px",
57
+ display: "flex",
58
+ gap: 0.5,
59
+ height: "78px",
60
+ id: u,
61
+ pb: 0.5,
62
+ pl: 0.75,
63
+ position: "absolute",
64
+ pr: 0.75,
65
+ pt: 0.5,
66
+ shadow: "md",
67
+ top: "40px",
68
+ visibility: x ? "visible" : "hidden",
69
+ zIndex: 10,
70
+ children: [
71
+ Object.keys(i).map(
72
+ (e) => /* @__PURE__ */ l(
73
+ d,
74
+ {
75
+ onClick: k(e),
76
+ provider: e
77
+ },
78
+ e
79
+ )
80
+ ),
81
+ t === void 0 ? void 0 : /* @__PURE__ */ l(
82
+ d,
83
+ {
84
+ icon: "square-plus",
85
+ label: t.label ?? "Add manually",
86
+ onClick: C
87
+ }
88
+ ),
89
+ m
90
+ ]
91
+ }
92
+ )
93
+ ]
94
+ }
95
+ );
96
+ };
97
+ export {
98
+ O as OAuthSelector,
99
+ d as OptionContainer
100
+ };
@@ -1 +1,76 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../../../index-TKLFHcRp.js"),n=require("../../container/index.js"),r=require("../../icon/index.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const o=require("../../typography/text/index.js"),a={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"};exports.OptionContainer=({icon:l,label:s,onClick:c,onlyLabel:p=!1,provider:u="GitLab"})=>{const d=t.useTheme();return e.jsxs(n.Container,{alignItems:"center",bgColorHover:d.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:c,pb:.5,pl:.25,pr:.25,pt:.5,children:[!p&&e.jsx(n.Container,{height:"24px",width:"24px",children:void 0===l?e.jsx(i.MemoizedImage,{alt:`${u} Logo`,height:"100%",publicId:a[u],width:"100%"}):e.jsx(r.Icon,{icon:l,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),e.jsx(n.Container,{alignItems:"center",display:"flex",minWidth:"24px",children:e.jsx(o.Text,{color:d.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:p?"break-spaces":"nowrap",wordWrap:"unset",children:s??u})})]})};
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as m } from "styled-components";
3
+ import { M as s } from "../../../index-maWH3JYC.mjs";
4
+ import { Container as i } from "../../container/index.js";
5
+ import { Icon as c } from "../../icon/index.js";
6
+ import "../../typography/heading/index.js";
7
+ import "../../typography/span/index.js";
8
+ import { Text as g } from "../../typography/text/index.js";
9
+ const h = {
10
+ Azure: "integrates/autoenrollment/azureIcon",
11
+ Bitbucket: "integrates/autoenrollment/bitbucketLogo",
12
+ GitHub: "integrates/autoenrollment/githubLogo",
13
+ GitLab: "integrates/autoenrollment/gitlabIcon"
14
+ }, z = ({
15
+ icon: o,
16
+ label: a,
17
+ onClick: l,
18
+ onlyLabel: r = !1,
19
+ provider: t = "GitLab"
20
+ }) => {
21
+ const n = m();
22
+ return /* @__PURE__ */ p(
23
+ i,
24
+ {
25
+ alignItems: "center",
26
+ bgColorHover: n.palette.gray[100],
27
+ borderRadius: "4px",
28
+ cursor: "pointer",
29
+ display: "flex",
30
+ flexDirection: "column",
31
+ gap: 0.25,
32
+ height: "62px",
33
+ justify: "center",
34
+ minWidth: "64px",
35
+ onClick: l,
36
+ pb: 0.5,
37
+ pl: 0.25,
38
+ pr: 0.25,
39
+ pt: 0.5,
40
+ children: [
41
+ r ? !1 : /* @__PURE__ */ e(i, { height: "24px", width: "24px", children: o === void 0 ? /* @__PURE__ */ e(
42
+ s,
43
+ {
44
+ alt: `${t} Logo`,
45
+ height: "100%",
46
+ publicId: h[t],
47
+ width: "100%"
48
+ }
49
+ ) : /* @__PURE__ */ e(
50
+ c,
51
+ {
52
+ icon: o,
53
+ iconColor: "#000",
54
+ iconSize: "sm",
55
+ iconType: "fa-light"
56
+ }
57
+ ) }),
58
+ /* @__PURE__ */ e(i, { alignItems: "center", display: "flex", minWidth: "24px", children: /* @__PURE__ */ e(
59
+ g,
60
+ {
61
+ color: n.palette.gray[800],
62
+ display: "inline",
63
+ size: "xs",
64
+ textAlign: "center",
65
+ whiteSpace: r ? "break-spaces" : "nowrap",
66
+ wordWrap: "unset",
67
+ children: a ?? t
68
+ }
69
+ ) })
70
+ ]
71
+ }
72
+ );
73
+ };
74
+ export {
75
+ z as OptionContainer
76
+ };
@@ -1,5 +1,155 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("./recommended-tag/index.js"),t=require("styled-components"),i=require("../button/index.js"),a=require("../colors/index.js"),r=require("../container/index.js"),s=require("../typography/heading/index.js");require("../typography/span/index.js");const o=require("../typography/text/index.js"),d=t.styled.div`
2
- ${({className:e,theme:n})=>`\n align-items: flex-start;\n border-radius: ${n.spacing[1]};\n background: ${n.palette.white};\n display: flex;\n flex-direction: column;\n gap: ${n.spacing[1]};\n padding: ${n.spacing[1.5]};\n position: relative;\n width: 320px;\n\n button {\n text-align: center;\n width: 100%;\n }\n\n ${"essential"===e?`border: 2px solid ${n.palette.gray[300]};`:`\n box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),\n 0px 18px 27px 0px rgba(243, 38, 55, 0.10);\n\n &::before {\n background: ${n.palette.gradients["01"]} border-box;\n border-radius: ${n.spacing[1]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask:\n linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n `}\n `}
3
- `;t.styled.div`
4
- ${({className:e,theme:n})=>`\n align-items: flex-start;\n border-radius: ${n.spacing[1]};\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: ${n.spacing[1.5]};\n padding: ${n.spacing[1.5]};\n width: 466px;\n\n button {\n text-align: center;\n width: 100%;\n }\n\n ${"essential"===e?`\n background: linear-gradient(\n 180deg,\n ${n.palette.primary[400]} 0%,\n ${n.palette.black} 100%\n );`:`\n background: ${n.palette.white};\n box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),\n 0px 18px 27px 0px rgba(243, 38, 55, 0.10);\n `}\n\n @media screen and (max-width: ${n.breakpoints.mobile}) {\n width: 320px;\n }\n `}
5
- `;const p={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\n through our scanning tool.",priceAuthor:"$499",priceGroup:"$1,579"}};exports.PlanCard=({description:t,onClick:l,plan:c})=>{const{title:x,description:g,benefits:u,buttonText:b}=p[c],m=t??g;return e.jsxs(d,{className:c,children:[e.jsxs(r.Container,{display:"flex",flexDirection:"column",gap:.25,pt:"essential"===c?1.75:0,children:["advanced"===c&&e.jsx(n.RecommendedTag,{}),e.jsx(s.Heading,{color:a.theme.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),e.jsx(o.Text,{color:a.theme.palette.gray[400],fontWeight:"semibold",pb:"essential"===c?1.25:0,size:"sm",sizeSm:"xs",children:u})]}),e.jsx(o.Text,{lineSpacing:1.5,lineSpacingSm:1.25,pb:"advanced"===c?1.5:0,size:"md",sizeSm:"sm",children:m}),e.jsx(i.Button,{onClick:l,variant:"primary",children:b})]})};
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { RecommendedTag as g } from "./recommended-tag/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
+ import { Heading as u } from "../typography/heading/index.js";
8
+ import "../typography/span/index.js";
9
+ import { Text as o } from "../typography/text/index.js";
10
+ const f = s.div`
11
+ ${({ className: t, theme: e }) => `
12
+ align-items: flex-start;
13
+ border-radius: ${e.spacing[1]};
14
+ background: ${e.palette.white};
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: ${e.spacing[1]};
18
+ padding: ${e.spacing[1.5]};
19
+ position: relative;
20
+ width: 320px;
21
+
22
+ button {
23
+ text-align: center;
24
+ width: 100%;
25
+ }
26
+
27
+ ${t === "essential" ? `border: 2px solid ${e.palette.gray[300]};` : `
28
+ box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
29
+ 0px 18px 27px 0px rgba(243, 38, 55, 0.10);
30
+
31
+ &::before {
32
+ background: ${e.palette.gradients["01"]} border-box;
33
+ border-radius: ${e.spacing[1]};
34
+ content: "";
35
+ position: absolute;
36
+ inset: 0;
37
+ border: 2px solid transparent;
38
+ mask:
39
+ linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
40
+ mask-composite: exclude;
41
+ }
42
+ `}
43
+ `}
44
+ `;
45
+ s.div`
46
+ ${({ className: t, theme: e }) => `
47
+ align-items: flex-start;
48
+ border-radius: ${e.spacing[1]};
49
+ display: flex;
50
+ flex-direction: column;
51
+ justify-content: center;
52
+ gap: ${e.spacing[1.5]};
53
+ padding: ${e.spacing[1.5]};
54
+ width: 466px;
55
+
56
+ button {
57
+ text-align: center;
58
+ width: 100%;
59
+ }
60
+
61
+ ${t === "essential" ? `
62
+ background: linear-gradient(
63
+ 180deg,
64
+ ${e.palette.primary[400]} 0%,
65
+ ${e.palette.black} 100%
66
+ );` : `
67
+ background: ${e.palette.white};
68
+ box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
69
+ 0px 18px 27px 0px rgba(243, 38, 55, 0.10);
70
+ `}
71
+
72
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
73
+ width: 320px;
74
+ }
75
+ `}
76
+ `;
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
+ ] });
152
+ };
153
+ export {
154
+ j as PlanCard
155
+ };
@@ -1 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../colors/index.js"),r=require("../../container/index.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const i=require("../../typography/text/index.js");exports.RecommendedTag=()=>e.jsx(r.Container,{alignItems:"center",bgColor:t.theme.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:e.jsx(i.Text,{bgGradient:t.theme.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})});
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { theme as t } from "../../colors/index.js";
3
+ import { Container as r } from "../../container/index.js";
4
+ import "../../typography/heading/index.js";
5
+ import "../../typography/span/index.js";
6
+ import { Text as i } from "../../typography/text/index.js";
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
+ );
29
+ export {
30
+ s as RecommendedTag
31
+ };
@@ -1 +1,51 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),n=require("styled-components");require("../../typography/heading/index.js");const t=require("../../typography/span/index.js"),r=require("../../typography/text/index.js");exports.Description=({description:l="",highlightDescription:s=""})=>{const p=n.useTheme(),o="string"==typeof s,g=o?"":new RegExp(`(${s.join("|")})`,"u");return s.length>0?e.jsx(r.Text,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:o?e.jsxs(i.Fragment,{children:[e.jsx(t.Span,{color:p.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s}),l]}):l.split(g).map(((i,n)=>s.includes(i)?e.jsx(t.Span,{color:p.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i},`${n+1}-bold`):i))}):e.jsx(r.Text,{lineSpacing:1.5,size:"lg",textAlign:"center",children:l})};
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
+ import "../../typography/heading/index.js";
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 });
48
+ };
49
+ export {
50
+ z as Description
51
+ };
@@ -1 +1,152 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lodash"),t=require("react"),r=require("react-dom"),n=require("styled-components"),l=require("./description/index.js"),o=require("../button/index.js"),a=require("../../index-TKLFHcRp.js"),d=require("../container/index.js"),s=require("../typography/heading/index.js");require("../typography/span/index.js"),require("../typography/text/index.js"),exports.PopUp=({_portal:c=!1,cancelButton:x,darkBackground:h=!1,children:u,confirmButton:p,container:g,description:j,highlightDescription:m="",image:y,maxWidth:b,title:C,titleColor:f})=>{const v=n.useTheme(),{alt:q,src:k,width:w="77px",height:I="77px"}=y,D=t.useCallback((()=>{null==x||x.onClick()}),[x]),B=t.useCallback((()=>{null==p||p.onClick()}),[p]),z=e.jsx(d.Container,{alignItems:"center","aria-label":C,"aria-modal":"true",bgColor:h?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:c?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:e.jsxs(d.Container,{bgColor:v.palette.white,border:`1px solid ${v.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:b,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[e.jsxs(d.Container,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[e.jsx(d.Container,{children:e.jsx(a.MemoizedImage,{alt:q,height:I,publicId:k,width:w})}),e.jsxs(d.Container,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[e.jsx(s.Heading,{color:f,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:C}),e.jsx(l.Description,{description:j,highlightDescription:m})]})]}),u&&e.jsx(d.Container,{mb:1,scroll:"y",children:e.jsx(d.Container,{height:"100%",children:u})}),e.jsxs(d.Container,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[i.isObject(p)?e.jsx(o.Button,{onClick:B,variant:(null==p?void 0:p.variant)??"primary",children:null==p?void 0:p.text},null==p?void 0:p.key):void 0,i.isObject(x)?e.jsx(o.Button,{onClick:D,variant:(null==x?void 0:x.variant)??"tertiary",children:null==x?void 0:x.text},null==x?void 0:x.key):void 0]})]})});return c?r.createPortal(z,g??document.body):z};
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
+ import "../typography/span/index.js";
12
+ import "../typography/text/index.js";
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(() => {
30
+ i == null || i.onClick();
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;
149
+ };
150
+ export {
151
+ Q as PopUp
152
+ };