@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,31 +1,36 @@
1
- import { jsx as r, jsxs as b } from "react/jsx-runtime";
2
- import { useMemo as x } from "react";
3
- import { styled as f } from "styled-components";
4
- import { CardHeader as y } from "../card-header/index.js";
1
+ import { jsx as o, jsxs as x } from "react/jsx-runtime";
2
+ import { useMemo as I } from "react";
3
+ import { styled as C } from "styled-components";
4
+ import { CardHeader as j } from "../card-header/index.js";
5
5
  import "../../inputs/fields/combobox/index.js";
6
- import { InputDate as H } from "../../inputs/fields/date/index.js";
6
+ import { InputDate as y } from "../../inputs/fields/date/index.js";
7
7
  import "../../inputs/fields/date-range/index.js";
8
8
  import "../../inputs/fields/date-time/index.js";
9
9
  import "lodash";
10
10
  import "../../icon/index.js";
11
- import "../../../index-D-lcuEHY.mjs";
11
+ import "../../../index-DwznImvK.mjs";
12
12
  import "../../container/index.js";
13
13
  import "../../link/index.js";
14
14
  import "../../typography/heading/index.js";
15
15
  import "../../typography/span/index.js";
16
16
  import "../../typography/text/index.js";
17
- import { Input as I } from "../../inputs/fields/input/index.js";
17
+ import { Input as h } from "../../inputs/fields/input/index.js";
18
18
  import "../../inputs/fields/input-file/index.js";
19
19
  import "../../inputs/fields/input-tags/index.js";
20
- import { InputNumber as W } from "../../inputs/fields/number/index.js";
20
+ import { InputNumber as w } from "../../inputs/fields/number/index.js";
21
21
  import "../../inputs/fields/number-range/index.js";
22
22
  import "../../inputs/fields/phone/index.js";
23
23
  import "../../inputs/fields/text-area/index.js";
24
- import "../../../styles-lSVV9kjn.mjs";
24
+ import "../../../styles-BXFVwnWT.mjs";
25
25
  import "../../tag/index.js";
26
26
  import "../../icon-button/index.js";
27
- const j = f.div`
28
- ${({ theme: t, $align: i = "center", $minWidth: n = "auto", $minHeight: o = "auto" }) => `
27
+ const H = C.div`
28
+ ${({
29
+ theme: t,
30
+ $align: r = "center",
31
+ $minWidth: p = "auto",
32
+ $minHeight: m = "auto"
33
+ }) => `
29
34
  display: flex;
30
35
  background-color: ${t.palette.white};
31
36
  border-radius: ${t.spacing[0.25]};
@@ -33,25 +38,69 @@ const j = f.div`
33
38
  flex-direction: column;
34
39
  justify-content: center;
35
40
  gap: ${t.spacing[0.5]};
36
- min-width: ${n};
37
- min-height: ${o};
41
+ min-width: ${p};
42
+ min-height: ${m};
38
43
  padding: ${t.spacing[1]};
39
44
 
40
45
  input {
41
46
  color: ${t.palette.gray[800]};
42
47
  line-height: ${t.spacing[1.5]};
43
- text-align: ${i};
48
+ text-align: ${r};
44
49
  }
45
50
  `}
