@fluidattacks/design 3.1.10 → 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 (206) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/assets/{design.css → index.css} +1 -1
  3. package/dist/assets/index2.css +1 -0
  4. package/dist/components/@core/index.js +18 -1
  5. package/dist/components/accordion/accordion-content/index.js +9 -1
  6. package/dist/components/accordion/index.js +21 -1
  7. package/dist/components/alert/index.js +111 -4
  8. package/dist/components/button/index.js +18 -1
  9. package/dist/components/card/card-header/index.js +14 -1
  10. package/dist/components/card/card-with-image/index.js +18 -1
  11. package/dist/components/card/card-with-input/index.js +57 -3
  12. package/dist/components/card/card-with-selector/index.js +16 -1
  13. package/dist/components/card/card-with-switch/index.js +12 -1
  14. package/dist/components/card/index.js +12 -1
  15. package/dist/components/carousel/index.js +36 -10
  16. package/dist/components/checkbox/index.js +84 -3
  17. package/dist/components/cloud-image/index.js +8 -1
  18. package/dist/components/code-snippet/index.js +27 -1
  19. package/dist/components/code-snippet/location-code/index.js +125 -1
  20. package/dist/components/colors/index.js +9 -1
  21. package/dist/components/confirm-dialog/index.js +23 -1
  22. package/dist/components/container/index.js +27 -3
  23. package/dist/components/content-card/category-tag/index.js +13 -1
  24. package/dist/components/content-card/event-date/index.js +18 -1
  25. package/dist/components/content-card/index.js +63 -3
  26. package/dist/components/content-card-carousel/index.js +15 -1
  27. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  28. package/dist/components/divider/index.js +10 -1
  29. package/dist/components/empty-state/empty-button/index.js +6 -1
  30. package/dist/components/empty-state/index.js +21 -8
  31. package/dist/components/file-preview/index.js +15 -3
  32. package/dist/components/form/index.js +26 -3
  33. package/dist/components/grid-container/index.js +26 -5
  34. package/dist/components/group-selector/index.js +26 -1
  35. package/dist/components/group-selector/option-container/index.js +12 -1
  36. package/dist/components/icon/index.js +42 -4
  37. package/dist/components/icon-button/index.js +27 -3
  38. package/dist/components/indicator-card/index.js +15 -1
  39. package/dist/components/info-sidebar/index.js +16 -1
  40. package/dist/components/inputs/fields/combobox/index.js +26 -1
  41. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  42. package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
  43. package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
  44. package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
  45. package/dist/components/inputs/fields/date/calendar/index.js +15 -1
  46. package/dist/components/inputs/fields/date/index.js +18 -1
  47. package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
  48. package/dist/components/inputs/fields/date-range/index.js +28 -3
  49. package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
  50. package/dist/components/inputs/fields/date-time/index.js +18 -1
  51. package/dist/components/inputs/fields/editable/index.js +16 -1
  52. package/dist/components/inputs/fields/input/index.js +13 -1
  53. package/dist/components/inputs/fields/input-file/index.js +24 -4
  54. package/dist/components/inputs/fields/input-tags/index.js +14 -2
  55. package/dist/components/inputs/fields/number/index.js +10 -1
  56. package/dist/components/inputs/fields/number-range/index.js +11 -1
  57. package/dist/components/inputs/fields/phone/index.js +414 -11
  58. package/dist/components/inputs/fields/text-area/index.js +13 -1
  59. package/dist/components/inputs/index.js +28 -1
  60. package/dist/components/inputs/label/index.js +12 -1
  61. package/dist/components/inputs/outline-container/index.js +18 -1
  62. package/dist/components/inputs/utils/action-button/index.js +10 -1
  63. package/dist/components/inputs/utils/calendar-button/index.js +13 -1
  64. package/dist/components/inputs/utils/date-selector/index.js +8 -1
  65. package/dist/components/inputs/utils/date-time-field/index.js +32 -1
  66. package/dist/components/inputs/utils/dialog/index.js +11 -1
  67. package/dist/components/inputs/utils/number-field/index.js +13 -1
  68. package/dist/components/inputs/utils/popover/index.js +13 -1
  69. package/dist/components/interactive-card/icon/index.js +7 -1
  70. package/dist/components/interactive-card/index.js +15 -1
  71. package/dist/components/language-selector/index.js +13 -1
  72. package/dist/components/language-selector/item-list/index.js +8 -1
  73. package/dist/components/link/index.js +52 -7
  74. package/dist/components/list-item/index.js +16 -1
  75. package/dist/components/little-flag/index.js +15 -3
  76. package/dist/components/loading/index.js +28 -14
  77. package/dist/components/logo/index.js +7 -1
  78. package/dist/components/logo-carousel/index.js +10 -4
  79. package/dist/components/lottie/index.js +15 -3
  80. package/dist/components/menu/index.js +23 -1
  81. package/dist/components/message-banner/index.js +21 -4
  82. package/dist/components/modal/index.js +19 -1
  83. package/dist/components/modal/modal-confirm/index.js +10 -1
  84. package/dist/components/modal/modal-footer/index.js +16 -1
  85. package/dist/components/modal/modal-header/index.js +25 -1
  86. package/dist/components/notification/index.js +68 -5
  87. package/dist/components/notification-sign/index.js +26 -6
  88. package/dist/components/number-input/index.js +25 -7
  89. package/dist/components/oauth-selector/index.js +26 -1
  90. package/dist/components/oauth-selector/option-container/index.js +15 -1
  91. package/dist/components/plan-card/index.js +84 -5
  92. package/dist/components/plan-card/recommended-tag/index.js +10 -1
  93. package/dist/components/pop-up/description/index.js +13 -1
  94. package/dist/components/pop-up/index.js +23 -1
  95. package/dist/components/premium-feature/index.js +45 -3
  96. package/dist/components/priority-score/index.js +14 -1
  97. package/dist/components/progress/index.js +23 -3
  98. package/dist/components/progress-bar/index.js +95 -5
  99. package/dist/components/radio-button/index.js +88 -3
  100. package/dist/components/scroll-button/index.js +20 -2
  101. package/dist/components/search/index.js +63 -7
  102. package/dist/components/search-bar/index.js +32 -1
  103. package/dist/components/search-bar/item-searching/index.js +10 -1
  104. package/dist/components/severity-badge/index.js +14 -1
  105. package/dist/components/severity-overview/badge/index.js +18 -1
  106. package/dist/components/severity-overview/index.js +7 -1
  107. package/dist/components/show-on-hover/index.js +25 -3
  108. package/dist/components/slide-out-menu/index.js +2009 -3
  109. package/dist/components/slide-out-menu/menu-item/index.js +15 -1
  110. package/dist/components/slider/index.js +93 -7
  111. package/dist/components/slider/thumb/index.js +10 -1
  112. package/dist/components/step-lapse/index.js +95 -9
  113. package/dist/components/table-button/index.js +56 -3
  114. package/dist/components/tabs/fixed-tabs/index.js +9 -1
  115. package/dist/components/tabs/index.js +14 -1
  116. package/dist/components/tabs/tab/index.js +8 -1
  117. package/dist/components/tag/index.js +116 -3
  118. package/dist/components/timeline/card/index.js +9 -1
  119. package/dist/components/timeline/index.js +7 -1
  120. package/dist/components/toggle/index.js +45 -14
  121. package/dist/components/toggle-buttons/index.js +74 -5
  122. package/dist/components/tooltip/index.js +13 -1
  123. package/dist/components/tour/index.js +2481 -4
  124. package/dist/components/typography/heading/index.js +9 -1
  125. package/dist/components/typography/index.js +8 -1
  126. package/dist/components/typography/span/index.js +9 -1
  127. package/dist/components/typography/text/index.js +9 -1
  128. package/dist/components/web-form/index.js +59 -7
  129. package/dist/hooks/index.js +13 -1
  130. package/dist/index-38JqtnAI.mjs +122 -0
  131. package/dist/index-B5yoGFs6.mjs +54 -0
  132. package/dist/index-BLbKylyw.mjs +209 -0
  133. package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
  134. package/dist/index-BwFnfaRh.mjs +2310 -0
  135. package/dist/index-Co_k0WFk.mjs +75 -0
  136. package/dist/index-Cu7uUMlx.mjs +82 -0
  137. package/dist/index-D-lcuEHY.mjs +1018 -0
  138. package/dist/index-DrfjITyT.mjs +61 -0
  139. package/dist/index.js +206 -1
  140. package/dist/styles-7_q7nHce.mjs +110 -0
  141. package/dist/styles-BA0WIQL-.mjs +74 -0
  142. package/dist/styles-C3cZmKVJ.mjs +131 -0
  143. package/dist/styles-CI-I6joH.mjs +144 -0
  144. package/dist/styles-Cx93EcVo.mjs +76 -0
  145. package/dist/styles-D85YYIjM.mjs +131 -0
  146. package/dist/styles-EIbGRPlk.mjs +106 -0
  147. package/dist/styles-Q1VXuWI7.mjs +65 -0
  148. package/dist/styles-fH2c4cfc.mjs +77 -0
  149. package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
  150. package/dist/use-carousel-CvRxi2FI.mjs +17 -0
  151. package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
  152. package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
  153. package/dist/use-modal-CkrZ-_-M.mjs +14 -0
  154. package/dist/use-search-DpLNvt7Q.mjs +12 -0
  155. package/dist/utils-CQvBF-wY.mjs +4 -0
  156. package/package.json +3 -2
  157. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  158. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  159. package/dist/index-BH27NQKA.mjs +0 -2311
  160. package/dist/index-Bcw2vW_n.mjs +0 -75
  161. package/dist/index-C8zdgAVH.mjs +0 -82
  162. package/dist/index-CA_9DXWd.js +0 -5
  163. package/dist/index-CmylnDrF.js +0 -14
  164. package/dist/index-DUMgwAbO.js +0 -26
  165. package/dist/index-DpQYiwGu.js +0 -5
  166. package/dist/index-Dy8ZUIYs.js +0 -5
  167. package/dist/index-JPf5Yzg6.js +0 -17
  168. package/dist/index-OBZtKZuT.mjs +0 -1021
  169. package/dist/index-SsXlDjK4.mjs +0 -122
  170. package/dist/index-TKLFHcRp.js +0 -18
  171. package/dist/index-TnyKqJHo.mjs +0 -61
  172. package/dist/index-Yr95Cb7Z.mjs +0 -54
  173. package/dist/index-h9-U5wxq.mjs +0 -209
  174. package/dist/index-qCiUU4sZ.js +0 -9
  175. package/dist/index-qe0nJwzl.js +0 -15
  176. package/dist/styles--Elze-LV.js +0 -3
  177. package/dist/styles-3pR4Xdvy.js +0 -33
  178. package/dist/styles-59h91S9m.mjs +0 -65
  179. package/dist/styles-BCwLWpC3.mjs +0 -126
  180. package/dist/styles-BJ7-0I5X.mjs +0 -74
  181. package/dist/styles-BKObp9bh.mjs +0 -76
  182. package/dist/styles-BWVdbvFu.js +0 -5
  183. package/dist/styles-Bl-CstrT.js +0 -5
  184. package/dist/styles-Bn42XCW5.js +0 -7
  185. package/dist/styles-C2CoGJl7.js +0 -33
  186. package/dist/styles-CNzziAXG.js +0 -5
  187. package/dist/styles-CdD9waPD.js +0 -29
  188. package/dist/styles-CnKTwnFk.mjs +0 -110
  189. package/dist/styles-D4R-eerv.mjs +0 -77
  190. package/dist/styles-DNIIhyRC.mjs +0 -144
  191. package/dist/styles-DV8yOaqV.mjs +0 -131
  192. package/dist/styles-DYoftbd3.js +0 -42
  193. package/dist/styles-DlmKLhPh.js +0 -7
  194. package/dist/styles-be8gOdgy.mjs +0 -106
  195. package/dist/use-carousel-64dKFW4E.js +0 -1
  196. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  197. package/dist/use-click-outside-BqkLISED.js +0 -1
  198. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  199. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  200. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  201. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  202. package/dist/use-modal-_bYY6M_n.js +0 -1
  203. package/dist/use-search-75ip5xR-.mjs +0 -12
  204. package/dist/use-search-DeL4UDMh.js +0 -1
  205. package/dist/utils-C2whpEd3.js +0 -1
  206. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),r=require("../../../styles-DlmKLhPh.js"),t=i.forwardRef((function({bgGradient:i,children:t,className:n,color:a,display:l,fontFamily:s,fontWeight:o,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:S,sizeMd:$,sizeSm:p,textFill:m,wordBreak:f,...u},y){return e.jsx(r.StyledHeading,{$bgGradient:i,$color:a,$display:l,$fontFamily:s,$fontWeight:o,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:S,$sizeMd:$,$sizeSm:p,$textFill:m,$wordBreak:f,className:n,ref:y,...u,children:t})}));exports.Heading=t;
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { forwardRef as h } from "react";
3
+ import { S as x } from "../../../styles-fH2c4cfc.mjs";
4
+ const b = h(function({ bgGradient: i, children: e, className: r, color: a, display: t, fontFamily: n, fontWeight: l, letterSpacing: o, lineSpacing: s, lineSpacingSm: c, size: m, sizeMd: $, sizeSm: d, textFill: p, wordBreak: f, ...g }, S) {
5
+ return z(x, { $bgGradient: i, $color: a, $display: t, $fontFamily: n, $fontWeight: l, $letterSpacing: o, $lineSpacing: s, $lineSpacingSm: c, $size: m, $sizeMd: $, $sizeSm: d, $textFill: p, $wordBreak: f, className: r, ref: S, ...g, children: e });
6
+ });
7
+ export {
8
+ b as Heading
9
+ };
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./heading/index.js"),t=require("./span/index.js"),r=require("./text/index.js");exports.Heading=e.Heading,exports.Span=t.Span,exports.Text=r.Text;
1
+ import { Heading as e } from "./heading/index.js";
2
+ import { Span as t } from "./span/index.js";
3
+ import { Text as f } from "./text/index.js";
4
+ export {
5
+ e as Heading,
6
+ t as Span,
7
+ f as Text
8
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),t=require("../../../styles-DlmKLhPh.js"),n=i.forwardRef((function({children:i,color:n,content:r,display:l,fontFamily:o,fontWeight:c,letterSpacing:s,lineSpacing:a,lineSpacingSm:S,size:p,sizeMd:$,sizeSm:d,...g},f){return e.jsx(t.StyledSpan,{$color:n,$content:r,$display:l,$fontFamily:o,$fontWeight:c,$letterSpacing:s,$lineSpacing:a,$lineSpacingSm:S,$size:p,$sizeMd:$,$sizeSm:d,ref:f,...g,children:i})}));exports.Span=n;
1
+ import { jsx as $ } from "react/jsx-runtime";
2
+ import { forwardRef as g } from "react";
3
+ import { a as d } from "../../../styles-fH2c4cfc.mjs";
4
+ const u = g(function({ children: i, color: n, content: e, display: t, fontFamily: o, fontWeight: r, letterSpacing: a, lineSpacing: c, lineSpacingSm: l, size: s, sizeMd: p, sizeSm: m, ...f }, S) {
5
+ return $(d, { $color: n, $content: e, $display: t, $fontFamily: o, $fontWeight: r, $letterSpacing: a, $lineSpacing: c, $lineSpacingSm: l, $size: s, $sizeMd: p, $sizeSm: m, ref: S, ...f, children: i });
6
+ });
7
+ export {
8
+ u as Span
9
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),t=require("../../../styles-DlmKLhPh.js"),r=i.forwardRef((function({bgGradient:i,children:r,className:l,color:n,display:a,fontFamily:s,fontWeight:o,letterSpacing:c,lineSpacing:d,lineSpacingSm:S,size:$,sizeMd:g,sizeSm:p,textFill:m,wordBreak:f,...u},x){return e.jsx(t.StyledText,{$bgGradient:i,$color:n,$display:a,$fontFamily:s,$fontWeight:o,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:S,$size:$,$sizeMd:g,$sizeSm:p,$textFill:m,$wordBreak:f,className:l,ref:x,...u,children:r})}));exports.Text=r;
1
+ import { jsx as z } from "react/jsx-runtime";
2
+ import { forwardRef as x } from "react";
3
+ import { b as h } from "../../../styles-fH2c4cfc.mjs";
4
+ const w = x(function({ bgGradient: i, children: e, className: r, color: t, display: a, fontFamily: n, fontWeight: l, letterSpacing: o, lineSpacing: s, lineSpacingSm: c, size: m, sizeMd: $, sizeSm: p, textFill: d, wordBreak: f, ...g }, S) {
5
+ return z(h, { $bgGradient: i, $color: t, $display: a, $fontFamily: n, $fontWeight: l, $letterSpacing: o, $lineSpacing: s, $lineSpacingSm: c, $size: m, $sizeMd: $, $sizeSm: p, $textFill: d, $wordBreak: f, className: r, ref: S, ...g, children: e });
6
+ });
7
+ export {
8
+ w as Text
9
+ };
@@ -1,11 +1,40 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("styled-components"),i=require("../button/index.js"),t=e.styled.form`
2
- ${({theme:n})=>`\n align-items: center;\n background: ${n.palette.gray[50]};\n backdrop-filter: blur(11px);\n border-radius: ${n.spacing[1]};\n box-shadow: ${n.shadows.md};\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: ${n.spacing[3]} ${n.spacing[2]};\n width: 628px;\n\n &::before {\n background: ${n.palette.gradients["02"]} border-box;\n border-radius: ${n.spacing[1]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${n.breakpoints.mobile}) {\n width: 320px;\n }\n `}
3
- `,r=e.styled.div`
1
+ import { jsx as t, jsxs as d } from "react/jsx-runtime";
2
+ import { styled as e } from "styled-components";
3
+ import { Button as o } from "../button/index.js";
4
+ const l = e.form`
5
+ ${({ theme: n }) => `
6
+ align-items: center;
7
+ background: ${n.palette.gray[50]};
8
+ backdrop-filter: blur(11px);
9
+ border-radius: ${n.spacing[1]};
10
+ box-shadow: ${n.shadows.md};
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: center;
14
+ padding: ${n.spacing[3]} ${n.spacing[2]};
15
+ width: 628px;
16
+
17
+ &::before {
18
+ background: ${n.palette.gradients["02"]} border-box;
19
+ border-radius: ${n.spacing[1]};
20
+ content: "";
21
+ position: absolute;
22
+ inset: 0;
23
+ border: 2px solid transparent;
24
+ mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
25
+ mask-composite: exclude;
26
+ }
27
+
28
+ @media screen and (max-width: ${n.breakpoints.mobile}) {
29
+ width: 320px;
30
+ }
31
+ `}
32
+ `, m = e.div`
4
33
  align-items: flex-start;
5
34
  align-self: stretch;
6
35
  display: flex;
7
36
  flex-direction: column;
8
- gap: ${({theme:n})=>n.spacing[1.5]};
37
+ gap: ${({ theme: n }) => n.spacing[1.5]};
9
38
 
10
39
  button[type="submit"] {
11
40
  width: 100%;
@@ -14,6 +43,29 @@
14
43
  text-align: center;
15
44
  }
16
45
  }
