@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 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("styled-components"),i=require("../../container/index.js"),t=require("../../icon/index.js"),n=require("../../premium-feature/index.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const o=require("../../typography/text/index.js");exports.MenuItem=({customBadge:s,description:a,icon:l,onClick:p,requiresUpgrade:c=!1,title:x})=>{const d=r.useTheme();return e.jsxs(i.Container,{bgColor:d.palette.white,bgColorHover:d.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:p,px:1.25,py:1,width:"100%",children:[e.jsx(i.Container,{alignItems:"center",bgColor:d.palette.gray[300],borderRadius:d.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:e.jsx(t.Icon,{icon:l,iconColor:d.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),e.jsxs(i.Container,{children:[e.jsxs(i.Container,{alignItems:"center",display:"inline-flex",gap:.5,children:[e.jsx(o.Text,{color:d.palette.gray[800],size:"sm",children:x}),c?e.jsx(n.PremiumFeature,{text:"Upgrade"}):void 0,s]}),e.jsx(o.Text,{color:d.palette.gray[400],size:"xs",children:a})]})]})};
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { useTheme as m } from "styled-components";
3
+ import { Container as i } from "../../container/index.js";
4
+ import { Icon as d } from "../../icon/index.js";
5
+ import { PremiumFeature as g } from "../../premium-feature/index.js";
6
+ import "../../typography/heading/index.js";
7
+ import "../../typography/span/index.js";
8
+ import { Text as o } from "../../typography/text/index.js";
9
+ const j = ({ customBadge: a, description: l, icon: s, onClick: n, requiresUpgrade: p = !1, title: c }) => {
10
+ const e = m();
11
+ return t(i, { bgColor: e.palette.white, bgColorHover: e.palette.gray[100], cursor: "pointer", display: "flex", gap: 0.5, onClick: n, px: 1.25, py: 1, width: "100%", children: [r(i, { alignItems: "center", bgColor: e.palette.gray[300], borderRadius: e.spacing[0.25], display: "flex", height: "24px", justify: "center", width: "24px", children: r(d, { icon: s, iconColor: e.palette.gray[800], iconSize: "xxs", ml: 0.5, mr: 0.5 }) }), t(i, { children: [t(i, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [r(o, { color: e.palette.gray[800], size: "sm", children: c }), p ? r(g, { text: "Upgrade" }) : void 0, a] }), r(o, { color: e.palette.gray[400], size: "xs", children: l })] })] });
12
+ };
13
+ export {
14
+ j as MenuItem
15
+ };
@@ -1,7 +1,93 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),t=require("react-aria"),r=require("react-stately"),a=require("styled-components"),i=require("./thumb/index.js"),s=require("../container/index.js");require("../typography/heading/index.js"),require("../typography/span/index.js");const l=require("../typography/text/index.js"),p=a.styled.div`
2
- ${({theme:e,$min:n,$value:t})=>{return`\n align-items: center;\n align-self: stretch;\n display: flex;\n flex-direction: column;\n justify-content: end;\n gap: ${e.spacing[.75]};\n width: 304px;\n\n .track {\n background: linear-gradient(\n to right,\n ${n>=0?`\n ${e.palette.primary[500]} ${t}%,\n ${e.palette.gray[200]} ${t}%\n `:(r=e,a=t,a>=50?`\n ${r.palette.gray[200]} 50%,\n ${r.palette.primary[500]} 50.05%,\n ${r.palette.primary[500]} ${a}%,\n ${r.palette.gray[200]} ${a}%\n `:`\n ${r.palette.gray[200]} ${a}%,\n ${r.palette.primary[500]} ${a}%,\n ${r.palette.primary[500]} 50%,\n ${r.palette.gray[200]} 50.05%,\n ${r.palette.gray[200]} 100%\n `)}\n );\n border-radius: ${e.spacing[.125]};\n height: ${e.spacing[.25]};\n width: 100%;\n }\n\n .track.disabled {\n opacity: 0.4;\n }\n\n .thumb {\n background: ${e.palette.white};\n border-radius: ${e.spacing[1.25]};\n box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);\n top: 50%;\n height: 20px;\n width: 20px;\n }\n\n .thumb.dragging {\n border: 1px solid ${e.palette.primary[500]};\n }\n `;var r,a}}
3
- `,d=a.styled.div`
4
- ${({theme:e})=>`\n align-items: center;\n display: flex;\n justify-content: space-between;\n height: ${e.spacing[.625]};\n width: 100%;\n\n p {\n color: ${e.palette.gray[400]};\n font-family: ${e.typography.type.primary};\n font-size: ${e.spacing[.5]};\n }\n `}
5
- `,g=a.styled.output`
6
- ${({theme:e})=>`\n align-items: flex-end;\n border-radius: ${e.spacing[.5]};\n border: 1px solid ${e.palette.gray[300]};\n background: ${e.palette.white};\n display: flex;\n gap: ${e.spacing[.625]};\n padding: ${e.spacing[.625]} ${e.spacing[.75]};\n width: 59px;\n `}
7
- `;exports.Slider=c=>{const o=a.useTheme(),u=n.useRef(null),{minValue:h=0,maxValue:$=100}=c,x=t.useNumberFormatter(),y=r.useSliderState({...c,numberFormatter:x}),m=(f=h,q=$,w=y.getThumbValue(0),Math.round((w-f)/(q-f)*100)),{groupProps:b,trackProps:j}=t.useSlider({...c,"aria-label":"slider"},y,u);var f,q,w;return e.jsxs(s.Container,{alignItems:"center",display:"inline-flex",gap:1.25,children:[e.jsxs(p,{...b,$min:h??0,$value:m,className:"slider",children:[e.jsx("div",{...j,className:"track "+(y.isDisabled?"disabled":""),ref:u,children:e.jsx(i.Thumb,{index:0,state:y,trackRef:u})}),e.jsxs(d,{children:[e.jsx("p",{children:`${x.format(h)} (Low)`}),h<0&&e.jsx("p",{children:"0"}),e.jsx("p",{children:`${x.format($)} (High)`})]})]}),e.jsx(g,{children:e.jsx(l.Text,{color:o.palette.gray[800],size:"sm",textAlign:"right",children:y.getThumbValueLabel(0)})})]})};
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { useRef as u } from "react";
3
+ import { useNumberFormatter as y, useSlider as f } from "react-aria";
4
+ import { useSliderState as x } from "react-stately";
5
+ import { styled as o, useTheme as b } from "styled-components";
6
+ import { Thumb as w } from "./thumb/index.js";
7
+ import { Container as k } from "../container/index.js";
8
+ import "../typography/heading/index.js";
9
+ import "../typography/span/index.js";
10
+ import { Text as j } from "../typography/text/index.js";
11
+ const v = o.div`
12
+ ${({ theme: e, $min: p, $value: r }) => `
13
+ align-items: center;
14
+ align-self: stretch;
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: end;
18
+ gap: ${e.spacing[0.75]};
19
+ width: 304px;
20
+
21
+ .track {
22
+ background: linear-gradient(
23
+ to right,
24
+ ${p >= 0 ? `
25
+ ${e.palette.primary[500]} ${r}%,
26
+ ${e.palette.gray[200]} ${r}%
27
+ ` : ((a, t) => t >= 50 ? `
28
+ ${a.palette.gray[200]} 50%,
29
+ ${a.palette.primary[500]} 50.05%,
30
+ ${a.palette.primary[500]} ${t}%,
31
+ ${a.palette.gray[200]} ${t}%
32
+ ` : `
33
+ ${a.palette.gray[200]} ${t}%,
34
+ ${a.palette.primary[500]} ${t}%,
35
+ ${a.palette.primary[500]} 50%,
36
+ ${a.palette.gray[200]} 50.05%,
37
+ ${a.palette.gray[200]} 100%
38
+ `)(e, r)}
39
+ );
40
+ border-radius: ${e.spacing[0.125]};
41
+ height: ${e.spacing[0.25]};
42
+ width: 100%;
43
+ }
44
+
45
+ .track.disabled {
46
+ opacity: 0.4;
47
+ }
48
+
49
+ .thumb {
50
+ background: ${e.palette.white};
51
+ border-radius: ${e.spacing[1.25]};
52
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
53
+ top: 50%;
54
+ height: 20px;
55
+ width: 20px;
56
+ }
57
+
58
+ .thumb.dragging {
59
+ border: 1px solid ${e.palette.primary[500]};
60
+ }
61
+ `}
62
+ `, T = o.div`
63
+ ${({ theme: e }) => `
64
+ align-items: center;
65
+ display: flex;
66
+ justify-content: space-between;
67
+ height: ${e.spacing[0.625]};
68
+ width: 100%;
69
+
70
+ p {
71
+ color: ${e.palette.gray[400]};
72
+ font-family: ${e.typography.type.primary};
73
+ font-size: ${e.spacing[0.5]};
74
+ }
75
+ `}
76
+ `, S = o.output`
77
+ ${({ theme: e }) => `
78
+ align-items: flex-end;
79
+ border-radius: ${e.spacing[0.5]};
80
+ border: 1px solid ${e.palette.gray[300]};
81
+ background: ${e.palette.white};
82
+ display: flex;
83
+ gap: ${e.spacing[0.625]};
84
+ padding: ${e.spacing[0.625]} ${e.spacing[0.75]};
85
+ width: 59px;
86
+ `}
87
+ `, H = (e) => {
88
+ const p = b(), r = u(null), { minValue: a = 0, maxValue: t = 100 } = e, l = y(), i = x({ ...e, numberFormatter: l }), m = ((d, c, h) => Math.round((h - d) / (c - d) * 100))(a, t, i.getThumbValue(0)), { groupProps: g, trackProps: $ } = f({ ...e, "aria-label": "slider" }, i, r);
89
+ return s(k, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [s(v, { ...g, $min: a ?? 0, $value: m, className: "slider", children: [n("div", { ...$, className: "track " + (i.isDisabled ? "disabled" : ""), ref: r, children: n(w, { index: 0, state: i, trackRef: r }) }), s(T, { children: [n("p", { children: `${l.format(a)} (Low)` }), a < 0 && n("p", { children: "0" }), n("p", { children: `${l.format(t)} (High)` })] })] }), n(S, { children: n(j, { color: p.palette.gray[800], size: "sm", textAlign: "right", children: i.getThumbValueLabel(0) }) })] });
90
+ };
91
+ export {
92
+ H as Slider
93
+ };
@@ -1 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("react-aria");exports.Thumb=({state:i,trackRef:s,index:u})=>{const n=r.useRef(null),{thumbProps:a,inputProps:c,isDragging:d}=t.useSliderThumb({index:u,trackRef:s,inputRef:n},i);return e.jsx("div",{...a,className:"thumb "+(d?"dragging":""),children:e.jsx(t.VisuallyHidden,{children:e.jsx("input",{ref:n,...c})})})};
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useRef as u } from "react";
3
+ import { useSliderThumb as o, VisuallyHidden as p } from "react-aria";
4
+ const l = ({ state: i, trackRef: s, index: t }) => {
5
+ const e = u(null), { thumbProps: n, inputProps: a, isDragging: m } = o({ index: t, trackRef: s, inputRef: e }, i);
6
+ return r("div", { ...n, className: "thumb " + (m ? "dragging" : ""), children: r(p, { children: r("input", { ref: e, ...a }) }) });
7
+ };
8
+ export {
9
+ l as Thumb
10
+ };
@@ -1,15 +1,101 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("react"),t=require("styled-components"),i=require("../../utils-C2whpEd3.js");require("../../styles-C2CoGJl7.js");const r=require("../button/index.js"),a=require("../container/index.js"),o=require("../icon/index.js"),l=require("../typography/heading/index.js");require("../typography/span/index.js"),require("../typography/text/index.js");const{getVariant:s}=i.variantBuilder((n=>({completed:`\n background-color: ${n.palette.primary[500]};\n color: ${n.palette.white};\n\n &::after {\n background-color: ${n.palette.primary[500]};\n }\n `,current:`\n background-color: ${n.palette.primary[500]};\n color: ${n.palette.white};\n\n &::after {\n background-color: ${n.palette.gray[200]};\n }\n `,disabled:`\n background-color: ${n.palette.gray[200]};\n outline: 1px solid ${n.palette.gray[400]};\n outline-offset: -1px;\n color: ${n.palette.gray[400]};\n\n &::after {\n background-color: ${n.palette.gray[200]};\n }\n `}))),c=t.styled.div`
2
- ${({theme:n})=>`\n align-items: stretch;\n background-color: ${n.palette.white};\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: ${n.spacing[1]} ${n.spacing[1]};\n scroll-behavior: unset;\n `}
3
- `,p=t.styled.div`
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import { useState as v, useCallback as k } from "react";
3
+ import { styled as o } from "styled-components";
4
+ import { v as w } from "../../utils-CQvBF-wY.mjs";
5
+ import "../../styles-C3cZmKVJ.mjs";
6
+ import { Button as d } from "../button/index.js";
7
+ import { Container as g } from "../container/index.js";
8
+ import { Icon as C } from "../icon/index.js";
9
+ import { Heading as z } from "../typography/heading/index.js";
10
+ import "../typography/span/index.js";
11
+ import "../typography/text/index.js";
12
+ const { getVariant: S } = w((t) => ({ completed: `
13
+ background-color: ${t.palette.primary[500]};
14
+ color: ${t.palette.white};
15
+
16
+ &::after {
17
+ background-color: ${t.palette.primary[500]};
18
+ }
19
+ `, current: `
20
+ background-color: ${t.palette.primary[500]};
21
+ color: ${t.palette.white};
22
+
23
+ &::after {
24
+ background-color: ${t.palette.gray[200]};
25
+ }
26
+ `, disabled: `
27
+ background-color: ${t.palette.gray[200]};
28
+ outline: 1px solid ${t.palette.gray[400]};
29
+ outline-offset: -1px;
30
+ color: ${t.palette.gray[400]};
31
+
32
+ &::after {
33
+ background-color: ${t.palette.gray[200]};
34
+ }
35
+ ` })), j = o.div`
36
+ ${({ theme: t }) => `
37
+ align-items: stretch;
38
+ background-color: ${t.palette.white};
39
+ display: flex;
40
+ flex-direction: column;
41
+ height: 100%;
42
+ padding: ${t.spacing[1]} ${t.spacing[1]};
43
+ scroll-behavior: unset;
44
+ `}
45
+ `, A = o.div`
4
46
  display: flex;
