@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,5 +1,5 @@
1
- import { v as e } from "../../utils-CQvBF-wY.mjs";
2
- import { a as o, B as n, c as i, b as r, k as p, h as d, j as B, i as m, f as g, e as C, s as f, g as x, d as l } from "../../styles-C3cZmKVJ.mjs";
1
+ import { v as e } from "../../utils-V0EumEPM.mjs";
2
+ import { a as o, B as n, c as i, b as r, k as p, h as d, j as B, i as m, f as g, e as C, s as f, g as x, d as l } from "../../styles-CplEd2kw.mjs";
3
3
  export {
4
4
  o as BaseButtonComponent,
5
5
  n as BaseComponent,
@@ -1,9 +1,22 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { Container as t } from "../../container/index.js";
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import { Container as r } from "../../container/index.js";
3
3
  import "../../typography/heading/index.js";
4
4
  import "../../typography/span/index.js";
5
- import { Text as r } from "../../typography/text/index.js";
6
- const p = ({ item: i }) => o(t, { display: "block", id: `panel-${i.title}`, padding: [0.75, 0.75, 0.75, 0.75], children: [i.description ? e(r, { mb: i.extraElement ? 0.5 : void 0, size: "sm", children: i.description }) : void 0, i.extraElement ? e(t, { children: i.extraElement }) : void 0] });
5
+ import { Text as o } from "../../typography/text/index.js";
6
+ const s = ({
7
+ item: e
8
+ }) => /* @__PURE__ */ i(
9
+ r,
10
+ {
11
+ display: "block",
12
+ id: `panel-${e.title}`,
13
+ padding: [0.75, 0.75, 0.75, 0.75],
14
+ children: [
15
+ e.description ? /* @__PURE__ */ n(o, { mb: e.extraElement ? 0.5 : void 0, size: "sm", children: e.description }) : void 0,
16
+ e.extraElement ? /* @__PURE__ */ n(r, { children: e.extraElement }) : void 0
17
+ ]
18
+ }
19
+ );
7
20
  export {
8
- p as AccordionContent
21
+ s as AccordionContent
9
22
  };
@@ -1,21 +1,78 @@
1
1
  import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
- import { forwardRef as x, useState as c, useCallback as u } from "react";
3
- import { useTheme as y } from "styled-components";
4
- import { AccordionContent as C } from "./accordion-content/index.js";
5
- import { Container as i } from "../container/index.js";
6
- import { Icon as w } from "../icon/index.js";
2
+ import { forwardRef as b, useState as m, useCallback as C } from "react";
3
+ import { useTheme as w } from "styled-components";
4
+ import { AccordionContent as x } from "./accordion-content/index.js";
5
+ import { Container as n } from "../container/index.js";
6
+ import { Icon as y } from "../icon/index.js";
7
7
  import "../typography/heading/index.js";
8
8
  import "../typography/span/index.js";
9
- import { Text as v } from "../typography/text/index.js";
10
- const I = x(function({ aligned: m = "end", items: l, bgColor: s }, f) {
11
- const e = y(), [p, g] = c(!1), [a, h] = c(-1), b = u((o) => () => {
12
- h(o), g(o !== a || ((t) => !t));
13
- }, [a]);
14
- return r(i, { ref: f, children: l.map((o, t) => {
15
- const n = t === a && p;
16
- return d(i, { bgColor: s ?? e.palette.white, children: [r(i, { "aria-controls": `panel-${o.title}`, "aria-expanded": p, "aria-label": o.title, as: "button", bgColor: s ?? e.palette.white, bgColorHover: e.palette.gray[100], borderBottom: n || t === l.length - 1 ? "1px solid" : void 0, borderColor: e.palette.gray[200], borderTop: "1px solid", cursor: "pointer", display: "flex", onClick: b(t), padding: [0.75, 0.75, 0.75, 0.75], width: "100%", children: d(i, { as: "summary", display: "flex", flexDirection: m === "end" ? "row" : "row-reverse", gap: 0.75, justify: "space-between", width: "100%", children: [r(v, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", sizeSm: "sm", textAlign: "start", children: o.title }), r(w, { icon: n ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[400], iconSize: "xs", iconType: "fa-light" })] }) }), n && r(C, { item: o })] }, o.title);
9
+ import { Text as A } from "../typography/text/index.js";
10
+ const H = b(function({ aligned: f = "end", items: a, bgColor: s }, h) {
11
+ const o = w(), [c, p] = m(!1), [i, u] = m(-1), g = C(
12
+ (e) => () => {
13
+ u(e), p(e === i ? (t) => !t : !0);
14
+ },
15
+ [i]
16
+ );
17
+ return /* @__PURE__ */ r(n, { ref: h, children: a.map((e, t) => {
18
+ const l = t === i && c;
19
+ return /* @__PURE__ */ d(n, { bgColor: s ?? o.palette.white, children: [
20
+ /* @__PURE__ */ r(
21
+ n,
22
+ {
23
+ "aria-controls": `panel-${e.title}`,
24
+ "aria-expanded": c,
25
+ "aria-label": e.title,
26
+ as: "button",
27
+ bgColor: s ?? o.palette.white,
28
+ bgColorHover: o.palette.gray[100],
29
+ borderBottom: l || t === a.length - 1 ? "1px solid" : void 0,
30
+ borderColor: o.palette.gray[200],
31
+ borderTop: "1px solid",
32
+ cursor: "pointer",
33
+ display: "flex",
34
+ onClick: g(t),
35
+ padding: [0.75, 0.75, 0.75, 0.75],
36
+ width: "100%",
37
+ children: /* @__PURE__ */ d(
38
+ n,
39
+ {
40
+ as: "summary",
41
+ display: "flex",
42
+ flexDirection: f === "end" ? "row" : "row-reverse",
43
+ gap: 0.75,
44
+ justify: "space-between",
45
+ width: "100%",
46
+ children: [
47
+ /* @__PURE__ */ r(
48
+ A,
49
+ {
50
+ color: o.palette.gray[800],
51
+ fontWeight: "bold",
52
+ size: "sm",
53
+ sizeSm: "sm",
54
+ textAlign: "start",
55
+ children: e.title
56
+ }
57
+ ),
58
+ /* @__PURE__ */ r(
59
+ y,
60
+ {
61
+ icon: l ? "chevron-up" : "chevron-down",
62
+ iconColor: o.palette.gray[400],
63
+ iconSize: "xs",
64
+ iconType: "fa-light"
65
+ }
66
+ )
67
+ ]
68
+ }
69
+ )
70
+ }
71
+ ),
72
+ l && /* @__PURE__ */ r(x, { item: e })
73
+ ] }, e.title);
17
74
  }) });
18
75
  });
19
76
  export {
20
- I as Accordion
77
+ H as Accordion
21
78
  };
@@ -1,113 +1,164 @@
1
- import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { forwardRef as m, useState as k, useCallback as w, useEffect as s } from "react";
1
+ import { jsx as t, jsxs as k } from "react/jsx-runtime";
2
+ import { forwardRef as w, useState as y, useCallback as v, useEffect as s } from "react";
3
3
  import { styled as p } from "styled-components";
4
- import { v as x } from "../../utils-CQvBF-wY.mjs";
5
- import { Container as y } from "../container/index.js";
6
- import { Icon as v } from "../icon/index.js";
7
- import { IconButton as T } from "../icon-button/index.js";
8
- const z = (e) => {
9
- switch (e) {
4
+ import { v as C } from "../../utils-V0EumEPM.mjs";
5
+ import { Container as T } from "../container/index.js";
6
+ import { Icon as B } from "../icon/index.js";
7
+ import { IconButton as S } from "../icon-button/index.js";
8
+ const z = (o) => {
9
+ switch (o) {
10
10
  case "warning":
11
11
  return "triangle-exclamation";
12
12
  case "info":
13
13
  return "circle-info";
14
14
  case "success":
15
15
  return "circle-check";
16
+ case "error":
16
17
  default:
17
18
  return "circle-exclamation";
18
19
  }
19
- }, { getVariant: C } = x((e) => ({ error: `
20
- background: ${e.palette.error[50]};
21
- border: 1px solid ${e.palette.error[500]};
22
- color: ${e.palette.error[700]};
20
+ }, { getVariant: A } = C(
21
+ (o) => ({
22
+ error: `
23
+ background: ${o.palette.error[50]};
24
+ border: 1px solid ${o.palette.error[500]};
25
+ color: ${o.palette.error[700]};
23
26
 
24
27
  button {
25
- color: ${e.palette.error[700]};
28
+ color: ${o.palette.error[700]};
26
29
 
27
30
  &:hover:not([disabled]) {
28
- background-color: ${e.palette.error[200]};
29
- color: ${e.palette.error[700]};
31
+ background-color: ${o.palette.error[200]};
32
+ color: ${o.palette.error[700]};
30
33
  }
31
34
  }
32
- `, info: `
33
- background: ${e.palette.info[50]};
34
- border: 1px solid ${e.palette.info[500]};
35
- color: ${e.palette.info[700]};
35
+ `,
36
+ info: `
37
+ background: ${o.palette.info[50]};
38
+ border: 1px solid ${o.palette.info[500]};
39
+ color: ${o.palette.info[700]};
36
40
 
37
41
  button {
38
- color: ${e.palette.info[700]};
42
+ color: ${o.palette.info[700]};
39
43
 
40
44
  &:hover:not([disabled]) {
41
- background-color: ${e.palette.info[200]};
42
- color: ${e.palette.info[700]};
45
+ background-color: ${o.palette.info[200]};
46
+ color: ${o.palette.info[700]};
43
47
  }
44
48
  }
45
- `, success: `
46
- background: ${e.palette.success[50]};
47
- border: 1px solid ${e.palette.success[500]};
48
- color: ${e.palette.success[700]};
49
+ `,
50
+ success: `
51
+ background: ${o.palette.success[50]};
52
+ border: 1px solid ${o.palette.success[500]};
53
+ color: ${o.palette.success[700]};
49
54
 
50
55
  button {
51
- color: ${e.palette.success[700]};
56
+ color: ${o.palette.success[700]};
52
57
 
53
58
  &:hover:not([disabled]) {
54
- background-color: ${e.palette.success[200]};
55
- color: ${e.palette.success[700]};
59
+ background-color: ${o.palette.success[200]};
60
+ color: ${o.palette.success[700]};
56
61
  }
57
62
  }
58
- `, warning: `
59
- background: ${e.palette.warning[50]};
60
- border: 1px solid ${e.palette.warning[500]};
61
- color: ${e.palette.warning[700]};
63
+ `,
64
+ warning: `
65
+ background: ${o.palette.warning[50]};
66
+ border: 1px solid ${o.palette.warning[500]};
67
+ color: ${o.palette.warning[700]};
62
68
 
63
69
  button {
64
- color: ${e.palette.warning[700]};
70
+ color: ${o.palette.warning[700]};
65
71
 
66
72
  &:hover:not([disabled]) {
67
- background-color: ${e.palette.warning[200]};
68
- color: ${e.palette.warning[700]};
73
+ background-color: ${o.palette.warning[200]};
74
+ color: ${o.palette.warning[700]};
69
75
  }
70
76
  }
71
- ` })), S = p.div`
72
- ${({ theme: e, $variant: t }) => `
77
+ `
78
+ })
79
+ ), I = p.div`
80
+ ${({ theme: o, $variant: r }) => `
73
81
  background: transparent;
74
82
  align-items: center;
75
- border-radius: ${e.spacing[0.25]};
83
+ border-radius: ${o.spacing[0.25]};
76
84
  display: inline-flex;
77
- font-family: ${e.typography.type.primary};
78
- font-size: ${e.typography.text.sm};
79
- font-weight: ${e.typography.weight.bold};
80
- line-height: ${e.spacing[1.25]};
85
+ font-family: ${o.typography.type.primary};
86
+ font-size: ${o.typography.text.sm};
87
+ font-weight: ${o.typography.weight.bold};
88
+ line-height: ${o.spacing[1.25]};
81
89
  min-width: 250px;
82
90
  width: 100%;
83
- padding: ${e.spacing[0.75]};
91
+ padding: ${o.spacing[0.75]};
84
92
  position: relative;
85
- gap: ${e.spacing[0.75]};
93
+ gap: ${o.spacing[0.75]};
86
94
 
87
95
  button {
88
96
  background-color: transparent;
89
97
  }
90
98
 
91
- ${C(e, t ?? "error")}
99
+ ${A(o, r ?? "error")}
92
100
  `}
93
101
  `, j = p.div`
94
102
  padding-right: 4px;
95
103
  width: 100%;
96
- `, V = m(function({ autoHide: e = !1, children: t, closable: d = !1, onTimeOut: n, show: r = !0, time: c = 8, variant: l = "error", id: u, ...$ }, g) {
97
- const [f, a] = k(r), i = w(() => {
98
- a(!1);
104
+ `, F = w(function({
105
+ autoHide: r = !1,
106
+ children: d,
107
+ closable: u = !1,
108
+ onTimeOut: n,
109
+ show: a = !0,
110
+ time: i = 8,
111
+ variant: l = "error",
112
+ id: g,
113
+ ...f
114
+ }, $) {
115
+ const [b, e] = y(a), c = v(() => {
116
+ e(!1);
99
117
  }, []);
100
118
  return s(() => {
101
- const b = setTimeout(() => {
102
- n == null || n(!0), e && i();
103
- }, 1e3 * c);
119
+ const x = setTimeout(() => {
120
+ n == null || n(!0), r && c();
121
+ }, i * 1e3);
104
122
  return () => {
105
- clearTimeout(b);
123
+ clearTimeout(x);
106
124
  };
107
- }, [e, i, c, n]), s(() => {
108
- a(r);
109
- }, [r, a]), o(y, { display: f ? "block" : "none", ref: g, role: "alert", ...$, children: h(S, { $variant: l, id: u, children: [o(v, { clickable: !1, icon: z(l), iconSize: "xs", iconType: "fa-light" }), o(j, { children: t }), d ? o(T, { height: "fit-content", icon: "close", iconSize: "xs", iconType: "fa-light", onClick: i, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }) });
125
+ }, [r, c, i, n]), s(() => {
126
+ e(a);
127
+ }, [a, e]), /* @__PURE__ */ t(
128
+ T,
129
+ {
130
+ display: b ? "block" : "none",
131
+ ref: $,
132
+ role: "alert",
133
+ ...f,
134
+ children: /* @__PURE__ */ k(I, { $variant: l, id: g, children: [
135
+ /* @__PURE__ */ t(
136
+ B,
137
+ {
138
+ clickable: !1,
139
+ icon: z(l),
140
+ iconSize: "xs",
141
+ iconType: "fa-light"
142
+ }
143
+ ),
144
+ /* @__PURE__ */ t(j, { children: d }),
145
+ u ? /* @__PURE__ */ t(
146
+ S,
147
+ {
148
+ height: "fit-content",
149
+ icon: "close",
150
+ iconSize: "xs",
151
+ iconType: "fa-light",
152
+ onClick: c,
153
+ px: 0.125,
154
+ py: 0.125,
155
+ variant: "ghost"
156
+ }
157
+ ) : void 0
158
+ ] })
159
+ }
160
+ );
110
161
  });
111
162
  export {
112
- V as Alert
163
+ F as Alert
113
164
  };
@@ -1,17 +1,68 @@
1
- import { jsx as e, jsxs as z } from "react/jsx-runtime";
2
- import { forwardRef as C, useCallback as $ } from "react";
3
- import { S as j } from "../../styles-EIbGRPlk.mjs";
1
+ import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
+ import { forwardRef as j, useCallback as B } from "react";
3
+ import { S as C } from "../../styles-B2N0JLw1.mjs";
4
4
  import { Icon as p } from "../icon/index.js";
5
- import { T as A } from "../../index-D-lcuEHY.mjs";
6
- import { isObject as B } from "lodash";
7
- const q = C(function({ children: m, disabled: r = !1, external: n = !1, href: o, id: a, icon: t, name: f, onClick: u, showArrow: b = !1, type: h = "button", tooltip: l, tooltipPlace: v = "bottom", underline: w = !1, value: k, variant: i = "primary", ...x }, y) {
8
- const s = l !== void 0, d = `${a}-tooltip`, S = $(() => {
9
- o && ((T, g = !0) => {
10
- const c = window.open(T, g ? void 0 : "_self", "noopener,noreferrer,");
11
- B(c) && (c.opener = null);
12
- })(o, n);
13
- }, [n, o]);
14
- return e(A, { disabled: !s, id: d, place: v, tip: l, children: z(j, { $variant: i, "aria-disabled": r, className: w ? "underline" : void 0, disabled: r, id: a, name: f, onClick: i === "link" ? S : u, ref: y, type: h, value: k, ...s ? { "data-tooltip-id": d } : {}, ...x, children: [t !== void 0 && e(p, { icon: t, iconSize: "xs", iconType: "fa-light" }), m, (b || i === "link") && e(p, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })] }) });
5
+ import { T as z } from "../../index-DwznImvK.mjs";
6
+ import { isObject as I } from "lodash";
7
+ const $ = (r, n = !0) => {
8
+ const o = window.open(
9
+ r,
10
+ n ? void 0 : "_self",
11
+ "noopener,noreferrer,"
12
+ );
13
+ I(o) && (o.opener = null);
14
+ }, q = j(function({
15
+ children: n,
16
+ disabled: o = !1,
17
+ external: l = !1,
18
+ href: i,
19
+ id: s,
20
+ icon: a,
21
+ name: m,
22
+ onClick: u,
23
+ showArrow: b = !1,
24
+ type: k = "button",
25
+ tooltip: f,
26
+ tooltipPlace: T = "bottom",
27
+ underline: h = !1,
28
+ value: w,
29
+ variant: e = "primary",
30
+ ...x
31
+ }, y) {
32
+ const c = f !== void 0, d = `${s}-tooltip`, S = B(() => {
33
+ i && $(i, l);
34
+ }, [l, i]);
35
+ return /* @__PURE__ */ t(
36
+ z,
37
+ {
38
+ disabled: !c,
39
+ id: d,
40
+ place: T,
41
+ tip: f,
42
+ children: /* @__PURE__ */ g(
43
+ C,
44
+ {
45
+ $variant: e,
46
+ "aria-disabled": o,
47
+ className: h ? "underline" : void 0,
48
+ disabled: o,
49
+ id: s,
50
+ name: m,
51
+ onClick: e === "link" ? S : u,
52
+ ref: y,
53
+ type: k,
54
+ value: w,
55
+ ...c ? { "data-tooltip-id": d } : {},
56
+ ...x,
57
+ children: [
58
+ a !== void 0 && /* @__PURE__ */ t(p, { icon: a, iconSize: "xs", iconType: "fa-light" }),
59
+ n,
60
+ (b || e === "link") && /* @__PURE__ */ t(p, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })
61
+ ]
62
+ }
63
+ )
64
+ }
65
+ );
15
66
  });
16
67
  export {
17
68
  q as Button
@@ -1,14 +1,83 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { useTheme as h } from "styled-components";
3
- import { Container as m } from "../../container/index.js";
4
- import { T as x } from "../../../index-D-lcuEHY.mjs";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { useTheme as b } from "styled-components";
3
+ import { Container as s } from "../../container/index.js";
4
+ import { T as g } from "../../../index-DwznImvK.mjs";
5
5
  import "../../typography/heading/index.js";
6
6
  import "../../typography/span/index.js";
7
- import { Text as o } from "../../typography/text/index.js";
8
- const B = ({ authorEmail: a, date: n, description: i, descriptionColor: p, id: c, title: l, titleColor: g, textAlign: r, textSpacing: f = 0, tooltip: s }) => {
9
- const e = h();
10
- return d(m, { width: "100%", children: [typeof l == "string" ? t(o, { color: g ?? e.palette.gray[800], fontWeight: "bold", mb: f, size: "sm", textAlign: r, wordBreak: "break-word", children: l }) : l, d(m, { alignItems: "start", display: "flex", flexDirection: "column", gap: 0.25, children: [i && t(o, { color: p ?? e.palette.gray[800], fontWeight: i === void 0 ? "bold" : "regular", size: "sm", textAlign: r, wordBreak: "break-word", children: i }), n && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `Date: ${n.split(" ")[0]}` }), a && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `$Author: ${a}` }), s && t(x, { icon: "circle-info", id: c, tip: s })] })] });
7
+ import { Text as t } from "../../typography/text/index.js";
8
+ const W = ({
9
+ authorEmail: d,
10
+ date: l,
11
+ description: i,
12
+ descriptionColor: c,
13
+ id: p,
14
+ title: a,
15
+ titleColor: f,
16
+ textAlign: e,
17
+ textSpacing: h = 0,
18
+ tooltip: m
19
+ }) => {
20
+ const o = b();
21
+ return /* @__PURE__ */ n(s, { width: "100%", children: [
22
+ typeof a == "string" ? /* @__PURE__ */ r(
23
+ t,
24
+ {
25
+ color: f ?? o.palette.gray[800],
26
+ fontWeight: "bold",
27
+ mb: h,
28
+ size: "sm",
29
+ textAlign: e,
30
+ wordBreak: "break-word",
31
+ children: a
32
+ }
33
+ ) : a,
34
+ /* @__PURE__ */ n(
35
+ s,
36
+ {
37
+ alignItems: "start",
38
+ display: "flex",
39
+ flexDirection: "column",
40
+ gap: 0.25,
41
+ children: [
42
+ i && /* @__PURE__ */ r(
43
+ t,
44
+ {
45
+ color: c ?? o.palette.gray[800],
46
+ fontWeight: i === void 0 ? "bold" : "regular",
47
+ size: "sm",
48
+ textAlign: e,
49
+ wordBreak: "break-word",
50
+ children: i
51
+ }
52
+ ),
53
+ l && /* @__PURE__ */ r(
54
+ t,
55
+ {
56
+ color: o.palette.gray[800],
57
+ fontWeight: "bold",
58
+ size: "sm",
59
+ textAlign: e,
60
+ wordBreak: "break-word",
61
+ children: `Date: ${l.split(" ")[0]}`
62
+ }
63
+ ),
64
+ d && /* @__PURE__ */ r(
65
+ t,
66
+ {
67
+ color: o.palette.gray[800],
68
+ fontWeight: "bold",
69
+ size: "sm",
70
+ textAlign: e,
71
+ wordBreak: "break-word",
72
+ children: `$Author: ${d}`
73
+ }
74
+ ),
75
+ m && /* @__PURE__ */ r(g, { icon: "circle-info", id: p, tip: m })
76
+ ]
77
+ }
78
+ )
79
+ ] });
11
80
  };
12
81
  export {
13
- B as CardHeader
82
+ W as CardHeader
14
83
  };
@@ -1,18 +1,93 @@
1
- import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
- import v, { useState as w, useCallback as s } from "react";
3
- import { useTheme as k } from "styled-components";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import C, { useState as w, useCallback as s } from "react";
3
+ import { useTheme as H } from "styled-components";
4
4
  import { CardHeader as j } from "../card-header/index.js";
5
- import { Container as e } from "../../container/index.js";
6
- import { FilePreview as z } from "../../file-preview/index.js";
7
- import { IconButton as E } from "../../icon-button/index.js";
8
- const L = ({ alt: r, authorEmail: l, date: d, description: c, src: p, children: o, isEditing: m, onClick: h, title: u, hideDescription: x = !1, headerType: f = "image", showMaximize: g = !0 }) => {
9
- const t = k(), [C, a] = w(!1), y = s(() => {
10
- a(!0);
11
- }, []), b = s(() => {
12
- a(!1);
5
+ import { Container as r } from "../../container/index.js";
6
+ import { FilePreview as I } from "../../file-preview/index.js";
7
+ import { IconButton as T } from "../../icon-button/index.js";
8
+ const D = ({
9
+ alt: o,
10
+ authorEmail: d,
11
+ date: l,
12
+ description: p,
13
+ src: c,
14
+ children: i,
15
+ isEditing: m,
16
+ onClick: f,
17
+ title: u,
18
+ hideDescription: h = !1,
19
+ headerType: x = "image",
20
+ showMaximize: g = !0
21
+ }) => {
22
+ const t = H(), [b, n] = w(!1), v = s(() => {
23
+ n(!0);
24
+ }, []), y = s(() => {
25
+ n(!1);
13
26
  }, []);
14
- return n(e, { bgColor: "transparent", border: "1px solid transparent", borderColorHover: "black", borderRadius: t.spacing[0.25], display: "flex", flexDirection: "column", gap: 1, onHover: y, onLeave: b, padding: [0.5, 0.5, 0.5, 0.5], width: "100%", children: [i(e, { cursor: m ? "unset" : "pointer", display: "inline-flex", justify: "center", onClick: h, position: "relative", width: "100%", children: o === void 0 ? n(v.Fragment, { children: [i(z, { alt: r, fileType: f, height: "147px", opacity: C ? 0.3 : 0, src: p, width: "100%" }), g ? i(e, { bottom: "10px", position: "absolute", right: "10px", children: i(E, { color: "white", icon: "arrows-maximize", iconSize: "xxs", iconType: "fa-light", variant: "secondary" }) }) : void 0] }) : o }), x ? null : i(j, { authorEmail: l, date: d, description: c, descriptionColor: t.palette.gray[600], id: `${r}-card-header`, title: u })] });
27
+ return /* @__PURE__ */ a(
28
+ r,
29
+ {
30
+ bgColor: "transparent",
31
+ border: "1px solid transparent",
32
+ borderColorHover: "black",
33
+ borderRadius: t.spacing[0.25],
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ gap: 1,
37
+ onHover: v,
38
+ onLeave: y,
39
+ padding: [0.5, 0.5, 0.5, 0.5],
40
+ width: "100%",
41
+ children: [
42
+ /* @__PURE__ */ e(
43
+ r,
44
+ {
45
+ cursor: m ? "unset" : "pointer",
46
+ display: "inline-flex",
47
+ justify: "center",
48
+ onClick: f,
49
+ position: "relative",
50
+ width: "100%",
51
+ children: i === void 0 ? /* @__PURE__ */ a(C.Fragment, { children: [
52
+ /* @__PURE__ */ e(
53
+ I,
54
+ {
55
+ alt: o,
56
+ fileType: x,
57
+ height: "147px",
58
+ opacity: b ? 0.3 : 0,
59
+ src: c,
60
+ width: "100%"
61
+ }
62
+ ),
63
+ g ? /* @__PURE__ */ e(r, { bottom: "10px", position: "absolute", right: "10px", children: /* @__PURE__ */ e(
64
+ T,
65
+ {
66
+ color: "white",
67
+ icon: "arrows-maximize",
68
+ iconSize: "xxs",
69
+ iconType: "fa-light",
70
+ variant: "secondary"
71
+ }
72
+ ) }) : void 0
73
+ ] }) : i
74
+ }
75
+ ),
76
+ h ? null : /* @__PURE__ */ e(
77
+ j,
78
+ {
79
+ authorEmail: d,
80
+ date: l,
81
+ description: p,
82
+ descriptionColor: t.palette.gray[600],
83
+ id: `${o}-card-header`,
84
+ title: u
85
+ }
86
+ )
87
+ ]
88
+ }
89
+ );
15
90
  };
16
91
  export {
17
- L as CardWithImage
92
+ D as CardWithImage
18
93
  };