@fluidattacks/design 3.1.11 → 3.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1,3 +1,85 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("styled-components"),i=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"),s=e.styled.div`
2
- ${({theme:n})=>`\n height: ${n.spacing[1]};\n width: ${n.spacing[1]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n color: ${n.palette.warning[200]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(0.75) translate(-67%, -66%);\n color: ${n.palette.warning[400]};\n }\n\n & .icon {\n color: ${n.palette.warning[600]};\n font-size: ${n.spacing[.5]};\n }\n `}
3
- `;exports.PremiumFeature=({margin:t,onClick:l,text:c})=>{const a=e.useTheme(),p=n.jsxs(s,{children:[n.jsx(r.Icon,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),n.jsx(r.Icon,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),n.jsx(r.Icon,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return void 0!==c?n.jsx(i.Container,{cursor:"pointer",display:"inline-block",mr:t,onClick:l,children:n.jsxs(i.Container,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[p,n.jsx(o.Text,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:c})]})}):n.jsx(i.Container,{display:"inline-block",mr:t,onClick:l,children:p})};
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
+ import { styled as a, useTheme as p } from "styled-components";
3
+ import { Container as o } from "../container/index.js";
4
+ import { Icon as e } from "../icon/index.js";
5
+ import "../typography/heading/index.js";
6
+ import "../typography/span/index.js";
7
+ import { Text as d } from "../typography/text/index.js";
8
+ const m = a.div`
9
+ ${({ theme: i }) => `
10
+ height: ${i.spacing[1]};
11
+ width: ${i.spacing[1]};
12
+ position: relative;
13
+ flex-shrink: 0;
14
+
15
+ & .ellipse-1,
16
+ & .ellipse-2,
17
+ & .icon {
18
+ top: 50%;
19
+ left: 50%;
20
+ transform: translate(-50%, -50%);
21
+ position: absolute;
22
+ }
23
+
24
+ & .ellipse-1 {
25
+ color: ${i.palette.warning[200]};
26
+ position: absolute;
27
+ }
28
+
29
+ & .ellipse-2 {
30
+ transform: scale(0.75) translate(-67%, -66%);
31
+ color: ${i.palette.warning[400]};
32
+ }
33
+
34
+ & .icon {
35
+ color: ${i.palette.warning[600]};
36
+ font-size: ${i.spacing[0.5]};
37
+ }
38
+ `}
39
+ `, b = ({
40
+ margin: i,
41
+ onClick: r,
42
+ text: l
43
+ }) => {
44
+ const s = p(), t = /* @__PURE__ */ c(m, { children: [
45
+ /* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-1", iconSize: "xs" }),
46
+ /* @__PURE__ */ n(e, { icon: "circle", iconClass: "ellipse-2", iconSize: "xs" }),
47
+ /* @__PURE__ */ n(e, { icon: "crown", iconClass: "icon", iconSize: "xs" })
48
+ ] });
49
+ return l !== void 0 ? /* @__PURE__ */ n(
50
+ o,
51
+ {
52
+ cursor: "pointer",
53
+ display: "inline-block",
54
+ mr: i,
55
+ onClick: r,
56
+ children: /* @__PURE__ */ c(
57
+ o,
58
+ {
59
+ alignItems: "center",
60
+ bgColor: s.palette.warning[50],
61
+ borderRadius: "4px",
62
+ display: "flex",
63
+ padding: [0.25, 0.25, 0.25, 0.25],
64
+ width: "fit-content",
65
+ children: [
66
+ t,
67
+ /* @__PURE__ */ n(
68
+ d,
69
+ {
70
+ color: s.palette.warning[500],
71
+ display: "inline",
72
+ ml: 0.25,
73
+ size: "xs",
74
+ children: l
75
+ }
76
+ )
77
+ ]
78
+ }
79
+ )
80
+ }
81
+ ) : /* @__PURE__ */ n(o, { display: "inline-block", mr: i, onClick: r, children: t });
82
+ };
83
+ export {
84
+ b as PremiumFeature
85
+ };
@@ -1 +1,29 @@
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");require("../typography/heading/index.js"),require("../typography/span/index.js");const o=require("../typography/text/index.js");exports.PriorityScore=({score:n})=>{const s=r.useTheme(),a=n>66||0===n?"priority-bars-high":n<=33?"priority-bars-low":"priority-bars-medium";return e.jsxs(i.Container,{alignItems:"center",display:"inline-flex",gap:.25,children:[e.jsx(t.Icon,{icon:a,iconClass:n<=66?"fa-kit-duotone":"",iconColor:n>0?s.palette.primary[500]:s.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:s.palette.gray[200]}),e.jsx(o.Text,{color:s.palette.gray[800],size:"sm",textAlign:"right",children:n+"%"})]})};
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import { useTheme as a } from "styled-components";
3
+ import { Container as m } from "../container/index.js";
4
+ import { Icon as p } from "../icon/index.js";
5
+ import "../typography/heading/index.js";
6
+ import "../typography/span/index.js";
7
+ import { Text as l } from "../typography/text/index.js";
8
+ const d = ({
9
+ score: r
10
+ }) => {
11
+ const i = a(), t = r <= 33 ? "priority-bars-low" : "priority-bars-medium", e = r > 66 || r === 0 ? "priority-bars-high" : t;
12
+ return /* @__PURE__ */ n(m, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [
13
+ /* @__PURE__ */ o(
14
+ p,
15
+ {
16
+ icon: e,
17
+ iconClass: r <= 66 ? "fa-kit-duotone" : "",
18
+ iconColor: r > 0 ? i.palette.primary[500] : i.palette.gray[200],
19
+ iconSize: "xs",
20
+ iconType: "fa-kit",
21
+ secondaryColor: i.palette.gray[200]
22
+ }
23
+ ),
24
+ /* @__PURE__ */ o(l, { color: i.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })
25
+ ] });
26
+ };
27
+ export {
28
+ d as PriorityScore
29
+ };
@@ -1,5 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),s=require("../../styles-C2CoGJl7.js"),i=require("../container/index.js"),n=r.styled(s.BaseComponent)`
2
- animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useState as f, useEffect as n } from "react";
3
+ import { styled as g, useTheme as c } from "styled-components";
4
+ import { B as d } from "../../styles-CplEd2kw.mjs";
5
+ import { Container as l } from "../container/index.js";
6
+ const p = g(d)`
7
+ animation: ${({ $animationTime: t }) => `progress-bar ${t}s ease-in-out`};
3
8
  animation-fill-mode: both;
4
9
 
5
10
  @keyframes progress-bar {
@@ -11,4 +16,32 @@
11
16
  width: 100%;
12
17
  }
13
18
  }
14
- `;exports.Progress=({progressTime:s=10,onComplete:o})=>{const a=r.useTheme(),[l,u]=t.useState(0);return t.useEffect((()=>{100===l&&(null==o||o())}),[l,o]),t.useEffect((()=>{const e=setInterval((()=>{u((e=>100===e?0:e+1))}),1e3*s/100);return()=>{clearInterval(e)}}),[l,s]),e.jsx(i.Container,{bgColor:a.palette.gray[200],height:"4px",children:e.jsx(n,{$animationTime:s,bgGradient:a.palette.gradients["01"],height:"100%",width:`${l}%`})})};
19
+ `, b = (t) => t * 1e3 / 100, x = ({
20
+ progressTime: t = 10,
21
+ onComplete: r
22
+ }) => {
23
+ const s = c(), i = 100, [e, m] = f(0);
24
+ return n(() => {
25
+ e === i && (r == null || r());
26
+ }, [e, r]), n(() => {
27
+ const h = setInterval(() => {
28
+ m(
29
+ (a) => a === i ? 0 : a + 1
30
+ );
31
+ }, b(t));
32
+ return () => {
33
+ clearInterval(h);
34
+ };
35
+ }, [e, t]), /* @__PURE__ */ o(l, { bgColor: s.palette.gray[200], height: "4px", children: /* @__PURE__ */ o(
36
+ p,
37
+ {
38
+ $animationTime: t,
39
+ bgGradient: s.palette.gradients["01"],
40
+ height: "100%",
41
+ width: `${e}%`
42
+ }
43
+ ) });
44
+ };
45
+ export {
46
+ x as Progress
47
+ };
@@ -1,5 +1,153 @@
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 $, jsx as n } from "react/jsx-runtime";
2
+ import { styled as p } from "styled-components";
3
+ import { v as h } from "../../utils-V0EumEPM.mjs";
4
+ import "../../styles-CplEd2kw.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 f } from "../typography/text/index.js";
9
+ const { getVariant: u } = h(
10
+ (r) => ({
11
+ compliance: `
12
+ display: inline-flex;
13
+
14
+ &.horizontal {
15
+ height: ${r.spacing[0.75]};
16
+ }
17
+ &.vertical {
18
+ width: ${r.spacing[0.75]};
19
+ }
20
+ `,
21
+ default: `
22
+ display: inline-flex;
23
+
24
+ &.horizontal {
25
+ height: ${r.spacing[0.5]};
26
+ }
27
+ &.vertical {
28
+ width: ${r.spacing[0.5]};
29
+ }
30
+ .progress-bar {
31
+ background-color: ${r.palette.primary[500]};
32
+ }
33
+ `,
34
+ progressIndicator: `
35
+ display: flex;
36
+
37
+ &.horizontal {
38
+ height: ${r.spacing[0.125]};
39
+ }
40
+ &.vertical {
41
+ width: ${r.spacing[0.125]};
42
+ }
43
+ .progress-bar {
44
+ background-color: ${r.palette.primary[500]};
45
+ }
46
+ `,
47
+ progressIndicatorError: `
48
+ display: flex;
49
+
50
+ &.horizontal {
51
+ height: ${r.spacing[0.125]};
52
+ }
53
+ &.vertical {
54
+ width: ${r.spacing[0.125]};
55
+ }
56
+ .progress-bar {
57
+ background-color: ${r.palette.error[200]};
58
+ }
59
+ `,
60
+ small: `
61
+ color: ${r.palette.primary[500]};
62
+ display: inline-flex;
63
+
64
+ &.horizontal {
65
+ height: ${r.spacing[0.25]};
66
+ }
67
+ &.vertical {
68
+ width: ${r.spacing[0.25]};
69
+ }
70
+ .progress-bar {
71
+ background-color: ${r.palette.primary[500]};
72
+ }
73
+ `
74
+ })
75
+ ), x = (r, i) => i < 50 ? r.palette.error[500] : i < 80 ? r.palette.warning[500] : r.palette.success[500], b = p.div`
76
+ ${({ theme: r, $minWidth: i, $orientation: a, $rounded: t, $variant: o }) => `
77
+ background-color: ${r.palette.gray[100]};
78
+ border-radius: ${t ? "100px" : "unset"};
79
+ ${a === "horizontal" ? "min-width" : "min-height"}: ${i}px;
80
+ ${a === "horizontal" ? "" : "height: 100%;"}
81
+
82
+ ${u(r, o)}
83
+
84
+ `}
85
+ `, m = p.div`
86
+ ${({ theme: r, $percentage: i, $rounded: a, $variant: t }) => `
87
+ display: inline-flex;
88
+ width: ${i}%;
89
+ max-width: 100%;
90
+ min-width: 0%;
91
+ height: 100%;
92
+ border-radius: ${a ? "100px" : "unset"};
93
+ border-end-end-radius: ${a && i < 100 ? "0" : "inherit"};
94
+ border-start-end-radius: ${a && i < 100 ? "0" : "inherit"};
95
+ background-color: ${t === "compliance" ? x(r, i) : "inherit"};
96
+ `}
97
+ `, C = ({
98
+ minWidth: r = 100,
99
+ percentage: i,
100
+ percentageLocation: a = "right",
101
+ showPercentage: t = !1,
102
+ orientation: o = "horizontal",
103
+ rounded: s = !0,
104
+ variant: e = "default"
105
+ }) => {
106
+ const l = t && a === "left", c = t ? /* @__PURE__ */ n(
107
+ d,
108
+ {
109
+ alignItems: "center",
110
+ display: "flex",
111
+ justify: l ? "flex-end" : "flex-start",
112
+ width: "40px",
113
+ children: /* @__PURE__ */ n(f, { ml: 0.5, mr: l ? 0.5 : 0, size: "sm", children: `${i}%` })
114
+ }
115
+ ) : null, g = /* @__PURE__ */ n(
116
+ b,
117
+ {
118
+ $minWidth: r,
119
+ $orientation: o,
120
+ $rounded: s,
121
+ $variant: e,
122
+ className: o,
123
+ children: /* @__PURE__ */ n(
124
+ m,
125
+ {
126
+ $percentage: i,
127
+ $rounded: s,
128
+ $variant: e,
129
+ className: "progress-bar"
130
+ }
131
+ )
132
+ }
133
+ );
134
+ return /* @__PURE__ */ $(
135
+ d,
136
+ {
137
+ alignItems: "center",
138
+ display: "inline-flex",
139
+ flexDirection: l ? "row-reverse" : "row",
140
+ height: o === "horizontal" ? "auto" : "100%",
141
+ maxWidth: l ? `${r + 43}px` : void 0,
142
+ minWidth: l ? `${r + 43}px` : void 0,
143
+ textAlign: "end",
144
+ children: [
145
+ g,
146
+ c
147
+ ]
148
+ }
149
+ );
150
+ };
151
+ export {
152
+ C as ProgressBar
153
+ };
@@ -1,3 +1,125 @@
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 k, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
+ import { styled as i } from "styled-components";
4
+ const g = i.label`
5
+ ${({ theme: r }) => `
6
+ align-items: center;
7
+ display: flex;
8
+ color: ${r.palette.gray[600]};
9
+ cursor: pointer;
10
+ font-family: ${r.typography.type.primary};
11
+ font-size: ${r.typography.text.sm};
12
+ font-weight: ${r.typography.weight.regular};
13
+ gap: ${r.spacing[0.5]};
14
+ line-height: ${r.typography.text.lg};
15
+ text-align: left;
16
+ position: relative;
17
+
18
+ &[aria-disabled="true"] {
19
+ color: ${r.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: ${r.palette.white};
37
+ border-radius: 50%;
38
+ border: 1px solid ${r.palette.gray[600]};
39
+ }
40
+
41
+ input:disabled ~ .checkmark {
42
+ border: 1px solid ${r.palette.gray[300]};
43
+ background-color: ${r.palette.white};
44
+ cursor: not-allowed;
45
+ }
46
+
47
+ input:not(:disabled):checked ~ .checkmark {
48
+ background-color: ${r.palette.white};
49
+ border: 1px solid ${r.palette.primary[500]};
50
+ }
51
+
52
+ input:not(:disabled):hover ~ .checkmark {
53
+ background-color: ${r.palette.white};
54
+ box-shadow: 0 0 0 4px ${r.palette.gray[100]};
55
+ }
56
+
57
+ input:not(:disabled):hover:checked ~ .checkmark {
58
+ background-color: ${r.palette.white};
59
+ box-shadow: 0 0 0 4px ${r.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: ${r.palette.primary[500]};
72
+ }
73
+
74
+ input:checked ~ .checkmark::after {
75
+ display: block;
76
+ }
77
+
78
+ input:disabled:checked ~ .checkmark::after {
79
+ background-color: ${r.palette.gray[300]};
80
+ }
81
+
82
+ `}
83
+ `, b = i.span.attrs({ className: "checkmark" })``, $ = u(function({
84
+ defaultChecked: t = !1,
85
+ disabled: a = !1,
86
+ label: l,
87
+ name: o,
88
+ onChange: p,
89
+ onClick: c,
90
+ value: d,
91
+ ...n
92
+ }, s) {
93
+ return /* @__PURE__ */ k(
94
+ g,
95
+ {
96
+ "aria-disabled": a,
97
+ "aria-label": o,
98
+ role: "radiogroup",
99
+ children: [
100
+ /* @__PURE__ */ e(
101
+ "input",
102
+ {
103
+ "aria-checked": t,
104
+ "aria-disabled": a,
105
+ "aria-label": o,
106
+ defaultChecked: t,
107
+ disabled: a,
108
+ name: o,
109
+ onChange: p,
110
+ onClick: c,
111
+ ref: s,
112
+ type: "radio",
113
+ value: d,
114
+ ...n
115
+ }
116
+ ),
117
+ /* @__PURE__ */ e(b, {}),
118
+ l ?? null
119
+ ]
120
+ }
121
+ );
122
+ });
123
+ export {
124
+ $ as RadioButton
125
+ };
@@ -1,6 +1,42 @@
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 s } from "react/jsx-runtime";
2
+ import { useState as i, useEffect as p, useCallback as m } from "react";
3
+ import { styled as a } from "styled-components";
4
+ import { IconButton as u } from "../icon-button/index.js";
5
+ const d = a.div.attrs({
6
+ className: "comp-scroll-up"
7
+ })`
2
8
  bottom: 15px;
