@fluidattacks/design 3.1.11 → 3.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,47 @@
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 x } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { S as z } from "../../../styles-B64DVBIF.mjs";
4
+ const b = y(function({
5
+ bgGradient: i,
6
+ children: e,
7
+ className: r,
8
+ color: t,
9
+ display: n,
10
+ fontFamily: o,
11
+ fontWeight: $,
12
+ letterSpacing: a,
13
+ lineSpacing: d,
14
+ lineSpacingSm: l,
15
+ size: m,
16
+ sizeMd: f,
17
+ sizeSm: g,
18
+ textFill: p,
19
+ wordBreak: s,
20
+ ...S
21
+ }, c) {
22
+ return /* @__PURE__ */ x(
23
+ z,
24
+ {
25
+ $bgGradient: i,
26
+ $color: t,
27
+ $display: n,
28
+ $fontFamily: o,
29
+ $fontWeight: $,
30
+ $letterSpacing: a,
31
+ $lineSpacing: d,
32
+ $lineSpacingSm: l,
33
+ $size: m,
34
+ $sizeMd: f,
35
+ $sizeSm: g,
36
+ $textFill: p,
37
+ $wordBreak: s,
38
+ className: r,
39
+ ref: c,
40
+ ...S,
41
+ children: e
42
+ }
43
+ );
44
+ });
45
+ export {
46
+ b as Heading
47
+ };
@@ -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,41 @@
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 s } from "react/jsx-runtime";
2
+ import { forwardRef as d } from "react";
3
+ import { a as g } from "../../../styles-B64DVBIF.mjs";
4
+ const h = d(function({
5
+ children: n,
6
+ color: i,
7
+ content: o,
8
+ display: t,
9
+ fontFamily: e,
10
+ fontWeight: r,
11
+ letterSpacing: a,
12
+ lineSpacing: p,
13
+ lineSpacingSm: $,
14
+ size: m,
15
+ sizeMd: S,
16
+ sizeSm: f,
17
+ ...c
18
+ }, l) {
19
+ return /* @__PURE__ */ s(
20
+ g,
21
+ {
22
+ $color: i,
23
+ $content: o,
24
+ $display: t,
25
+ $fontFamily: e,
26
+ $fontWeight: r,
27
+ $letterSpacing: a,
28
+ $lineSpacing: p,
29
+ $lineSpacingSm: $,
30
+ $size: m,
31
+ $sizeMd: S,
32
+ $sizeSm: f,
33
+ ref: l,
34
+ ...c,
35
+ children: n
36
+ }
37
+ );
38
+ });
39
+ export {
40
+ h as Span
41
+ };
@@ -1 +1,47 @@
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 g } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { b as z } from "../../../styles-B64DVBIF.mjs";
4
+ const F = y(function({
5
+ bgGradient: t,
6
+ children: e,
7
+ className: i,
8
+ color: r,
9
+ display: o,
10
+ fontFamily: $,
11
+ fontWeight: n,
12
+ letterSpacing: a,
13
+ lineSpacing: l,
14
+ lineSpacingSm: m,
15
+ size: f,
16
+ sizeMd: p,
17
+ sizeSm: s,
18
+ textFill: c,
19
+ wordBreak: d,
20
+ ...x
21
+ }, S) {
22
+ return /* @__PURE__ */ g(
23
+ z,
24
+ {
25
+ $bgGradient: t,
26
+ $color: r,
27
+ $display: o,
28
+ $fontFamily: $,
29
+ $fontWeight: n,
30
+ $letterSpacing: a,
31
+ $lineSpacing: l,
32
+ $lineSpacingSm: m,
33
+ $size: f,
34
+ $sizeMd: p,
35
+ $sizeSm: s,
36
+ $textFill: c,
37
+ $wordBreak: d,
38
+ className: i,
39
+ ref: S,
40
+ ...x,
41
+ children: e
42
+ }
43
+ );
44
+ });
45
+ export {
46
+ F as Text
47
+ };
@@ -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 n, jsxs as s } from "react/jsx-runtime";
2
+ import { styled as e } from "styled-components";
3
+ import { Button as d } from "../button/index.js";
4
+ const l = e.form`
5
+ ${({ theme: i }) => `
6
+ align-items: center;
7
+ background: ${i.palette.gray[50]};
8
+ backdrop-filter: blur(11px);
9
+ border-radius: ${i.spacing[1]};
10
+ box-shadow: ${i.shadows.md};
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: center;
14
+ padding: ${i.spacing[3]} ${i.spacing[2]};
15
+ width: 628px;
16
+
17
+ &::before {
18
+ background: ${i.palette.gradients["02"]} border-box;
19
+ border-radius: ${i.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: ${i.breakpoints.mobile}) {
29
+ width: 320px;
30
+ }
31
+ `}
32
+ `, c = 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: i }) => i.spacing[1.5]};
9
38
 