17
- `,a=e.styled.div`
18
- ${({theme:n})=>`\n align-items: flex-start;\n align-self: stretch;\n container-type: inline-size;\n display: flex;\n flex-direction: row;\n gap: ${n.spacing[1]};\n position: relative;\n\n &:has(> :nth-child(2)) {\n > div {\n display: flex;\n width: 50%;\n }\n }\n\n @media screen and (max-width: ${n.breakpoints.mobile}) {\n flex-direction: column;\n }\n `}
19
- `;exports.FormItem=a,exports.WebForm=({children:e,name:a,onSubmit:s,submitDisabled:d,submitLabel:l="Submit"})=>n.jsx(t,{"aria-label":a,name:a,onSubmit:s,children:n.jsxs(r,{children:[e,n.jsx(i.Button,{disabled:d,type:"submit",children:l})]})});
46
+ `, f = e.div`
47
+ ${({ theme: n }) => `
48
+ align-items: flex-start;
49
+ align-self: stretch;
50
+ container-type: inline-size;
51
+ display: flex;
52
+ flex-direction: row;
53
+ gap: ${n.spacing[1]};
54
+ position: relative;
55
+
56
+ &:has(> :nth-child(2)) {
57
+ > div {
58
+ display: flex;
59
+ width: 50%;
60
+ }
61
+ }
62
+
63
+ @media screen and (max-width: ${n.breakpoints.mobile}) {
64
+ flex-direction: column;
65
+ }
66
+ `}
67
+ `, x = ({ children: n, name: i, onSubmit: a, submitDisabled: s, submitLabel: r = "Submit" }) => t(l, { "aria-label": i, name: i, onSubmit: a, children: d(m, { children: [n, t(o, { disabled: s, type: "submit", children: r })] }) });
68
+ export {
69
+ f as FormItem,
70
+ x as WebForm
71
+ };
@@ -1 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../use-carousel-64dKFW4E.js"),s=require("../use-click-outside-BqkLISED.js"),u=require("../use-cloudinary-image-YMMafagv.js"),r=require("../use-search-DeL4UDMh.js"),o=require("../use-modal-_bYY6M_n.js");exports.useCarousel=e.useCarousel,exports.useClickOutside=s.useClickOutside,exports.useCloudinaryImage=u.useCloudinaryImage,exports.useDebouncedCallback=r.useDebouncedCallback,exports.useSearch=r.useSearch,exports.useModal=o.useModal;
1
+ import { u as a } from "../use-carousel-CvRxi2FI.mjs";
2
+ import { u as s } from "../use-click-outside-BtZLIoU1.mjs";
3
+ import { u as l } from "../use-cloudinary-image-fG7ODNgr.mjs";
4
+ import { u as t, a as f } from "../use-search-DpLNvt7Q.mjs";
5
+ import { u as x } from "../use-modal-CkrZ-_-M.mjs";
6
+ export {
7
+ a as useCarousel,
8
+ s as useClickOutside,
9
+ l as useCloudinaryImage,
10
+ t as useDebouncedCallback,
11
+ x as useModal,
12
+ f as useSearch
13
+ };
@@ -0,0 +1,122 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { styled as e } from "styled-components";
3
+ import "./components/typography/heading/index.js";
4
+ import "./components/typography/span/index.js";
5
+ import { Text as i } from "./components/typography/text/index.js";
6
+ const l = e.button`
7
+ ${({ theme: n }) => `
8
+ align-items: center;
9
+ border-left: 3px solid transparent;
10
+ display: flex;
11
+ gap: ${n.spacing[0.625]};
12
+ height: 42px;
13
+ min-width: 50px;
14
+ padding: ${n.spacing[0.625]} ${n.spacing[1]};
15
+
16
+ &.dark {
17
+ background-color: ${n.palette.gray[800]};
18
+ color: ${n.palette.gray[25]};
19
+
20
+ &.disabled {
21
+ border-color: ${n.palette.gray[500]};
22
+ color: ${n.palette.gray[500]};
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ &:hover:not(.disabled) {
27
+ background-color: ${n.palette.gray[700]};
28
+ border-color: ${n.palette.primary[400]};
29
+ }
30
+ }
31
+
32
+ &.light {
33
+ background-color: ${n.palette.gray[50]};
34
+ color: ${n.palette.gray[800]};
35
+
36
+ &.disabled {
37
+ background-color: ${n.palette.white};
38
+ border-color: ${n.palette.gray[300]};
39
+ color: ${n.palette.gray[300]};
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ &:hover:not(.disabled) {
44
+ background-color: ${n.palette.gray[100]};
45
+ border-color: ${n.palette.primary[400]};
46
+ }
47
+ }
48
+ `}
49
+ `, $ = e.div`
50
+ ${({ theme: n }) => `
51
+ align-items: center;
52
+ background-color: transparent;
53
+ border-bottom: 2px solid transparent;
54
+ display: flex;
55
+ font-family: ${n.typography.type.primary};
56
+ font-size: ${n.typography.text.sm};
57
+ font-weight: ${n.typography.weight.regular};
58
+ gap: ${n.spacing[0.5]};
59
+ height: 30px;
60
+ justify-content: center;
61
+ padding: ${n.spacing[0.25]};
62
+ margin-bottom: ${n.spacing[0.25]};
63
+ min-width: 50px;
64
+ width: max-content;
65
+ z-index: 11;
66
+
67
+ &:hover {
68
+ border-color: ${n.palette.primary[400]};
69
+ }
70
+
71
+ &.dark {
72
+ color: ${n.palette.gray[25]};
73
+ }
74
+
75
+ &.light {
76
+ color: ${n.palette.gray[800]};
77
+ }
78
+ `}
79
+ `, m = e.div`
80
+ ${({ theme: n }) => `
81
+ background-color: ${n.palette.white};
82
+ border-radius: 0 0 ${n.spacing[0.25]} ${n.spacing[0.25]};
83
+ box-shadow: ${n.shadows.lg};
84
+ display: none;
85
+ flex-direction: column;
86
+ position: absolute;
87
+ top: 100%;
88
+ z-index: 11;
89
+
90
+ > button:last-child {
91
+ border-radius: 0 0 ${n.spacing[0.25]} ${n.spacing[0.25]};
92
+ }
93
+ `}
94
+ `, h = e.div`
95
+ ${({ theme: n }) => `
96
+ align-items: flex-start;
97
+ cursor: pointer;
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: ${n.spacing[0.25]};
101
+ height: max-content;
102
+ position: relative;
103
+ width: max-content;
104
+ z-index: 10;
105
+
106
+ &:hover {
107
+ > div:first-child {
108
+ border-color: ${n.palette.primary[400]};
109
+ }
110
+
111
+ > div:last-child {
112
+ display: flex;
113
+ }
114
+ }
115
+ `}
116
+ `, y = ({ disabled: n = !1, mode: o, onClick: r, text: a }) => t(l, { className: `${n && "disabled"} ${o}`, disabled: n, onClick: r, children: t(i, { color: "inherit", size: "sm", sizeSm: "xs", children: a }) });
117
+ export {
118
+ y as I,
119
+ h as S,
120
+ $ as a,
121
+ m as b
122
+ };
@@ -0,0 +1,54 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { useCallback as s } from "react";
3
+ import { styled as a, useTheme as l } from "styled-components";
4
+ import { Icon as p } from "./components/icon/index.js";
5
+ import "./components/typography/heading/index.js";
6
+ import "./components/typography/span/index.js";
7
+ import { Text as c } from "./components/typography/text/index.js";
8
+ const f = a.div`
9
+ ${({ theme: e, $itemsLength: n }) => `
10
+ display: flex;
11
+ background-color: ${e.palette.white};
12
+ border: 1px solid ${e.palette.gray[200]};
13
+ border-radius: ${e.spacing[0.25]};
14
+ box-shadow: ${e.shadows.lg};
15
+ flex-direction: column;
16
+ min-width: 507px;
17
+ max-width: ${n <= 4 ? "507px" : "980px"};
18
+ padding: ${e.spacing[1.5]};
19
+
20
+ @media screen and (max-width: 980px) and (min-width: 742px) {
21
+ width: 742px;
22
+ }
23
+ @media screen and (max-width: 742px) {
24
+ width: 507px;
25
+ }
26
+ `}
27
+ `, m = a.div`
28
+ ${({ theme: e, $isSelected: n }) => `
29
+ align-items: center;
30
+ background-color: ${n ? e.palette.gray[100] : e.palette.white};
31
+ border: 1px solid ${e.palette.gray[200]};
32
+ border-radius: ${e.spacing[0.25]};
33
+ cursor: pointer;
34
+ display: flex;
35
+ flex-direction: ${n ? "row-reverse" : "row"};
36
+ min-height: 50px;
37
+ padding: ${e.spacing[1]} ${e.spacing[0.625]};
38
+ width: 215px;
39
+
40
+ &:hover {
41
+ background-color: ${e.palette.gray[100]};
42
+ }
43
+ `}
44
+ `, y = ({ isSelected: e = !1, label: n, onSelect: i }) => {
45
+ const t = l(), o = s(() => {
46
+ i && i(n);
47
+ }, [i, n]);
48
+ return d(m, { $isSelected: e, onClick: o, children: [e ? r(p, { icon: "check", iconColor: t.palette.gray[800], iconSize: "md" }) : null, r(c, { color: t.palette.gray[800], fontWeight: "bold", size: "sm", children: n })] });
49
+ };
50
+ export {
51
+ m as O,
52
+ f as S,
53
+ y as a
54
+ };
@@ -0,0 +1,209 @@
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
+ import { styled as e } from "styled-components";
3
+ import { theme as d } from "./components/colors/index.js";
4
+ import { Icon as c } from "./components/icon/index.js";
5
+ import "./components/typography/heading/index.js";
6
+ import "./components/typography/span/index.js";
7
+ import { Text as l } from "./components/typography/text/index.js";
8
+ const g = e.a`
9
+ ${({ theme: n }) => `
10
+ align-items: center;
11
+ display: flex;
12
+ background: ${n.palette.white};
13
+ border-radius: ${n.spacing[0.5]};
14
+ cursor: pointer;
15
+ gap: ${n.spacing[1]};
16
+ padding:
17
+ ${n.spacing[0.5]}
18
+ ${n.spacing[1]}
19
+ ${n.spacing[0.5]}
20
+ ${n.spacing[0.5]};
21
+ width: 1143px;
22
+
23
+ &:hover {
24
+ background: ${n.palette.gray[100]};
25
+
26
+ > div.icon-wrap {
27
+ background: ${n.palette.gradients["01"]};
28
+
29
+ path {
30
+ fill: ${n.palette.white};
31
+ }
32
+ }
33
+ }
34
+
35
+ @media screen
36
+ and (min-width: ${n.breakpoints.sm})
37
+ and (max-width: ${n.breakpoints.md})
38
+ {
39
+ width: 905px;
40
+ }
41
+
42
+ @media screen
43
+ and (min-width: 40em)
44
+ and (max-width: ${n.breakpoints.sm})
45
+ {
46
+ width: 475px;
47
+ }
48
+
49
+ @media screen and (max-width: 40em) {
50
+ width: 270px;
51
+ }
52
+ `}
53
+ `, m = e.div.attrs({ className: "icon-wrap" })`
54
+ ${({ theme: n }) => `
55
+ align-items: center;
56
+ background: ${n.palette.primary[25]};
57
+ border-radius: ${n.spacing[0.25]};
58
+ display: flex;
59
+ justify-content: center;
60
+ min-width: ${n.spacing[2.5]};
61
+ height: ${n.spacing[2.5]};
62
+ padding: ${n.spacing[0.5]};
63
+
64
+ span {
65
+ font-size: 20px;
66
+ }
67
+ `}
68
+ `, f = e.div`
69
+ ${({ theme: n }) => `
70
+ align-items: flex-start;
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: ${n.spacing[1.5]};
74
+ width: 1193px;
75
+
76
+ > :is(form, .dropdown) {
77
+ border-radius: ${n.spacing[0.5]};
78
+ border: 1px solid ${n.palette.gray[200]};
79
+ background-color: ${n.palette.white};
80
+ }
81
+
82
+ @media screen
83
+ and (min-width: ${n.breakpoints.sm})
84
+ and (max-width: ${n.breakpoints.md})
85
+ {
86
+ width: 954px;
87
+ }
88
+
89
+ @media screen
90
+ and (min-width: 40em)
91
+ and (max-width: ${n.breakpoints.sm})
92
+ {
93
+ width: 526px;
94
+ }
95
+
96
+ @media screen and (max-width: 40em) {
97
+ width: 320px;
98
+ }
99
+ `}
100
+ `, k = e.form`
101
+ ${({ theme: n }) => `
102
+ align-items: center;
103
+ display: flex;
104
+ gap: ${n.spacing[0.5]};
105
+ justify-content: space-between;
106
+ padding: ${n.spacing[1]} ${n.spacing[1.5]};
107
+ width: 100%;
108
+ `}
109
+ `, v = e.input`
110
+ ${({ theme: n }) => `
111
+ flex: 1 0 0;
112
+ border: none;
113
+ color: ${n.palette.gray[600]};
114
+ font-family: ${n.typography.type.primary};
115
+ font-size: ${n.typography.text.md};
116
+ font-weight: ${n.typography.weight.regular};
117
+ line-height: ${n.spacing[1.5]};
118
+ outline: none;
119
+
120
+ &::placeholder {
121
+ color: ${n.palette.gray[400]};
122
+ }
123
+
124
+ &::-webkit-search-decoration,
125
+ &::-webkit-search-cancel-button,
126
+ &::-webkit-search-results-button,
127
+ &::-webkit-search-results-decoration {
128
+ -webkit-appearance:none;
129
+ }
130
+
131
+ @media screen and (max-width: ${n.breakpoints.mobile}) {
132
+ font-size: ${n.typography.text.sm};
133
+ }
134
+ `}
135
+ `, S = e.button`
136
+ ${({ theme: n }) => `
137
+ align-items: center;
138
+ border-radius: ${n.spacing[0.5]};
139
+ display: flex;
140
+ width: ${n.spacing[2.5]};
141
+ height: ${n.spacing[2.5]};
142
+ padding: ${n.spacing[0.625]} ${n.spacing[1]};
143
+ justify-content: center;
144
+ gap: ${n.spacing[0.5]};
145
+ flex-shrink: 0;
146
+
147
+ span {
148
+ color: ${n.palette.gray[400]};
149
+ }
150
+
151
+ &:hover {
152
+ background-color: ${n.palette.gray[100]};
153
+ }
154
+ `}
155
+ `, z = e.div.attrs({ className: "dropdown" })`
156
+ ${({ theme: n, $empty: a = !1, $showHits: i = !1 }) => `
157
+ align-items: flex-start;
158
+ align-self: stretch;
159
+ background-repeat: no-repeat;
160
+ background-size: 100% 100%;
161
+ display: flex;
162
+ flex-direction: column;
163
+ gap: ${n.spacing[0.5]};
164
+ max-height: ${i ? "270px" : "500px"};
165
+ overflow: hidden auto;
166
+ padding: ${n.spacing[1.5]};
167
+ scrollbar-color: ${n.palette.gray[600]} ${n.palette.gray[100]};
168
+ scroll-padding: ${n.spacing[0.5]};
169
+ scrollbar-width: thin;
170
+
171
+ @media screen and (max-width: ${n.breakpoints.sm}) and (${!a}) {
172
+ max-height: 410px;
173
+ }
174
+ ${a && `
175
+ @media screen and (min-width: ${n.breakpoints.mobile}) {
176
+ border: none !important;
177
+ background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
178
+ }
179
+ @media screen and (max-width: ${n.breakpoints.mobile}) {
180
+ border: none !important;
181
+ background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
182
+ }
183
+ `}
184
+
185
+ &::-webkit-scrollbar {
186
+ height: ${n.spacing[0.5]};
187
+ width: ${n.spacing[0.5]};
188
+ }
189
+ &::-webkit-scrollbar-track {
190
+ background: ${n.palette.gray[100]};
191
+ }
192
+ &::-webkit-scrollbar-thumb {
193
+ background-color: ${n.palette.gray[600]};
194
+ border-radius: ${n.spacing[5]};
195
+ height: ${n.spacing[0.5]};
196
+ }
197
+ `}
198
+ `, j = ({ hit: n, icon: a = "infinity", showIcon: i = !1 }) => {
199
+ const { slug: t, title: s } = n, o = String(t).startsWith("/pages/") ? String(t).replace("/pages/", "/") : String(t);
200
+ return p(g, { href: o, rel: "nofollow noopener noreferrer", children: [i && r(m, { children: r(c, { icon: a, iconClass: "fill-gradient-01", iconSize: "sm", iconType: "fa-light" }) }), r(l, { color: d.palette.gray[800], lineSpacing: 1.5, size: "md", sizeSm: "sm", whiteSpace: "wrap", children: String(s) })] });
201
+ };
202
+ export {
203
+ j as I,
204
+ f as S,
205
+ k as a,
206
+ v as b,
207
+ S as c,
208
+ z as d
209
+ };
@@ -1,40 +1,40 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { styled as t, useTheme as i } from "styled-components";
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { styled as a, useTheme as p } from "styled-components";
3
3
  import "./components/typography/heading/index.js";
4
4
  import "./components/typography/span/index.js";
5
- import { Text as r } from "./components/typography/text/index.js";
6
- const o = t.div`
7
- ${({ theme: n2 }) => `
5
+ import { Text as t } from "./components/typography/text/index.js";
6
+ const c = a.div`
7
+ ${({ theme: n }) => `
8
8
  align-items: center;
9
- background-color: ${n2.palette.white};
10
- border: 1px solid ${n2.palette.gray[200]};
11
- border-radius: ${n2.spacing[0.25]};
9
+ background-color: ${n.palette.white};
10
+ border: 1px solid ${n.palette.gray[200]};
11
+ border-radius: ${n.spacing[0.25]};
12
12
  display: flex;
13
13
  flex-direction: column;
14
- gap: ${n2.spacing[0.5]};
14
+ gap: ${n.spacing[0.5]};
15
15
  min-height: 180px;
16
- padding: ${n2.spacing[1.5]};
16
+ padding: ${n.spacing[1.5]};
17
17
  width: 510px;
18
18
 
19
19
  p {
20
20
  font-style: normal;
21
- line-height: ${n2.spacing[1.25]};
21
+ line-height: ${n.spacing[1.25]};
22
22
  }
23
23
 
24
24
  &:hover {
25
- border: 1px solid ${n2.palette.gray[600]};
25
+ border: 1px solid ${n.palette.gray[600]};
26
26
  }
27
27
  `}
28
- `, a = t.div`
29
- ${({ theme: n2 }) => `
28
+ `, b = a.div`
29
+ ${({ theme: n }) => `
30
30
  display: flex;
31
31
  flex-direction: column;
32
- gap: ${n2.spacing[1.5]};
32
+ gap: ${n.spacing[1.5]};
33
33
  position: relative;
34
34
  max-width: 1268px;
35
35
 
36
36
  &::before {
37
- background-color: ${n2.palette.gray[200]};
37
+ background-color: ${n.palette.gray[200]};
38
38
  border-radius: 5px;
39
39
  height: 100%;
40
40
  width: 4px;
@@ -52,7 +52,7 @@ const o = t.div`
52
52
 
53
53
  &::before {
54
54
  position: absolute;
55
- background-color: ${n2.palette.primary[500]};
55
+ background-color: ${n.palette.primary[500]};
56
56
  border-radius: 50%;
57
57
  height: 14px;
58
58
  width: 14px;
@@ -96,11 +96,11 @@ const o = t.div`
96
96
  }
97
97
  }
98
98
  `}
99
- `, l = ({ date: t2, description: a2, title: l2 }) => {
100
- const d = i();
101
- return n(o, { className: "timeline-card", children: [e(r, { color: d.palette.gray[800], fontWeight: "bold", lineSpacing: 1.75, size: "xl", children: t2 }), e(r, { color: d.palette.gray[800], fontWeight: "bold", lineSpacing: 1.5, mb: 0.5, size: "md", textAlign: "center", children: l2 }), e("div", { children: a2.map((n2, t3) => e(r, { size: "sm", textAlign: "center", wordBreak: "break-word", children: n2 }, `${n2}#${t3}`)) })] });
99
+ `, $ = ({ date: n, description: o, title: l }) => {
100
+ const i = p();
101
+ return s(c, { className: "timeline-card", children: [e(t, { color: i.palette.gray[800], fontWeight: "bold", lineSpacing: 1.75, size: "xl", children: n }), e(t, { color: i.palette.gray[800], fontWeight: "bold", lineSpacing: 1.5, mb: 0.5, size: "md", textAlign: "center", children: l }), e("div", { children: o.map((r, d) => e(t, { size: "sm", textAlign: "center", wordBreak: "break-word", children: r }, `${r}#${d}`)) })] });
102
102
  };
103
103
  export {
104
- a as T,
105
- l as a
104
+ b as T,
105
+ $ as a
106
106
  };