3
9
  position: fixed;
4
10
  right: 140px;
5
11
  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};
12
+ `, g = ({
13
+ scrollerId: t = "dashboard",
14
+ visibleAt: e = 500
15
+ }) => {
16
+ const [n, l] = i(!1), [o, r] = i(null);
17
+ p(() => {
18
+ r(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
19
+ l(o.scrollTop > e);
20
+ });
21
+ }, [o, t, e]);
22
+ const c = m(() => {
23
+ o == null || o.scrollTo({
24
+ behavior: "smooth",
25
+ top: 0
26
+ });
27
+ }, [o]);
28
+ return n ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(
29
+ u,
30
+ {
31
+ height: "40px",
32
+ icon: "arrow-up",
33
+ iconSize: "sm",
34
+ id: "scroll-up",
35
+ onClick: c,
36
+ width: "40px"
37
+ }
38
+ ) }) : null;
39
+ };
40
+ export {
41
+ g as ScrollUpButton
42
+ };
@@ -1,7 +1,105 @@
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 r } from "react/jsx-runtime";
2
+ import { u as h } from "../../index-DwznImvK.mjs";
3
+ import { isEmpty as $ } from "lodash";
4
+ import { forwardRef as b, useState as w, useCallback as S, Fragment as k } from "react";
5
+ import { styled as i, useTheme as C } from "styled-components";
6
+ import { Icon as z } from "../icon/index.js";
7
+ import { IconButton as c } from "../icon-button/index.js";
8
+ import { u as O } from "../../use-click-outside-BUll8Ag-.mjs";
9
+ const v = i.input`
10
+ ${({ theme: o }) => `
11
+ background: none;
12
+ border: none !important;
13
+ box-shadow: none;
14
+ box-sizing: border-box;
15
+ color: ${o.palette.gray[800]};
16
+ font-family: ${o.typography.type.primary};
17
+ font-size: ${o.typography.text.sm};
18
+ outline: none;
19
+ width: 100%;
20
+
21
+ &::placeholder {
22
+ color: ${o.palette.gray[400]};
23
+ }
24
+ `}
25
+ `, I = i.div`
26
+ ${({ theme: o }) => `
27
+ align-items: center;
28
+ background-color: ${o.palette.white};
29
+ border: 1px solid ${o.palette.gray[300]};
30
+ border-radius: ${o.spacing[0.5]};
31
+ display: flex;
32
+ height: 40px;
33
+ gap: ${o.spacing[0.5]};
34
+ padding: ${o.spacing[0.5]};
35
+ width: 100%;
36
+
37
+ &:hover {
38
+ border-color: ${o.palette.gray[600]};
39
+ }
40
+
41
+ &:focus-within {
42
+ border: 2px solid ${o.palette.black};
43
+ }
44
+ `}
45
+ `, T = i.div`
46
+ ${({ theme: o }) => `
47
+ background-color: ${o.palette.white};
48
+ border-radius: ${o.spacing[0.5]};
49
+ width: 250px;
50
+ `}
51
+ `, G = b(function({ name: n, smallSearch: d = !1, value: a, ...g }, f) {
52
+ const t = C(), [y, s] = w(!1), { refs: e, floatingStyles: u } = h(), m = S(() => {
53
+ s((x) => !x);
54
+ }, []);
55
+ O(
56
+ e.floating.current,
57
+ () => {
58
+ s(!1);
59
+ },
60
+ !0
61
+ );
62
+ const p = /* @__PURE__ */ l(I, { children: [
63
+ /* @__PURE__ */ r(
64
+ z,
65
+ {
66
+ icon: "magnifying-glass",
67
+ iconColor: t.palette.gray[700],
68
+ iconSize: "xs",
69
+ iconType: "fa-light"
70
+ }
71
+ ),
72
+ /* @__PURE__ */ r(v, { ...g, id: n, name: n, ref: f, value: a }),
73
+ !$(a) && /* @__PURE__ */ r(
74
+ c,
75
+ {
76
+ icon: "xmark",
77
+ iconColor: t.palette.gray[300],
78
+ iconSize: "xs",
79
+ iconType: "fa-light",
80
+ px: 0.25,
81
+ py: 0.25,
82
+ type: "reset",
83
+ variant: "ghost"
84
+ }
85
+ )
86
+ ] });
87
+ return d ? /* @__PURE__ */ l(k, { children: [
88
+ /* @__PURE__ */ r(
89
+ c,
90
+ {
91
+ border: `1px solid ${t.palette.gray[300]} !important`,
92
+ icon: "magnifying-glass",
93
+ iconSize: "xs",
94
+ iconType: "fa-light",
95
+ onClick: m,
96
+ ref: e.setReference,
97
+ variant: "ghost"
98
+ }
99
+ ),
100
+ y ? /* @__PURE__ */ r(T, { ref: e.setFloating, style: u, children: p }) : void 0
101
+ ] }) : p;
102
+ });
103
+ export {
104
+ G as Search
105
+ };