@fluidattacks/design 3.1.12 → 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 (172) hide show
  1. package/dist/components/@core/index.js +2 -2
  2. package/dist/components/accordion/accordion-content/index.js +18 -5
  3. package/dist/components/accordion/index.js +71 -14
  4. package/dist/components/alert/index.js +108 -57
  5. package/dist/components/button/index.js +64 -13
  6. package/dist/components/card/card-header/index.js +78 -9
  7. package/dist/components/card/card-with-image/index.js +88 -13
  8. package/dist/components/card/card-with-input/index.js +72 -23
  9. package/dist/components/card/card-with-selector/index.js +63 -8
  10. package/dist/components/card/card-with-switch/index.js +46 -8
  11. package/dist/components/carousel/index.js +54 -28
  12. package/dist/components/checkbox/index.js +66 -32
  13. package/dist/components/cloud-image/index.js +2 -2
  14. package/dist/components/code-snippet/index.js +64 -19
  15. package/dist/components/code-snippet/location-code/index.js +146 -100
  16. package/dist/components/colors/index.js +220 -5
  17. package/dist/components/confirm-dialog/index.js +41 -18
  18. package/dist/components/container/index.js +39 -15
  19. package/dist/components/content-card/category-tag/index.js +37 -8
  20. package/dist/components/content-card/event-date/index.js +53 -10
  21. package/dist/components/content-card/index.js +118 -13
  22. package/dist/components/content-card-carousel/index.js +87 -7
  23. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  24. package/dist/components/divider/index.js +22 -7
  25. package/dist/components/empty-state/empty-button/index.js +4 -4
  26. package/dist/components/empty-state/index.js +52 -15
  27. package/dist/components/file-preview/index.js +28 -12
  28. package/dist/components/form/index.js +46 -9
  29. package/dist/components/grid-container/index.js +31 -11
  30. package/dist/components/group-selector/index.js +126 -17
  31. package/dist/components/group-selector/option-container/index.js +1 -1
  32. package/dist/components/icon/index.js +78 -18
  33. package/dist/components/icon-button/index.js +63 -14
  34. package/dist/components/indicator-card/index.js +70 -11
  35. package/dist/components/info-sidebar/index.js +107 -7
  36. package/dist/components/inputs/fields/combobox/index.js +141 -21
  37. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  38. package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
  39. package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
  40. package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
  41. package/dist/components/inputs/fields/date/calendar/index.js +26 -11
  42. package/dist/components/inputs/fields/date/index.js +65 -15
  43. package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
  44. package/dist/components/inputs/fields/date-range/index.js +98 -18
  45. package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
  46. package/dist/components/inputs/fields/date-time/index.js +65 -14
  47. package/dist/components/inputs/fields/editable/index.js +22 -10
  48. package/dist/components/inputs/fields/input/index.js +74 -10
  49. package/dist/components/inputs/fields/input-file/index.js +114 -21
  50. package/dist/components/inputs/fields/input-tags/index.js +60 -11
  51. package/dist/components/inputs/fields/number/index.js +54 -7
  52. package/dist/components/inputs/fields/number-range/index.js +46 -8
  53. package/dist/components/inputs/fields/phone/index.js +446 -286
  54. package/dist/components/inputs/fields/text-area/index.js +78 -10
  55. package/dist/components/inputs/label/index.js +34 -8
  56. package/dist/components/inputs/outline-container/index.js +98 -12
  57. package/dist/components/inputs/utils/action-button/index.js +28 -7
  58. package/dist/components/inputs/utils/calendar-button/index.js +34 -10
  59. package/dist/components/inputs/utils/date-selector/index.js +60 -6
  60. package/dist/components/inputs/utils/date-time-field/index.js +129 -28
  61. package/dist/components/inputs/utils/dialog/index.js +10 -7
  62. package/dist/components/inputs/utils/number-field/index.js +81 -8
  63. package/dist/components/inputs/utils/popover/index.js +41 -10
  64. package/dist/components/interactive-card/icon/index.js +1 -1
  65. package/dist/components/interactive-card/index.js +110 -7
  66. package/dist/components/language-selector/index.js +34 -10
  67. package/dist/components/language-selector/item-list/index.js +1 -1
  68. package/dist/components/link/index.js +71 -17
  69. package/dist/components/list-item/index.js +64 -13
  70. package/dist/components/little-flag/index.js +26 -9
  71. package/dist/components/loading/index.js +48 -21
  72. package/dist/components/logo/index.js +10 -4
  73. package/dist/components/logo-carousel/index.js +40 -5
  74. package/dist/components/lottie/index.js +12 -7
  75. package/dist/components/menu/index.js +53 -9
  76. package/dist/components/message-banner/index.js +79 -13
  77. package/dist/components/modal/index.js +59 -13
  78. package/dist/components/modal/modal-confirm/index.js +48 -7
  79. package/dist/components/modal/modal-footer/index.js +22 -13
  80. package/dist/components/modal/modal-header/index.js +45 -19
  81. package/dist/components/notification/index.js +65 -20
  82. package/dist/components/notification-sign/index.js +27 -10
  83. package/dist/components/number-input/index.js +58 -21
  84. package/dist/components/oauth-selector/index.js +97 -23
  85. package/dist/components/oauth-selector/option-container/index.js +68 -7
  86. package/dist/components/plan-card/index.js +99 -28
  87. package/dist/components/plan-card/recommended-tag/index.js +23 -2
  88. package/dist/components/pop-up/description/index.js +47 -9
  89. package/dist/components/pop-up/index.js +146 -17
  90. package/dist/components/premium-feature/index.js +56 -16
  91. package/dist/components/priority-score/index.js +24 -9
  92. package/dist/components/progress/index.js +30 -17
  93. package/dist/components/progress-bar/index.js +99 -41
  94. package/dist/components/radio-button/index.js +64 -27
  95. package/dist/components/scroll-button/index.js +33 -15
  96. package/dist/components/search/index.js +77 -35
  97. package/dist/components/search-bar/index.js +211 -24
  98. package/dist/components/search-bar/item-searching/index.js +1 -1
  99. package/dist/components/severity-badge/index.js +66 -6
  100. package/dist/components/severity-overview/badge/index.js +62 -11
  101. package/dist/components/severity-overview/index.js +15 -5
  102. package/dist/components/show-on-hover/index.js +16 -10
  103. package/dist/components/slide-out-menu/index.js +2611 -1164
  104. package/dist/components/slide-out-menu/menu-item/index.js +58 -6
  105. package/dist/components/slider/index.js +79 -48
  106. package/dist/components/slider/thumb/index.js +13 -6
  107. package/dist/components/step-lapse/index.js +81 -23
  108. package/dist/components/table-button/index.js +65 -24
  109. package/dist/components/tabs/fixed-tabs/index.js +24 -4
  110. package/dist/components/tabs/index.js +54 -11
  111. package/dist/components/tabs/tab/index.js +37 -6
  112. package/dist/components/tag/index.js +95 -27
  113. package/dist/components/timeline/card/index.js +1 -1
  114. package/dist/components/timeline/index.js +15 -5
  115. package/dist/components/toggle/index.js +65 -25
  116. package/dist/components/toggle-buttons/index.js +51 -22
  117. package/dist/components/tooltip/index.js +1 -1
  118. package/dist/components/tour/index.js +3897 -1829
  119. package/dist/components/typography/heading/index.js +43 -5
  120. package/dist/components/typography/span/index.js +38 -6
  121. package/dist/components/typography/text/index.js +44 -6
  122. package/dist/components/web-form/index.js +28 -19
  123. package/dist/hooks/index.js +5 -5
  124. package/dist/index-BMHVi812.mjs +234 -0
  125. package/dist/index-BzAniA2J.mjs +135 -0
  126. package/dist/index-C6LbClYh.mjs +146 -0
  127. package/dist/index-CAIe8hBv.mjs +130 -0
  128. package/dist/index-CUQBAqt_.mjs +75 -0
  129. package/dist/index-CWlrSlUk.mjs +68 -0
  130. package/dist/index-Ckmu1TfV.mjs +86 -0
  131. package/dist/index-DwznImvK.mjs +1678 -0
  132. package/dist/index-maWH3JYC.mjs +3561 -0
  133. package/dist/index.js +11 -11
  134. package/dist/styles-B2N0JLw1.mjs +114 -0
  135. package/dist/styles-B64DVBIF.mjs +115 -0
  136. package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
  137. package/dist/styles-BZQOqe8p.mjs +141 -0
  138. package/dist/styles-Bdque9TT.mjs +65 -0
  139. package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
  140. package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
  141. package/dist/styles-CplEd2kw.mjs +228 -0
  142. package/dist/styles-D1eTIklB.mjs +110 -0
  143. package/dist/styles-ePGii_9g.mjs +74 -0
  144. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  145. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  146. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  147. package/dist/use-modal-CtgexKnf.mjs +14 -0
  148. package/dist/use-search-Dj47QDw9.mjs +15 -0
  149. package/dist/utils-V0EumEPM.mjs +6 -0
  150. package/package.json +1 -3
  151. package/dist/index-38JqtnAI.mjs +0 -122
  152. package/dist/index-B5yoGFs6.mjs +0 -54
  153. package/dist/index-BLbKylyw.mjs +0 -209
  154. package/dist/index-Bu448Tz2.mjs +0 -106
  155. package/dist/index-BwFnfaRh.mjs +0 -2310
  156. package/dist/index-Co_k0WFk.mjs +0 -75
  157. package/dist/index-Cu7uUMlx.mjs +0 -82
  158. package/dist/index-D-lcuEHY.mjs +0 -1018
  159. package/dist/index-DrfjITyT.mjs +0 -61
  160. package/dist/styles-7_q7nHce.mjs +0 -110
  161. package/dist/styles-BA0WIQL-.mjs +0 -74
  162. package/dist/styles-C3cZmKVJ.mjs +0 -131
  163. package/dist/styles-D85YYIjM.mjs +0 -131
  164. package/dist/styles-EIbGRPlk.mjs +0 -106
  165. package/dist/styles-Q1VXuWI7.mjs +0 -65
  166. package/dist/styles-fH2c4cfc.mjs +0 -77
  167. package/dist/use-carousel-CvRxi2FI.mjs +0 -17
  168. package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
  169. package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
  170. package/dist/use-modal-CkrZ-_-M.mjs +0 -14
  171. package/dist/use-search-DpLNvt7Q.mjs +0 -12
  172. package/dist/utils-CQvBF-wY.mjs +0 -4