10
39
  button[type="submit"] {
11
40
  width: 100%;
@@ -14,6 +43,38 @@
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
+ `, x = e.div`
47
+ ${({ theme: i }) => `
48
+ align-items: flex-start;
49
+ align-self: stretch;
50
+ container-type: inline-size;
51
+ display: flex;
52
+ flex-direction: row;
53
+ gap: ${i.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: ${i.breakpoints.mobile}) {
64
+ flex-direction: column;
65
+ }
66
+ `}
67
+ `, g = ({
68
+ children: i,
69
+ name: t,
70
+ onSubmit: r,
71
+ submitDisabled: a,
72
+ submitLabel: o = "Submit"
73
+ }) => /* @__PURE__ */ n(l, { "aria-label": t, name: t, onSubmit: r, children: /* @__PURE__ */ s(c, { children: [
74
+ i,
75
+ /* @__PURE__ */ n(d, { disabled: a, type: "submit", children: o })
76
+ ] }) });
77
+ export {
78
+ x as FormItem,
79
+ g as WebForm
80
+ };
@@ -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-CgAF78h3.mjs";
2
+ import { u as s } from "../use-click-outside-BUll8Ag-.mjs";
3
+ import { u as l } from "../use-cloudinary-image-BCxwj15o.mjs";
4
+ import { u as t, a as f } from "../use-search-Dj47QDw9.mjs";
5
+ import { u as x } from "../use-modal-CtgexKnf.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,234 @@
1
+ import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
+ import { styled as i } 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 = i.a`
9
+ ${({ theme: a }) => `
10
+ align-items: center;
11
+ display: flex;
12
+ background: ${a.palette.white};
13
+ border-radius: ${a.spacing[0.5]};
14
+ cursor: pointer;
15
+ gap: ${a.spacing[1]};
16
+ padding:
17
+ ${a.spacing[0.5]}
18
+ ${a.spacing[1]}
19
+ ${a.spacing[0.5]}
20
+ ${a.spacing[0.5]};
21
+ width: 1143px;
22
+
23
+ &:hover {
24
+ background: ${a.palette.gray[100]};
25
+
26
+ > div.icon-wrap {
27
+ background: ${a.palette.gradients["01"]};
28
+
29
+ path {
30
+ fill: ${a.palette.white};
31
+ }
32
+ }
33
+ }
34
+
35
+ @media screen
36
+ and (min-width: ${a.breakpoints.sm})
37
+ and (max-width: ${a.breakpoints.md})
38
+ {
39
+ width: 905px;
40
+ }
41
+
42
+ @media screen
43
+ and (min-width: 40em)
44
+ and (max-width: ${a.breakpoints.sm})
45
+ {
46
+ width: 475px;
47
+ }
48
+
49
+ @media screen and (max-width: 40em) {
50
+ width: 270px;
51
+ }
52
+ `}
53
+ `, $ = i.div.attrs({ className: "icon-wrap" })`
54
+ ${({ theme: a }) => `
55
+ align-items: center;
56
+ background: ${a.palette.primary[25]};
57
+ border-radius: ${a.spacing[0.25]};
58
+ display: flex;
59
+ justify-content: center;
60
+ min-width: ${a.spacing[2.5]};
61
+ height: ${a.spacing[2.5]};
62
+ padding: ${a.spacing[0.5]};
63
+
64
+ span {
65
+ font-size: 20px;
66
+ }
67
+ `}
68
+ `, k = i.div`
69
+ ${({ theme: a }) => `
70
+ align-items: flex-start;
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: ${a.spacing[1.5]};
74
+ width: 1193px;
75
+
76
+ > :is(form, .dropdown) {
77
+ border-radius: ${a.spacing[0.5]};
78
+ border: 1px solid ${a.palette.gray[200]};
79
+ background-color: ${a.palette.white};
80
+ }
81
+
82
+ @media screen
83
+ and (min-width: ${a.breakpoints.sm})
84
+ and (max-width: ${a.breakpoints.md})
85
+ {
86
+ width: 954px;
87
+ }
88
+
89
+ @media screen
90
+ and (min-width: 40em)
91
+ and (max-width: ${a.breakpoints.sm})
92
+ {
93
+ width: 526px;
94
+ }
95
+
96
+ @media screen and (max-width: 40em) {
97
+ width: 320px;
98
+ }
99
+ `}
100
+ `, h = i.form`
101
+ ${({ theme: a }) => `
102
+ align-items: center;
103
+ display: flex;
104
+ gap: ${a.spacing[0.5]};
105
+ justify-content: space-between;
106
+ padding: ${a.spacing[1]} ${a.spacing[1.5]};
107
+ width: 100%;
108
+ `}
109
+ `, S = i.input`
110
+ ${({ theme: a }) => `
111
+ flex: 1 0 0;
112
+ border: none;
113
+ color: ${a.palette.gray[600]};
114
+ font-family: ${a.typography.type.primary};
115
+ font-size: ${a.typography.text.md};
116
+ font-weight: ${a.typography.weight.regular};
117
+ line-height: ${a.spacing[1.5]};
118
+ outline: none;
119
+
120
+ &::placeholder {
121
+ color: ${a.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: ${a.breakpoints.mobile}) {
132
+ font-size: ${a.typography.text.sm};
133
+ }
134
+ `}
135
+ `, v = i.button`
136
+ ${({ theme: a }) => `
137
+ align-items: center;
138
+ border-radius: ${a.spacing[0.5]};
139
+ display: flex;
140
+ width: ${a.spacing[2.5]};
141
+ height: ${a.spacing[2.5]};
142
+ padding: ${a.spacing[0.625]} ${a.spacing[1]};
143
+ justify-content: center;
144
+ gap: ${a.spacing[0.5]};
145
+ flex-shrink: 0;
146
+
147
+ span {
148
+ color: ${a.palette.gray[400]};
149
+ }
150
+
151
+ &:hover {
152
+ background-color: ${a.palette.gray[100]};
153
+ }
154
+ `}
155
+ `, z = i.div.attrs({ className: "dropdown" })`
156
+ ${({ theme: a, $empty: r = !1, $showHits: n = !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: ${a.spacing[0.5]};
164
+ max-height: ${n ? "270px" : "500px"};
165
+ overflow: hidden auto;
166
+ padding: ${a.spacing[1.5]};
167
+ scrollbar-color: ${a.palette.gray[600]} ${a.palette.gray[100]};
168
+ scroll-padding: ${a.spacing[0.5]};
169
+ scrollbar-width: thin;
170
+
171
+ @media screen and (max-width: ${a.breakpoints.sm}) and (${!r}) {
172
+ max-height: 410px;
173
+ }
174
+ ${r && `
175
+ @media screen and (min-width: ${a.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: ${a.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: ${a.spacing[0.5]};
187
+ width: ${a.spacing[0.5]};
188
+ }
189
+ &::-webkit-scrollbar-track {
190
+ background: ${a.palette.gray[100]};
191
+ }
192
+ &::-webkit-scrollbar-thumb {
193
+ background-color: ${a.palette.gray[600]};
194
+ border-radius: ${a.spacing[5]};
195
+ height: ${a.spacing[0.5]};
196
+ }
197
+ `}
198
+ `, I = ({
199
+ hit: a,
200
+ icon: r = "infinity",
201
+ showIcon: n = !1
202
+ }) => {
203
+ const { slug: t, title: e } = a, o = String(t).startsWith("/pages/") ? String(t).replace("/pages/", "/") : String(t);
204
+ return /* @__PURE__ */ p(g, { href: o, rel: "nofollow noopener noreferrer", children: [
205
+ n && /* @__PURE__ */ s($, { children: /* @__PURE__ */ s(
206
+ c,
207
+ {
208
+ icon: r,
209
+ iconClass: "fill-gradient-01",
210
+ iconSize: "sm",
211
+ iconType: "fa-light"
212
+ }
213
+ ) }),
214
+ /* @__PURE__ */ s(
215
+ l,
216
+ {
217
+ color: d.palette.gray[800],
218
+ lineSpacing: 1.5,
219
+ size: "md",
220
+ sizeSm: "sm",
221
+ whiteSpace: "wrap",
222
+ children: String(e)
223
+ }
224
+ )
225
+ ] });
226
+ };
227
+ export {
228
+ I,
229
+ k as S,
230
+ h as a,
231
+ S as b,
232
+ v as c,
233
+ z as d
234
+ };
@@ -0,0 +1,135 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { styled as r } from "styled-components";
3
+ import "./components/typography/heading/index.js";
4
+ import "./components/typography/span/index.js";
5
+ import { Text as n } from "./components/typography/text/index.js";
6
+ const p = r.button`
7
+ ${({ theme: o }) => `
8
+ align-items: center;
9
+ border-left: 3px solid transparent;
10
+ display: flex;
11
+ gap: ${o.spacing[0.625]};
12
+ height: 42px;
13
+ min-width: 50px;
14
+ padding: ${o.spacing[0.625]} ${o.spacing[1]};
15
+
16
+ &.dark {
17
+ background-color: ${o.palette.gray[800]};
18
+ color: ${o.palette.gray[25]};
19
+
20
+ &.disabled {
21
+ border-color: ${o.palette.gray[500]};
22
+ color: ${o.palette.gray[500]};
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ &:hover:not(.disabled) {
27
+ background-color: ${o.palette.gray[700]};
28
+ border-color: ${o.palette.primary[400]};
29
+ }
30
+ }
31
+
32
+ &.light {
33
+ background-color: ${o.palette.gray[50]};
34
+ color: ${o.palette.gray[800]};
35
+
36
+ &.disabled {
37
+ background-color: ${o.palette.white};
38
+ border-color: ${o.palette.gray[300]};
39
+ color: ${o.palette.gray[300]};
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ &:hover:not(.disabled) {
44
+ background-color: ${o.palette.gray[100]};
45
+ border-color: ${o.palette.primary[400]};
46
+ }
47
+ }
48
+ `}
49
+ `, $ = r.div`
50
+ ${({ theme: o }) => `
51
+ align-items: center;
52
+ background-color: transparent;
53
+ border-bottom: 2px solid transparent;
54
+ display: flex;
55
+ font-family: ${o.typography.type.primary};
56
+ font-size: ${o.typography.text.sm};
57
+ font-weight: ${o.typography.weight.regular};
58
+ gap: ${o.spacing[0.5]};
59
+ height: 30px;
60
+ justify-content: center;
61
+ padding: ${o.spacing[0.25]};
62
+ margin-bottom: ${o.spacing[0.25]};
63
+ min-width: 50px;
64
+ width: max-content;
65
+ z-index: 11;
66
+
67
+ &:hover {
68
+ border-color: ${o.palette.primary[400]};
69
+ }
70
+
71
+ &.dark {
72
+ color: ${o.palette.gray[25]};
73
+ }
74
+
75
+ &.light {
76
+ color: ${o.palette.gray[800]};
77
+ }
78
+ `}
79
+ `, y = r.div`
80
+ ${({ theme: o }) => `
81
+ background-color: ${o.palette.white};
82
+ border-radius: 0 0 ${o.spacing[0.25]} ${o.spacing[0.25]};
83
+ box-shadow: ${o.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 ${o.spacing[0.25]} ${o.spacing[0.25]};
92
+ }
93
+ `}
94
+ `, b = r.div`
95
+ ${({ theme: o }) => `
96
+ align-items: flex-start;
97
+ cursor: pointer;
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: ${o.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: ${o.palette.primary[400]};
109
+ }
110
+
111
+ > div:last-child {
112
+ display: flex;
113
+ }
114
+ }
115
+ `}
116
+ `, x = ({
117
+ disabled: o = !1,
118
+ mode: t,
119
+ onClick: i,
120
+ text: l
121
+ }) => /* @__PURE__ */ a(
122
+ p,
123
+ {
124
+ className: `${o && "disabled"} ${t}`,
125
+ disabled: o,
126
+ onClick: i,
127
+ children: /* @__PURE__ */ a(n, { color: "inherit", size: "sm", sizeSm: "xs", children: l })
128
+ }
129
+ );
130
+ export {
131
+ x as I,
132
+ b as S,
133
+ $ as a,
134
+ y as b
135
+ };