@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,13 +1,42 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useTheme as r } from "styled-components";
3
- import { Container as a } from "../../container/index.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useTheme as o } from "styled-components";
3
+ import { Container as n } from "../../container/index.js";
4
4
  import "../../typography/heading/index.js";
5
5
  import "../../typography/span/index.js";
6
- import { Text as n } from "../../typography/text/index.js";
7
- const d = ({ tag: t, tagPosition: e }) => {
8
- const i = r();
9
- return t ? o(a, { alignItems: "center", bgColor: i.palette.white, borderRadius: "8px", display: "flex", justify: "center", margin: e === "top" ? [0.75, 0.75, 0.75, 0.75] : void 0, padding: [0.25, 0.5, 0.25, 0.5], position: e === "top" ? "absolute" : "relative", top: "0", width: "max-content", children: o(n, { color: i.palette.gray[900], lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: t }) }) : null;
6
+ import { Text as m } from "../../typography/text/index.js";
7
+ const f = ({
8
+ tag: e,
9
+ tagPosition: t
10
+ }) => {
11
+ const r = o();
12
+ return e ? /* @__PURE__ */ i(
13
+ n,
14
+ {
15
+ alignItems: "center",
16
+ bgColor: r.palette.white,
17
+ borderRadius: "8px",
18
+ display: "flex",
19
+ justify: "center",
20
+ margin: t === "top" ? [0.75, 0.75, 0.75, 0.75] : void 0,
21
+ padding: [0.25, 0.5, 0.25, 0.5],
22
+ position: t === "top" ? "absolute" : "relative",
23
+ top: "0",
24
+ width: "max-content",
25
+ children: /* @__PURE__ */ i(
26
+ m,
27
+ {
28
+ color: r.palette.gray[900],
29
+ lineSpacing: 1.5,
30
+ lineSpacingSm: 1.25,
31
+ size: "md",
32
+ sizeSm: "sm",
33
+ textAlign: "center",
34
+ children: e
35
+ }
36
+ )
37
+ }
38
+ ) : null;
10
39
  };
11
40
  export {
12
- d as CategoryTag
41
+ f as CategoryTag
13
42
  };
@@ -1,15 +1,58 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { isEmpty as m } from "lodash";
3
- import { useTheme as a } from "styled-components";
4
- import { Container as l } from "../../container/index.js";
5
- import { Heading as p } from "../../typography/heading/index.js";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { isEmpty as l } from "lodash";
3
+ import { useTheme as s } from "styled-components";
4
+ import { Container as p } from "../../container/index.js";
5
+ import { Heading as d } from "../../typography/heading/index.js";
6
6
  import "../../typography/span/index.js";
7
7
  import { Text as c } from "../../typography/text/index.js";
8
- const b = ({ eventDate: e }) => {
9
- const t = a(), i = m(e) ? null : e == null ? void 0 : e.split("-");
10
- if (i) {
11
- const [o, r] = i;
12
- return s(l, { alignItems: "center", bgColor: t.palette.white, borderRadius: "8px", display: "flex", flexDirection: "column", margin: [0.75, 0.75, 0.75, 0.75], padding: [0.75, 1.5, 0.75, 1.5], position: "absolute", right: "0", shadow: "md", top: "0", children: [n(p, { fontWeight: "semibold", lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: o }), n(c, { color: t.palette.gray[800], fontWeight: "semibold", lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", textAlign: "center", children: r.toUpperCase() })] });
8
+ const b = ({
9
+ eventDate: i
10
+ }) => {
11
+ const o = s(), t = l(i) ? null : i == null ? void 0 : i.split("-");
12
+ if (t) {
13
+ const [r, m] = t;
14
+ return /* @__PURE__ */ n(
15
+ p,
16
+ {
17
+ alignItems: "center",
18
+ bgColor: o.palette.white,
19
+ borderRadius: "8px",
20
+ display: "flex",
21
+ flexDirection: "column",
22
+ margin: [0.75, 0.75, 0.75, 0.75],
23
+ padding: [0.75, 1.5, 0.75, 1.5],
24
+ position: "absolute",
25
+ right: "0",
26
+ shadow: "md",
27
+ top: "0",
28
+ children: [
29
+ /* @__PURE__ */ e(
30
+ d,
31
+ {
32
+ fontWeight: "semibold",
33
+ lineSpacingSm: 1.25,
34
+ size: "md",
35
+ sizeSm: "sm",
36
+ textAlign: "center",
37
+ children: r
38
+ }
39
+ ),
40
+ /* @__PURE__ */ e(
41
+ c,
42
+ {
43
+ color: o.palette.gray[800],
44
+ fontWeight: "semibold",
45
+ lineSpacing: 1.5,
46
+ lineSpacingSm: 1.25,
47
+ size: "md",
48
+ sizeSm: "sm",
49
+ textAlign: "center",
50
+ children: m.toUpperCase()
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ );
13
56
  }
14
57
  return null;
15
58
  };
@@ -1,15 +1,15 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import z, { useTheme as v } from "styled-components";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import z, { useTheme as b } from "styled-components";
3
3
  import { CategoryTag as k } from "./category-tag/index.js";
4
- import { EventDate as w } from "./event-date/index.js";
5
- import { Button as $ } from "../button/index.js";
6
- import { M as D } from "../../index-BwFnfaRh.mjs";
7
- import { Container as s } from "../container/index.js";
4
+ import { EventDate as u } from "./event-date/index.js";
5
+ import { Button as C } from "../button/index.js";
6
+ import { M as v } from "../../index-maWH3JYC.mjs";
7
+ import { Container as c } from "../container/index.js";
8
8
  import { Icon as S } from "../icon/index.js";
9
- import { Heading as T } from "../typography/heading/index.js";
9
+ import { Heading as j } from "../typography/heading/index.js";
10
10
  import "../typography/span/index.js";
11
- import { Text as g } from "../typography/text/index.js";
12
- const C = z.div`
11
+ import { Text as f } from "../typography/text/index.js";
12
+ const I = z.div`
13
13
  ${({ theme: t }) => `
14
14
  align-items: flex-start;
15
15
  display: flex;
@@ -54,10 +54,115 @@ const C = z.div`
54
54
  }
55
55
  }
56
56
  `}
57
- `, q = ({ author: t, buttonText: h, description: f, eventDate: x, href: l, imageId: d, mode: b = "light", publishDate: m, readingTime: c, tag: p, tagPosition: n = "top", title: y }) => {
58
- const i = v(), r = m == null ? void 0 : m.split("-"), a = b === "dark", u = o(C, { "data-testid": `content-card-${y}`, children: [d || x || p && n === "top" ? o(s, { id: "card-image", position: "relative", children: [d && e(D, { publicId: d }), n === "top" && e(k, { tag: p, tagPosition: n }), e(w, { eventDate: x })] }) : void 0, o(s, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0.5, id: "card-content", children: [n === "bottom" && e(k, { tag: p, tagPosition: n }), t || r || c ? o(s, { display: "flex", justify: "space-between", width: "100%", children: [t && r && e(g, { color: i.palette.gray[a ? 300 : 400], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: t + ` • ${r[0]} ${r[1]}, ${r[2]}` }), c && o(s, { alignItems: "center", display: "flex", gap: 0.25, justify: "center", minWidth: "60px", children: [e(S, { icon: "eye", iconColor: i.palette.gray[a ? 300 : 400], iconSize: "xs", iconType: "fa-light" }), e(g, { color: i.palette.gray[a ? 300 : 400], size: "sm", sizeSm: "xs", textAlign: "right", children: c })] })] }) : void 0, e(T, { className: `title-${b}`, color: a ? i.palette.white : i.palette.gray[800], fontWeight: "semibold", size: "sm", sizeSm: "xs", children: y }), f && e(g, { color: i.palette.gray[a ? 100 : 600], size: "md", sizeSm: "sm", children: f }), h && l && e($, { href: l, variant: "link", children: h })] })] });
59
- return l ? e("a", { className: "flex w-fit", href: l, rel: "noopener noreferrer", target: "_self", children: u }) : u;
57
+ `, G = ({
58
+ author: t,
59
+ buttonText: g,
60
+ description: x,
61
+ eventDate: h,
62
+ href: a,
63
+ imageId: d,
64
+ mode: y = "light",
65
+ publishDate: s,
66
+ readingTime: m,
67
+ tag: p,
68
+ tagPosition: r = "top",
69
+ title: w
70
+ }) => {
71
+ const i = b(), o = s == null ? void 0 : s.split("-"), n = y === "dark", $ = /* @__PURE__ */ l(I, { "data-testid": `content-card-${w}`, children: [
72
+ d || h || p && r === "top" ? /* @__PURE__ */ l(c, { id: "card-image", position: "relative", children: [
73
+ d && /* @__PURE__ */ e(v, { publicId: d }),
74
+ r === "top" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
75
+ /* @__PURE__ */ e(u, { eventDate: h })
76
+ ] }) : void 0,
77
+ /* @__PURE__ */ l(
78
+ c,
79
+ {
80
+ alignItems: "flex-start",
81
+ display: "flex",
82
+ flexDirection: "column",
83
+ gap: 0.5,
84
+ id: "card-content",
85
+ children: [
86
+ r === "bottom" && /* @__PURE__ */ e(k, { tag: p, tagPosition: r }),
87
+ t || o || m ? /* @__PURE__ */ l(c, { display: "flex", justify: "space-between", width: "100%", children: [
88
+ t && o && /* @__PURE__ */ e(
89
+ f,
90
+ {
91
+ color: i.palette.gray[n ? 300 : 400],
92
+ fontWeight: "semibold",
93
+ size: "sm",
94
+ sizeSm: "xs",
95
+ children: t + ` • ${o[0]} ${o[1]}, ${o[2]}`
96
+ }
97
+ ),
98
+ m && /* @__PURE__ */ l(
99
+ c,
100
+ {
101
+ alignItems: "center",
102
+ display: "flex",
103
+ gap: 0.25,
104
+ justify: "center",
105
+ minWidth: "60px",
106
+ children: [
107
+ /* @__PURE__ */ e(
108
+ S,
109
+ {
110
+ icon: "eye",
111
+ iconColor: i.palette.gray[n ? 300 : 400],
112
+ iconSize: "xs",
113
+ iconType: "fa-light"
114
+ }
115
+ ),
116
+ /* @__PURE__ */ e(
117
+ f,
118
+ {
119
+ color: i.palette.gray[n ? 300 : 400],
120
+ size: "sm",
121
+ sizeSm: "xs",
122
+ textAlign: "right",
123
+ children: m
124
+ }
125
+ )
126
+ ]
127
+ }
128
+ )
129
+ ] }) : void 0,
130
+ /* @__PURE__ */ e(
131
+ j,
132
+ {
133
+ className: `title-${y}`,
134
+ color: n ? i.palette.white : i.palette.gray[800],
135
+ fontWeight: "semibold",
136
+ size: "sm",
137
+ sizeSm: "xs",
138
+ children: w
139
+ }
140
+ ),
141
+ x && /* @__PURE__ */ e(
142
+ f,
143
+ {
144
+ color: i.palette.gray[n ? 100 : 600],
145
+ size: "md",
146
+ sizeSm: "sm",
147
+ children: x
148
+ }
149
+ ),
150
+ g && a && /* @__PURE__ */ e(C, { href: a, variant: "link", children: g })
151
+ ]
152
+ }
153
+ )
154
+ ] });
155
+ return a ? /* @__PURE__ */ e(
156
+ "a",
157
+ {
158
+ className: "flex w-fit",
159
+ href: a,
160
+ rel: "noopener noreferrer",
161
+ target: "_self",
162
+ children: $
163
+ }
164
+ ) : $;
60
165
  };
61
166
  export {
62
- q as ContentCard
167
+ G as ContentCard
63
168
  };
@@ -1,15 +1,95 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { useRef as c } from "react";
3
- import { O as p, S as a } from "../../index-Cu7uUMlx.mjs";
4
- import { Container as t } from "../container/index.js";
2
+ import { useRef as d } from "react";
3
+ import { O as p, S as r } from "../../index-CAIe8hBv.mjs";
4
+ import { Container as n } from "../container/index.js";
5
5
  import { ContentCard as f } from "../content-card/index.js";
6
6
  import { Heading as x } from "../typography/heading/index.js";
7
7
  import "../typography/span/index.js";
8
8
  import { Text as g } from "../typography/text/index.js";
9
- const I = ({ description: s, items: r, title: o, titleHighlighted: m }) => {
10
- const n = c(null);
11
- return i(p, { "data-testid": "content-card-carousel", children: [i(t, { alignItems: "flex-start", display: "flex", justify: "space-between", children: [i(t, { alignItems: "flex-start", display: "flex", flexDirection: "column", gap: 0.625, maxWidth: "800px", children: [i(x, { display: "inline", fontWeight: "semibold", lineSpacing: 2.25, lineSpacingSm: 1.75, size: "lg", sizeSm: "md", children: [o + " ", " ", e("span", { className: "inline", children: m })] }), e(g, { lineSpacing: 1.5, lineSpacingSm: 1.25, size: "md", sizeSm: "sm", children: s })] }), e(a, { containerRef: n, id: "desktop" })] }), e(t, { alignSelf: "stretch", display: "flex", id: "carousel", pb: 1, pr: 2.25, ref: n, scroll: "x", children: e(t, { alignItems: "flex-start", display: "flex", gap: 1.5, width: "max-content", children: r.map((l, d) => e(f, { ...l }, `${d}-${l.title}`)) }) }), e(a, { containerRef: n, id: "mobile" })] });
9
+ const j = ({
10
+ description: a,
11
+ items: o,
12
+ title: s,
13
+ titleHighlighted: m
14
+ }) => {
15
+ const t = d(null);
16
+ return /* @__PURE__ */ i(p, { "data-testid": "content-card-carousel", children: [
17
+ /* @__PURE__ */ i(
18
+ n,
19
+ {
20
+ alignItems: "flex-start",
21
+ display: "flex",
22
+ justify: "space-between",
23
+ children: [
24
+ /* @__PURE__ */ i(
25
+ n,
26
+ {
27
+ alignItems: "flex-start",
28
+ display: "flex",
29
+ flexDirection: "column",
30
+ gap: 0.625,
31
+ maxWidth: "800px",
32
+ children: [
33
+ /* @__PURE__ */ i(
34
+ x,
35
+ {
36
+ display: "inline",
37
+ fontWeight: "semibold",
38
+ lineSpacing: 2.25,
39
+ lineSpacingSm: 1.75,
40
+ size: "lg",
41
+ sizeSm: "md",
42
+ children: [
43
+ s + " ",
44
+ " ",
45
+ /* @__PURE__ */ e("span", { className: "inline", children: m })
46
+ ]
47
+ }
48
+ ),
49
+ /* @__PURE__ */ e(
50
+ g,
51
+ {
52
+ lineSpacing: 1.5,
53
+ lineSpacingSm: 1.25,
54
+ size: "md",
55
+ sizeSm: "sm",
56
+ children: a
57
+ }
58
+ )
59
+ ]
60
+ }
61
+ ),
62
+ /* @__PURE__ */ e(r, { containerRef: t, id: "desktop" })
63
+ ]
64
+ }
65
+ ),
66
+ /* @__PURE__ */ e(
67
+ n,
68
+ {
69
+ alignSelf: "stretch",
70
+ display: "flex",
71
+ id: "carousel",
72
+ pb: 1,
73
+ pr: 2.25,
74
+ ref: t,
75
+ scroll: "x",
76
+ children: /* @__PURE__ */ e(
77
+ n,
78
+ {
79
+ alignItems: "flex-start",
80
+ display: "flex",
81
+ gap: 1.5,
82
+ width: "max-content",
83
+ children: o.map(
84
+ (l, c) => /* @__PURE__ */ e(f, { ...l }, `${c}-${l.title}`)
85
+ )
86
+ }
87
+ )
88
+ }
89
+ ),
90
+ /* @__PURE__ */ e(r, { containerRef: t, id: "mobile" })
91
+ ] });
12
92
  };
13
93
  export {
14
- I as ContentCardCarousel
94
+ j as ContentCardCarousel
15
95
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "styled-components";
4
- import { S as s } from "../../../index-Cu7uUMlx.mjs";
4
+ import { S as s } from "../../../index-CAIe8hBv.mjs";
5
5
  import "../../container/index.js";
6
6
  import "../../icon/index.js";
7
7
  export {
@@ -1,10 +1,25 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { theme as s } from "../colors/index.js";
4
- import { Container as f } from "../container/index.js";
5
- const c = i(function({ color: r = s.palette.gray[100], mt: o = 0.5, mb: t = 0.5, ...m }, e) {
6
- return a(f, { as: "hr", border: `1px solid ${r}`, mb: t, mt: o, ref: e, ...m });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { forwardRef as f } from "react";
3
+ import { theme as p } from "../colors/index.js";
4
+ import { Container as n } from "../container/index.js";
5
+ const h = f(function({
6
+ color: r = p.palette.gray[100],
7
+ mt: o = 0.5,
8
+ mb: t = 0.5,
9
+ ...e
10
+ }, i) {
11
+ return /* @__PURE__ */ m(
12
+ n,
13
+ {
14
+ as: "hr",
15
+ border: `1px solid ${r}`,
16
+ mb: t,
17
+ mt: o,
18
+ ref: i,
19
+ ...e
20
+ }
21
+ );
7
22
  });
8
23
  export {
9
- c as Divider
24
+ h as Divider
10
25
  };
@@ -1,6 +1,6 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { Button as r } from "../../button/index.js";
3
- const s = ({ buttonProps: t, variant: o }) => n(r, { onClick: t.onClick, variant: o, children: t.text });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Button as n } from "../../button/index.js";
3
+ const c = ({ buttonProps: t, variant: o }) => /* @__PURE__ */ r(n, { onClick: t.onClick, variant: o, children: t.text });
4
4
  export {
5
- s as EmptyButton
5
+ c as EmptyButton
6
6
  };
@@ -1,19 +1,19 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { EmptyButton as m } from "./empty-button/index.js";
3
- import { styled as r } from "styled-components";
4
- import { M as g } from "../../index-BwFnfaRh.mjs";
5
- import { Heading as h } from "../typography/heading/index.js";
3
+ import { styled as n } from "styled-components";
4
+ import { M as g } from "../../index-maWH3JYC.mjs";
5
+ import { Heading as f } from "../typography/heading/index.js";
6
6
  import "../typography/span/index.js";
7
7
  import { Text as x } from "../typography/text/index.js";
8
- const f = r.div`
8
+ const h = n.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  align-items: center;
12
- padding: ${({ theme: t, $padding: e }) => t.spacing[e]};
12
+ padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
13
13
  max-width: 900px;
14
14
  white-space: pre-line;
15
15
  margin: 0 auto;
16
- `, u = r.div`
16
+ `, y = n.div`
17
17
  display: flex;
18
18
  flex-direction: row;
19
19
  justify-content: center;
@@ -21,28 +21,65 @@ const f = r.div`
21
21
  background-color: transparent;
22
22
  width: 96px;
23
23
  height: 96px;
24
- margin-bottom: ${({ theme: t }) => t.spacing[2]};
24
+ margin-bottom: ${({ theme: i }) => i.spacing[2]};
25
25
 
26
26
  > img {
27
27
  width: 100%;
28
28
  }
29
- `, y = r.div`
29
+ `, u = n.div`
30
30
  display: flex;
31
31
  flex-direction: row;
32
32
  margin: 0;
33
- margin-bottom: ${({ theme: t }) => t.spacing[2]};
33
+ margin-bottom: ${({ theme: i }) => i.spacing[2]};
34
34
 
35
35
  > * {
36
- margin-right: ${({ theme: t }) => t.spacing[0.75]};
36
+ margin-right: ${({ theme: i }) => i.spacing[0.75]};
37
37
  }
38
38
 
39
39
  > *:last-child {
40
40
  margin-right: 0;
41
41
  }
42
- `, d = { md: { description: "md", title: "lg" }, sm: { description: "sm", title: "xs" } }, S = ({ cancelButton: t, confirmButton: e, description: p, imageSrc: s = "integrates/empty/addRoot", padding: c = 1.25, title: l, size: n = "md" }) => {
43
- const o = (e ?? t) !== void 0;
44
- return a(f, { $padding: c, children: [i(u, { children: i(g, { alt: "empty-icon", publicId: s }) }), i(h, { fontWeight: "bold", lineSpacing: 1.75, mb: 0.25, size: d[n].title, textAlign: "center", children: l }), i(x, { mb: o ? 2 : void 0, size: d[n].description, textAlign: "center", children: p }), o ? a(y, { children: [t && i(m, { buttonProps: t, variant: "tertiary" }), e && i(m, { buttonProps: e, variant: "primary" })] }) : void 0] });
42
+ `, a = {
43
+ md: { description: "md", title: "lg" },
44
+ sm: { description: "sm", title: "xs" }
45
+ }, C = ({
46
+ cancelButton: i = void 0,
47
+ confirmButton: e = void 0,
48
+ description: p,
49
+ imageSrc: s = "integrates/empty/addRoot",
50
+ padding: l = 1.25,
51
+ title: c,
52
+ size: r = "md"
53
+ }) => {
54
+ const o = (e ?? i) !== void 0;
55
+ return /* @__PURE__ */ d(h, { $padding: l, children: [
56
+ /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(g, { alt: "empty-icon", publicId: s }) }),
57
+ /* @__PURE__ */ t(
58
+ f,
59
+ {
60
+ fontWeight: "bold",
61
+ lineSpacing: 1.75,
62
+ mb: 0.25,
63
+ size: a[r].title,
64
+ textAlign: "center",
65
+ children: c
66
+ }
67
+ ),
68
+ /* @__PURE__ */ t(
69
+ x,
70
+ {
71
+ mb: o ? 2 : void 0,
72
+ size: a[r].description,
73
+ textAlign: "center",
74
+ children: p
75
+ }
76
+ ),
77
+ o ? /* @__PURE__ */ d(u, { children: [
78
+ i && /* @__PURE__ */ t(m, { buttonProps: i, variant: "tertiary" }),
79
+ e && /* @__PURE__ */ t(m, { buttonProps: e, variant: "primary" })
80
+ ] }) : void 0
81
+ ] });
45
82
  };
46
83
  export {
47
- S as EmptyState
84
+ C as EmptyState
48
85
  };
@@ -1,9 +1,15 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { styled as h } from "styled-components";
3
- import { Container as p } from "../container/index.js";
1
+ import { jsx as i, jsxs as c } from "react/jsx-runtime";
2
+ import { styled as p } from "styled-components";
3
+ import { Container as a } from "../container/index.js";
4
4
  import n from "lodash";
5
- import { Link as d } from "../link/index.js";
6
- const a = h(p).attrs(({ ...i }) => ({ display: "inline-block", position: "relative", ...i }))`
5
+ import { Link as m } from "../link/index.js";
6
+ const d = p(a).attrs(
7
+ ({ ...e }) => ({
8
+ display: "inline-block",
9
+ position: "relative",
10
+ ...e
11
+ })
12
+ )`
7
13
  & img {
8
14
  display: block;
9
15
  }
@@ -16,13 +22,23 @@ const a = h(p).attrs(({ ...i }) => ({ display: "inline-block", position: "relati
16
22
  width: 100%;
17
23
  height: 100%;
18
24
  pointer-events: none;
19
- ${({ $opacity: i = 0 }) => `background-color: rgba(0, 0, 0, ${i});`}
25
+ ${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
20
26
  }
21
- `, m = (i, s) => !n.isUndefined(s) && n.includes(i, ((t) => {
22
- if (n.isNil(t)) return "";
23
- const e = t.split(".");
24
- return (e.length > 1 ? n.last(e) : "").toLowerCase();
25
- })(s)), b = ({ alt: i, fileType: s, width: t = "100%", opacity: e = 0, src: o, height: l = "auto" }) => s === "video" || m(["webm"], o) ? r(a, { $opacity: e, children: c("video", { controls: !0, height: l, muted: !0, width: t, children: [r("source", { src: o, type: "video/webm" }), r(d, { href: o, iconPosition: "hidden", children: o })] }) }) : r(a, { $opacity: e, children: r("img", { alt: i, height: l, src: o, width: t }) });
27
+ `, u = (e) => {
28
+ if (n.isNil(e)) return "";
29
+ const t = e.split(".");
30
+ return (t.length > 1 ? n.last(t) : "").toLowerCase();
31
+ }, f = (e, t) => n.isUndefined(t) ? !1 : n.includes(e, u(t)), w = ({
32
+ alt: e,
33
+ fileType: t,
34
+ width: r = "100%",
35
+ opacity: s = 0,
36
+ src: o,
37
+ height: l = "auto"
38
+ }) => t === "video" || f(["webm"], o) ? /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ c("video", { controls: !0, height: l, muted: !0, width: r, children: [
39
+ /* @__PURE__ */ i("source", { src: o, type: "video/webm" }),
40
+ /* @__PURE__ */ i(m, { href: o, iconPosition: "hidden", children: o })
41
+ ] }) }) : /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ i("img", { alt: e, height: l, src: o, width: r }) });
26
42
  export {
27
- b as FilePreview
43
+ w as FilePreview
28
44
  };
@@ -1,9 +1,9 @@
1
- import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
- import { forwardRef as u } from "react";
3
- import { styled as b } from "styled-components";
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as x } from "react";
3
+ import { styled as y } from "styled-components";
4
4
  import { Button as a } from "../button/index.js";
5
- import { Container as r } from "../container/index.js";
6
- const x = b.form`
5
+ import { Container as n } from "../container/index.js";
6
+ const b = y.form`
7
7
  ${({ theme: i }) => `
8
8
  align-items: flex-start;
9
9
  align-self: stretch;
@@ -17,10 +17,47 @@ const x = b.form`
17
17
  }
18
18
  }
19
19
  `}
20
- `, v = u(function({ cancelLabel: i, children: c, id: o = "modal-confirm", onCancel: e, onConfirm: t = "submit", submitLabel: m, submitDisabled: d = !1, ...f }, p) {
21
- const l = t === "submit", h = [e, t].some(Boolean);
22
- return n(x, { ref: p, ...f, children: s(r, { children: [n(r, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, children: c }), h && s(r, { display: "flex", gap: 0.75, maxWidth: "392px", children: [e ? n(a, { id: `${o}-cancel`, justify: "center", onClick: e, type: "reset", variant: "tertiary", width: "100%", children: i ?? "Cancel" }) : void 0, n(a, { disabled: d, id: o, justify: "center", onClick: l ? void 0 : t, type: l ? "submit" : "button", width: "100%", children: m ?? "Confirm" })] })] }) });
20
+ `, F = x(function({
21
+ cancelLabel: m,
22
+ children: c,
23
+ id: o = "modal-confirm",
24
+ onCancel: e,
25
+ onConfirm: r = "submit",
26
+ submitLabel: d,
27
+ submitDisabled: f = !1,
28
+ ...p
29
+ }, u) {
30
+ const s = r === "submit", h = [e, r].some(Boolean);
31
+ return /* @__PURE__ */ t(b, { ref: u, ...p, children: /* @__PURE__ */ l(n, { children: [
32
+ /* @__PURE__ */ t(n, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, children: c }),
33
+ h && /* @__PURE__ */ l(n, { display: "flex", gap: 0.75, maxWidth: "392px", children: [
34
+ e ? /* @__PURE__ */ t(
35
+ a,
36
+ {
37
+ id: `${o}-cancel`,
38
+ justify: "center",
39
+ onClick: e,
40
+ type: "reset",
41
+ variant: "tertiary",
42
+ width: "100%",
43
+ children: m ?? "Cancel"
44
+ }
45
+ ) : void 0,
46
+ /* @__PURE__ */ t(
47
+ a,
48
+ {
49
+ disabled: f,
50
+ id: o,
51
+ justify: "center",
52
+ onClick: s ? void 0 : r,
53
+ type: s ? "submit" : "button",
54
+ width: "100%",
55
+ children: d ?? "Confirm"
56
+ }
57
+ )
58
+ ] })
59
+ ] }) });
23
60
  });
24
61
  export {
25
- v as Form
62
+ F as Form
26
63
  };