46
- `, Y = ({ description: t, disabled: i, id: n, align: o, inputType: p = "text", inputNumberProps: a, minHeight: d, minWidth: l, name: e, placeholder: m, tooltip: s, title: c }) => {
47
- const u = x(() => {
48
- if (p === "text") return r(I, { disabled: i, name: e, placeholder: m });
49
- if (p === "date") return r(H, { disabled: i, name: e });
50
- const { decimalPlaces: g, max: $, min: h } = a ?? {};
51
- return r(W, { decimalPlaces: g, disabled: i, max: $, min: h, name: e, placeholder: m });
52
- }, [i, a, p, e, m]);
53
- return b(j, { $align: o, $minHeight: d, $minWidth: l, children: [r(y, { description: t, id: n, title: c, tooltip: s }), u] });
51
+ `, Z = ({
52
+ description: t,
53
+ disabled: r,
54
+ id: p,
55
+ align: m,
56
+ inputType: n = "text",
57
+ inputNumberProps: c,
58
+ minHeight: e,
59
+ minWidth: u,
60
+ name: i,
61
+ placeholder: a,
62
+ tooltip: g,
63
+ title: s
64
+ }) => {
65
+ const $ = I(() => {
66
+ if (n === "text")
67
+ return /* @__PURE__ */ o(h, { disabled: r, name: i, placeholder: a });
68
+ if (n === "date")
69
+ return /* @__PURE__ */ o(y, { disabled: r, name: i });
70
+ const { decimalPlaces: d, max: f, min: l } = c ?? {};
71
+ return /* @__PURE__ */ o(
72
+ w,
73
+ {
74
+ decimalPlaces: d,
75
+ disabled: r,
76
+ max: f,
77
+ min: l,
78
+ name: i,
79
+ placeholder: a
80
+ }
81
+ );
82
+ }, [r, c, n, i, a]);
83
+ return /* @__PURE__ */ x(
84
+ H,
85
+ {
86
+ $align: m,
87
+ $minHeight: e,
88
+ $minWidth: u,
89
+ children: [
90
+ /* @__PURE__ */ o(
91
+ j,
92
+ {
93
+ description: t,
94
+ id: p,
95
+ title: s,
96
+ tooltip: g
97
+ }
98
+ ),
99
+ $
100
+ ]
101
+ }
102
+ );
54
103
  };
55
104
  export {
56
- Y as CardWithInput
105
+ Z as CardWithInput
57
106
  };
@@ -1,16 +1,71 @@
1
- import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { M as c } from "../../../index-BwFnfaRh.mjs";
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as f } from "styled-components";
3
+ import { M as s } from "../../../index-maWH3JYC.mjs";
4
4
  import { Container as t } from "../../container/index.js";
5
- import { Icon as f } from "../../icon/index.js";
5
+ import { Icon as c } from "../../icon/index.js";
6
6
  import { RadioButton as h } from "../../radio-button/index.js";
7
7
  import { Heading as g } from "../../typography/heading/index.js";
8
8
  import "../../typography/span/index.js";
9
9
  import "../../typography/text/index.js";
