@fluidattacks/design 3.1.11 → 3.1.12

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 (204) 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 +9 -1
  4. package/dist/components/accordion/index.js +21 -1
  5. package/dist/components/alert/index.js +111 -4
  6. package/dist/components/button/index.js +18 -1
  7. package/dist/components/card/card-header/index.js +14 -1
  8. package/dist/components/card/card-with-image/index.js +18 -1
  9. package/dist/components/card/card-with-input/index.js +57 -3
  10. package/dist/components/card/card-with-selector/index.js +16 -1
  11. package/dist/components/card/card-with-switch/index.js +12 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +36 -10
  14. package/dist/components/checkbox/index.js +84 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +27 -1
  17. package/dist/components/code-snippet/location-code/index.js +125 -1
  18. package/dist/components/colors/index.js +9 -1
  19. package/dist/components/confirm-dialog/index.js +23 -1
  20. package/dist/components/container/index.js +27 -3
  21. package/dist/components/content-card/category-tag/index.js +13 -1
  22. package/dist/components/content-card/event-date/index.js +18 -1
  23. package/dist/components/content-card/index.js +63 -3
  24. package/dist/components/content-card-carousel/index.js +15 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +10 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +21 -8
  29. package/dist/components/file-preview/index.js +15 -3
  30. package/dist/components/form/index.js +26 -3
  31. package/dist/components/grid-container/index.js +26 -5
  32. package/dist/components/group-selector/index.js +26 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +42 -4
  35. package/dist/components/icon-button/index.js +27 -3
  36. package/dist/components/indicator-card/index.js +15 -1
  37. package/dist/components/info-sidebar/index.js +16 -1
  38. package/dist/components/inputs/fields/combobox/index.js +26 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +15 -1
  44. package/dist/components/inputs/fields/date/index.js +18 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
  46. package/dist/components/inputs/fields/date-range/index.js +28 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
  48. package/dist/components/inputs/fields/date-time/index.js +18 -1
  49. package/dist/components/inputs/fields/editable/index.js +16 -1
  50. package/dist/components/inputs/fields/input/index.js +13 -1
  51. package/dist/components/inputs/fields/input-file/index.js +24 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +14 -2
  53. package/dist/components/inputs/fields/number/index.js +10 -1
  54. package/dist/components/inputs/fields/number-range/index.js +11 -1
  55. package/dist/components/inputs/fields/phone/index.js +414 -11
  56. package/dist/components/inputs/fields/text-area/index.js +13 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +12 -1
  59. package/dist/components/inputs/outline-container/index.js +18 -1
  60. package/dist/components/inputs/utils/action-button/index.js +10 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +13 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +8 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +32 -1
  64. package/dist/components/inputs/utils/dialog/index.js +11 -1
  65. package/dist/components/inputs/utils/number-field/index.js +13 -1
  66. package/dist/components/inputs/utils/popover/index.js +13 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +15 -1
  69. package/dist/components/language-selector/index.js +13 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +52 -7
  72. package/dist/components/list-item/index.js +16 -1
  73. package/dist/components/little-flag/index.js +15 -3
  74. package/dist/components/loading/index.js +28 -14
  75. package/dist/components/logo/index.js +7 -1
  76. package/dist/components/logo-carousel/index.js +10 -4
  77. package/dist/components/lottie/index.js +15 -3
  78. package/dist/components/menu/index.js +23 -1
  79. package/dist/components/message-banner/index.js +21 -4
  80. package/dist/components/modal/index.js +19 -1
  81. package/dist/components/modal/modal-confirm/index.js +10 -1
  82. package/dist/components/modal/modal-footer/index.js +16 -1
  83. package/dist/components/modal/modal-header/index.js +25 -1
  84. package/dist/components/notification/index.js +68 -5
  85. package/dist/components/notification-sign/index.js +26 -6
  86. package/dist/components/number-input/index.js +25 -7
  87. package/dist/components/oauth-selector/index.js +26 -1
  88. package/dist/components/oauth-selector/option-container/index.js +15 -1
  89. package/dist/components/plan-card/index.js +84 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +10 -1
  91. package/dist/components/pop-up/description/index.js +13 -1
  92. package/dist/components/pop-up/index.js +23 -1
  93. package/dist/components/premium-feature/index.js +45 -3
  94. package/dist/components/priority-score/index.js +14 -1
  95. package/dist/components/progress/index.js +23 -3
  96. package/dist/components/progress-bar/index.js +95 -5
  97. package/dist/components/radio-button/index.js +88 -3
  98. package/dist/components/scroll-button/index.js +20 -2
  99. package/dist/components/search/index.js +63 -7
  100. package/dist/components/search-bar/index.js +32 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +14 -1
  103. package/dist/components/severity-overview/badge/index.js +18 -1
  104. package/dist/components/severity-overview/index.js +7 -1
  105. package/dist/components/show-on-hover/index.js +25 -3
  106. package/dist/components/slide-out-menu/index.js +2009 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +15 -1
  108. package/dist/components/slider/index.js +93 -7
  109. package/dist/components/slider/thumb/index.js +10 -1
  110. package/dist/components/step-lapse/index.js +95 -9
  111. package/dist/components/table-button/index.js +56 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +9 -1
  113. package/dist/components/tabs/index.js +14 -1
  114. package/dist/components/tabs/tab/index.js +8 -1
  115. package/dist/components/tag/index.js +116 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +7 -1
  118. package/dist/components/toggle/index.js +45 -14
  119. package/dist/components/toggle-buttons/index.js +74 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +2481 -4
  122. package/dist/components/typography/heading/index.js +9 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +9 -1
  125. package/dist/components/typography/text/index.js +9 -1
  126. package/dist/components/web-form/index.js +59 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-38JqtnAI.mjs +122 -0
  129. package/dist/index-B5yoGFs6.mjs +54 -0
  130. package/dist/index-BLbKylyw.mjs +209 -0
  131. package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
  132. package/dist/index-BwFnfaRh.mjs +2310 -0
  133. package/dist/index-Co_k0WFk.mjs +75 -0
  134. package/dist/index-Cu7uUMlx.mjs +82 -0
  135. package/dist/index-D-lcuEHY.mjs +1018 -0
  136. package/dist/index-DrfjITyT.mjs +61 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-7_q7nHce.mjs +110 -0
  139. package/dist/styles-BA0WIQL-.mjs +74 -0
  140. package/dist/styles-C3cZmKVJ.mjs +131 -0
  141. package/dist/styles-CI-I6joH.mjs +144 -0
  142. package/dist/styles-Cx93EcVo.mjs +76 -0
  143. package/dist/styles-D85YYIjM.mjs +131 -0
  144. package/dist/styles-EIbGRPlk.mjs +106 -0
  145. package/dist/styles-Q1VXuWI7.mjs +65 -0
  146. package/dist/styles-fH2c4cfc.mjs +77 -0
  147. package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
  148. package/dist/use-carousel-CvRxi2FI.mjs +17 -0
  149. package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
  150. package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
  151. package/dist/use-modal-CkrZ-_-M.mjs +14 -0
  152. package/dist/use-search-DpLNvt7Q.mjs +12 -0
  153. package/dist/utils-CQvBF-wY.mjs +4 -0
  154. package/package.json +1 -1
  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-C8zdgAVH.mjs +0 -82
  160. package/dist/index-CA_9DXWd.js +0 -5
  161. package/dist/index-CmylnDrF.js +0 -14
  162. package/dist/index-DUMgwAbO.js +0 -26
  163. package/dist/index-DpQYiwGu.js +0 -5
  164. package/dist/index-Dy8ZUIYs.js +0 -5
  165. package/dist/index-JPf5Yzg6.js +0 -17
  166. package/dist/index-OBZtKZuT.mjs +0 -1021
  167. package/dist/index-SsXlDjK4.mjs +0 -122
  168. package/dist/index-TKLFHcRp.js +0 -18
  169. package/dist/index-TnyKqJHo.mjs +0 -61
  170. package/dist/index-Yr95Cb7Z.mjs +0 -54
  171. package/dist/index-h9-U5wxq.mjs +0 -209
  172. package/dist/index-qCiUU4sZ.js +0 -9
  173. package/dist/index-qe0nJwzl.js +0 -15
  174. package/dist/styles--Elze-LV.js +0 -3
  175. package/dist/styles-3pR4Xdvy.js +0 -33
  176. package/dist/styles-59h91S9m.mjs +0 -65
  177. package/dist/styles-BCwLWpC3.mjs +0 -126
  178. package/dist/styles-BJ7-0I5X.mjs +0 -74
  179. package/dist/styles-BKObp9bh.mjs +0 -76
  180. package/dist/styles-BWVdbvFu.js +0 -5
  181. package/dist/styles-Bl-CstrT.js +0 -5
  182. package/dist/styles-Bn42XCW5.js +0 -7
  183. package/dist/styles-C2CoGJl7.js +0 -33
  184. package/dist/styles-CNzziAXG.js +0 -5
  185. package/dist/styles-CdD9waPD.js +0 -29
  186. package/dist/styles-CnKTwnFk.mjs +0 -110
  187. package/dist/styles-D4R-eerv.mjs +0 -77
  188. package/dist/styles-DNIIhyRC.mjs +0 -144
  189. package/dist/styles-DV8yOaqV.mjs +0 -131
  190. package/dist/styles-DYoftbd3.js +0 -42
  191. package/dist/styles-DlmKLhPh.js +0 -7
  192. package/dist/styles-be8gOdgy.mjs +0 -106
  193. package/dist/use-carousel-64dKFW4E.js +0 -1
  194. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  195. package/dist/use-click-outside-BqkLISED.js +0 -1
  196. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  197. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  198. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  199. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  200. package/dist/use-modal-_bYY6M_n.js +0 -1
  201. package/dist/use-search-75ip5xR-.mjs +0 -12
  202. package/dist/use-search-DeL4UDMh.js +0 -1
  203. package/dist/utils-C2whpEd3.js +0 -1
  204. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1,5 +1,95 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("styled-components"),r=require("../../utils-C2whpEd3.js");require("../../styles-C2CoGJl7.js");const i=require("../container/index.js");require("../typography/heading/index.js"),require("../typography/span/index.js");const t=require("../typography/text/index.js"),{getVariant:a}=r.variantBuilder((n=>({compliance:`\n display: inline-flex;\n\n &.horizontal {\n height: ${n.spacing[.75]};\n }\n &.vertical {\n width: ${n.spacing[.75]};\n }\n `,default:`\n display: inline-flex;\n\n &.horizontal {\n height: ${n.spacing[.5]};\n }\n &.vertical {\n width: ${n.spacing[.5]};\n }\n .progress-bar {\n background-color: ${n.palette.primary[500]};\n }\n `,progressIndicator:`\n display: flex;\n\n &.horizontal {\n height: ${n.spacing[.125]};\n }\n &.vertical {\n width: ${n.spacing[.125]};\n }\n .progress-bar {\n background-color: ${n.palette.primary[500]};\n }\n `,progressIndicatorError:`\n display: flex;\n\n &.horizontal {\n height: ${n.spacing[.125]};\n }\n &.vertical {\n width: ${n.spacing[.125]};\n }\n .progress-bar {\n background-color: ${n.palette.error[200]};\n }\n `,small:`\n color: ${n.palette.primary[500]};\n display: inline-flex;\n\n &.horizontal {\n height: ${n.spacing[.25]};\n }\n &.vertical {\n width: ${n.spacing[.25]};\n }\n .progress-bar {\n background-color: ${n.palette.primary[500]};\n }\n `}))),o=e.styled.div`
2
- ${({theme:n,$minWidth:e,$orientation:r,$rounded:i,$variant:t})=>`\n background-color: ${n.palette.gray[100]};\n border-radius: ${i?"100px":"unset"};\n ${"horizontal"===r?"min-width":"min-height"}: ${e}px;\n ${"horizontal"===r?"":"height: 100%;"}\n\n ${a(n,t)}\n\n `}
3
- `,s=e.styled.div`
4
- ${({theme:n,$percentage:e,$rounded:r,$variant:i})=>{return`\n display: inline-flex;\n width: ${e}%;\n max-width: 100%;\n min-width: 0%;\n height: 100%;\n border-radius: ${r?"100px":"unset"};\n border-end-end-radius: ${r&&e<100?"0":"inherit"};\n border-start-end-radius: ${r&&e<100?"0":"inherit"};\n background-color: ${"compliance"===i?(t=n,a=e,a<50?t.palette.error[500]:a<80?t.palette.warning[500]:t.palette.success[500]):"inherit"};\n `;var t,a}}
5
- `;exports.ProgressBar=({minWidth:e=100,percentage:r,percentageLocation:a="right",showPercentage:l=!1,orientation:d="horizontal",rounded:p=!0,variant:c="default"})=>{const h=l&&"left"===a,g=l?n.jsx(i.Container,{alignItems:"center",display:"flex",justify:h?"flex-end":"flex-start",width:"40px",children:n.jsx(t.Text,{ml:.5,mr:h?.5:0,size:"sm",children:`${r}%`})}):null,$=n.jsx(o,{$minWidth:e,$orientation:d,$rounded:p,$variant:c,className:d,children:n.jsx(s,{$percentage:r,$rounded:p,$variant:c,className:"progress-bar"})});return n.jsxs(i.Container,{alignItems:"center",display:"inline-flex",flexDirection:h?"row-reverse":"row",height:"horizontal"===d?"auto":"100%",maxWidth:h?`${e+43}px`:void 0,minWidth:h?`${e+43}px`:void 0,textAlign:"end",children:[$,g]})};
1
+ import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
+ import { styled as p } from "styled-components";
3
+ import { v as g } from "../../utils-CQvBF-wY.mjs";
4
+ import "../../styles-C3cZmKVJ.mjs";
5
+ import { Container as d } from "../container/index.js";
6
+ import "../typography/heading/index.js";
7
+ import "../typography/span/index.js";
8
+ import { Text as $ } from "../typography/text/index.js";
9
+ const { getVariant: m } = g((n) => ({ compliance: `
10
+ display: inline-flex;
11
+
12
+ &.horizontal {
13
+ height: ${n.spacing[0.75]};
14
+ }
15
+ &.vertical {
16
+ width: ${n.spacing[0.75]};
17
+ }
18
+ `, default: `
19
+ display: inline-flex;
20
+
21
+ &.horizontal {
22
+ height: ${n.spacing[0.5]};
23
+ }
24
+ &.vertical {
25
+ width: ${n.spacing[0.5]};
26
+ }
27
+ .progress-bar {
28
+ background-color: ${n.palette.primary[500]};
29
+ }
30
+ `, progressIndicator: `
31
+ display: flex;
32
+
33
+ &.horizontal {
34
+ height: ${n.spacing[0.125]};
35
+ }
36
+ &.vertical {
37
+ width: ${n.spacing[0.125]};
38
+ }
39
+ .progress-bar {
40
+ background-color: ${n.palette.primary[500]};
41
+ }
42
+ `, progressIndicatorError: `
43
+ display: flex;
44
+
45
+ &.horizontal {
46
+ height: ${n.spacing[0.125]};
47
+ }
48
+ &.vertical {
49
+ width: ${n.spacing[0.125]};
50
+ }
51
+ .progress-bar {
52
+ background-color: ${n.palette.error[200]};
53
+ }
54
+ `, small: `
55
+ color: ${n.palette.primary[500]};
56
+ display: inline-flex;
57
+
58
+ &.horizontal {
59
+ height: ${n.spacing[0.25]};
60
+ }
61
+ &.vertical {
62
+ width: ${n.spacing[0.25]};
63
+ }
64
+ .progress-bar {
65
+ background-color: ${n.palette.primary[500]};
66
+ }
67
+ ` })), u = p.div`
68
+ ${({ theme: n, $minWidth: r, $orientation: e, $rounded: t, $variant: i }) => `
69
+ background-color: ${n.palette.gray[100]};
70
+ border-radius: ${t ? "100px" : "unset"};
71
+ ${e === "horizontal" ? "min-width" : "min-height"}: ${r}px;
72
+ ${e === "horizontal" ? "" : "height: 100%;"}
73
+
74
+ ${m(n, i)}
75
+
76
+ `}
77
+ `, x = p.div`
78
+ ${({ theme: n, $percentage: r, $rounded: e, $variant: t }) => `
79
+ display: inline-flex;
80
+ width: ${r}%;
81
+ max-width: 100%;
82
+ min-width: 0%;
83
+ height: 100%;
84
+ border-radius: ${e ? "100px" : "unset"};
85
+ border-end-end-radius: ${e && r < 100 ? "0" : "inherit"};
86
+ border-start-end-radius: ${e && r < 100 ? "0" : "inherit"};
87
+ background-color: ${t === "compliance" ? ((i, a) => a < 50 ? i.palette.error[500] : a < 80 ? i.palette.warning[500] : i.palette.success[500])(n, r) : "inherit"};
88
+ `}
89
+ `, I = ({ minWidth: n = 100, percentage: r, percentageLocation: e = "right", showPercentage: t = !1, orientation: i = "horizontal", rounded: a = !0, variant: s = "default" }) => {
90
+ const o = t && e === "left", c = t ? l(d, { alignItems: "center", display: "flex", justify: o ? "flex-end" : "flex-start", width: "40px", children: l($, { ml: 0.5, mr: o ? 0.5 : 0, size: "sm", children: `${r}%` }) }) : null;
91
+ return h(d, { alignItems: "center", display: "inline-flex", flexDirection: o ? "row-reverse" : "row", height: i === "horizontal" ? "auto" : "100%", maxWidth: o ? `${n + 43}px` : void 0, minWidth: o ? `${n + 43}px` : void 0, textAlign: "end", children: [l(u, { $minWidth: n, $orientation: i, $rounded: a, $variant: s, className: i, children: l(x, { $percentage: r, $rounded: a, $variant: s, className: "progress-bar" }) }), c] });
92
+ };
93
+ export {
94
+ I as ProgressBar
95
+ };
@@ -1,3 +1,88 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),t=require("styled-components"),a=t.styled.label`
2
- ${({theme:e})=>`\n align-items: center;\n display: flex;\n color: ${e.palette.gray[600]};\n cursor: pointer;\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n font-weight: ${e.typography.weight.regular};\n gap: ${e.spacing[.5]};\n line-height: ${e.typography.text.lg};\n text-align: left;\n position: relative;\n\n &[aria-disabled="true"] {\n color: ${e.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${e.palette.white};\n border-radius: 50%;\n border: 1px solid ${e.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${e.palette.gray[300]};\n background-color: ${e.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${e.palette.white};\n box-shadow: 0 0 0 4px ${e.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${e.palette.white};\n box-shadow: 0 0 0 4px ${e.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${e.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${e.palette.gray[300]};\n }\n\n `}
3
- `,r=t.styled.span.attrs({className:"checkmark"})``,o=n.forwardRef((function({defaultChecked:n=!1,disabled:t=!1,label:o,name:i,onChange:l,onClick:p,value:d,...c},s){return e.jsxs(a,{"aria-disabled":t,"aria-label":i,role:"radiogroup",children:[e.jsx("input",{"aria-checked":n,"aria-disabled":t,"aria-label":i,defaultChecked:n,disabled:t,name:i,onChange:l,onClick:p,ref:s,type:"radio",value:d,...c}),e.jsx(r,{}),o??null]})}));exports.RadioButton=o;
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as h } from "react";
3
+ import { styled as r } from "styled-components";
4
+ const k = r.label`
5
+ ${({ theme: n }) => `
6
+ align-items: center;
7
+ display: flex;
8
+ color: ${n.palette.gray[600]};
9
+ cursor: pointer;
10
+ font-family: ${n.typography.type.primary};
11
+ font-size: ${n.typography.text.sm};
12
+ font-weight: ${n.typography.weight.regular};
13
+ gap: ${n.spacing[0.5]};
14
+ line-height: ${n.typography.text.lg};
15
+ text-align: left;
16
+ position: relative;
17
+
18
+ &[aria-disabled="true"] {
19
+ color: ${n.palette.gray[300]};
20
+ cursor: not-allowed;
21
+ }
22
+
23
+ input {
24
+ position: absolute;
25
+ opacity: 0;
26
+ cursor: pointer;
27
+ width: 0;
28
+ }
29
+
30
+ .checkmark {
31
+ position: relative;
32
+ top: 0;
33
+ left: 0;
34
+ height: 16px;
35
+ width: 16px;
36
+ background-color: ${n.palette.white};
37
+ border-radius: 50%;
38
+ border: 1px solid ${n.palette.gray[600]};
39
+ }
40
+
41
+ input:disabled ~ .checkmark {
42
+ border: 1px solid ${n.palette.gray[300]};
43
+ background-color: ${n.palette.white};
44
+ cursor: not-allowed;
45
+ }
46
+
47
+ input:not(:disabled):checked ~ .checkmark {
48
+ background-color: ${n.palette.white};
49
+ border: 1px solid ${n.palette.primary[500]};
50
+ }
51
+
52
+ input:not(:disabled):hover ~ .checkmark {
53
+ background-color: ${n.palette.white};
54
+ box-shadow: 0 0 0 4px ${n.palette.gray[100]};
55
+ }
56
+
57
+ input:not(:disabled):hover:checked ~ .checkmark {
58
+ background-color: ${n.palette.white};
59
+ box-shadow: 0 0 0 4px ${n.palette.primary[50]};
60
+ }
61
+
62
+ .checkmark::after {
63
+ content: "";
64
+ position: absolute;
65
+ display: none;
66
+ top: 3px;
67
+ left: 3px;
68
+ width: 8px;
69
+ height: 8px;
70
+ border-radius: 50%;
71
+ background: ${n.palette.primary[500]};
72
+ }
73
+
74
+ input:checked ~ .checkmark::after {
75
+ display: block;
76
+ }
77
+
78
+ input:disabled:checked ~ .checkmark::after {
79
+ background-color: ${n.palette.gray[300]};
80
+ }
81
+
82
+ `}
83
+ `, u = r.span.attrs({ className: "checkmark" })``, y = h(function({ defaultChecked: n = !1, disabled: e = !1, label: o, name: a, onChange: i, onClick: l, value: p, ...d }, c) {
84
+ return s(k, { "aria-disabled": e, "aria-label": a, role: "radiogroup", children: [t("input", { "aria-checked": n, "aria-disabled": e, "aria-label": a, defaultChecked: n, disabled: e, name: a, onChange: i, onClick: l, ref: c, type: "radio", value: p, ...d }), t(u, {}), o ?? null] });
85
+ });
86
+ export {
87
+ y as RadioButton
88
+ };
@@ -1,6 +1,24 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("../icon-button/index.js"),l=o.styled.div.attrs({className:"comp-scroll-up"})`
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useState as l, useEffect as a, useCallback as m } from "react";
3
+ import { styled as d } from "styled-components";
4
+ import { IconButton as p } from "../icon-button/index.js";
5
+ const u = d.div.attrs({ className: "comp-scroll-up" })`
2
6
  bottom: 15px;
3
7
  position: fixed;
4
8
  right: 140px;
5
9
  z-index: 100;
6
- `;exports.ScrollUpButton=({scrollerId:o="dashboard",visibleAt:s=500})=>{const[n,i]=t.useState(!1),[c,u]=t.useState(null);t.useEffect((()=>{u(document.getElementById(o)),null==c||c.addEventListener("scroll",(()=>{i(c.scrollTop>s)}))}),[c,o,s]);const d=t.useCallback((()=>{null==c||c.scrollTo({behavior:"smooth",top:0})}),[c]);return n?e.jsx(l,{children:e.jsx(r.IconButton,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:d,width:"40px"})}):null};
10
+ `, v = ({ scrollerId: t = "dashboard", visibleAt: s = 500 }) => {
11
+ const [e, i] = l(!1), [o, c] = l(null);
12
+ a(() => {
13
+ c(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
14
+ i(o.scrollTop > s);
15
+ });
16
+ }, [o, t, s]);
17
+ const n = m(() => {
18
+ o == null || o.scrollTo({ behavior: "smooth", top: 0 });
19
+ }, [o]);
20
+ return e ? r(u, { children: r(p, { height: "40px", icon: "arrow-up", iconSize: "sm", id: "scroll-up", onClick: n, width: "40px" }) }) : null;
21
+ };
22
+ export {
23
+ v as ScrollUpButton
24
+ };
@@ -1,7 +1,63 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../index-CmylnDrF.js"),t=require("lodash"),r=require("react"),i=require("styled-components"),o=require("../icon/index.js"),a=require("../icon-button/index.js"),s=require("../../use-click-outside-BqkLISED.js"),l=i.styled.input`
2
- ${({theme:e})=>`\n background: none;\n border: none !important;\n box-shadow: none;\n box-sizing: border-box;\n color: ${e.palette.gray[800]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.typography.text.sm};\n outline: none;\n width: 100%;\n\n &::placeholder {\n color: ${e.palette.gray[400]};\n }\n `}
3
- `,c=i.styled.div`
4
- ${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[300]};\n border-radius: ${e.spacing[.5]};\n display: flex;\n height: 40px;\n gap: ${e.spacing[.5]};\n padding: ${e.spacing[.5]};\n width: 100%;\n\n &:hover {\n border-color: ${e.palette.gray[600]};\n }\n\n &:focus-within {\n border: 2px solid ${e.palette.black};\n }\n `}
5
- `,d=i.styled.div`
6
- ${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: ${e.spacing[.5]};\n width: 250px;\n `}
7
- `,p=r.forwardRef((function({name:p,smallSearch:g=!1,value:u,...y},h){const x=i.useTheme(),[f,m]=r.useState(!1),{refs:b,floatingStyles:$}=n.useFloating(),j=r.useCallback((()=>{m((e=>!e))}),[]);s.useClickOutside(b.floating.current,(()=>{m(!1)}),!0);const k=e.jsxs(c,{children:[e.jsx(o.Icon,{icon:"magnifying-glass",iconColor:x.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),e.jsx(l,{...y,id:p,name:p,ref:h,value:u}),!t.isEmpty(u)&&e.jsx(a.IconButton,{icon:"xmark",iconColor:x.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return g?e.jsxs(r.Fragment,{children:[e.jsx(a.IconButton,{border:`1px solid ${x.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:j,ref:b.setReference,variant:"ghost"}),f?e.jsx(d,{ref:b.setFloating,style:$,children:k}):void 0]}):k}));exports.Search=p;
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import { u } from "../../index-D-lcuEHY.mjs";
3
+ import { isEmpty as x } from "lodash";
4
+ import { forwardRef as $, useState as b, useCallback as v, Fragment as w } from "react";
5
+ import { styled as r, useTheme as k } from "styled-components";
6
+ import { Icon as S } from "../icon/index.js";
7
+ import { IconButton as p } from "../icon-button/index.js";
8
+ import { u as z } from "../../use-click-outside-BtZLIoU1.mjs";
9
+ const C = r.input`
10
+ ${({ theme: e }) => `
11
+ background: none;
12
+ border: none !important;
13
+ box-shadow: none;
14
+ box-sizing: border-box;
15
+ color: ${e.palette.gray[800]};
16
+ font-family: ${e.typography.type.primary};
17
+ font-size: ${e.typography.text.sm};
18
+ outline: none;
19
+ width: 100%;
20
+
21
+ &::placeholder {
22
+ color: ${e.palette.gray[400]};
23
+ }
24
+ `}
25
+ `, T = r.div`
26
+ ${({ theme: e }) => `
27
+ align-items: center;
28
+ background-color: ${e.palette.white};
29
+ border: 1px solid ${e.palette.gray[300]};
30
+ border-radius: ${e.spacing[0.5]};
31
+ display: flex;
32
+ height: 40px;
33
+ gap: ${e.spacing[0.5]};
34
+ padding: ${e.spacing[0.5]};
35
+ width: 100%;
36
+
37
+ &:hover {
38
+ border-color: ${e.palette.gray[600]};
39
+ }
40
+
41
+ &:focus-within {
42
+ border: 2px solid ${e.palette.black};
43
+ }
44
+ `}
45
+ `, j = r.div`
46
+ ${({ theme: e }) => `
47
+ background-color: ${e.palette.white};
48
+ border-radius: ${e.spacing[0.5]};
49
+ width: 250px;
50
+ `}
51
+ `, G = $(function({ name: e, smallSearch: c = !1, value: a, ...g }, m) {
52
+ const o = k(), [d, i] = b(!1), { refs: t, floatingStyles: f } = u(), h = v(() => {
53
+ i((y) => !y);
54
+ }, []);
55
+ z(t.floating.current, () => {
56
+ i(!1);
57
+ }, !0);
58
+ const s = l(T, { children: [n(S, { icon: "magnifying-glass", iconColor: o.palette.gray[700], iconSize: "xs", iconType: "fa-light" }), n(C, { ...g, id: e, name: e, ref: m, value: a }), !x(a) && n(p, { icon: "xmark", iconColor: o.palette.gray[300], iconSize: "xs", iconType: "fa-light", px: 0.25, py: 0.25, type: "reset", variant: "ghost" })] });
59
+ return c ? l(w, { children: [n(p, { border: `1px solid ${o.palette.gray[300]} !important`, icon: "magnifying-glass", iconSize: "xs", iconType: "fa-light", onClick: h, ref: t.setReference, variant: "ghost" }), d ? n(j, { ref: t.setFloating, style: f, children: s }) : void 0] }) : s;
60
+ });
61
+ export {
62
+ G as Search
63
+ };
@@ -1 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("../../index-qe0nJwzl.js"),s=require("../button/index.js"),l=require("../../index-TKLFHcRp.js"),n=require("../colors/index.js"),r=require("../icon/index.js"),a=require("../typography/heading/index.js");require("../typography/span/index.js");const c=require("../typography/text/index.js"),o=require("../../use-click-outside-BqkLISED.js"),h=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],u={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"};exports.SearchBar=({items:d,placeholder:x="Search",refine:g,query:p})=>{const[m,f]=t.useState(p),[j,S]=t.useState(!1),y=t.useRef(null),b=t.useRef(null),C=m.length>=2,k=t.useCallback((e=>{f(e),g(e)}),[g]),z=t.useCallback((()=>{k("")}),[k]),I=t.useCallback((()=>{S(!0)}),[]),q=t.useCallback((e=>{k(e.currentTarget.value)}),[k]),v=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),z(),b.current&&b.current.focus()}),[z]),w=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),b.current&&b.current.blur()}),[]);return o.useClickOutside(y.current,(()=>{z(),S(!1)}),!0),e.jsxs(i.StyledSearchBox,{ref:y,children:[e.jsxs(i.StyledSearchBar,{action:"",noValidate:!0,onReset:v,onSubmit:w,role:"search",children:[e.jsxs("div",{className:"flex gap-2 w-full",children:[e.jsx("div",{className:"h-10 p-2",children:e.jsx(r.Icon,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),e.jsx(i.StyledSearchInput,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:q,onFocus:I,placeholder:x,ref:b,spellCheck:!1,type:"search",value:m})]}),C&&e.jsx(i.StyledSearchReset,{type:"reset",children:e.jsx(r.Icon,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),j&&m.length<2&&e.jsxs(i.StyledDropdownItems,{children:[e.jsx(c.Text,{color:n.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),e.jsx("div",{className:"flex flex-col items-start self-stretch",children:h.map((({hit:t,icon:s},l)=>e.jsx(i.ItemSearching,{hit:t,icon:s,showIcon:!0},`${s}-${l}`)))}),e.jsx(c.Text,{color:n.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),e.jsx(i.ItemSearching,{hit:u.hit,icon:u.icon,showIcon:!0})]}),C&&d.length>0&&e.jsxs(i.StyledDropdownItems,{$showHits:C,children:[e.jsx(c.Text,{color:n.theme.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),e.jsx("div",{className:"flex flex-col items-start self-stretch",children:d.map((t=>e.jsx(i.ItemSearching,{hit:t},t.objectID)))})]}),C&&0===d.length&&e.jsx(i.StyledDropdownItems,{$empty:0===d.length,children:e.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[e.jsx(l.MemoizedImage,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),e.jsx(a.Heading,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),e.jsxs(c.Text,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${m}” did not match.`,e.jsx("br",{}),"Please try again."]}),e.jsx(s.Button,{onClick:z,variant:"secondary",children:"Clear search"})]})})]})};
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { useState as y, useRef as S, useCallback as l } from "react";
3
+ import { S as D, a as H, b as W, c as j, d as m, I as p } from "../../index-BLbKylyw.mjs";
4
+ import { Button as A } from "../button/index.js";
5
+ import { M as B } from "../../index-BwFnfaRh.mjs";
6
+ import { theme as f } from "../colors/index.js";
7
+ import { Icon as z } from "../icon/index.js";
8
+ import { Heading as R } from "../typography/heading/index.js";
9
+ import "../typography/span/index.js";
10
+ import { Text as h } from "../typography/text/index.js";
11
+ import { u as q } from "../../use-click-outside-BtZLIoU1.mjs";
12
+ const F = [{ hit: { slug: "/services/continuous-hacking/", title: "Continuous Hacking" }, icon: "infinity" }, { hit: { slug: "/platform/", title: "Platform" }, icon: "sidebar" }, { hit: { slug: "/plans/", title: "Plans" }, icon: "star-christmas" }, { hit: { slug: "/blog/", title: "Blog" }, icon: "pen-line" }], C = { hit: { slug: "/contact-us/", title: "Contact Support" }, icon: "envelope" }, Y = ({ items: n, placeholder: b = "Search", refine: d, query: v }) => {
13
+ const [o, k] = y(v), [w, u] = y(!1), g = S(null), a = S(null), s = o.length >= 2, r = l((t) => {
14
+ k(t), d(t);
15
+ }, [d]), c = l(() => {
16
+ r("");
17
+ }, [r]), I = l(() => {
18
+ u(!0);
19
+ }, []), N = l((t) => {
20
+ r(t.currentTarget.value);
21
+ }, [r]), P = l((t) => {
22
+ t.preventDefault(), t.stopPropagation(), c(), a.current && a.current.focus();
23
+ }, [c]), $ = l((t) => {
24
+ t.preventDefault(), t.stopPropagation(), a.current && a.current.blur();
25
+ }, []);
26
+ return q(g.current, () => {
27
+ c(), u(!1);
28
+ }, !0), i(D, { ref: g, children: [i(H, { action: "", noValidate: !0, onReset: P, onSubmit: $, role: "search", children: [i("div", { className: "flex gap-2 w-full", children: [e("div", { className: "h-10 p-2", children: e(z, { icon: "magnifying-glass", iconSize: "sm", iconType: "fa-light" }) }), e(W, { autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", maxLength: 512, onChange: N, onFocus: I, placeholder: b, ref: a, spellCheck: !1, type: "search", value: o })] }), s && e(j, { type: "reset", children: e(z, { icon: "xmark", iconSize: "sm", iconType: "fa-light" }) })] }), w && o.length < 2 && i(m, { children: [e(h, { color: f.palette.gray[400], fontWeight: "bold", lineSpacing: 1.5, size: "md", sizeSm: "sm", children: "Suggested" }), e("div", { className: "flex flex-col items-start self-stretch", children: F.map(({ hit: t, icon: x }, T) => e(p, { hit: t, icon: x, showIcon: !0 }, `${x}-${T}`)) }), e(h, { color: f.palette.gray[400], fontWeight: "bold", lineSpacing: 1.5, size: "md", sizeSm: "sm", children: "Can’t find what you’re looking for?" }), e(p, { hit: C.hit, icon: C.icon, showIcon: !0 })] }), s && n.length > 0 && i(m, { $showHits: s, children: [e(h, { color: f.palette.gray[400], fontWeight: "bold", lineSpacing: 1.5, size: "md", sizeSm: "sm", children: "Results" }), e("div", { className: "flex flex-col items-start self-stretch", children: n.map((t) => e(p, { hit: t }, t.objectID)) })] }), s && n.length === 0 && e(m, { $empty: n.length === 0, children: i("div", { className: "items-center flex flex-col gap-4 py-[90px] w-full", children: [e(B, { height: 96, publicId: "airs/search-bar/empty-state-icon", width: 96 }), e(R, { display: "flex", size: "sm", sizeSm: "xs", textAlign: "center", children: "No results found" }), i(h, { display: "flex", lineSpacing: 1.5, size: "md", sizeSm: "sm", textAlign: "center", children: [`“${o}” did not match.`, e("br", {}), "Please try again."] }), e(A, { onClick: c, variant: "secondary", children: "Clear search" })] }) })] });
29
+ };
30
+ export {
31
+ Y as SearchBar
32
+ };
@@ -1 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime");const e=require("../../../index-qe0nJwzl.js");require("../../colors/index.js"),require("../../icon/index.js"),require("../../typography/heading/index.js"),require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.ItemSearching=e.ItemSearching;
1
+ import "react/jsx-runtime";
2
+ import { I } from "../../../index-BLbKylyw.mjs";
3
+ import "../../colors/index.js";
4
+ import "../../icon/index.js";
5
+ import "../../typography/heading/index.js";
6
+ import "../../typography/span/index.js";
7
+ import "../../typography/text/index.js";
8
+ export {
9
+ I as ItemSearching
10
+ };
@@ -1 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("styled-components"),r=require("../colors/index.js"),o=require("../container/index.js");require("../typography/heading/index.js"),require("../typography/span/index.js");const l=require("../typography/text/index.js"),i={critical:{bgColor:r.theme.palette.primary[700],colorL:r.theme.palette.gray[800],colorR:r.theme.palette.white},disable:{bgColor:r.theme.palette.gray[200],colorL:r.theme.palette.gray[400],colorR:r.theme.palette.gray[400]},high:{bgColor:r.theme.palette.error[500],colorL:r.theme.palette.gray[800],colorR:r.theme.palette.white},low:{bgColor:r.theme.palette.warning[200],colorL:r.theme.palette.gray[800],colorR:r.theme.palette.gray[800]},medium:{bgColor:r.theme.palette.warning[500],colorL:r.theme.palette.gray[800],colorR:r.theme.palette.gray[800]}};exports.SeverityBadge=({textL:r,textR:a,variant:p})=>{const n=t.useTheme(),{bgColor:s,colorL:x,colorR:c}=i[p];return e.jsxs(o.Container,{alignItems:"flex-start",display:"inline-flex",children:[r?e.jsx(o.Container,{alignItems:"center",bgColor:n.palette.white,border:`1px solid ${s}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:e.jsx(l.Text,{color:x,size:"xs",children:r})}):void 0,e.jsx(o.Container,{alignItems:"center",bgColor:s,border:`1px solid ${s}`,borderRadius:r?"0px 4px 4px 0px":"4px",display:"flex",padding:r?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:e.jsx(l.Text,{color:c,size:"xs",children:a})})]})};
1
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
+ import { useTheme as n } from "styled-components";
3
+ import { theme as e } from "../colors/index.js";
4
+ import { Container as l } from "../container/index.js";
5
+ import "../typography/heading/index.js";
6
+ import "../typography/span/index.js";
7
+ import { Text as a } from "../typography/text/index.js";
8
+ const x = { critical: { bgColor: e.palette.primary[700], colorL: e.palette.gray[800], colorR: e.palette.white }, disable: { bgColor: e.palette.gray[200], colorL: e.palette.gray[400], colorR: e.palette.gray[400] }, high: { bgColor: e.palette.error[500], colorL: e.palette.gray[800], colorR: e.palette.white }, low: { bgColor: e.palette.warning[200], colorL: e.palette.gray[800], colorR: e.palette.gray[800] }, medium: { bgColor: e.palette.warning[500], colorL: e.palette.gray[800], colorR: e.palette.gray[800] } }, L = ({ textL: r, textR: p, variant: i }) => {
9
+ const s = n(), { bgColor: t, colorL: c, colorR: g } = x[i];
10
+ return d(l, { alignItems: "flex-start", display: "inline-flex", children: [r ? o(l, { alignItems: "center", bgColor: s.palette.white, border: `1px solid ${t}`, borderRadius: "4px 0px 0px 4px", display: "flex", justify: "center", padding: [0, 0.25, 0, 0.25], children: o(a, { color: c, size: "xs", children: r }) }) : void 0, o(l, { alignItems: "center", bgColor: t, border: `1px solid ${t}`, borderRadius: r ? "0px 4px 4px 0px" : "4px", display: "flex", padding: r ? [0, 0.25, 0, 0.125] : [0, 0.25, 0, 0.25], pb: 0.125, pl: 0.125, pr: 0.125, pt: 0.125, children: o(a, { color: g, size: "xs", children: p }) })] });
11
+ };
12
+ export {
13
+ L as SeverityBadge
14
+ };
@@ -1 +1,18 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash"),r=require("../../colors/index.js"),i=require("../../container/index.js"),n=require("../../../index-CmylnDrF.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const a=require("../../typography/text/index.js");exports.SeverityOverviewBadge=({variant:o,value:l})=>{const{iconColor:p,iconText:c,iconTextColor:s,textColor:h}=((e,i)=>{const n={critical:r.theme.palette.primary[700],high:r.theme.palette.error[500],low:r.theme.palette.warning[200],medium:r.theme.palette.warning[500],none:r.theme.palette.gray[200]},a={disabled:r.theme.palette.gray[400],enabled:r.theme.palette.gray[800]},o={critical:r.theme.palette.white,high:r.theme.palette.white,low:r.theme.palette.gray[800],medium:r.theme.palette.gray[800],none:r.theme.palette.gray[400]};return{iconColor:i<1?n.none:n[e],iconText:t.capitalize(e.charAt(0)),iconTextColor:i<1?o.none:o[e],textColor:i<1?a.disabled:a.enabled}})(o,l),d=t.capitalize(o.charAt(0))+o.slice(1);return e.jsxs(i.Container,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[e.jsx(n.Tooltip,{id:d,place:"top",tip:d,children:e.jsx(i.Container,{alignItems:"center",bgColor:p,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:e.jsx(a.Text,{color:s,size:"sm",textAlign:"center",children:c})})}),e.jsx(a.Text,{color:h,size:"sm",children:l})]})};
1
+ import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
+ import { capitalize as m } from "lodash";
3
+ import { theme as e } from "../../colors/index.js";
4
+ import { Container as s } from "../../container/index.js";
5
+ import { T as C } from "../../../index-D-lcuEHY.mjs";
6
+ import "../../typography/heading/index.js";
7
+ import "../../typography/span/index.js";
8
+ import { Text as d } from "../../typography/text/index.js";
9
+ const j = ({ variant: r, value: a }) => {
10
+ const { iconColor: x, iconText: h, iconTextColor: g, textColor: y } = ((i, o) => {
11
+ const l = { critical: e.palette.primary[700], high: e.palette.error[500], low: e.palette.warning[200], medium: e.palette.warning[500], none: e.palette.gray[200] }, p = { disabled: e.palette.gray[400], enabled: e.palette.gray[800] }, c = { critical: e.palette.white, high: e.palette.white, low: e.palette.gray[800], medium: e.palette.gray[800], none: e.palette.gray[400] };
12
+ return { iconColor: o < 1 ? l.none : l[i], iconText: m(i.charAt(0)), iconTextColor: o < 1 ? c.none : c[i], textColor: o < 1 ? p.disabled : p.enabled };
13
+ })(r, a), n = m(r.charAt(0)) + r.slice(1);
14
+ return f(s, { alignItems: "center", display: "inline-flex", gap: 0.5, minWidth: "43px", children: [t(C, { id: n, place: "top", tip: n, children: t(s, { alignItems: "center", bgColor: x, borderRadius: "4px", cursor: "pointer", display: "flex", height: "22px", maxWidth: "22px", minWidth: "22px", children: t(d, { color: g, size: "sm", textAlign: "center", children: h }) }) }), t(d, { color: y, size: "sm", children: a })] });
15
+ };
16
+ export {
17
+ j as SeverityOverviewBadge
18
+ };
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("./badge/index.js"),r=require("../container/index.js");exports.SeverityOverview=({critical:a,high:t,medium:v,low:n})=>e.jsxs(r.Container,{alignItems:"center",display:"inline-flex",gap:1,children:[e.jsx(i.SeverityOverviewBadge,{value:a,variant:"critical"}),e.jsx(i.SeverityOverviewBadge,{value:t,variant:"high"}),e.jsx(i.SeverityOverviewBadge,{value:v,variant:"medium"}),e.jsx(i.SeverityOverviewBadge,{value:n,variant:"low"})]});
1
+ import { jsxs as l, jsx as i } from "react/jsx-runtime";
2
+ import { SeverityOverviewBadge as a } from "./badge/index.js";
3
+ import { Container as n } from "../container/index.js";
4
+ const c = ({ critical: e, high: r, medium: t, low: v }) => l(n, { alignItems: "center", display: "inline-flex", gap: 1, children: [i(a, { value: e, variant: "critical" }), i(a, { value: r, variant: "high" }), i(a, { value: t, variant: "medium" }), i(a, { value: v, variant: "low" })] });
5
+ export {
6
+ c as SeverityOverview
7
+ };
@@ -1,3 +1,25 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("styled-components"),i=require("../container/index.js"),r=n.styled.div`
2
- ${({theme:e})=>`\n border-radius: ${e.spacing[.25]};\n cursor: pointer;\n display: flex;\n gap: ${e.spacing[.5]};\n justify-content: end;\n position: relative;\n z-index: 20;\n\n &:hover {\n background-color: ${e.palette.gray[100]};\n }\n\n &:hover > div {\n display: block;\n }\n `}
3
- `;exports.ShowOnHover=({visibleElement:n,hiddenElement:o})=>e.jsxs(r,{children:[n,e.jsx(i.Container,{display:"none",position:"absolute",top:"100%",zIndex:10,children:o})]});
1
+ import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
+ import { styled as r } from "styled-components";
3
+ import { Container as s } from "../container/index.js";
4
+ const t = r.div`
5
+ ${({ theme: n }) => `
6
+ border-radius: ${n.spacing[0.25]};
7
+ cursor: pointer;
8
+ display: flex;
9
+ gap: ${n.spacing[0.5]};
10
+ justify-content: end;
11
+ position: relative;
12
+ z-index: 20;
13
+
14
+ &:hover {
15
+ background-color: ${n.palette.gray[100]};
16
+ }
17
+
18
+ &:hover > div {
19
+ display: block;
20
+ }
21
+ `}
22
+ `, p = ({ visibleElement: n, hiddenElement: e }) => o(t, { children: [n, i(s, { display: "none", position: "absolute", top: "100%", zIndex: 10, children: e })] });
23
+ export {
24
+ p as ShowOnHover
25
+ };