@@ -1,12 +1,85 @@
1
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as h } from "react";
3
- import { useTheme as x } from "styled-components";
4
- import { S as g } from "../../../../styles-lSVV9kjn.mjs";
5
- import { ActionButton as n } from "../action-button/index.js";
6
- import { Icon as v } from "../../../icon/index.js";
7
- const N = ({ error: i, decimalPlaces: a = 0, disabled: e = !1, max: t = 1 / 0, min: l = 0, name: m = "input-number", placeholder: d, ref: c, required: p, value: s, ...u }) => {
8
- const o = x(), b = h(() => a < 0 ? 0 : a, [a]);
9
- return f(g, { className: `${e ? "disabled" : ""} ${i ? "error" : ""}`, children: [r("input", { "aria-hidden": !1, "aria-invalid": i ? "true" : "false", "aria-label": m, "aria-required": p, autoComplete: "off", disabled: e, max: t, min: l, placeholder: d, ref: c, required: void 0, step: 10 ** -b, type: "number", value: /^-?\d+/u.test(String(s)) ? s : "", ...u }), i && r(v, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: o.palette.error[500], iconSize: "xs" }), r(n, { borderLeft: "inherit", borderRight: "inherit", disabled: e, icon: "minus", margin: "0 -0.625rem 0 0", px: 0.75, py: 0.75 }), r(n, { borderRadius: `0 ${o.spacing[0.5]} ${o.spacing[0.5]} 0`, disabled: e, icon: "plus", px: 0.75, py: 0.75 })] });
3
+ import { useTheme as b } from "styled-components";
4
+ import { S as g } from "../../../../styles-BXFVwnWT.mjs";
5
+ import { ActionButton as m } from "../action-button/index.js";
6
+ import { Icon as y } from "../../../icon/index.js";
7
+ const N = ({
8
+ error: i,
9
+ decimalPlaces: o = 0,
10
+ disabled: r = !1,
11
+ max: a = 1 / 0,
12
+ min: p = 0,
13
+ name: s = "input-number",
14
+ placeholder: u,
15
+ ref: c,
16
+ required: f,
17
+ value: n,
18
+ ...l
19
+ }) => {
20
+ const t = b(), d = h(
21
+ () => o < 0 ? 0 : o,
22
+ [o]
23
+ );
24
+ return /* @__PURE__ */ x(
25
+ g,
26
+ {
27
+ className: `${r ? "disabled" : ""} ${i ? "error" : ""}`,
28
+ children: [
29
+ /* @__PURE__ */ e(
30
+ "input",
31
+ {
32
+ "aria-hidden": !1,
33
+ "aria-invalid": i ? "true" : "false",
34
+ "aria-label": s,
35
+ "aria-required": f,
36
+ autoComplete: "off",
37
+ disabled: r,
38
+ max: a,
39
+ min: p,
40
+ placeholder: u,
41
+ ref: c,
42
+ required: void 0,
43
+ step: 10 ** -d,
44
+ type: "number",
45
+ value: /^-?\d+/u.test(String(n)) ? n : "",
46
+ ...l
47
+ }
48
+ ),
49
+ i && /* @__PURE__ */ e(
50
+ y,
51
+ {
52
+ icon: "exclamation-circle",
53
+ iconClass: "error-icon",
54
+ iconColor: t.palette.error[500],
55
+ iconSize: "xs"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ e(
59
+ m,
60
+ {
61
+ borderLeft: "inherit",
62
+ borderRight: "inherit",
63
+ disabled: r,
64
+ icon: "minus",
65
+ margin: "0 -0.625rem 0 0",
66
+ px: 0.75,
67
+ py: 0.75
68
+ }
69
+ ),
70
+ /* @__PURE__ */ e(
71
+ m,
72
+ {
73
+ borderRadius: `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0`,
74
+ disabled: r,
75
+ icon: "plus",
76
+ px: 0.75,
77
+ py: 0.75
78
+ }
79
+ )
80
+ ]
81
+ }
82
+ );
10
83
  };
11
84
  export {
12
85
  N as NumberField
@@ -1,13 +1,44 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { useRef as v, useCallback as g } from "react";
3
- import { usePopover as m, Overlay as R } from "react-aria";
4
- const P = ({ className: o, children: p, isFilter: f = !1, popoverRef: t, state: a, triggerRef: e, ...c }) => {
5
- var n;
6
- const s = v(null), r = (n = e == null ? void 0 : e.current) == null ? void 0 : n.getBoundingClientRect(), { popoverProps: i } = m({ ...c, popoverRef: t ?? s, triggerRef: e }, a), d = g((u) => {
7
- u.preventDefault();
8
- }, []);
9
- return l(R, { children: l("div", { ...i, className: o, onPointerDown: f ? d : void 0, ref: t ?? s, style: { ...i.style, ...o === "dropdown" ? { display: "flex", justifyContent: "center", width: r == null ? void 0 : r.width } : {} }, children: p }) });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useRef as m, useCallback as y } from "react";
3
+ import { usePopover as P, Overlay as a } from "react-aria";
4
+ const C = ({
5
+ className: e,
6
+ children: d,
7
+ isFilter: u = !1,
8
+ popoverRef: t,
9
+ state: i,
10
+ triggerRef: o,
11
+ ...c
12
+ }) => {
13
+ var p;
14
+ const s = m(null), n = (p = o == null ? void 0 : o.current) == null ? void 0 : p.getBoundingClientRect(), { popoverProps: l } = P(
15
+ { ...c, popoverRef: t ?? s, triggerRef: o },
16
+ i
17
+ ), v = y(
18
+ (f) => {
19
+ f.preventDefault();
20
+ },
21
+ []
22
+ );
23
+ return /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(
24
+ "div",
25
+ {
26
+ ...l,
27
+ className: e,
28
+ onPointerDown: u ? v : void 0,
29
+ ref: t ?? s,
30
+ style: {
31
+ ...l.style,
32
+ ...e === "dropdown" ? {
33
+ display: "flex",
34
+ justifyContent: "center",
35
+ width: n == null ? void 0 : n.width
36
+ } : {}
37
+ },
38
+ children: d
39
+ }
40
+ ) });
10
41
  };
11
42
  export {
12
- P as Popover
43
+ C as Popover
13
44
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { a as p } from "../../../index-Co_k0WFk.mjs";
2
+ import { a as p } from "../../../index-Ckmu1TfV.mjs";
3
3
  import "../../colors/index.js";
4
4
  import "../../icon/index.js";
5
5
  export {
@@ -1,15 +1,118 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { useTheme as d } from "styled-components";
3
- import { I as h, a as f } from "../../index-Co_k0WFk.mjs";
2
+ import { useTheme as p } from "styled-components";
3
+ import { I as h, a as f } from "../../index-Ckmu1TfV.mjs";
4
4
  import { Button as g } from "../button/index.js";
5
5
  import { Container as o } from "../container/index.js";
6
- import { Heading as a } from "../typography/heading/index.js";
6
+ import { Heading as r } from "../typography/heading/index.js";
7
7
  import "../typography/span/index.js";
8
8
  import { Text as l } from "../typography/text/index.js";
9
- const j = ({ category: r, description: s, href: c, icon: m, location: p, title: n }) => {
10
- const i = d();
11
- return t(h, { children: [t(o, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 1.5, height: "100%", id: "uncover", justify: "space-between", children: [t("div", { className: "flex flex-col gap-0.5", children: [e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: r }), e(a, { color: i.palette.white, fontWeight: "bold", lineSpacing: 2.25, lineSpacingSm: 1.75, size: "lg", sizeSm: "md", children: n })] }), t("div", { className: "flex flex-col gap-0.5", children: [e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: "Location" }), e(l, { color: i.palette.white, fontWeight: "bold", lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: p })] })] }), t(o, { alignItems: "self-start", display: "flex", flexDirection: "column", gap: 2, height: "100%", id: "hovered", justify: "space-between", pt: 1, children: [e(a, { color: i.palette.white, fontWeight: "bold", lineSpacing: 1.75, lineSpacingSm: 1.5, size: "md", sizeSm: "sm", children: n }), t("div", { className: "flex flex-col gap-8", children: [e(l, { color: i.palette.gray[100], lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: s }), e(g, { external: !0, href: c, variant: "link", width: "max-content", children: "Download now" })] })] }), e(f, { icon: m })] });
9
+ const y = ({
10
+ category: a,
11
+ description: c,
12
+ href: m,
13
+ icon: s,
14
+ location: d,
15
+ title: n
16
+ }) => {
17
+ const i = p();
18
+ return /* @__PURE__ */ t(h, { children: [
19
+ /* @__PURE__ */ t(
20
+ o,
21
+ {
22
+ alignItems: "flex-start",
23
+ display: "flex",
24
+ flexDirection: "column",
25
+ gap: 1.5,
26
+ height: "100%",
27
+ id: "uncover",
28
+ justify: "space-between",
29
+ children: [
30
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5", children: [
31
+ /* @__PURE__ */ e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: a }),
32
+ /* @__PURE__ */ e(
33
+ r,
34
+ {
35
+ color: i.palette.white,
36
+ fontWeight: "bold",
37
+ lineSpacing: 2.25,
38
+ lineSpacingSm: 1.75,
39
+ size: "lg",
40
+ sizeSm: "md",
41
+ children: n
42
+ }
43
+ )
44
+ ] }),
45
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-0.5", children: [
46
+ /* @__PURE__ */ e(l, { color: i.palette.white, size: "sm", sizeSm: "xs", children: "Location" }),
47
+ /* @__PURE__ */ e(
48
+ l,
49
+ {
50
+ color: i.palette.white,
51
+ fontWeight: "bold",
52
+ lineSpacing: 1.5,
53
+ lineSpacingSm: 1.25,
54
+ size: "md",
55
+ sizeSm: "sm",
56
+ children: d
57
+ }
58
+ )
59
+ ] })
60
+ ]
61
+ }
62
+ ),
63
+ /* @__PURE__ */ t(
64
+ o,
65
+ {
66
+ alignItems: "self-start",
67
+ display: "flex",
68
+ flexDirection: "column",
69
+ gap: 2,
70
+ height: "100%",
71
+ id: "hovered",
72
+ justify: "space-between",
73
+ pt: 1,
74
+ children: [
75
+ /* @__PURE__ */ e(
76
+ r,
77
+ {
78
+ color: i.palette.white,
79
+ fontWeight: "bold",
80
+ lineSpacing: 1.75,
81
+ lineSpacingSm: 1.5,
82
+ size: "md",
83
+ sizeSm: "sm",
84
+ children: n
85
+ }
86
+ ),
87
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-8", children: [
88
+ /* @__PURE__ */ e(
89
+ l,
90
+ {
91
+ color: i.palette.gray[100],
92
+ lineSpacing: 1.5,
93
+ lineSpacingSm: 1.25,
94
+ size: "md",
95
+ sizeSm: "sm",
96
+ children: c
97
+ }
98
+ ),
99
+ /* @__PURE__ */ e(
100
+ g,
101
+ {
102
+ external: !0,
103
+ href: m,
104
+ variant: "link",
105
+ width: "max-content",
106
+ children: "Download now"
107
+ }
108
+ )
109
+ ] })
110
+ ]
111
+ }
112
+ ),
113
+ /* @__PURE__ */ e(f, { icon: s })
114
+ ] });
12
115
  };
