@fluidattacks/design 3.1.11 → 3.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,71 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("styled-components"),t=require("../../../index-TKLFHcRp.js"),r=require("../../container/index.js"),n=require("../../icon/index.js"),o=require("../../radio-button/index.js"),a=require("../../typography/heading/index.js");require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.CardWithSelector=({alt:d,imageId:s,icon:l,selectorProps:c,onClick:p,title:x,width:g="fit-content"})=>{const u=i.useTheme();return e.jsxs(r.Container,{alignItems:"center",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:g,children:[e.jsx(r.Container,{alignSelf:"start",display:"flex",width:"fit-content",children:e.jsx(o.RadioButton,{name:c.name,onClick:p,value:c.value})}),e.jsxs(r.Container,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[void 0===s?void 0:e.jsx(t.MemoizedImage,{alt:d??"card image",height:"32px",publicId:s,width:"32px"}),void 0===l?void 0:e.jsx(n.Icon,{icon:l,iconSize:"sm",iconType:"fa-light"}),e.jsx(a.Heading,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:x})]})]})};
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
+ import { Container as t } from "../../container/index.js";
5
+ import { Icon as c } from "../../icon/index.js";
6
+ import { RadioButton as h } from "../../radio-button/index.js";
7
+ import { Heading as g } from "../../typography/heading/index.js";
8
+ import "../../typography/span/index.js";
9
+ import "../../typography/text/index.js";
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
+ );
68
+ };
69
+ export {
70
+ z as CardWithSelector
71
+ };
@@ -1 +1,50 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("styled-components"),t=require("../card-header/index.js"),r=require("../../container/index.js"),n=require("../../toggle/index.js");exports.CardWithSwitch=({id:o,title:a,toggles:d,minWidth:s="auto",height:l="auto"})=>{const g=i.useTheme();return e.jsxs(r.Container,{alignItems:"center",bgColor:g.palette.white,border:`1px solid ${g.palette.gray[200]}`,borderRadius:g.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:l,justify:"center",minHeight:"100px",minWidth:s,padding:[1.25,1.25,1.25,1.25],children:[e.jsx(t.CardHeader,{id:o,title:a}),e.jsx(r.Container,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:d.map((i=>e.jsx(n.Toggle,{...i},`$card-toggle-${i.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
+ );
47
+ };
48
+ export {
49
+ y as CardWithSwitch
50
+ };
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./card-header/index.js"),r=require("./card-with-image/index.js"),t=require("./card-with-input/index.js"),i=require("./card-with-selector/index.js"),d=require("./card-with-switch/index.js");exports.CardHeader=e.CardHeader,exports.CardWithImage=r.CardWithImage,exports.CardWithInput=t.CardWithInput,exports.CardWithSelector=i.CardWithSelector,exports.CardWithSwitch=d.CardWithSwitch;
1
+ import { CardHeader as o } from "./card-header/index.js";
2
+ import { CardWithImage as a } from "./card-with-image/index.js";
3
+ import { CardWithInput as m } from "./card-with-input/index.js";
4
+ import { CardWithSelector as f } from "./card-with-selector/index.js";
5
+ import { CardWithSwitch as i } from "./card-with-switch/index.js";
6
+ export {
7
+ o as CardHeader,
8
+ a as CardWithImage,
9
+ m as CardWithInput,
10
+ f as CardWithSelector,
11
+ i as CardWithSwitch
12
+ };
@@ -1,24 +1,76 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),i=require("../../use-carousel-64dKFW4E.js");require("lodash");const n=r.styled.div`
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
+ import "lodash";
6
+ const g = e.div`
2
7
  position: relative;
3
8
  margin: auto;
4
9
  overflow: hidden;
5
- `,s=r.styled.div`
10
+ `, v = e.div`
6
11
  display: flex;
7
12
  transition: transform 0.5s ease-in-out;
8
13
  transform: translateX(
9
- ${({$currentIndex:e})=>100*-e}%
14
+ ${({ $currentIndex: t }) => -t * 100}%
10
15
  );
11
- `,a=r.styled.div`
16
+ `, f = e.div`
12
17
  align-items: center;
13
18
  display: flex;
14
19
  justify-content: center;
15
20
  min-width: 100%;
16
- `,l=r.styled.button`
17
- ${({theme:e,$isActive:t})=>`\n background-color: ${t?e.palette.primary[400]:e.palette.white};\n border: none;\n border-radius: 50%;\n cursor: pointer;\n height: ${e.spacing[.75]};\n width: ${e.spacing[.75]};\n `}
18
- `,o=r.styled.div`
21
+ `, $ = e.button`
22
+ ${({ theme: t, $isActive: a }) => `
23
+ background-color: ${a ? t.palette.primary[400] : t.palette.white};
24
+ border: none;
25
+ border-radius: 50%;
26
+ cursor: pointer;
27
+ height: ${t.spacing[0.75]};
28
+ width: ${t.spacing[0.75]};
29
+ `}
30
+ `, y = e.div`
19
31
  align-items: center;
20
32
  display: flex;
21
- gap: ${({theme:e})=>e.spacing[.5]};
33
+ gap: ${({ theme: t }) => t.spacing[0.5]};
22
34
  justify-content: center;
23
- margin-top: ${({theme:e})=>e.spacing[2]};
24
- `;exports.Carousel=({slides:r,interval:c=300})=>{const{cycle:d,setCycle:u,setProgress:p}=i.useCarousel(c,r.length),m=t.useCallback((e=>()=>{u(e),p(0)}),[u,p]);return e.jsxs(n,{"aria-roledescription":"carousel",children:[e.jsx(s,{$currentIndex:d,children:r.map(((t,r)=>{const i=`slide-${r}`;return e.jsx(a,{"aria-label":i,"aria-roledescription":"slide",children:t.content},i)}))}),e.jsx(o,{children:r.map(((t,r)=>{const i=`nav-button-${r}`;return e.jsx(l,{$isActive:r===d,"aria-label":`Go to slide ${r+1}`,"data-testid":r===d?"active":"inactive",onClick:m(r)},i)}))})]})};
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
+ ] });
73
+ };
74
+ export {
75
+ w as Carousel
76
+ };
@@ -1,3 +1,118 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("react"),t=require("styled-components"),a=require("../icon/index.js"),i=t.styled.label`
2
- ${({theme:n})=>`\n align-items: start;\n color: ${n.palette.gray[600]};\n display: flex;\n cursor: pointer;\n font-family: ${n.typography.type.primary};\n font-size: ${n.typography.text.sm};\n font-weight: ${n.typography.weight.regular};\n line-height: ${n.spacing[1]};\n letter-spacing: 0;\n position: relative;\n text-align: left;\n\n &[aria-disabled="true"] {\n color: ${n.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n background-color: ${n.palette.white};\n border-radius: ${n.spacing[.25]};\n border: 1px solid ${n.palette.gray[600]};\n top: 0;\n left: 0;\n height: ${n.spacing[.5]};\n margin-right: ${n.spacing[.5]};\n width: ${n.spacing[.5]};\n padding: ${n.spacing[.25]};\n }\n\n svg > path {\n fill: ${n.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${n.palette.primary[500]};\n border: 1px solid ${n.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${n.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${n.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${n.palette.gray[300]};\n border: 1px solid ${n.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${n.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${n.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${n.palette.white};\n }\n `}
3
- `,r=e.forwardRef((function({defaultChecked:e=!1,disabled:t=!1,label:r,name:o,onChange:l,onClick:p,onFocus:s,onKeyDown:d,value:c,...g},h){return n.jsxs(i,{"aria-disabled":t,htmlFor:o,children:[n.jsx("input",{"aria-checked":e,"aria-disabled":t,"aria-label":o,defaultChecked:e,disabled:t,id:o,name:o,onChange:l,onClick:p,onFocus:s,onKeyDown:d,ref:h,type:"checkbox",value:c,...g}),n.jsx(a.Icon,{disabled:t,icon:"check",iconSize:"sm"}),r??c]})}));exports.Checkbox=r;
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
+ align-items: start;
8
+ color: ${a.palette.gray[600]};
9
+ display: flex;
10
+ cursor: pointer;
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
+ letter-spacing: 0;
16
+ position: relative;
17
+ text-align: left;
18
+
19
+ &[aria-disabled="true"] {
20
+ color: ${a.palette.gray[300]};
21
+ cursor: not-allowed;
22
+ }
23
+
24
+ input {
25
+ position: absolute;
26
+ opacity: 0;
27
+ cursor: pointer;
28
+ height: 0;
29
+ width: 0;
30
+ }
31
+
32
+ svg {
33
+ background-color: ${a.palette.white};
34
+ border-radius: ${a.spacing[0.25]};
35
+ border: 1px solid ${a.palette.gray[600]};
36
+ top: 0;
37
+ left: 0;
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
+ }
43
+
44
+ svg > path {
45
+ fill: ${a.palette.white};
46
+ }
47
+
48
+ input:checked ~ span > svg {
49
+ background-color: ${a.palette.primary[500]};
50
+ border: 1px solid ${a.palette.primary[500]};
51
+ }
52
+
53
+ input:disabled ~ span > svg {
54
+ border: 1px solid ${a.palette.gray[300]};
55
+ cursor: not-allowed;
56
+ }
57
+
58
+ input:not(:disabled):hover ~ span > svg {
59
+ box-shadow: 0 0 0 4px ${a.palette.gray[100]};
60
+ }
61
+
62
+ input:checked:disabled ~ span > svg {
63
+ background-color: ${a.palette.gray[300]};
64
+ border: 1px solid ${a.palette.gray[300]};
65
+ }
66
+
67
+ input:not(:disabled):hover:checked ~ span > svg {
68
+ box-shadow: 0 0 0 4px ${a.palette.primary[50]};
69
+ }
70
+
71
+ input:checked ~ span > svg > path {
72
+ fill: ${a.palette.white};
73
+ }
74
+
75
+ input:checked:disabled ~ span > svg > path {
76
+ fill: ${a.palette.white};
77
+ }
78
+ `}
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
+ ] });
115
+ });
116
+ export {
117
+ v as Checkbox
118
+ };
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime");const e=require("../../index-TKLFHcRp.js");require("react"),require("../../use-cloudinary-image-YMMafagv.js"),require("lodash"),exports.CloudImage=e.MemoizedImage;
1
+ import "react/jsx-runtime";
2
+ import { M as a } from "../../index-maWH3JYC.mjs";
3
+ import "react";
4
+ import "../../use-cloudinary-image-BCxwj15o.mjs";
5
+ import "lodash";
6
+ export {
7
+ a as CloudImage
8
+ };
@@ -1 +1,72 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lodash"),n=require("react"),t=require("styled-components"),o=require("../../styles-CNzziAXG.js"),r=require("../button/index.js"),s=require("../container/index.js"),a=require("../icon/index.js"),l=require("../icon-button/index.js");exports.CodeSnippet=({noCodeMessage:c="Code snippet not available",snippet:u})=>{const p=t.useTheme(),[d,h]=n.useState(!1),[x,g]=n.useState(!0),j=n.useCallback((()=>{h((e=>!e))}),[h]),C=n.useCallback((()=>{if(i.isNil(u)||i.isEmpty(u)||!i.isString(u))return g(!1),c;const e=u.split("\n");return e.length>8&&!d?`${[...e].splice(0,7).join("\n")}\n${e[8]}...`:(e.length<8&&g(!1),u)}),[d,u,c]),y=n.useMemo(C,[C]),b=n.useCallback((async()=>{await navigator.clipboard.writeText(y)}),[y]);return e.jsxs(s.Container,{bgColor:p.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[e.jsx(o.CodeContainer,{"data-private":!0,children:e.jsx("pre",{children:e.jsx("code",{className:"language-none",children:y})})}),e.jsxs(o.ButtonsContainer,{children:[e.jsx(l.IconButton,{height:p.spacing[2.5],icon:"copy",iconColor:p.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:b,variant:"ghost",width:p.spacing[2.5]}),!!x&&e.jsxs(r.Button,{onClick:j,variant:"ghost",children:[d?"Show Less":"Show more",e.jsx(a.Icon,{icon:d?"chevron-up":"chevron-down",iconColor:p.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:b})]})]})]})};
1
+ import { jsxs as a, jsx as n } from "react/jsx-runtime";
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(`
20
+ `);
21
+ return t.length > 8 && !i ? `${[...t].splice(0, 7).join(`
22
+ `)}
23
+ ${t[8]}...` : (t.length < 8 && m(!1), o);
24
+ }, [i, o, s]), r = C(p, [p]), f = c(async () => {
25
+ await navigator.clipboard.writeText(r);
26
+ }, [r]);
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
+ );
69
+ };
70
+ export {
71
+ E as CodeSnippet
72
+ };
@@ -1 +1,171 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index2.css');const e=require("react/jsx-runtime"),t=require("lodash"),i=require("prismjs"),n=require("react"),r=require("../../../styles-CNzziAXG.js");!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document&&document.querySelector){var e,t="line-numbers",i="linkable-line-numbers",n=/\n(?!$)/g,r=!0;Prism.plugins.lineHighlight={highlightLines:function(s,u,c){var d=(u="string"==typeof u?u:s.getAttribute("data-line")||"").replace(/\s+/g,"").split(",").filter(Boolean),h=+s.getAttribute("data-line-offset")||0,p=(function(){if(void 0===e){var t=document.createElement("div");t.style.fontSize="13px",t.style.lineHeight="1.5",t.style.padding="0",t.style.border="0",t.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(t),e=38===t.offsetHeight,document.body.removeChild(t)}return e}()?parseInt:parseFloat)(getComputedStyle(s).lineHeight),g=Prism.util.isActive(s,t),f=s.querySelector("code"),m=g?s:f||s,v=[],y=f.textContent.match(n),b=y?y.length+1:1,x=f&&m!=f?function(e,t){var i=getComputedStyle(e),n=getComputedStyle(t);function r(e){return+e.substr(0,e.length-2)}return t.offsetTop+r(n.borderTopWidth)+r(n.paddingTop)-r(i.paddingTop)}(s,f):0;d.forEach((function(e){var t=e.split("-"),i=+t[0],n=+t[1]||i;if(!((n=Math.min(b+h,n))<i)){var r=s.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div");if(v.push((function(){r.setAttribute("aria-hidden","true"),r.setAttribute("data-range",e),r.className=(c||"")+" line-highlight"})),g&&Prism.plugins.lineNumbers){var o=Prism.plugins.lineNumbers.getLine(s,i),l=Prism.plugins.lineNumbers.getLine(s,n);if(o){var a=o.offsetTop+x+"px";v.push((function(){r.style.top=a}))}if(l){var u=l.offsetTop-o.offsetTop+l.offsetHeight+"px";v.push((function(){r.style.height=u}))}}else v.push((function(){r.setAttribute("data-start",String(i)),n>i&&r.setAttribute("data-end",String(n)),r.style.top=(i-h-1)*p+x+"px",r.textContent=new Array(n-i+2).join(" \n")}));v.push((function(){r.style.width=s.scrollWidth+"px"})),v.push((function(){m.appendChild(r)}))}}));var A=s.id;if(g&&Prism.util.isActive(s,i)&&A){l(s,i)||v.push((function(){s.classList.add(i)}));var C=parseInt(s.getAttribute("data-start")||"1");o(".line-numbers-rows > span",s).forEach((function(e,t){var i=t+C;e.onclick=function(){var e=A+"."+i;r=!1,location.hash=e,setTimeout((function(){r=!0}),1)}}))}return function(){v.forEach(a)}}};var s=0;Prism.hooks.add("before-sanity-check",(function(e){var t=e.element.parentElement;if(u(t)){var i=0;o(".line-highlight",t).forEach((function(e){i+=e.textContent.length,e.parentNode.removeChild(e)})),i&&/^(?: \n)+$/.test(e.code.slice(-i))&&(e.code=e.code.slice(0,-i))}})),Prism.hooks.add("complete",(function e(i){var n=i.element.parentElement;if(u(n)){clearTimeout(s);var r=Prism.plugins.lineNumbers,o=i.plugins&&i.plugins.lineNumbers;l(n,t)&&r&&!o?Prism.hooks.add("line-numbers",e):(Prism.plugins.lineHighlight.highlightLines(n)(),s=setTimeout(c,1))}})),window.addEventListener("hashchange",c),window.addEventListener("resize",(function(){o("pre").filter(u).map((function(e){return Prism.plugins.lineHighlight.highlightLines(e)})).forEach(a)}))}function o(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function l(e,t){return e.classList.contains(t)}function a(e){e()}function u(e){return!!(e&&/pre/i.test(e.nodeName)&&(e.hasAttribute("data-line")||e.id&&Prism.util.isActive(e,i)))}function c(){var e=location.hash.slice(1);o(".temporary.line-highlight").forEach((function(e){e.parentNode.removeChild(e)}));var t=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var i=e.slice(0,e.lastIndexOf(".")),n=document.getElementById(i);n&&(n.hasAttribute("data-line")||n.setAttribute("data-line",""),Prism.plugins.lineHighlight.highlightLines(n,t,"temporary ")(),r&&document.querySelector(".temporary.line-highlight").scrollIntoView())}}}(),exports.Code=({noCodeMessage:s="Code snippet not available",snippet:o,specific:l})=>(n.useEffect((()=>{i.highlightAll()}),[]),e.jsx(r.CodeContainer,{"data-private":!0,children:e.jsx("pre",{className:"line-highlight","data-line-offset":t.isNil(o)||t.isString(o)?0:o.offset+.7,...void 0!==l?{"data-line":String(Number(l))}:{},children:t.isNil(o)||t.isString(o)||t.isEmpty(o.content)?e.jsx("div",{className:"no-data",children:e.jsx("p",{children:s})}):e.jsx("code",{className:"language-none",children:o.content})})}));
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import m from "lodash";
3
+ import { highlightAll as W } from "prismjs";
4
+ import { useEffect as j } from "react";
5
+ import { C as z } from "../../../styles-CROOwXEH.mjs";
6
+ (function() {
7
+ if (typeof Prism > "u" || typeof document > "u" || !document.querySelector)
8
+ return;
9
+ var g = "line-numbers", r = "linkable-line-numbers", p = /\n(?!$)/g;
10
+ function v(t, e) {
11
+ return Array.prototype.slice.call((e || document).querySelectorAll(t));
12
+ }
13
+ function S(t, e) {
14
+ return t.classList.contains(e);
15
+ }
16
+ function C(t) {
17
+ t();
18
+ }
19
+ var w = /* @__PURE__ */ function() {
20
+ var t;
21
+ return function() {
22
+ if (typeof t > "u") {
23
+ var e = document.createElement("div");
24
+ e.style.fontSize = "13px", e.style.lineHeight = "1.5", e.style.padding = "0", e.style.border = "0", e.innerHTML = "&nbsp;<br />&nbsp;", document.body.appendChild(e), t = e.offsetHeight === 38, document.body.removeChild(e);
25
+ }
26
+ return t;
27
+ };
28
+ }();
29
+ function B(t, e) {
30
+ var i = getComputedStyle(t), n = getComputedStyle(e);
31
+ function s(o) {
32
+ return +o.substr(0, o.length - 2);
33
+ }
34
+ return e.offsetTop + s(n.borderTopWidth) + s(n.paddingTop) - s(i.paddingTop);
35
+ }
36
+ function y(t) {
37
+ return !t || !/pre/i.test(t.nodeName) ? !1 : !!(t.hasAttribute("data-line") || t.id && Prism.util.isActive(t, r));
38
+ }
39
+ var E = !0;
40
+ Prism.plugins.lineHighlight = {
41
+ /**
42
+ * Highlights the lines of the given pre.
43
+ *
44
+ * This function is split into a DOM measuring and mutate phase to improve performance.
45
+ * The returned function mutates the DOM when called.
46
+ *
47
+ * @param {HTMLElement} pre
48
+ * @param {string | null} [lines]
49
+ * @param {string} [classes='']
50
+ * @returns {() => void}
51
+ */
52
+ highlightLines: function(e, i, n) {
53
+ i = typeof i == "string" ? i : e.getAttribute("data-line") || "";
54
+ var s = i.replace(/\s+/g, "").split(",").filter(Boolean), o = +e.getAttribute("data-line-offset") || 0, _ = w() ? parseInt : parseFloat, M = _(getComputedStyle(e).lineHeight), L = Prism.util.isActive(e, g), f = e.querySelector("code"), H = L ? e : f || e, h = (
55
+ /** @type {(() => void)[]} */
56
+ []
57
+ ), x = f.textContent.match(p), q = x ? x.length + 1 : 1, I = !f || H == f ? 0 : B(e, f);
58
+ s.forEach(function(c) {
59
+ var b = c.split("-"), l = +b[0], u = +b[1] || l;
60
+ if (u = Math.min(q + o, u), !(u < l)) {
61
+ var a = e.querySelector('.line-highlight[data-range="' + c + '"]') || document.createElement("div");
62
+ if (h.push(function() {
63
+ a.setAttribute("aria-hidden", "true"), a.setAttribute("data-range", c), a.className = (n || "") + " line-highlight";
64
+ }), L && Prism.plugins.lineNumbers) {
65
+ var N = Prism.plugins.lineNumbers.getLine(e, l), A = Prism.plugins.lineNumbers.getLine(e, u);
66
+ if (N) {
67
+ var O = N.offsetTop + I + "px";
68
+ h.push(function() {
69
+ a.style.top = O;
70
+ });
71
+ }
72
+ if (A) {
73
+ var F = A.offsetTop - N.offsetTop + A.offsetHeight + "px";
74
+ h.push(function() {
75
+ a.style.height = F;
76
+ });
77
+ }
78
+ } else
79
+ h.push(function() {
80
+ a.setAttribute("data-start", String(l)), u > l && a.setAttribute("data-end", String(u)), a.style.top = (l - o - 1) * M + I + "px", a.textContent = new Array(u - l + 2).join(`
81
+ `);
82
+ });
83
+ h.push(function() {
84
+ a.style.width = e.scrollWidth + "px";
85
+ }), h.push(function() {
86
+ H.appendChild(a);
87
+ });
88
+ }
89
+ });
90
+ var k = e.id;
91
+ if (L && Prism.util.isActive(e, r) && k) {
92
+ S(e, r) || h.push(function() {
93
+ e.classList.add(r);
94
+ });
95
+ var $ = parseInt(e.getAttribute("data-start") || "1");
96
+ v(".line-numbers-rows > span", e).forEach(function(c, b) {
97
+ var l = b + $;
98
+ c.onclick = function() {
99
+ var u = k + "." + l;
100
+ E = !1, location.hash = u, setTimeout(function() {
101
+ E = !0;
102
+ }, 1);
103
+ };
104
+ });
105
+ }
106
+ return function() {
107
+ h.forEach(C);
108
+ };
109
+ }
110
+ };
111
+ function P() {
112
+ var t = location.hash.slice(1);
113
+ v(".temporary.line-highlight").forEach(function(o) {
114
+ o.parentNode.removeChild(o);
115
+ });
116
+ var e = (t.match(/\.([\d,-]+)$/) || [, ""])[1];
117
+ if (!(!e || document.getElementById(t))) {
118
+ var i = t.slice(0, t.lastIndexOf(".")), n = document.getElementById(i);
119
+ if (n) {
120
+ n.hasAttribute("data-line") || n.setAttribute("data-line", "");
121
+ var s = Prism.plugins.lineHighlight.highlightLines(n, e, "temporary ");
122
+ s(), E && document.querySelector(".temporary.line-highlight").scrollIntoView();
123
+ }
124
+ }
125
+ }
126
+ var T = 0;
127
+ Prism.hooks.add("before-sanity-check", function(t) {
128
+ var e = t.element.parentElement;
129
+ if (y(e)) {
130
+ var i = 0;
131
+ v(".line-highlight", e).forEach(function(n) {
132
+ i += n.textContent.length, n.parentNode.removeChild(n);
133
+ }), i && /^(?: \n)+$/.test(t.code.slice(-i)) && (t.code = t.code.slice(0, -i));
134
+ }
135
+ }), Prism.hooks.add("complete", function t(e) {
136
+ var i = e.element.parentElement;
137
+ if (y(i)) {
138
+ clearTimeout(T);
139
+ var n = Prism.plugins.lineNumbers, s = e.plugins && e.plugins.lineNumbers;
140
+ if (S(i, g) && n && !s)
141
+ Prism.hooks.add("line-numbers", t);
142
+ else {
143
+ var o = Prism.plugins.lineHighlight.highlightLines(i);
144
+ o(), T = setTimeout(P, 1);
145
+ }
146
+ }
147
+ }), window.addEventListener("hashchange", P), window.addEventListener("resize", function() {
148
+ var t = v("pre").filter(y).map(function(e) {
149
+ return Prism.plugins.lineHighlight.highlightLines(e);
150
+ });
151
+ t.forEach(C);
152
+ });
153
+ })();
154
+ import '../../../assets/index2.css';const X = ({
155
+ noCodeMessage: g = "Code snippet not available",
156
+ snippet: r,
157
+ specific: p
158
+ }) => (j(() => {
159
+ W();
160
+ }, []), /* @__PURE__ */ d(z, { "data-private": !0, children: /* @__PURE__ */ d(
161
+ "pre",
162
+ {
163
+ className: "line-highlight",
164
+ "data-line-offset": m.isNil(r) || m.isString(r) ? 0 : r.offset + 0.7,
165
+ ...p !== void 0 ? { "data-line": String(Number(p)) } : {},
166
+ children: m.isNil(r) || m.isString(r) || m.isEmpty(r.content) ? /* @__PURE__ */ d("div", { className: "no-data", children: /* @__PURE__ */ d("p", { children: g }) }) : /* @__PURE__ */ d("code", { className: "language-none", children: r.content })
167
+ }
168
+ ) }));
169
+ export {
170
+ X as Code
171
+ };