5
47
  flex-direction: row;
6
- margin-bottom: ${({theme:n})=>n.spacing[2]};
48
+ margin-bottom: ${({ theme: t }) => t.spacing[2]};
7
49
 
8
50
  &:last-child > div:first-child > span::after {
9
51
  display: none;
10
52
  }
11
- `,d=t.styled.div`
12
- ${({theme:n})=>`\n display: inline-flex;\n font-family: ${n.typography.type.primary};\n font-size: ${n.typography.text.sm};\n line-height: ${n.spacing[1.25]};\n margin-top: ${n.spacing[1]};\n\n & > button:first-child {\n margin-right: ${n.spacing[.5]};\n }\n `}
13
- `,g=t.styled.span`
14
- ${({theme:n,$variant:e})=>`\n border-radius: 6px;\n display: inline-block;\n text-align: center;\n font-size: ${n.typography.text.sm};\n font-weight: ${n.typography.weight.bold};\n font-family: ${n.typography.type.primary};\n line-height: ${n.spacing[1]};\n padding: ${n.spacing[.5]} ${n.spacing[.5]};\n height: ${n.spacing[2]};\n width: ${n.spacing[2]};\n\n &::after {\n content: "";\n position: absolute;\n top: calc(32px + ${n.spacing[.5]});\n left: 50%;\n bottom: 0;\n width: 2px;\n height: calc(100% - ${n.spacing[1]});\n }\n\n ${s(n,e)}\n `}
15
- `;exports.StepLapse=({button:{disabled:t=!1,text:i,type:s="button",onClick:h},steps:y})=>{const[u,x]=e.useState(1),$=e.useCallback(((n,e)=>()=>{x((e=>e+n)),null==e||e()}),[]);return n.jsx(c,{children:y.map(((e,c)=>{const{content:x,title:m,nextAction:b,previousAction:f}=e,j=c+1,v=j<u?"completed":j===u?"current":"disabled";return n.jsxs(p,{children:[n.jsx(a.Container,{maxWidth:"40px",position:"relative",children:n.jsx(g,{$variant:v,children:"completed"===v?n.jsx(o.Icon,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):j})}),n.jsxs(a.Container,{ml:1.5,width:"100%",children:[n.jsx(l.Heading,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:m}),"current"===v&&n.jsxs(a.Container,{children:[x,n.jsxs(d,{children:[u>1&&n.jsx(r.Button,{disabled:e.isDisabledPrevious??!1,onClick:$(-1,f),variant:"tertiary",children:"Previous"}),u<y.length?n.jsx(r.Button,{disabled:e.isDisabledNext??!1,onClick:$(1,b),variant:"primary",children:"Next step"}):n.jsx(r.Button,{disabled:t,onClick:h,type:s,variant:"primary",children:i})]})]})]})]},e.title)}))})};
53
+ `, D = o.div`
54
+ ${({ theme: t }) => `
55
+ display: inline-flex;
56
+ font-family: ${t.typography.type.primary};
57
+ font-size: ${t.typography.text.sm};
58
+ line-height: ${t.spacing[1.25]};
59
+ margin-top: ${t.spacing[1]};
60
+
61
+ & > button:first-child {
62
+ margin-right: ${t.spacing[0.5]};
63
+ }
64
+ `}
65
+ `, N = o.span`
66
+ ${({ theme: t, $variant: l }) => `
67
+ border-radius: 6px;
68
+ display: inline-block;
69
+ text-align: center;
70
+ font-size: ${t.typography.text.sm};
71
+ font-weight: ${t.typography.weight.bold};
72
+ font-family: ${t.typography.type.primary};
73
+ line-height: ${t.spacing[1]};
74
+ padding: ${t.spacing[0.5]} ${t.spacing[0.5]};
75
+ height: ${t.spacing[2]};
76
+ width: ${t.spacing[2]};
77
+
78
+ &::after {
79
+ content: "";
80
+ position: absolute;
81
+ top: calc(32px + ${t.spacing[0.5]});
82
+ left: 50%;
83
+ bottom: 0;
84
+ width: 2px;
85
+ height: calc(100% - ${t.spacing[1]});
86
+ }
87
+
88
+ ${S(t, l)}
89
+ `}
90
+ `, G = ({ button: { disabled: t = !1, text: l, type: y = "button", onClick: $ }, steps: h }) => {
91
+ const [a, f] = v(1), m = k((n, i) => () => {
92
+ f((p) => p + n), i == null || i();
93
+ }, []);
94
+ return e(j, { children: h.map((n, i) => {
95
+ const { content: p, title: b, nextAction: u, previousAction: x } = n, c = i + 1, s = c < a ? "completed" : c === a ? "current" : "disabled";
96
+ return r(A, { children: [e(g, { maxWidth: "40px", position: "relative", children: e(N, { $variant: s, children: s === "completed" ? e(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }), r(g, { ml: 1.5, width: "100%", children: [e(z, { fontWeight: "bold", lineSpacing: 1.25, mb: 1.5, size: "xs", children: b }), s === "current" && r(g, { children: [p, r(D, { children: [a > 1 && e(d, { disabled: n.isDisabledPrevious ?? !1, onClick: m(-1, x), variant: "tertiary", children: "Previous" }), a < h.length ? e(d, { disabled: n.isDisabledNext ?? !1, onClick: m(1, u), variant: "primary", children: "Next step" }) : e(d, { disabled: t, onClick: $, type: y, variant: "primary", children: l })] })] })] })] }, n.title);
97
+ }) });
98
+ };
99
+ export {
100
+ G as StepLapse
101
+ };
@@ -1,3 +1,56 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("styled-components"),t=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"),i=n.styled.button`
2
- ${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.white};\n border: 1px solid ${e.palette.gray[100]};\n border-radius: ${e.spacing[.25]};\n color: ${e.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${e.typography.text.sm};\n gap: ${e.spacing[.25]};\n height: 21px;\n width: 21px;\n justify-content: center;\n padding: 6px;\n transition: all 0.25s ease;\n\n &[aria-label] {\n height: auto;\n width: auto;\n }\n\n &.success {\n border-color: ${e.palette.success[500]};\n color: ${e.palette.success[500]};\n\n &:hover {\n background-color: ${e.palette.success[200]};\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n background: ${e.palette.gray[200]};\n border-color: ${e.palette.gray[200]};\n color: ${e.palette.gray[300]};\n }\n\n &:hover:not(.success) {\n background-color: ${e.palette.gray[100]};\n }\n `}
3
- `,a={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}};exports.TableButton=({disabled:s=!1,icon:c,id:l,label:d,name:p,onClick:u,type:g="button",variant:x})=>{const y=n.useTheme(),b=e.jsxs(i,{"aria-label":p??void 0,className:x,disabled:s,id:l,onClick:u,type:g,children:[e.jsx(r.Icon,{clickable:!1,icon:c??a[x].icon,iconSize:void 0===p?"xxs":"xs",iconType:"fa-light"}),p??void 0]});return e.jsxs(t.Container,{alignItems:"center",display:"flex",children:[b,d&&e.jsx(o.Text,{color:y.palette.gray[800],ml:.5,size:"sm",children:d})]})};
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { styled as m, useTheme as b } from "styled-components";
3
+ import { Container as u } from "../container/index.js";
4
+ import { Icon as g } from "../icon/index.js";
5
+ import "../typography/heading/index.js";
6
+ import "../typography/span/index.js";
7
+ import { Text as h } from "../typography/text/index.js";
8
+ const y = m.button`
9
+ ${({ theme: e }) => `
10
+ align-items: center;
11
+ background-color: ${e.palette.white};
12
+ border: 1px solid ${e.palette.gray[100]};
13
+ border-radius: ${e.spacing[0.25]};
14
+ color: ${e.palette.gray[800]};
15
+ cursor: pointer;
16
+ display: flex;
17
+ font-size: ${e.typography.text.sm};
18
+ gap: ${e.spacing[0.25]};
19
+ height: 21px;
20
+ width: 21px;
21
+ justify-content: center;
22
+ padding: 6px;
23
+ transition: all 0.25s ease;
24
+
25
+ &[aria-label] {
26
+ height: auto;
27
+ width: auto;
28
+ }
29
+
30
+ &.success {
31
+ border-color: ${e.palette.success[500]};
32
+ color: ${e.palette.success[500]};
33
+
34
+ &:hover {
35
+ background-color: ${e.palette.success[200]};
36
+ }
37
+ }
38
+
39
+ &:disabled {
40
+ cursor: not-allowed;
41
+ background: ${e.palette.gray[200]};
42
+ border-color: ${e.palette.gray[200]};
43
+ color: ${e.palette.gray[300]};
44
+ }
45
+
46
+ &:hover:not(.success) {
47
+ background-color: ${e.palette.gray[100]};
48
+ }
49
+ `}
50
+ `, x = { add: { icon: "plus" }, approve: { icon: "check" }, disabled: { icon: "ban" }, reject: { icon: "xmark" }, submit: { icon: "arrow-right" }, success: { icon: "check" } }, z = ({ disabled: e = !1, icon: i, id: s, label: n, name: o, onClick: c, type: l = "button", variant: t }) => {
51
+ const p = b(), d = a(y, { "aria-label": o ?? void 0, className: t, disabled: e, id: s, onClick: c, type: l, children: [r(g, { clickable: !1, icon: i ?? x[t].icon, iconSize: o === void 0 ? "xxs" : "xs", iconType: "fa-light" }), o ?? void 0] });
52
+ return a(u, { alignItems: "center", display: "flex", children: [d, n && r(h, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: n })] });
53
+ };
54
+ export {
55
+ z as TableButton
56
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../../styles-Bn42XCW5.js"),t=require("../../typography/heading/index.js");require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.FixedTabs=({items:s})=>e.jsx(i.StyledFixedTabs,{children:s.map((({isActive:s,label:r,onClick:n},a)=>e.jsx(i.StyledFixedTab,{className:s?"active":"",onClick:n,type:"button",children:e.jsx(t.Heading,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r})},`${r}-${a}`)))});
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { S as r, a } from "../../../styles-BA0WIQL-.mjs";
3
+ import { Heading as c } from "../../typography/heading/index.js";
4
+ import "../../typography/span/index.js";
5
+ import "../../typography/text/index.js";
6
+ const b = ({ items: o }) => i(r, { children: o.map(({ isActive: s, label: e, onClick: t }, m) => i(a, { className: s ? "active" : "", onClick: t, type: "button", children: i(c, { color: "inherit", fontWeight: "semibold", size: "sm", sizeSm: "xs", children: e }) }, `${e}-${m}`)) });
7
+ export {
8
+ b as FixedTabs
9
+ };
@@ -1 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("styled-components"),o=require("./fixed-tabs/index.js"),t=require("./tab/index.js"),r=require("../container/index.js");exports.FixedTabs=o.FixedTabs,exports.Tab=t.Tab,exports.Tabs=({items:o,borders:n=!0,box:d=!1})=>{const s=i.useTheme();return e.jsx(r.Container,{bgColor:s.palette.white,border:d?"1px solid":void 0,borderBottom:n?`1px solid ${s.palette.gray[300]}`:void 0,borderColor:d?s.palette.gray[200]:void 0,borderRadius:d?s.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:d?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:d?"max-content":"100%",children:o.map((({id:i,isActive:o,link:r,label:n,notificationSign:d,onClick:s,tooltip:a})=>e.jsx(t.Tab,{id:i,isActive:o,label:n,link:r,notificationSign:d,onClick:s,tooltip:a},i)))})};
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as m } from "styled-components";
3
+ import { FixedTabs as u } from "./fixed-tabs/index.js";
4
+ import { Tab as c } from "./tab/index.js";
5
+ import { Container as v } from "../container/index.js";
6
+ const T = ({ items: a, borders: t = !0, box: i = !1 }) => {
7
+ const o = m();
8
+ return e(v, { bgColor: o.palette.white, border: i ? "1px solid" : void 0, borderBottom: t ? `1px solid ${o.palette.gray[300]}` : void 0, borderColor: i ? o.palette.gray[200] : void 0, borderRadius: i ? o.spacing[0.25] : void 0, display: "inline-flex", gap: 0.25, padding: i ? [0, 0, 0, 0] : void 0, pl: t ? 1.25 : void 0, pr: t ? 1.25 : void 0, role: "tablist", width: i ? "max-content" : "100%", children: a.map(({ id: r, isActive: l, link: s, label: d, notificationSign: p, onClick: n, tooltip: b }) => e(c, { id: r, isActive: l, label: d, link: s, notificationSign: p, onClick: n, tooltip: b }, r)) });
9
+ };
10
+ export {
11
+ u as FixedTabs,
12
+ c as Tab,
13
+ T as Tabs
14
+ };
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),e=require("../../../styles-Bn42XCW5.js"),t=require("../../notification-sign/index.js"),o=require("../../../index-CmylnDrF.js");exports.Tab=({label:l,id:n,isActive:r=!1,link:s,notificationSign:a,onClick:c,tooltip:d=""})=>i.jsx(o.Tooltip,{display:"flex",id:`${n}-tooltip`,tip:d,children:i.jsxs(e.TabLink,{"aria-selected":r,className:r?"active":"",id:n,onClick:c,role:"tab",to:s,children:[l,i.jsx(t.NotificationSign,{left:null==a?void 0:a.left,numberIndicator:null==a?void 0:a.numberIndicator,show:null==a?void 0:a.show,top:null==a?void 0:a.top,variant:null==a?void 0:a.variant})]})});
1
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
+ import { T as m } from "../../../styles-BA0WIQL-.mjs";
3
+ import { NotificationSign as p } from "../../notification-sign/index.js";
4
+ import { T as d } from "../../../index-D-lcuEHY.mjs";
5
+ const x = ({ label: r, id: o, isActive: t = !1, link: n, notificationSign: i, onClick: e, tooltip: s = "" }) => a(d, { display: "flex", id: `${o}-tooltip`, tip: s, children: l(m, { "aria-selected": t, className: t ? "active" : "", id: o, onClick: e, role: "tab", to: n, children: [r, a(p, { left: i == null ? void 0 : i.left, numberIndicator: i == null ? void 0 : i.numberIndicator, show: i == null ? void 0 : i.show, top: i == null ? void 0 : i.top, variant: i == null ? void 0 : i.variant })] }) });
6
+ export {
7
+ x as Tab
8
+ };
@@ -1,3 +1,116 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("lodash"),o=require("styled-components"),t=require("../../utils-C2whpEd3.js");require("../../styles-C2CoGJl7.js");const r=require("../icon/index.js"),a=require("../icon-button/index.js"),i=require("../link/index.js");require("../typography/heading/index.js");const l=require("../typography/span/index.js");require("../typography/text/index.js");const{getVariant:c}=t.variantBuilder((n=>({default:`\n background-color: ${n.palette.gray[200]};\n color: ${n.palette.gray[800]};\n `,error:`\n &.high {\n background-color: ${n.palette.error[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.error[50]};\n color: ${n.palette.error[700]};\n }\n &.medium {\n background-color: ${n.palette.error[500]};\n color: ${n.palette.error[50]};\n }\n `,inactive:`\n background-color: ${n.palette.gray[200]};\n color: ${n.palette.gray[600]};\n `,info:`\n &.high {\n background-color: ${n.palette.info[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.info[50]};\n color: ${n.palette.info[700]};\n }\n &.medium {\n background-color: ${n.palette.info[500]};\n color: ${n.palette.info[50]};\n }\n `,reachable:`\n background-color: ${n.palette.gray[50]};\n color: ${n.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${n.palette.gray[300]};\n color: ${n.palette.gray[400]};\n `,role:`\n background-color: ${n.palette.gray[800]};\n color: ${n.palette.white};\n `,success:`\n &.high {\n background-color: ${n.palette.success[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.success[50]};\n color: ${n.palette.success[700]};\n }\n &.medium {\n background-color: ${n.palette.success[500]};\n color: ${n.palette.success[50]};\n }\n `,technique:`\n --tag-padding-y: ${n.spacing[.25]};\n --tag-padding-x: ${n.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${n.palette.success[800]};\n color: ${n.palette.success[800]};\n `,warning:`\n &.high {\n background-color: ${n.palette.warning[600]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.warning[50]};\n color: ${n.palette.warning[700]};\n }\n &.medium {\n background-color: ${n.palette.warning[400]};\n color: ${n.palette.warning[700]};\n }\n `}))),s=o.styled.span`
2
- ${({theme:n,$fontSize:e=n.typography.text.xs,$variant:o})=>`\n align-items: center;\n border-radius: ${n.spacing["technique"===o?1:.25]};\n display: inline-flex;\n gap: ${n.spacing[.25]};\n font-family: ${n.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${n.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n ~ a {\n font-size: ${n.typography.text.xs};\n display: flex;\n }\n\n ${c(n,o)}\n `}
3
- `;exports.Tag=({disabled:o,icon:t,iconColor:c="inherit",iconType:p="fa-light",id:g="close-tag",filterValues:d="",fontSize:u,href:$,linkLabel:h,onClose:y,priority:x="default",tagTitle:b="",tagLabel:f,variant:k="default"})=>{const m=f.length>25&&e.isEmpty(b+d),j=`${f.slice(0,25)}...`;return n.jsxs(l.Span,{className:"gap-0.5",display:void 0===$?"initial":"flex",size:"sm",children:[n.jsxs(s,{$fontSize:u,$variant:k,className:x,children:[t&&n.jsx(r.Icon,{icon:t,iconColor:c,iconSize:"xxs",iconType:p}),n.jsxs("span",{children:[n.jsx("strong",{children:b}),n.jsx("span",{children:m?j:f}),n.jsx("strong",{children:d})]}),y?n.jsx(a.IconButton,{disabled:o,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:g,onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]}),void 0===$?void 0:n.jsx(i.Link,{href:$,children:h})]})};
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { isEmpty as y } from "lodash";
3
+ import { styled as b } from "styled-components";
4
+ import { v as k } from "../../utils-CQvBF-wY.mjs";
5
+ import "../../styles-C3cZmKVJ.mjs";
6
+ import { Icon as w } from "../icon/index.js";
7
+ import { IconButton as x } from "../icon-button/index.js";
8
+ import { Link as v } from "../link/index.js";
9
+ import "../typography/heading/index.js";
10
+ import { Span as z } from "../typography/span/index.js";
11
+ import "../typography/text/index.js";
12
+ const { getVariant: S } = k((o) => ({ default: `
13
+ background-color: ${o.palette.gray[200]};
14
+ color: ${o.palette.gray[800]};
15
+ `, error: `
16
+ &.high {
17
+ background-color: ${o.palette.error[700]};
18
+ color: ${o.palette.white};
19
+ }
20
+ &.low {
21
+ background-color: ${o.palette.error[50]};
22
+ color: ${o.palette.error[700]};
23
+ }
24
+ &.medium {
25
+ background-color: ${o.palette.error[500]};
26
+ color: ${o.palette.error[50]};
27
+ }
28
+ `, inactive: `
29
+ background-color: ${o.palette.gray[200]};
30
+ color: ${o.palette.gray[600]};
31
+ `, info: `
32
+ &.high {
33
+ background-color: ${o.palette.info[700]};
34
+ color: ${o.palette.white};
35
+ }
36
+ &.low {
37
+ background-color: ${o.palette.info[50]};
38
+ color: ${o.palette.info[700]};
39
+ }
40
+ &.medium {
41
+ background-color: ${o.palette.info[500]};
42
+ color: ${o.palette.info[50]};
43
+ }
44
+ `, reachable: `
45
+ background-color: ${o.palette.gray[50]};
46
+ color: ${o.palette.gray[800]};
47
+ `, remediation: `
48
+ background-color: inherit;
49
+ border: 1px solid ${o.palette.gray[300]};
50
+ color: ${o.palette.gray[400]};
51
+ `, role: `
52
+ background-color: ${o.palette.gray[800]};
53
+ color: ${o.palette.white};
54
+ `, success: `
55
+ &.high {
56
+ background-color: ${o.palette.success[700]};
57
+ color: ${o.palette.white};
58
+ }
59
+ &.low {
60
+ background-color: ${o.palette.success[50]};
61
+ color: ${o.palette.success[700]};
62
+ }
63
+ &.medium {
64
+ background-color: ${o.palette.success[500]};
65
+ color: ${o.palette.success[50]};
66
+ }
67
+ `, technique: `
68
+ --tag-padding-y: ${o.spacing[0.25]};
69
+ --tag-padding-x: ${o.spacing[0.75]};
70
+
71
+ background-color: inherit;
72
+ border: 1px solid ${o.palette.success[800]};
73
+ color: ${o.palette.success[800]};
74
+ `, warning: `
75
+ &.high {
76
+ background-color: ${o.palette.warning[600]};
77
+ color: ${o.palette.white};
78
+ }
79
+ &.low {
80
+ background-color: ${o.palette.warning[50]};
81
+ color: ${o.palette.warning[700]};
82
+ }
83
+ &.medium {
84
+ background-color: ${o.palette.warning[400]};
85
+ color: ${o.palette.warning[700]};
86
+ }
87
+ ` })), T = b.span`
88
+ ${({ theme: o, $fontSize: n = o.typography.text.xs, $variant: t }) => `
89
+ align-items: center;
90
+ border-radius: ${o.spacing[t === "technique" ? 1 : 0.25]};
91
+ display: inline-flex;
92
+ gap: ${o.spacing[0.25]};
93
+ font-family: ${o.typography.type.primary};
94
+ font-size: ${n};
95
+ font-style: normal;
96
+ font-weight: ${o.typography.weight.regular};
97
+ justify-content: center;
98
+ line-height: 18px;
99
+ padding: var(--tag-padding-y) var(--tag-padding-x);
100
+ white-space: nowrap;
101
+ width: max-content;
102
+
103
+ ~ a {
104
+ font-size: ${o.typography.text.xs};
105
+ display: flex;
106
+ }
107
+
108
+ ${S(o, t)}
109
+ `}
110
+ `, F = ({ disabled: o, icon: n, iconColor: t = "inherit", iconType: s = "fa-light", id: g = "close-tag", filterValues: l = "", fontSize: d, href: r, linkLabel: $, onClose: c, priority: h = "default", tagTitle: p = "", tagLabel: a, variant: m = "default" }) => {
111
+ const u = a.length > 25 && y(p + l), f = `${a.slice(0, 25)}...`;
112
+ return i(z, { className: "gap-0.5", display: r === void 0 ? "initial" : "flex", size: "sm", children: [i(T, { $fontSize: d, $variant: m, className: h, children: [n && e(w, { icon: n, iconColor: t, iconSize: "xxs", iconType: s }), i("span", { children: [e("strong", { children: p }), e("span", { children: u ? f : a }), e("strong", { children: l })] }), c ? e(x, { disabled: o, icon: "xmark", iconSize: "xxs", iconType: "fa-light", id: g, onClick: c, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }), r === void 0 ? void 0 : e(v, { href: r, children: $ })] });
113
+ };
114
+ export {
115
+ F as Tag
116
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime"),require("styled-components");const e=require("../../../index-CA_9DXWd.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.TimeLineCard=e.TimeLineCard;
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { a as e } from "../../../index-Bu448Tz2.mjs";
4
+ import "../../typography/heading/index.js";
5
+ import "../../typography/span/index.js";
6
+ import "../../typography/text/index.js";
7
+ export {
8
+ e as TimeLineCard
9
+ };
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../index-CA_9DXWd.js");exports.TimeLineCard=i.TimeLineCard,exports.TimeLine=({items:t})=>e.jsx(i.TimelineContainer,{children:t.map(((t,r)=>e.jsx(i.TimeLineCard,{date:t.date,description:t.description,title:t.title},`${t.title}-${r}`)))});
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { T as r, a as s } from "../../index-Bu448Tz2.mjs";
3
+ const d = ({ items: e }) => t(r, { children: e.map((i, a) => t(s, { date: i.date, description: i.description, title: i.title }, `${i.title}-${a}`)) });
4
+ export {
5
+ d as TimeLine,
6
+ s as TimeLineCard
7
+ };
@@ -1,8 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("styled-components"),n=require("../container/index.js"),r=i.styled.div`
2
- ${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
3
- `,o=i.styled.div`
4
- ${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: 50%;\n height: ${e.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${e.spacing[1]};\n z-index: 1;\n `}
5
- `,a=i.styled.label`
1
+ import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as u, useCallback as m } from "react";
3
+ import { styled as a } from "styled-components";
4
+ import { Container as $ } from "../container/index.js";
5
+ const i = a.div`
6
+ ${({ theme: e }) => `
7
+ align-items: center;
8
+ background-color: ${e.palette.gray[200]};
9
+ border-radius: 34px;
10
+ cursor: pointer;
11
+ display: flex;
12
+ height: 20px;
13
+ position: relative;
14
+ transition: 0.2s;
15
+ width: 36px;
16
+ `}
17
+ `, y = a.div`
18
+ ${({ theme: e }) => `
19
+ background-color: ${e.palette.white};
20
+ border-radius: 50%;
21
+ height: ${e.spacing[1]};
22
+ left: 2px;
23
+ position: absolute;
24
+ transition: 0.2s;
25
+ width: ${e.spacing[1]};
26
+ z-index: 1;
27
+ `}
28
+ `, k = a.label`
6
29
  display: inline-block;
7
30
 
8
31
  input {
@@ -12,21 +35,29 @@
12
35
  width: 0;
13
36
  }
14
37
 
15
- input:checked + ${r} {
16
- background-color: ${({theme:e})=>e.palette.primary[500]};
38
+ input:checked + ${i} {
39
+ background-color: ${({ theme: e }) => e.palette.primary[500]};
17
40
  }
18
41
 
19
- input:checked + ${r} > div {
42
+ input:checked + ${i} > div {
20
43
  transform: translateX(100%);
21
44
  }
22
45
 
23
- input:disabled + ${r} {
46
+ input:disabled + ${i} {
24
47
  cursor: not-allowed;
25
- background-color: ${({theme:e})=>e.palette.gray[100]};
48
+ background-color: ${({ theme: e }) => e.palette.gray[100]};
26
49
  }
27
50
 
28
- input:disabled + ${r} > div {
29
- background-color: ${({theme:e})=>e.palette.gray[200]};
30
- border: 1px solid ${({theme:e})=>e.palette.gray[200]};
51
+ input:disabled + ${i} > div {
52
+ background-color: ${({ theme: e }) => e.palette.gray[200]};
53
+ border: 1px solid ${({ theme: e }) => e.palette.gray[200]};
31
54
  }
32
- `,l=t.forwardRef((function({defaultChecked:i,disabled:l=!1,justify:s,name:d,leftDescription:c,rightDescription:p,...u},g){const h=!0===i?"on":"off",b="object"==typeof c&&c.on&&c.off?c[h]:c,f=t.useCallback((e=>{e.stopPropagation()}),[]);return e.jsxs(n.Container,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:s,children:[b,e.jsxs(a,{onClick:f,role:"switch",children:[e.jsx("input",{...u,"aria-disabled":l,"aria-label":d,checked:!0===i,disabled:l,name:d,ref:g,type:"checkbox"}),e.jsx(r,{"aria-label":"Toggle Switch",id:`${d}Toggle`,children:e.jsx(o,{})})]}),p]})}));exports.Toggle=l;
55
+ `, C = u(function({ defaultChecked: e, disabled: r = !1, justify: d, name: n, leftDescription: t, rightDescription: s, ...c }, p) {
56
+ const h = e === !0 ? "on" : "off", g = typeof t == "object" && t.on && t.off ? t[h] : t, b = m((f) => {
57
+ f.stopPropagation();
58
+ }, []);
59
+ return l($, { alignItems: "center", display: "flex", fontSize: "14px", gap: 0.75, justify: d, children: [g, l(k, { onClick: b, role: "switch", children: [o("input", { ...c, "aria-disabled": r, "aria-label": n, checked: e === !0, disabled: r, name: n, ref: p, type: "checkbox" }), o(i, { "aria-label": "Toggle Switch", id: `${n}Toggle`, children: o(y, {}) })] }), s] });
60
+ });
61
+ export {
62
+ C as Toggle
63
+ };