13
116
  export {
14
- j as InteractiveCard
117
+ y as InteractiveCard
15
118
  };
@@ -1,13 +1,37 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useState as x, useCallback as d } from "react";
3
- import { S as p, a as h, b, I as f } from "../../index-38JqtnAI.mjs";
4
- import { Icon as g } from "../icon/index.js";
5
- const S = [{ text: "EN" }, { text: "ES" }], E = ({ items: r, handleClick: a, mode: s = "light" }) => {
6
- const o = r ?? S, [c, l] = x(o[0].text), m = d((e) => () => {
7
- a(e.text), l(e.text);
8
- }, [a]);
9
- return i(p, { children: [i(h, { className: s, children: [t(g, { icon: "globe", iconSize: "xs", iconType: "fa-light" }), c] }), t(b, { children: o.map((e, n) => t(f, { disabled: e.disabled, mode: s, onClick: m(e), text: e.text }, `${e.text}_${n}`)) })] });
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { useState as x, useCallback as p } from "react";
3
+ import { S, a as m, b as f, I as g } from "../../index-BzAniA2J.mjs";
4
+ import { Icon as b } from "../icon/index.js";
5
+ const u = [{ text: "EN" }, { text: "ES" }], j = ({
6
+ items: n,
7
+ handleClick: o,
8
+ mode: s = "light"
9
+ }) => {
10
+ const c = n ?? u, [a, r] = x(c[0].text), i = p(
11
+ (t) => () => {
12
+ o(t.text), r(t.text);
13
+ },
14
+ [o]
15
+ );
16
+ return /* @__PURE__ */ l(S, { children: [
17
+ /* @__PURE__ */ l(m, { className: s, children: [
18
+ /* @__PURE__ */ e(b, { icon: "globe", iconSize: "xs", iconType: "fa-light" }),
19
+ a
20
+ ] }),
21
+ /* @__PURE__ */ e(f, { children: c.map(
22
+ (t, d) => /* @__PURE__ */ e(
23
+ g,
24
+ {
25
+ disabled: t.disabled,
26
+ mode: s,
27
+ onClick: i(t),
28
+ text: t.text
29
+ },
30
+ `${t.text}_${d}`
31
+ )
32
+ ) })
33
+ ] });
10
34
  };
11
35
  export {
12
- E as LanguageSelector
36
+ j as LanguageSelector
13
37
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { I as e } from "../../../index-38JqtnAI.mjs";
2
+ import { I as e } from "../../../index-BzAniA2J.mjs";
3
3
  import "../../typography/heading/index.js";
4
4
  import "../../typography/span/index.js";
5
5
  import "../../typography/text/index.js";
@@ -1,22 +1,27 @@
1
- import { jsxs as d, jsx as g } from "react/jsx-runtime";
2
- import { Link as m } from "react-router-dom";
3
- import { css as f, styled as p } from "styled-components";
4
- import { v as $ } from "../../utils-CQvBF-wY.mjs";
1
+ import { jsxs as p, jsx as g } from "react/jsx-runtime";
2
+ import { Link as y } from "react-router-dom";
3
+ import { css as u, styled as s } from "styled-components";
4
+ import { v as $ } from "../../utils-V0EumEPM.mjs";
5
5
  import { Icon as w } from "../icon/index.js";
6
- const { getVariant: v } = $((r) => ({ highRelevance: `
6
+ const { getVariant: m } = $(
7
+ (r) => ({
8
+ highRelevance: `
7
9
  color: ${r.palette.primary[500]};
8
10
 
9
11
  &:hover:not([disabled]) {
10
12
  color: ${r.palette.primary[400]};
11
13
  }
12
- `, lowRelevance: `
14
+ `,
15
+ lowRelevance: `
13
16
  color: ${r.palette.gray[800]};
14
17
 
15
18
  &:hover:not([disabled]) {
16
19
  color: ${r.palette.gray[500]};
17
20
  }
18
- ` })), s = f`
19
- ${({ theme: r, $color: a, $variant: n }) => `
21
+ `
22
+ })
23
+ ), c = u`
24
+ ${({ theme: r, $color: a, $variant: e }) => `
20
25
  align-items: center;
21
26
  cursor: pointer;
22
27
  font-family: ${r.typography.type.primary};
@@ -37,16 +42,65 @@ const { getVariant: v } = $((r) => ({ highRelevance: `
37
42
  text-decoration: none;
38
43
  }
39
44
 
40
- ${a ?? v(r, n)}
45
+ ${a ?? m(r, e)}
41
46
  `}
42
- `, y = p.a`
43
- ${s}
44
- `, k = p(m)`
45
- ${s}
46
- `, j = ({ children: r, color: a, download: n, href: i, iconPosition: o = "right", onClick: l, target: e, variant: c = "lowRelevance" }) => {
47
- const h = i.startsWith("https://"), t = g(w, { icon: n === void 0 ? "arrow-up-right-from-square" : "arrow-down-to-bracket", iconSize: "xxs", iconType: "fa-regular", ml: 0.25, mr: 0.25 });
48
- return h ? d(y, { $color: a, $variant: c, download: n, href: i, onClick: l, rel: "nofollow noopener noreferrer", target: e ?? "_blank", children: [o === "left" ? t : void 0, r, o === "right" ? t : void 0] }) : d(k, { $variant: c, download: n, onClick: l, rel: "nofollow noopener noreferrer", target: e, to: i, children: [e !== void 0 && o === "left" ? t : void 0, r, e !== void 0 && o === "right" ? t : void 0] });
47
+ `, x = s.a`
48
+ ${c}
49
+ `, b = s(y)`
50
+ ${c}
51
+ `, R = ({
52
+ children: r,
53
+ color: a,
54
+ download: e,
55
+ href: i,
56
+ iconPosition: o = "right",
57
+ onClick: l,
58
+ target: n,
59
+ variant: d = "lowRelevance"
60
+ }) => {
61
+ const f = i.startsWith("https://"), t = /* @__PURE__ */ g(
62
+ w,
63
+ {
64
+ icon: e === void 0 ? "arrow-up-right-from-square" : "arrow-down-to-bracket",
65
+ iconSize: "xxs",
66
+ iconType: "fa-regular",
67
+ ml: 0.25,
68
+ mr: 0.25
69
+ }
70
+ );
71
+ return f ? /* @__PURE__ */ p(
72
+ x,
73
+ {
74
+ $color: a,
75
+ $variant: d,
76
+ download: e,
77
+ href: i,
78
+ onClick: l,
79
+ rel: "nofollow noopener noreferrer",
80
+ target: n ?? "_blank",
81
+ children: [
82
+ o === "left" ? t : void 0,
83
+ r,
84
+ o === "right" ? t : void 0
85
+ ]
86
+ }
87
+ ) : /* @__PURE__ */ p(
88
+ b,
89
+ {
90
+ $variant: d,
91
+ download: e,
92
+ onClick: l,
93
+ rel: "nofollow noopener noreferrer",
94
+ target: n,
95
+ to: i,
96
+ children: [
97
+ n !== void 0 && o === "left" ? t : void 0,
98
+ r,
99
+ n !== void 0 && o === "right" ? t : void 0
100
+ ]
101
+ }
102
+ );
49
103
  };
50
104
  export {
51
- j as Link
105
+ R as Link
52
106
  };
@@ -1,16 +1,67 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { Children as u, isValidElement as v, cloneElement as y } from "react";
3
- import { useTheme as C } from "styled-components";
4
- import { L as g } from "../../styles-Q1VXuWI7.mjs";
5
- import { a as V } from "../../styles-Q1VXuWI7.mjs";
6
- import { Container as k } from "../container/index.js";
7
- import { Icon as p } from "../icon/index.js";
8
- import { Link as I } from "../link/index.js";
9
- const E = ({ children: n, disabled: e = !1, icon: a, iconType: l = "fa-light", href: s, onClick: f, onKeyDown: h, selected: t = !1, value: i, ...x }) => {
10
- const c = C().palette.gray[e ? 300 : 800], d = e ? u.map(n, (o) => v(o) ? y(o, { disabled: e, ...o.props }) : o) : n;
11
- return m(g, { "aria-disabled": e, "aria-label": i, "aria-selected": t, "data-testid": i, onClick: f, onKeyDown: h, value: i, ...x, children: [a !== void 0 || i !== void 0 ? m(k, { alignItems: "center", display: "flex", gap: 0.625, children: [a ? r(p, { disabled: e, icon: a, iconColor: c, iconSize: "xs", iconType: l }) : null, s === void 0 ? d : r(I, { href: s, children: d })] }) : null, t ? r(p, { disabled: e, icon: "check", iconColor: c, iconSize: "xs", iconType: l }) : null] });
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import { Children as C, isValidElement as L, cloneElement as g } from "react";
3
+ import { useTheme as I } from "styled-components";
4
+ import { L as d } from "../../styles-Bdque9TT.mjs";
5
+ import { a as D } from "../../styles-Bdque9TT.mjs";
6
+ import { Container as j } from "../container/index.js";
7
+ import { Icon as c } from "../icon/index.js";
8
+ import { Link as k } from "../link/index.js";
9
+ const w = ({
10
+ children: i,
11
+ disabled: r = !1,
12
+ icon: o,
13
+ iconType: m = "fa-light",
14
+ href: s,
15
+ onClick: x,
16
+ onKeyDown: u,
17
+ selected: a = !1,
18
+ value: e,
19
+ ...h
20
+ }) => {
21
+ const p = I().palette.gray[r ? 300 : 800], l = r ? C.map(i, (t) => L(t) ? g(t, {
22
+ disabled: r,
23
+ ...t.props
24
+ }) : t) : i;
25
+ return /* @__PURE__ */ f(
26
+ d,
27
+ {
28
+ "aria-disabled": r,
29
+ "aria-label": e,
30
+ "aria-selected": a,
31
+ "data-testid": e,
32
+ onClick: x,
33
+ onKeyDown: u,
34
+ value: e,
35
+ ...h,
36
+ children: [
37
+ o !== void 0 || e !== void 0 ? /* @__PURE__ */ f(j, { alignItems: "center", display: "flex", gap: 0.625, children: [
38
+ o ? /* @__PURE__ */ n(
39
+ c,
40
+ {
41
+ disabled: r,
42
+ icon: o,
43
+ iconColor: p,
44
+ iconSize: "xs",
45
+ iconType: m
46
+ }
47
+ ) : null,
48
+ s === void 0 ? l : /* @__PURE__ */ n(k, { href: s, children: l })
49
+ ] }) : null,
50
+ a ? /* @__PURE__ */ n(
51
+ c,
52
+ {
53
+ disabled: r,
54
+ icon: "check",
55
+ iconColor: p,
56
+ iconSize: "xs",
57
+ iconType: m
58
+ }
59
+ ) : null
60
+ ]
61
+ }
62
+ );
12
63
  };
13
64
  export {
14
- E as ListItem,
15
- V as ListItemsWrapper
65
+ w as ListItem,
66
+ D as ListItemsWrapper
16
67
  };
@@ -1,15 +1,32 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { styled as r } from "styled-components";
3
- const i = r.span`
4
- ${({ theme: t, $bgColor: n = t.palette.secondary[500], $txtDecoration: o = "none" }) => `
5
- background-color: ${n};
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { styled as i } from "styled-components";
3
+ const s = i.span`
4
+ ${({
5
+ theme: o,
6
+ $bgColor: a = o.palette.secondary[500],
7
+ $txtDecoration: t = "none"
8
+ }) => `
9
+ background-color: ${a};
6
10
  border-radius: 5px;
7
- color: ${t.palette.white};
11
+ color: ${o.palette.white};
8
12
  font-size: 10px;
9
- padding: ${t.spacing[0.125]} ${t.spacing[0.25]} ${t.spacing[0.125]} ${t.spacing[0.25]};
10
- text-decoration: ${o}
13
+ padding: ${o.spacing[0.125]} ${o.spacing[0.25]} ${o.spacing[0.125]} ${o.spacing[0.25]};
14
+ text-decoration: ${t}
11
15
  `}
12
- `, l = ({ bgColor: t, children: n, txtDecoration: o, ml: e = 1 }) => a(i, { $bgColor: t, $txtDecoration: o, className: `ml-${e}`, children: n });
16
+ `, l = ({
17
+ bgColor: o,
18
+ children: a,
19
+ txtDecoration: t,
20
+ ml: n = 1
21
+ }) => /* @__PURE__ */ r(
22
+ s,
23
+ {
24
+ $bgColor: o,
25
+ $txtDecoration: t,
26
+ className: `ml-${n}`,
27
+ children: a
28
+ }
29
+ );
13
30
  export {
14
31
  l as LittleFlag
15
32
  };