10
- const j = ({ alt: d, imageId: o, icon: r, selectorProps: a, onClick: l, title: s, width: p = "fit-content" }) => {
11
- const e = m();
12
- return n(t, { alignItems: "center", border: `1px solid ${e.palette.gray[200]}`, borderColorHover: e.palette.gray[600], borderRadius: e.spacing[0.25], display: "inline-flex", padding: [1, 1, 1, 1], shadowHover: "md", width: p, children: [i(t, { alignSelf: "start", display: "flex", width: "fit-content", children: i(h, { name: a.name, onClick: l, value: a.value }) }), n(t, { alignItems: "center", display: "flex", gap: 0.5, justify: "space-between", ml: 1, mr: 1, width: "100%", children: [o === void 0 ? void 0 : i(c, { alt: d ?? "card image", height: "32px", publicId: o, width: "32px" }), r === void 0 ? void 0 : i(f, { icon: r, iconSize: "sm", iconType: "fa-light" }), i(g, { fontWeight: "bold", lineSpacing: 1.75, size: "xs", children: s })] })] });
10
+ const z = ({
11
+ alt: a,
12
+ imageId: n,
13
+ icon: r,
14
+ selectorProps: o,
15
+ onClick: m,
16
+ title: l,
17
+ width: p = "fit-content"
18
+ }) => {
19
+ const i = f();
20
+ return /* @__PURE__ */ d(
21
+ t,
22
+ {
23
+ alignItems: "center",
24
+ border: `1px solid ${i.palette.gray[200]}`,
25
+ borderColorHover: i.palette.gray[600],
26
+ borderRadius: i.spacing[0.25],
27
+ display: "inline-flex",
28
+ padding: [1, 1, 1, 1],
29
+ shadowHover: "md",
30
+ width: p,
31
+ children: [
32
+ /* @__PURE__ */ e(t, { alignSelf: "start", display: "flex", width: "fit-content", children: /* @__PURE__ */ e(
33
+ h,
34
+ {
35
+ name: o.name,
36
+ onClick: m,
37
+ value: o.value
38
+ }
39
+ ) }),
40
+ /* @__PURE__ */ d(
41
+ t,
42
+ {
43
+ alignItems: "center",
44
+ display: "flex",
45
+ gap: 0.5,
46
+ justify: "space-between",
47
+ ml: 1,
48
+ mr: 1,
49
+ width: "100%",
50
+ children: [
51
+ n === void 0 ? void 0 : /* @__PURE__ */ e(
52
+ s,
53
+ {
54
+ alt: a ?? "card image",
55
+ height: "32px",
56
+ publicId: n,
57
+ width: "32px"
58
+ }
59
+ ),
60
+ r === void 0 ? void 0 : /* @__PURE__ */ e(c, { icon: r, iconSize: "sm", iconType: "fa-light" }),
61
+ /* @__PURE__ */ e(g, { fontWeight: "bold", lineSpacing: 1.75, size: "xs", children: l })
62
+ ]
63
+ }
64
+ )
65
+ ]
66
+ }
67
+ );
13
68
  };
14
69
  export {
15
- j as CardWithSelector
70
+ z as CardWithSelector
16
71
  };
@@ -1,11 +1,49 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { CardHeader as g } from "../card-header/index.js";
4
- import { Container as r } from "../../container/index.js";
5
- import { Toggle as p } from "../../toggle/index.js";
6
- const y = ({ id: o, title: a, toggles: n, minWidth: s = "auto", height: d = "auto" }) => {
7
- const i = m();
8
- return l(r, { alignItems: "center", bgColor: i.palette.white, border: `1px solid ${i.palette.gray[200]}`, borderRadius: i.spacing[0.25], display: "flex", flexDirection: "column", gap: 0.5, height: d, justify: "center", minHeight: "100px", minWidth: s, padding: [1.25, 1.25, 1.25, 1.25], children: [t(g, { id: o, title: a }), t(r, { display: "flex", flexDirection: "column", gap: 0.5, minHeight: "40px", width: "100%", children: n.map((e) => t(p, { ...e }, `$card-toggle-${e.name}`)) })] });
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ import { useTheme as d } from "styled-components";
3
+ import { CardHeader as c } from "../card-header/index.js";
4
+ import { Container as i } from "../../container/index.js";
5
+ import { Toggle as g } from "../../toggle/index.js";
6
+ const y = ({
7
+ id: o,
8
+ title: a,
9
+ toggles: m,
10
+ minWidth: n = "auto",
11
+ height: l = "auto"
12
+ }) => {
13
+ const e = d();
14
+ return /* @__PURE__ */ p(
15
+ i,
16
+ {
17
+ alignItems: "center",
18
+ bgColor: e.palette.white,
19
+ border: `1px solid ${e.palette.gray[200]}`,
20
+ borderRadius: e.spacing[0.25],
21
+ display: "flex",
22
+ flexDirection: "column",
23
+ gap: 0.5,
24
+ height: l,
25
+ justify: "center",
26
+ minHeight: "100px",
27
+ minWidth: n,
28
+ padding: [1.25, 1.25, 1.25, 1.25],
29
+ children: [
30
+ /* @__PURE__ */ t(c, { id: o, title: a }),
31
+ /* @__PURE__ */ t(
32
+ i,
33
+ {
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ gap: 0.5,
37
+ minHeight: "40px",
38
+ width: "100%",
39
+ children: m.map(
40
+ (r) => /* @__PURE__ */ t(g, { ...r }, `$card-toggle-${r.name}`)
41
+ )
42
+ }
43
+ )
44
+ ]
45
+ }
46
+ );
9
47
  };
10
48
  export {
11
49
  y as CardWithSwitch
@@ -1,50 +1,76 @@
1
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
- import { useCallback as m } from "react";
3
- import { styled as r } from "styled-components";
4
- import { u } from "../../use-carousel-CvRxi2FI.mjs";
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
+ import { useCallback as u } from "react";
3
+ import { styled as e } from "styled-components";
4
+ import { u as m } from "../../use-carousel-CgAF78h3.mjs";
5
5
  import "lodash";
6
- const h = r.div`
6
+ const g = e.div`
7
7
  position: relative;
8
8
  margin: auto;
9
9
  overflow: hidden;
10
- `, $ = r.div`
10
+ `, v = e.div`
11
11
  display: flex;
12
12
  transition: transform 0.5s ease-in-out;
13
13
  transform: translateX(
14
- ${({ $currentIndex: e }) => 100 * -e}%
14
+ ${({ $currentIndex: t }) => -t * 100}%
15
15
  );
16
- `, g = r.div`
16
+ `, f = e.div`
17
17
  align-items: center;
18
18
  display: flex;
19
19
  justify-content: center;
20
20
  min-width: 100%;
21
- `, f = r.button`
22
- ${({ theme: e, $isActive: s }) => `
23
- background-color: ${s ? e.palette.primary[400] : e.palette.white};
21
+ `, $ = e.button`
22
+ ${({ theme: t, $isActive: a }) => `
23
+ background-color: ${a ? t.palette.primary[400] : t.palette.white};
24
24
  border: none;
25
25
  border-radius: 50%;
26
26
  cursor: pointer;
27
- height: ${e.spacing[0.75]};
28
- width: ${e.spacing[0.75]};
27
+ height: ${t.spacing[0.75]};
28
+ width: ${t.spacing[0.75]};
29
29
  `}
30
- `, v = r.div`
30
+ `, y = e.div`
31
31
  align-items: center;
32
32
  display: flex;
33
- gap: ${({ theme: e }) => e.spacing[0.5]};
33
+ gap: ${({ theme: t }) => t.spacing[0.5]};
34
34
  justify-content: center;
35
- margin-top: ${({ theme: e }) => e.spacing[2]};
36
- `, C = ({ slides: e, interval: s = 300 }) => {
37
- const { cycle: o, setCycle: l, setProgress: c } = u(s, e.length), d = m((n) => () => {
38
- l(n), c(0);
39
- }, [l, c]);
40
- return p(h, { "aria-roledescription": "carousel", children: [a($, { $currentIndex: o, children: e.map((n, t) => {
41
- const i = `slide-${t}`;
42
- return a(g, { "aria-label": i, "aria-roledescription": "slide", children: n.content }, i);
43
- }) }), a(v, { children: e.map((n, t) => {
44
- const i = `nav-button-${t}`;
45
- return a(f, { $isActive: t === o, "aria-label": `Go to slide ${t + 1}`, "data-testid": t === o ? "active" : "inactive", onClick: d(t) }, i);
46
- }) })] });
35
+ margin-top: ${({ theme: t }) => t.spacing[2]};
36
+ `, w = ({
37
+ slides: t,
38
+ interval: a = 300
39
+ }) => {
40
+ const { cycle: s, setCycle: c, setProgress: l } = m(a, t.length), p = u(
41
+ (n) => () => {
42
+ c(n), l(0);
43
+ },
44
+ [c, l]
45
+ );
46
+ return /* @__PURE__ */ d(g, { "aria-roledescription": "carousel", children: [
47
+ /* @__PURE__ */ i(v, { $currentIndex: s, children: t.map((n, r) => {
48
+ const o = `slide-${r}`;
49
+ return /* @__PURE__ */ i(
50
+ f,
51
+ {
52
+ "aria-label": o,
53
+ "aria-roledescription": "slide",
54
+ children: n.content
55
+ },
56
+ o
57
+ );
58
+ }) }),
59
+ /* @__PURE__ */ i(y, { children: t.map((n, r) => {
60
+ const o = `nav-button-${r}`;
61
+ return /* @__PURE__ */ i(
62
+ $,
63
+ {
64
+ $isActive: r === s,
65
+ "aria-label": `Go to slide ${r + 1}`,
66
+ "data-testid": r === s ? "active" : "inactive",
67
+ onClick: p(r)
68
+ },
69
+ o
70
+ );
71
+ }) })
72
+ ] });
47
73
  };
48
74
  export {
49
- C as Carousel
75
+ w as Carousel
50
76
  };
@@ -1,23 +1,23 @@
1
- import { jsxs as g, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as h } from "react";
3
- import { styled as u } from "styled-components";
4
- import { Icon as b } from "../icon/index.js";
5
- const y = u.label`
6
- ${({ theme: e }) => `
1
+ import { jsxs as $, jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
+ import { styled as b } from "styled-components";
4
+ import { Icon as u } from "../icon/index.js";
5
+ const f = b.label`
6
+ ${({ theme: a }) => `
7
7
  align-items: start;
8
- color: ${e.palette.gray[600]};
8
+ color: ${a.palette.gray[600]};
9
9
  display: flex;
10
10
  cursor: pointer;
11
- font-family: ${e.typography.type.primary};
12
- font-size: ${e.typography.text.sm};
13
- font-weight: ${e.typography.weight.regular};
14
- line-height: ${e.spacing[1]};
11
+ font-family: ${a.typography.type.primary};
12
+ font-size: ${a.typography.text.sm};
13
+ font-weight: ${a.typography.weight.regular};
14
+ line-height: ${a.spacing[1]};
15
15
  letter-spacing: 0;
16
16
  position: relative;
17
17
  text-align: left;
18
18
 
19
19
  &[aria-disabled="true"] {
20
- color: ${e.palette.gray[300]};
20
+ color: ${a.palette.gray[300]};
21
21
  cursor: not-allowed;
22
22
  }
23
23
 
@@ -30,55 +30,89 @@ const y = u.label`
30
30
  }
31
31
 
32
32
  svg {
33
- background-color: ${e.palette.white};
34
- border-radius: ${e.spacing[0.25]};
35
- border: 1px solid ${e.palette.gray[600]};
33
+ background-color: ${a.palette.white};
34
+ border-radius: ${a.spacing[0.25]};
35
+ border: 1px solid ${a.palette.gray[600]};
36
36
  top: 0;
37
37
  left: 0;
38
- height: ${e.spacing[0.5]};
39
- margin-right: ${e.spacing[0.5]};
40
- width: ${e.spacing[0.5]};
41
- padding: ${e.spacing[0.25]};
38
+ height: ${a.spacing[0.5]};
39
+ margin-right: ${a.spacing[0.5]};
40
+ width: ${a.spacing[0.5]};
41
+ padding: ${a.spacing[0.25]};
42
42
  }
43
43
 
44
44
  svg > path {
45
- fill: ${e.palette.white};
45
+ fill: ${a.palette.white};
46
46
  }
47
47
 
48
48
  input:checked ~ span > svg {
49
- background-color: ${e.palette.primary[500]};
50
- border: 1px solid ${e.palette.primary[500]};
49
+ background-color: ${a.palette.primary[500]};
50
+ border: 1px solid ${a.palette.primary[500]};
51
51
  }
52
52
 
53
53
  input:disabled ~ span > svg {
54
- border: 1px solid ${e.palette.gray[300]};
54
+ border: 1px solid ${a.palette.gray[300]};
55
55
  cursor: not-allowed;
56
56
  }
57
57
 
58
58
  input:not(:disabled):hover ~ span > svg {
59
- box-shadow: 0 0 0 4px ${e.palette.gray[100]};
59
+ box-shadow: 0 0 0 4px ${a.palette.gray[100]};
60
60
  }
61
61
 
62
62
  input:checked:disabled ~ span > svg {
63
- background-color: ${e.palette.gray[300]};
64
- border: 1px solid ${e.palette.gray[300]};
63
+ background-color: ${a.palette.gray[300]};
64
+ border: 1px solid ${a.palette.gray[300]};
65
65
  }
66
66
 
67
67
  input:not(:disabled):hover:checked ~ span > svg {
68
- box-shadow: 0 0 0 4px ${e.palette.primary[50]};
68
+ box-shadow: 0 0 0 4px ${a.palette.primary[50]};
69
69
  }
70
70
 
71
71
  input:checked ~ span > svg > path {
72
- fill: ${e.palette.white};
72
+ fill: ${a.palette.white};
73
73
  }
74
74
 
75
75
  input:checked:disabled ~ span > svg > path {
76
- fill: ${e.palette.white};
76
+ fill: ${a.palette.white};
77
77
  }
78
78
  `}
79
- `, x = h(function({ defaultChecked: e = !1, disabled: n = !1, label: o, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, value: t, ...d }, c) {
80
- return g(y, { "aria-disabled": n, htmlFor: a, children: [i("input", { "aria-checked": e, "aria-disabled": n, "aria-label": a, defaultChecked: e, disabled: n, id: a, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, ref: c, type: "checkbox", value: t, ...d }), i(b, { disabled: n, icon: "check", iconSize: "sm" }), o ?? t] });
79
+ `, v = y(function({
80
+ defaultChecked: o = !1,
81
+ disabled: i = !1,
82
+ label: l,
83
+ name: r,
84
+ onChange: s,
85
+ onClick: n,
86
+ onFocus: e,
87
+ onKeyDown: c,
88
+ value: t,
89
+ ...d
90
+ }, g) {
91
+ return /* @__PURE__ */ $(f, { "aria-disabled": i, htmlFor: r, children: [
92
+ /* @__PURE__ */ p(
93
+ "input",
94
+ {
95
+ "aria-checked": o,
96
+ "aria-disabled": i,
97
+ "aria-label": r,
98
+ defaultChecked: o,
99
+ disabled: i,
100
+ id: r,
101
+ name: r,
102
+ onChange: s,
103
+ onClick: n,
104
+ onFocus: e,
105
+ onKeyDown: c,
106
+ ref: g,
107
+ type: "checkbox",
108
+ value: t,
109
+ ...d
110
+ }
111
+ ),
112
+ /* @__PURE__ */ p(u, { disabled: i, icon: "check", iconSize: "sm" }),
113
+ l ?? t
114
+ ] });
81
115
  });
82
116
  export {
83
- x as Checkbox
117
+ v as Checkbox
84
118
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import { M as a } from "../../index-BwFnfaRh.mjs";
2
+ import { M as a } from "../../index-maWH3JYC.mjs";
3
3
  import "react";
4
- import "../../use-cloudinary-image-fG7ODNgr.mjs";
4
+ import "../../use-cloudinary-image-BCxwj15o.mjs";
5
5
  import "lodash";
6
6
  export {
7
7
  a as CloudImage
@@ -1,27 +1,72 @@
1
1
  import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
- import s from "lodash";
3
- import { useState as f, useCallback as p, useMemo as C } from "react";
4
- import { useTheme as x } from "styled-components";
5
- import { C as y, B as v } from "../../styles-Cx93EcVo.mjs";
6
- import { Button as w } from "../button/index.js";
7
- import { Container as S } from "../container/index.js";
8
- import { Icon as b } from "../icon/index.js";
9
- import { IconButton as j } from "../icon-button/index.js";
10
- const L = ({ noCodeMessage: l = "Code snippet not available", snippet: o }) => {
11
- const e = x(), [t, c] = f(!1), [g, m] = f(!0), u = p(() => {
12
- c((i) => !i);
13
- }, [c]), h = p(() => {
14
- if (s.isNil(o) || s.isEmpty(o) || !s.isString(o)) return m(!1), l;
15
- const i = o.split(`
2
+ import l from "lodash";
3
+ import { useState as g, useCallback as c, useMemo as C } from "react";
4
+ import { useTheme as w } from "styled-components";
5
+ import { C as x, B as y } from "../../styles-CROOwXEH.mjs";
6
+ import { Button as S } from "../button/index.js";
7
+ import { Container as v } from "../container/index.js";
8
+ import { Icon as B } from "../icon/index.js";
9
+ import { IconButton as b } from "../icon-button/index.js";
10
+ const E = ({
11
+ noCodeMessage: s = "Code snippet not available",
12
+ snippet: o
13
+ }) => {
14
+ const e = w(), [i, h] = g(!1), [d, m] = g(!0), u = c(() => {
15
+ h((t) => !t);
16
+ }, [h]), p = c(() => {
17
+ if (l.isNil(o) || l.isEmpty(o) || !l.isString(o))
18
+ return m(!1), s;
19
+ const t = o.split(`
16
20
  `);
17
- return i.length > 8 && !t ? `${[...i].splice(0, 7).join(`
21
+ return t.length > 8 && !i ? `${[...t].splice(0, 7).join(`
18
22
  `)}
19
- ${i[8]}...` : (i.length < 8 && m(!1), o);
20
- }, [t, o, l]), r = C(h, [h]), d = p(async () => {
23
+ ${t[8]}...` : (t.length < 8 && m(!1), o);
24
+ }, [i, o, s]), r = C(p, [p]), f = c(async () => {
21
25
  await navigator.clipboard.writeText(r);
22
26
  }, [r]);
23
- return a(S, { bgColor: e.palette.gray[100], borderRadius: "4px", display: "inline-flex", minWidth: "565px", position: "relative", children: [n(y, { "data-private": !0, children: n("pre", { children: n("code", { className: "language-none", children: r }) }) }), a(v, { children: [n(j, { height: e.spacing[2.5], icon: "copy", iconColor: e.palette.gray[700], iconSize: "xs", iconType: "fa-light", onClick: d, variant: "ghost", width: e.spacing[2.5] }), !!g && a(w, { onClick: u, variant: "ghost", children: [t ? "Show Less" : "Show more", n(b, { icon: t ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[700], iconSize: "xxs", iconType: "fa-light", ml: 0.25, onClick: d })] })] })] });
27
+ return /* @__PURE__ */ a(
28
+ v,
29
+ {
30
+ bgColor: e.palette.gray[100],
31
+ borderRadius: "4px",
32
+ display: "inline-flex",
33
+ minWidth: "565px",
34
+ position: "relative",
35
+ children: [
36
+ /* @__PURE__ */ n(x, { "data-private": !0, children: /* @__PURE__ */ n("pre", { children: /* @__PURE__ */ n("code", { className: "language-none", children: r }) }) }),
37
+ /* @__PURE__ */ a(y, { children: [
38
+ /* @__PURE__ */ n(
39
+ b,
40
+ {
41
+ height: e.spacing[2.5],
42
+ icon: "copy",
43
+ iconColor: e.palette.gray[700],
44
+ iconSize: "xs",
45
+ iconType: "fa-light",
46
+ onClick: f,
47
+ variant: "ghost",
48
+ width: e.spacing[2.5]
49
+ }
50
+ ),
51
+ d ? /* @__PURE__ */ a(S, { onClick: u, variant: "ghost", children: [
52
+ i ? "Show Less" : "Show more",
53
+ /* @__PURE__ */ n(
54
+ B,
55
+ {
56
+ icon: i ? "chevron-up" : "chevron-down",
57
+ iconColor: e.palette.gray[700],
58
+ iconSize: "xxs",
59
+ iconType: "fa-light",
60
+ ml: 0.25,
61
+ onClick: f
62
+ }
63
+ )
64
+ ] }) : !1
65
+ ] })
66
+ ]
67
+ }
68
+ );
24
69
  };
25
70
  export {
26
- L as CodeSnippet
71
+ E as CodeSnippet
27
72
  };