@selfdecode/sd-component-library 4.0.98 → 4.0.99

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 (117) hide show
  1. package/lib/components/checkboxes/checkbox-v2/interfaces.d.ts +1 -0
  2. package/lib/sd-component-library130.js +1 -1
  3. package/lib/sd-component-library15.js +1 -1
  4. package/lib/sd-component-library173.js +3 -3
  5. package/lib/sd-component-library174.js +1 -1
  6. package/lib/sd-component-library202.js +1 -1
  7. package/lib/sd-component-library203.js +1 -1
  8. package/lib/sd-component-library204.js +57 -3
  9. package/lib/sd-component-library204.js.map +1 -1
  10. package/lib/sd-component-library205.js +3 -57
  11. package/lib/sd-component-library205.js.map +1 -1
  12. package/lib/sd-component-library206.js +17 -24
  13. package/lib/sd-component-library206.js.map +1 -1
  14. package/lib/sd-component-library207.js +20 -18
  15. package/lib/sd-component-library207.js.map +1 -1
  16. package/lib/sd-component-library208.js +3 -5
  17. package/lib/sd-component-library208.js.map +1 -1
  18. package/lib/sd-component-library209.js +3 -5
  19. package/lib/sd-component-library209.js.map +1 -1
  20. package/lib/sd-component-library210.js +24 -17
  21. package/lib/sd-component-library210.js.map +1 -1
  22. package/lib/sd-component-library211.js +18 -20
  23. package/lib/sd-component-library211.js.map +1 -1
  24. package/lib/sd-component-library212.js +5 -3
  25. package/lib/sd-component-library212.js.map +1 -1
  26. package/lib/sd-component-library213.js +5 -3
  27. package/lib/sd-component-library213.js.map +1 -1
  28. package/lib/sd-component-library217.js +4 -4
  29. package/lib/sd-component-library222.js +3 -65
  30. package/lib/sd-component-library222.js.map +1 -1
  31. package/lib/sd-component-library223.js +52 -3
  32. package/lib/sd-component-library223.js.map +1 -1
  33. package/lib/sd-component-library224.js +65 -3
  34. package/lib/sd-component-library224.js.map +1 -1
  35. package/lib/sd-component-library225.js +3 -52
  36. package/lib/sd-component-library225.js.map +1 -1
  37. package/lib/sd-component-library229.js +3 -3
  38. package/lib/sd-component-library229.js.map +1 -1
  39. package/lib/sd-component-library23.js +2 -2
  40. package/lib/sd-component-library230.js +31 -3
  41. package/lib/sd-component-library230.js.map +1 -1
  42. package/lib/sd-component-library231.js +19 -31
  43. package/lib/sd-component-library231.js.map +1 -1
  44. package/lib/sd-component-library232.js +20 -19
  45. package/lib/sd-component-library232.js.map +1 -1
  46. package/lib/sd-component-library233.js +28 -20
  47. package/lib/sd-component-library233.js.map +1 -1
  48. package/lib/sd-component-library234.js +32 -27
  49. package/lib/sd-component-library234.js.map +1 -1
  50. package/lib/sd-component-library235.js +3 -33
  51. package/lib/sd-component-library235.js.map +1 -1
  52. package/lib/sd-component-library236.js +1 -1
  53. package/lib/sd-component-library238.js +1 -1
  54. package/lib/sd-component-library24.js +2 -2
  55. package/lib/sd-component-library240.js +3 -3
  56. package/lib/sd-component-library241.js +1 -1
  57. package/lib/sd-component-library242.js +1 -1
  58. package/lib/sd-component-library244.js +1 -1
  59. package/lib/sd-component-library245.js +1 -1
  60. package/lib/sd-component-library247.js +1 -1
  61. package/lib/sd-component-library25.js +1 -1
  62. package/lib/sd-component-library255.js +1 -1
  63. package/lib/sd-component-library275.js +49 -2
  64. package/lib/sd-component-library275.js.map +1 -1
  65. package/lib/sd-component-library276.js +51 -2
  66. package/lib/sd-component-library276.js.map +1 -1
  67. package/lib/sd-component-library277.js +87 -48
  68. package/lib/sd-component-library277.js.map +1 -1
  69. package/lib/sd-component-library278.js +54 -52
  70. package/lib/sd-component-library278.js.map +1 -1
  71. package/lib/sd-component-library279.js +2 -92
  72. package/lib/sd-component-library279.js.map +1 -1
  73. package/lib/sd-component-library280.js +2 -49
  74. package/lib/sd-component-library280.js.map +1 -1
  75. package/lib/sd-component-library281.js +10 -6
  76. package/lib/sd-component-library281.js.map +1 -1
  77. package/lib/sd-component-library287.js +6 -2
  78. package/lib/sd-component-library287.js.map +1 -1
  79. package/lib/sd-component-library288.js +2 -36
  80. package/lib/sd-component-library288.js.map +1 -1
  81. package/lib/sd-component-library289.js +36 -14
  82. package/lib/sd-component-library289.js.map +1 -1
  83. package/lib/sd-component-library290.js +14 -10
  84. package/lib/sd-component-library290.js.map +1 -1
  85. package/lib/sd-component-library310.js +1 -1
  86. package/lib/sd-component-library314.js +1 -1
  87. package/lib/sd-component-library315.js +25 -4
  88. package/lib/sd-component-library315.js.map +1 -1
  89. package/lib/sd-component-library316.js +23 -33
  90. package/lib/sd-component-library316.js.map +1 -1
  91. package/lib/sd-component-library317.js +34 -25
  92. package/lib/sd-component-library317.js.map +1 -1
  93. package/lib/sd-component-library318.js +1 -1
  94. package/lib/sd-component-library319.js +4 -24
  95. package/lib/sd-component-library319.js.map +1 -1
  96. package/lib/sd-component-library32.js +24 -23
  97. package/lib/sd-component-library32.js.map +1 -1
  98. package/lib/sd-component-library49.js +1 -1
  99. package/lib/sd-component-library5.js +1 -1
  100. package/lib/sd-component-library50.js +1 -1
  101. package/lib/sd-component-library52.js +3 -3
  102. package/lib/sd-component-library6.js +1 -1
  103. package/lib/sd-component-library64.js +1 -1
  104. package/lib/sd-component-library65.js +1 -1
  105. package/lib/sd-component-library75.js +2 -2
  106. package/lib/sd-component-library76.js +3 -3
  107. package/lib/sd-component-library80.js +1 -1
  108. package/lib/sd-component-library87.js +6 -6
  109. package/lib/sd-component-library88.js +2 -2
  110. package/lib/sd-component-library89.js +1 -1
  111. package/lib/sd-component-library90.js +1 -1
  112. package/lib/sd-component-library91.js +1 -1
  113. package/lib/sd-component-library93.js +2 -2
  114. package/lib/sd-component-library94.js +1 -1
  115. package/lib/sd-component-library95.js +1 -1
  116. package/lib/sd-component-library96.js +1 -1
  117. package/package.json +2 -2
@@ -1,54 +1,93 @@
1
- import { j as i } from "./sd-component-library197.js";
2
- import d from "react";
3
- import { FlexCenter as e } from "./sd-component-library35.js";
4
- import { ResponsiveTextV2 as r } from "./sd-component-library151.js";
5
- import { HorizontalDivider as m } from "./sd-component-library49.js";
6
- const g = d.forwardRef(
7
- ({ mobileTitle: t, tooltipWidth: o, tooltipText: x, zIndex: h, pointerColor: n }, p) => /* @__PURE__ */ i.jsx(
8
- e,
9
- {
1
+ import { j as r } from "./sd-component-library197.js";
2
+ import u from "react";
3
+ import { Flex as j, Box as s } from "rebass";
4
+ import { TriangularPointerIcon as x } from "./sd-component-library191.js";
5
+ import { ResponsiveTextV2 as R } from "./sd-component-library151.js";
6
+ const $ = u.forwardRef(
7
+ ({
8
+ pointerSx: n,
9
+ tooltipSx: d,
10
+ tooltipText: p,
11
+ tooltipWidth: l,
12
+ tooltipPy: a,
13
+ tooltipPx: h,
14
+ pointerSize: c,
15
+ tooltipOffset: i,
16
+ placement: t,
17
+ containerSx: y,
18
+ animationDuration: g,
19
+ state: m,
20
+ pointerColor: o
21
+ }, f) => {
22
+ const b = t === "right" ? {
23
+ left: "100%"
24
+ } : {
25
+ right: "100%"
26
+ }, e = {
27
+ size: `${c}px`,
28
+ color: o,
10
29
  sx: {
11
- position: "fixed",
12
- top: 0,
13
- left: 0,
14
- width: "100vw",
15
- height: "100vh",
16
- bg: "#262626AA",
17
- zIndex: h
18
- },
19
- ref: p,
20
- children: /* @__PURE__ */ i.jsxs(
21
- e,
22
- {
23
- flexDirection: "column",
24
- sx: {
25
- width: o,
26
- maxWidth: "min(500px, calc(100vw - 30px))",
27
- bg: "cl_white",
28
- p: "20px",
29
- borderRadius: "5px"
30
- },
31
- children: [
32
- t && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
33
- /* @__PURE__ */ i.jsx(r, { maxWidth: "100%", fontSizeWeight: [16, "bold"], children: t }),
34
- /* @__PURE__ */ i.jsx(
35
- m,
36
- {
37
- width: "min(50px, calc(100% - 40px))",
38
- color: n,
39
- height: "2px",
40
- m: "10px 0"
30
+ my: "auto",
31
+ ...n
32
+ }
33
+ };
34
+ return /* @__PURE__ */ r.jsxs(
35
+ j,
36
+ {
37
+ sx: {
38
+ position: "absolute",
39
+ top: "calc(50% - 14px)",
40
+ cursor: "default",
41
+ alignItems: "center",
42
+ opacity: m === "entered" ? 1 : 0,
43
+ transition: `opacity ${g}ms`,
44
+ zIndex: 1,
45
+ ...b,
46
+ ...d
47
+ },
48
+ ref: f,
49
+ "data-test": "tooltip-content",
50
+ children: [
51
+ t === "right" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
52
+ /* @__PURE__ */ r.jsx(s, { width: `${i}px` }),
53
+ /* @__PURE__ */ r.jsx(x, { direction: "left", ...e })
54
+ ] }),
55
+ /* @__PURE__ */ r.jsx(
56
+ R,
57
+ {
58
+ fontSizeWeight: [14, "regular"],
59
+ sx: {
60
+ width: l,
61
+ lineHeight: "16px",
62
+ bg: "cl_white",
63
+ px: h,
64
+ py: a,
65
+ borderColor: "cl_lightGrey",
66
+ borderWidth: "1px",
67
+ borderStyle: "solid",
68
+ ...t === "left" ? {
69
+ borderRightWidth: "2px",
70
+ borderRightColor: o,
71
+ borderRadius: "3px 0 0 3px"
72
+ } : {
73
+ borderLeftWidth: "2px",
74
+ borderLeftColor: o,
75
+ borderRadius: "0 3px 3px 0"
41
76
  }
42
- )
43
- ] }),
44
- /* @__PURE__ */ i.jsx(r, { maxWidth: "100%", fontSizeWeight: [14, "regular"], children: x })
45
- ]
46
- }
47
- )
48
- }
49
- )
77
+ },
78
+ children: p
79
+ }
80
+ ),
81
+ t === "left" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
82
+ /* @__PURE__ */ r.jsx(x, { direction: "right", ...e }),
83
+ /* @__PURE__ */ r.jsx(s, { width: `${i}px` })
84
+ ] })
85
+ ]
86
+ }
87
+ );
88
+ }
50
89
  );
51
90
  export {
52
- g as TooltipWithPointerMobile
91
+ $ as TooltipWithPointerHorizontal
53
92
  };
54
93
  //# sourceMappingURL=sd-component-library277.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library277.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-mobile/tooltip-with-pointer-mobile.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { HorizontalDivider } from \"../../../../dividers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerProps } from \"../../interfaces\";\n\ntype Props = Pick<\n TooltipWithPointerProps,\n \"mobileTitle\" | \"tooltipText\" | \"tooltipWidth\" | \"zIndex\" | \"pointerColor\"\n>;\n\nexport const TooltipWithPointerMobile = React.forwardRef<HTMLDivElement, Props>(\n ({ mobileTitle, tooltipWidth, tooltipText, zIndex, pointerColor }, ref) => {\n return (\n <FlexCenter\n sx={{\n position: \"fixed\",\n top: 0,\n left: 0,\n width: \"100vw\",\n height: \"100vh\",\n bg: \"#262626AA\",\n zIndex,\n }}\n ref={ref}\n >\n <FlexCenter\n flexDirection=\"column\"\n sx={{\n width: tooltipWidth,\n maxWidth: \"min(500px, calc(100vw - 30px))\",\n bg: \"cl_white\",\n p: \"20px\",\n borderRadius: \"5px\",\n }}\n >\n {mobileTitle && (\n <>\n <ResponsiveTextV2 maxWidth=\"100%\" fontSizeWeight={[16, \"bold\"]}>\n {mobileTitle}\n </ResponsiveTextV2>\n\n <HorizontalDivider\n width=\"min(50px, calc(100% - 40px))\"\n color={pointerColor}\n height=\"2px\"\n m=\"10px 0\"\n />\n </>\n )}\n\n <ResponsiveTextV2 maxWidth=\"100%\" fontSizeWeight={[14, \"regular\"]}>\n {tooltipText}\n </ResponsiveTextV2>\n </FlexCenter>\n </FlexCenter>\n );\n }\n);\n"],"names":["TooltipWithPointerMobile","React","mobileTitle","tooltipWidth","tooltipText","zIndex","pointerColor","ref","jsx","FlexCenter","jsxs","Fragment","ResponsiveTextV2","HorizontalDivider"],"mappings":";;;;;AAYO,MAAMA,IAA2BC,EAAM;AAAA,EAC5C,CAAC,EAAE,aAAAC,GAAa,cAAAC,GAAc,aAAAC,GAAa,QAAAC,GAAQ,cAAAC,KAAgBC,MAE/DC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,IAAI;AAAA,QACJ,QAAAJ;AAAA,MACF;AAAA,MACA,KAAAE;AAAA,MAEA,UAAAG,gBAAAA,EAAA;AAAA,QAACD;AAAA,QAAA;AAAA,UACC,eAAc;AAAA,UACd,IAAI;AAAA,YACF,OAAON;AAAA,YACP,UAAU;AAAA,YACV,IAAI;AAAA,YACJ,GAAG;AAAA,YACH,cAAc;AAAA,UAChB;AAAA,UAEC,UAAA;AAAA,YAAAD,KAEGQ,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,cAACH,gBAAAA,EAAAA,IAAAI,GAAA,EAAiB,UAAS,QAAO,gBAAgB,CAAC,IAAI,MAAM,GAC1D,UACHV,EAAA,CAAA;AAAA,cAEAM,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,OAAM;AAAA,kBACN,OAAOP;AAAA,kBACP,QAAO;AAAA,kBACP,GAAE;AAAA,gBAAA;AAAA,cACJ;AAAA,YAAA,GACF;AAAA,YAGFE,gBAAAA,EAAAA,IAACI,KAAiB,UAAS,QAAO,gBAAgB,CAAC,IAAI,SAAS,GAC7D,UACHR,EAAA,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"sd-component-library277.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-horizontal/tooltip-with-pointer-horizontal.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerHorizontal = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipSx,\n tooltipText,\n tooltipWidth,\n tooltipPy,\n tooltipPx,\n pointerSize,\n tooltipOffset,\n placement,\n containerSx,\n animationDuration,\n state,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"right\"\n ? {\n left: \"100%\",\n }\n : {\n right: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n sx={{\n position: \"absolute\",\n top: \"calc(50% - 14px)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"right\" && (\n <>\n <Box width={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"left\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"left\"\n ? {\n borderRightWidth: \"2px\",\n borderRightColor: pointerColor,\n borderRadius: \"3px 0 0 3px\",\n }\n : {\n borderLeftWidth: \"2px\",\n borderLeftColor: pointerColor,\n borderRadius: \"0 3px 3px 0\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"left\" && (\n <>\n <TriangularPointerIcon direction=\"right\" {...pointerCommonProps} />\n <Box width={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerHorizontal","React","pointerSx","tooltipSx","tooltipText","tooltipWidth","tooltipPy","tooltipPx","pointerSize","tooltipOffset","placement","containerSx","animationDuration","state","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA+BC,EAAM;AAAA,EAIhD,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,UACV;AAAA,MACE,MAAM;AAAA,IAAA,IAER;AAAA,MACE,OAAO;AAAA,IAAA,GAGTO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,UACF,UAAU;AAAA,UACV,KAAK;AAAA,UACL,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASN,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWD,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGI;AAAA,UACH,GAAGb;AAAA,QACL;AAAA,QACA,KAAAY;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,WAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,OAAO,GAAGb,CAAa,MAAM;AAAA,YACjCY,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,QAAQ,GAAGN,EAAoB,CAAA;AAAA,UAAA,GAClE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOnB;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIE;AAAA,gBACJ,IAAID;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,SACd;AAAA,kBACE,kBAAkB;AAAA,kBAClB,kBAAkBI;AAAA,kBAClB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,iBAAiB;AAAA,kBACjB,iBAAiBA;AAAA,kBACjB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,UAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,SAAS,GAAGN,EAAoB,CAAA;AAAA,YAChEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,OAAO,GAAGb,CAAa,MAAM;AAAA,UAAA,GACpC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
@@ -1,86 +1,88 @@
1
- import { j as r } from "./sd-component-library197.js";
2
- import u from "react";
1
+ import { j as o } from "./sd-component-library197.js";
2
+ import g from "react";
3
3
  import { Flex as j, Box as s } from "rebass";
4
- import { TriangularPointerIcon as x } from "./sd-component-library191.js";
5
- import { ResponsiveTextV2 as R } from "./sd-component-library151.js";
6
- const $ = u.forwardRef(
4
+ import { TriangularPointerIcon as n } from "./sd-component-library191.js";
5
+ import { ResponsiveTextV2 as y } from "./sd-component-library151.js";
6
+ const w = g.forwardRef(
7
7
  ({
8
- pointerSx: n,
9
- tooltipSx: d,
10
- tooltipText: p,
11
- tooltipWidth: l,
12
- tooltipPy: a,
13
- tooltipPx: h,
14
- pointerSize: c,
15
- tooltipOffset: i,
8
+ pointerSx: x,
9
+ tooltipPx: p,
10
+ tooltipText: d,
11
+ tooltipSx: a,
12
+ tooltipPy: l,
13
+ tooltipOffset: e,
14
+ pointerSize: m,
15
+ tooltipWidth: c,
16
16
  placement: t,
17
- containerSx: y,
18
- animationDuration: g,
19
- state: m,
20
- pointerColor: o
21
- }, f) => {
22
- const b = t === "right" ? {
23
- left: "100%"
17
+ state: h,
18
+ containerSx: R,
19
+ animationDuration: b,
20
+ pointerColor: r
21
+ }, u) => {
22
+ const f = t === "bottom" ? {
23
+ top: "100%"
24
24
  } : {
25
- right: "100%"
26
- }, e = {
27
- size: `${c}px`,
28
- color: o,
25
+ bottom: "100%"
26
+ }, i = {
27
+ size: `${m}px`,
28
+ color: r,
29
29
  sx: {
30
30
  my: "auto",
31
- ...n
31
+ ...x
32
32
  }
33
33
  };
34
- return /* @__PURE__ */ r.jsxs(
34
+ return /* @__PURE__ */ o.jsxs(
35
35
  j,
36
36
  {
37
+ flexDirection: "column",
37
38
  sx: {
38
39
  position: "absolute",
39
- top: "calc(50% - 14px)",
40
+ left: "50%",
41
+ transform: "translateX(-50%)",
40
42
  cursor: "default",
41
43
  alignItems: "center",
42
- opacity: m === "entered" ? 1 : 0,
43
- transition: `opacity ${g}ms`,
44
+ opacity: h === "entered" ? 1 : 0,
45
+ transition: `opacity ${b}ms`,
44
46
  zIndex: 1,
45
- ...b,
46
- ...d
47
+ ...f,
48
+ ...a
47
49
  },
48
- ref: f,
50
+ ref: u,
49
51
  "data-test": "tooltip-content",
50
52
  children: [
51
- t === "right" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
52
- /* @__PURE__ */ r.jsx(s, { width: `${i}px` }),
53
- /* @__PURE__ */ r.jsx(x, { direction: "left", ...e })
53
+ t === "bottom" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
54
+ /* @__PURE__ */ o.jsx(s, { height: `${e}px` }),
55
+ /* @__PURE__ */ o.jsx(n, { direction: "top", ...i })
54
56
  ] }),
55
- /* @__PURE__ */ r.jsx(
56
- R,
57
+ /* @__PURE__ */ o.jsx(
58
+ y,
57
59
  {
58
60
  fontSizeWeight: [14, "regular"],
59
61
  sx: {
60
- width: l,
62
+ width: c,
61
63
  lineHeight: "16px",
62
64
  bg: "cl_white",
63
- px: h,
64
- py: a,
65
+ px: p,
66
+ py: l,
65
67
  borderColor: "cl_lightGrey",
66
68
  borderWidth: "1px",
67
69
  borderStyle: "solid",
68
- ...t === "left" ? {
69
- borderRightWidth: "2px",
70
- borderRightColor: o,
71
- borderRadius: "3px 0 0 3px"
70
+ ...t === "top" ? {
71
+ borderBottomWidth: "2px",
72
+ borderBottomColor: r,
73
+ borderRadius: "3px 3px 0 0"
72
74
  } : {
73
- borderLeftWidth: "2px",
74
- borderLeftColor: o,
75
- borderRadius: "0 3px 3px 0"
75
+ borderTopWidth: "2px",
76
+ borderTopColor: r,
77
+ borderRadius: "0 0 3px 3px"
76
78
  }
77
79
  },
78
- children: p
80
+ children: d
79
81
  }
80
82
  ),
81
- t === "left" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
82
- /* @__PURE__ */ r.jsx(x, { direction: "right", ...e }),
83
- /* @__PURE__ */ r.jsx(s, { width: `${i}px` })
83
+ t === "top" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
84
+ /* @__PURE__ */ o.jsx(n, { direction: "bottom", ...i }),
85
+ /* @__PURE__ */ o.jsx(s, { height: `${e}px` })
84
86
  ] })
85
87
  ]
86
88
  }
@@ -88,6 +90,6 @@ const $ = u.forwardRef(
88
90
  }
89
91
  );
90
92
  export {
91
- $ as TooltipWithPointerHorizontal
93
+ w as TooltipWithPointerVertical
92
94
  };
93
95
  //# sourceMappingURL=sd-component-library278.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library278.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-horizontal/tooltip-with-pointer-horizontal.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerHorizontal = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipSx,\n tooltipText,\n tooltipWidth,\n tooltipPy,\n tooltipPx,\n pointerSize,\n tooltipOffset,\n placement,\n containerSx,\n animationDuration,\n state,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"right\"\n ? {\n left: \"100%\",\n }\n : {\n right: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n sx={{\n position: \"absolute\",\n top: \"calc(50% - 14px)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"right\" && (\n <>\n <Box width={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"left\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"left\"\n ? {\n borderRightWidth: \"2px\",\n borderRightColor: pointerColor,\n borderRadius: \"3px 0 0 3px\",\n }\n : {\n borderLeftWidth: \"2px\",\n borderLeftColor: pointerColor,\n borderRadius: \"0 3px 3px 0\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"left\" && (\n <>\n <TriangularPointerIcon direction=\"right\" {...pointerCommonProps} />\n <Box width={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerHorizontal","React","pointerSx","tooltipSx","tooltipText","tooltipWidth","tooltipPy","tooltipPx","pointerSize","tooltipOffset","placement","containerSx","animationDuration","state","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA+BC,EAAM;AAAA,EAIhD,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,UACV;AAAA,MACE,MAAM;AAAA,IAAA,IAER;AAAA,MACE,OAAO;AAAA,IAAA,GAGTO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,UACF,UAAU;AAAA,UACV,KAAK;AAAA,UACL,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASN,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWD,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGI;AAAA,UACH,GAAGb;AAAA,QACL;AAAA,QACA,KAAAY;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,WAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,OAAO,GAAGb,CAAa,MAAM;AAAA,YACjCY,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,QAAQ,GAAGN,EAAoB,CAAA;AAAA,UAAA,GAClE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOnB;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIE;AAAA,gBACJ,IAAID;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,SACd;AAAA,kBACE,kBAAkB;AAAA,kBAClB,kBAAkBI;AAAA,kBAClB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,iBAAiB;AAAA,kBACjB,iBAAiBA;AAAA,kBACjB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,UAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,SAAS,GAAGN,EAAoB,CAAA;AAAA,YAChEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,OAAO,GAAGb,CAAa,MAAM;AAAA,UAAA,GACpC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
1
+ {"version":3,"file":"sd-component-library278.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-vertical/tooltip-with-pointer-vertical.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerVertical = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipPx,\n tooltipText,\n tooltipSx,\n tooltipPy,\n tooltipOffset,\n pointerSize,\n tooltipWidth,\n placement,\n state,\n containerSx,\n animationDuration,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"bottom\"\n ? {\n top: \"100%\",\n }\n : {\n bottom: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n flexDirection=\"column\"\n sx={{\n position: \"absolute\",\n left: \"50%\",\n transform: \"translateX(-50%)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"bottom\" && (\n <>\n <Box height={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"top\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"top\"\n ? {\n borderBottomWidth: \"2px\",\n borderBottomColor: pointerColor,\n borderRadius: \"3px 3px 0 0\",\n }\n : {\n borderTopWidth: \"2px\",\n borderTopColor: pointerColor,\n borderRadius: \"0 0 3px 3px\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"top\" && (\n <>\n <TriangularPointerIcon direction=\"bottom\" {...pointerCommonProps} />\n <Box height={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerVertical","React","pointerSx","tooltipPx","tooltipText","tooltipSx","tooltipPy","tooltipOffset","pointerSize","tooltipWidth","placement","state","containerSx","animationDuration","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA6BC,EAAM;AAAA,EAI9C,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,WACV;AAAA,MACE,KAAK;AAAA,IAAA,IAEP;AAAA,MACE,QAAQ;AAAA,IAAA,GAGVO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,eAAc;AAAA,QACd,IAAI;AAAA,UACF,UAAU;AAAA,UACV,MAAM;AAAA,UACN,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASR,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWE,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGG;AAAA,UACH,GAAGX;AAAA,QACL;AAAA,QACA,KAAAU;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,YAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,QAAQ,GAAGf,CAAa,MAAM;AAAA,YAClCc,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,OAAO,GAAGN,EAAoB,CAAA;AAAA,UAAA,GACjE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOf;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIN;AAAA,gBACJ,IAAIG;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,QACd;AAAA,kBACE,mBAAmB;AAAA,kBACnB,mBAAmBI;AAAA,kBACnB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,gBAAgB;AAAA,kBAChB,gBAAgBA;AAAA,kBAChB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,SAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,UAAU,GAAGN,EAAoB,CAAA;AAAA,YACjEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,QAAQ,GAAGf,CAAa,MAAM;AAAA,UAAA,GACrC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
@@ -1,95 +1,5 @@
1
- import { j as o } from "./sd-component-library197.js";
2
- import g from "react";
3
- import { Flex as j, Box as s } from "rebass";
4
- import { TriangularPointerIcon as n } from "./sd-component-library191.js";
5
- import { ResponsiveTextV2 as y } from "./sd-component-library151.js";
6
- const w = g.forwardRef(
7
- ({
8
- pointerSx: x,
9
- tooltipPx: p,
10
- tooltipText: d,
11
- tooltipSx: a,
12
- tooltipPy: l,
13
- tooltipOffset: e,
14
- pointerSize: m,
15
- tooltipWidth: c,
16
- placement: t,
17
- state: h,
18
- containerSx: R,
19
- animationDuration: b,
20
- pointerColor: r
21
- }, u) => {
22
- const f = t === "bottom" ? {
23
- top: "100%"
24
- } : {
25
- bottom: "100%"
26
- }, i = {
27
- size: `${m}px`,
28
- color: r,
29
- sx: {
30
- my: "auto",
31
- ...x
32
- }
33
- };
34
- return /* @__PURE__ */ o.jsxs(
35
- j,
36
- {
37
- flexDirection: "column",
38
- sx: {
39
- position: "absolute",
40
- left: "50%",
41
- transform: "translateX(-50%)",
42
- cursor: "default",
43
- alignItems: "center",
44
- opacity: h === "entered" ? 1 : 0,
45
- transition: `opacity ${b}ms`,
46
- zIndex: 1,
47
- ...f,
48
- ...a
49
- },
50
- ref: u,
51
- "data-test": "tooltip-content",
52
- children: [
53
- t === "bottom" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
54
- /* @__PURE__ */ o.jsx(s, { height: `${e}px` }),
55
- /* @__PURE__ */ o.jsx(n, { direction: "top", ...i })
56
- ] }),
57
- /* @__PURE__ */ o.jsx(
58
- y,
59
- {
60
- fontSizeWeight: [14, "regular"],
61
- sx: {
62
- width: c,
63
- lineHeight: "16px",
64
- bg: "cl_white",
65
- px: p,
66
- py: l,
67
- borderColor: "cl_lightGrey",
68
- borderWidth: "1px",
69
- borderStyle: "solid",
70
- ...t === "top" ? {
71
- borderBottomWidth: "2px",
72
- borderBottomColor: r,
73
- borderRadius: "3px 3px 0 0"
74
- } : {
75
- borderTopWidth: "2px",
76
- borderTopColor: r,
77
- borderRadius: "0 0 3px 3px"
78
- }
79
- },
80
- children: d
81
- }
82
- ),
83
- t === "top" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
84
- /* @__PURE__ */ o.jsx(n, { direction: "bottom", ...i }),
85
- /* @__PURE__ */ o.jsx(s, { height: `${e}px` })
86
- ] })
87
- ]
88
- }
89
- );
90
- }
91
- );
1
+ var r = {};
92
2
  export {
93
- w as TooltipWithPointerVertical
3
+ r as __exports
94
4
  };
95
5
  //# sourceMappingURL=sd-component-library279.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library279.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-vertical/tooltip-with-pointer-vertical.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerVertical = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipPx,\n tooltipText,\n tooltipSx,\n tooltipPy,\n tooltipOffset,\n pointerSize,\n tooltipWidth,\n placement,\n state,\n containerSx,\n animationDuration,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"bottom\"\n ? {\n top: \"100%\",\n }\n : {\n bottom: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n flexDirection=\"column\"\n sx={{\n position: \"absolute\",\n left: \"50%\",\n transform: \"translateX(-50%)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"bottom\" && (\n <>\n <Box height={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"top\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"top\"\n ? {\n borderBottomWidth: \"2px\",\n borderBottomColor: pointerColor,\n borderRadius: \"3px 3px 0 0\",\n }\n : {\n borderTopWidth: \"2px\",\n borderTopColor: pointerColor,\n borderRadius: \"0 0 3px 3px\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"top\" && (\n <>\n <TriangularPointerIcon direction=\"bottom\" {...pointerCommonProps} />\n <Box height={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerVertical","React","pointerSx","tooltipPx","tooltipText","tooltipSx","tooltipPy","tooltipOffset","pointerSize","tooltipWidth","placement","state","containerSx","animationDuration","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA6BC,EAAM;AAAA,EAI9C,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,WACV;AAAA,MACE,KAAK;AAAA,IAAA,IAEP;AAAA,MACE,QAAQ;AAAA,IAAA,GAGVO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,eAAc;AAAA,QACd,IAAI;AAAA,UACF,UAAU;AAAA,UACV,MAAM;AAAA,UACN,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASR,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWE,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGG;AAAA,UACH,GAAGX;AAAA,QACL;AAAA,QACA,KAAAU;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,YAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,QAAQ,GAAGf,CAAa,MAAM;AAAA,YAClCc,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,OAAO,GAAGN,EAAoB,CAAA;AAAA,UAAA,GACjE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOf;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIN;AAAA,gBACJ,IAAIG;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,QACd;AAAA,kBACE,mBAAmB;AAAA,kBACnB,mBAAmBI;AAAA,kBACnB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,gBAAgB;AAAA,kBAChB,gBAAgBA;AAAA,kBAChB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,SAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,UAAU,GAAGN,EAAoB,CAAA;AAAA,YACjEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,QAAQ,GAAGf,CAAa,MAAM;AAAA,UAAA,GACrC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
1
+ {"version":3,"file":"sd-component-library279.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,52 +1,5 @@
1
- var n = Object.defineProperty;
2
- var R = (t, e, s) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var i = (t, e, s) => (R(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- class h {
5
- constructor() {
6
- i(this, "refRegistry", {});
7
- }
8
- /**
9
- * Check if ref is registered for a component with provided ID.
10
- * @param id ID for the component.
11
- */
12
- doesRefExist(e) {
13
- return !!this.refRegistry[e];
14
- }
15
- /**
16
- * Register a ref.
17
- *
18
- * @param id ID for the component.
19
- * @param ref React Ref object for the component. Used for scrolling.
20
- */
21
- addRef(e, s) {
22
- const r = e.startsWith("#") ? e : `#${e}`;
23
- this.refRegistry[r] = s;
24
- }
25
- /**
26
- * Remove a ref from registry.
27
- *
28
- * @param id ID for the component.
29
- */
30
- removeRef(e) {
31
- this.doesRefExist(e) ? delete this.refRegistry[e] : console.error(`Ref with ID ${e} does not exist in the registry`);
32
- }
33
- /**
34
- * Scroll the component with provided ID into the view.
35
- *
36
- * @param id ID for the component.
37
- * @param behavior Scroll behavior.
38
- */
39
- scrollToRef(e, { behavior: s = "smooth", block: r, inline: f }) {
40
- var o;
41
- this.doesRefExist(e) ? (o = this.refRegistry[e].current) == null || o.scrollIntoView({
42
- behavior: s,
43
- block: r,
44
- inline: f
45
- }) : console.error(`Ref with ID ${e} does not exist in the registry`);
46
- }
47
- }
48
- const g = new h();
1
+ var e = {};
49
2
  export {
50
- g as refsManager
3
+ e as __exports
51
4
  };
52
5
  //# sourceMappingURL=sd-component-library280.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library280.js","sources":["../src/components/utils/anchor/refs-manager.ts"],"sourcesContent":["import React from \"react\";\n\nimport { refsMap } from \"./interfaces\";\n\n/**\n * Refs Manager class to keep record of registered refs on the page.\n */\nclass RefsManager {\n refRegistry: refsMap = {};\n\n /**\n * Check if ref is registered for a component with provided ID.\n * @param id ID for the component.\n */\n public doesRefExist(id: string) {\n return !!this.refRegistry[id];\n }\n\n /**\n * Register a ref.\n *\n * @param id ID for the component.\n * @param ref React Ref object for the component. Used for scrolling.\n */\n public addRef(\n id: string,\n ref: React.MutableRefObject<HTMLDivElement | undefined>\n ) {\n const key = id.startsWith(\"#\") ? id : `#${id}`;\n\n this.refRegistry[key] = ref;\n }\n\n /**\n * Remove a ref from registry.\n *\n * @param id ID for the component.\n */\n public removeRef(id: string) {\n if (this.doesRefExist(id)) delete this.refRegistry[id];\n else console.error(`Ref with ID ${id} does not exist in the registry`);\n }\n\n /**\n * Scroll the component with provided ID into the view.\n *\n * @param id ID for the component.\n * @param behavior Scroll behavior.\n */\n public scrollToRef(\n id: string,\n { behavior = \"smooth\", block, inline }: ScrollIntoViewOptions\n ) {\n if (this.doesRefExist(id))\n this.refRegistry[id].current?.scrollIntoView({\n behavior,\n block,\n inline,\n });\n else console.error(`Ref with ID ${id} does not exist in the registry`);\n }\n}\n\nexport const refsManager = new RefsManager();\n"],"names":["RefsManager","__publicField","id","ref","key","behavior","block","inline","_a","refsManager"],"mappings":";;;AAOA,MAAMA,EAAY;AAAA,EAAlB;AACE,IAAAC,EAAA,qBAAuB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,aAAaC,GAAY;AAC9B,WAAO,CAAC,CAAC,KAAK,YAAYA,CAAE;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,OACLA,GACAC,GACA;AACA,UAAMC,IAAMF,EAAG,WAAW,GAAG,IAAIA,IAAK,IAAIA,CAAE;AAEvC,SAAA,YAAYE,CAAG,IAAID;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,UAAUD,GAAY;AACvB,IAAA,KAAK,aAAaA,CAAE,IAAU,OAAA,KAAK,YAAYA,CAAE,IACxC,QAAA,MAAM,eAAeA,CAAE,iCAAiC;AAAA,EACvE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,YACLA,GACA,EAAE,UAAAG,IAAW,UAAU,OAAAC,GAAO,QAAAC,KAC9B;AA7CJ,QAAAC;AA8CQ,IAAA,KAAK,aAAaN,CAAE,KACtBM,IAAA,KAAK,YAAYN,CAAE,EAAE,YAArB,QAAAM,EAA8B,eAAe;AAAA,MAC3C,UAAAH;AAAA,MACA,OAAAC;AAAA,MACA,QAAAC;AAAA,IAAA,KAES,QAAA,MAAM,eAAeL,CAAE,iCAAiC;AAAA,EACvE;AACF;AAEa,MAAAO,IAAc,IAAIT,EAAY;"}
1
+ {"version":3,"file":"sd-component-library280.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,9 +1,13 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
1
+ import * as e from "react";
2
+ const a = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18.2, height: 20, viewBox: "0 0 18.2 20", ...t }, /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("style", null, `
3
+ .calendar{
4
+ fill:none;
5
+ stroke-linecap:round;
6
+ stroke-linejoin:round;
7
+ stroke-width:2px;
8
+ }
9
+ `)), /* @__PURE__ */ e.createElement("g", { transform: "translate(-3.5 -2)" }, /* @__PURE__ */ e.createElement("path", { className: "calendar", stroke: "current", d: "M6.3,6H18.9a1.8,1.8,0,0,1,1.8,1.8V20.4a1.8,1.8,0,0,1-1.8,1.8H6.3a1.8,1.8,0,0,1-1.8-1.8V7.8A1.8,1.8,0,0,1,6.3,6Z", transform: "translate(0 -1.2)" }), /* @__PURE__ */ e.createElement("path", { className: "calendar", stroke: "current", d: "M24,3V6.6", transform: "translate(-7.8 0)" }), /* @__PURE__ */ e.createElement("path", { className: "calendar", stroke: "current", d: "M12,3V6.6", transform: "translate(-3 0)" }), /* @__PURE__ */ e.createElement("path", { className: "calendar", stroke: "current", d: "M4.5,15H20.7", transform: "translate(0 -4.8)" })));
5
10
  export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
11
+ a as ReactComponent
8
12
  };
9
13
  //# sourceMappingURL=sd-component-library281.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library281.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"sd-component-library281.js","sources":["../src/components/icons/calendar-icon/calendar.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOC4yIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMTguMiAyMCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jYWxlbmRhcnsKICAgICAgICBmaWxsOm5vbmU7CiAgICAgICAgc3Ryb2tlLWxpbmVjYXA6cm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOnJvdW5kOwogICAgICAgIHN0cm9rZS13aWR0aDoycHg7CiAgICAgIH0KICAgIDwvc3R5bGU+CiAgPC9kZWZzPgogIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zLjUgLTIpIj4KICAgIDxwYXRoIGNsYXNzPSJjYWxlbmRhciIgc3Ryb2tlPSJjdXJyZW50IiBkPSJNNi4zLDZIMTguOWExLjgsMS44LDAsMCwxLDEuOCwxLjhWMjAuNGExLjgsMS44LDAsMCwxLTEuOCwxLjhINi4zYTEuOCwxLjgsMCwwLDEtMS44LTEuOFY3LjhBMS44LDEuOCwwLDAsMSw2LjMsNloiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTEuMikiLz4KICAgIDxwYXRoIGNsYXNzPSJjYWxlbmRhciIgc3Ryb2tlPSJjdXJyZW50IiBkPSJNMjQsM1Y2LjYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03LjggMCkiLz4KICAgIDxwYXRoIGNsYXNzPSJjYWxlbmRhciIgc3Ryb2tlPSJjdXJyZW50IiBkPSJNMTIsM1Y2LjYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zIDApIi8+CiAgICA8cGF0aCBjbGFzcz0iY2FsZW5kYXIiIHN0cm9rZT0iY3VycmVudCIgZD0iTTQuNSwxNUgyMC43IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC00LjgpIi8+CiAgPC9nPgo8L3N2Zz4=\""],"names":["SvgCalendar","props","React"],"mappings":";AACK,MAACA,IAAc,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,MAAM,QAAQ,IAAI,SAAS,eAAe,GAAGD,KAAyB,gBAAAC,EAAM,cAAc,QAAQ,MAAsB,gBAAAA,EAAM,cAAc,SAAS,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAAiJ,CAAC,GAAmB,gBAAAA,EAAM,cAAc,KAAK,EAAE,WAAW,wBAAwC,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,YAAY,QAAQ,WAAW,GAAG,mHAAmH,WAAW,oBAAqB,CAAA,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,YAAY,QAAQ,WAAW,GAAG,aAAa,WAAW,oBAAmB,CAAE,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,YAAY,QAAQ,WAAW,GAAG,aAAa,WAAW,kBAAmB,CAAA,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,WAAW,YAAY,QAAQ,WAAW,GAAG,gBAAgB,WAAW,oBAAmB,CAAE,CAAC,CAAC;"}
@@ -1,5 +1,9 @@
1
- var e = {};
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
2
5
  export {
3
- e as __exports
6
+ o as commonjsGlobal,
7
+ l as getDefaultExportFromCjs
4
8
  };
5
9
  //# sourceMappingURL=sd-component-library287.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library287.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"sd-component-library287.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,39 +1,5 @@
1
- var c = function u(r, t) {
2
- if (r === t)
3
- return !0;
4
- if (r && t && typeof r == "object" && typeof t == "object") {
5
- if (r.constructor !== t.constructor)
6
- return !1;
7
- var f, e, o;
8
- if (Array.isArray(r)) {
9
- if (f = r.length, f != t.length)
10
- return !1;
11
- for (e = f; e-- !== 0; )
12
- if (!u(r[e], t[e]))
13
- return !1;
14
- return !0;
15
- }
16
- if (r.constructor === RegExp)
17
- return r.source === t.source && r.flags === t.flags;
18
- if (r.valueOf !== Object.prototype.valueOf)
19
- return r.valueOf() === t.valueOf();
20
- if (r.toString !== Object.prototype.toString)
21
- return r.toString() === t.toString();
22
- if (o = Object.keys(r), f = o.length, f !== Object.keys(t).length)
23
- return !1;
24
- for (e = f; e-- !== 0; )
25
- if (!Object.prototype.hasOwnProperty.call(t, o[e]))
26
- return !1;
27
- for (e = f; e-- !== 0; ) {
28
- var n = o[e];
29
- if (!u(r[n], t[n]))
30
- return !1;
31
- }
32
- return !0;
33
- }
34
- return r !== r && t !== t;
35
- };
1
+ var e = {};
36
2
  export {
37
- c as f
3
+ e as __exports
38
4
  };
39
5
  //# sourceMappingURL=sd-component-library288.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library288.js","sources":["../node_modules/fast-deep-equal/index.js"],"sourcesContent":["'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n"],"names":["fastDeepEqual","equal","a","b","length","i","keys","key"],"mappings":"AAMA,IAAAA,IAAiB,SAASC,EAAMC,GAAGC,GAAG;AACpC,MAAID,MAAMC;AAAG,WAAO;AAEpB,MAAID,KAAKC,KAAK,OAAOD,KAAK,YAAY,OAAOC,KAAK,UAAU;AAC1D,QAAID,EAAE,gBAAgBC,EAAE;AAAa,aAAO;AAE5C,QAAIC,GAAQC,GAAGC;AACf,QAAI,MAAM,QAAQJ,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,KAAUD,EAAE;AAAQ,eAAO;AAC/B,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAMC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AAAG,iBAAO;AACjC,aAAO;AAAA,IACR;AAID,QAAIH,EAAE,gBAAgB;AAAQ,aAAOA,EAAE,WAAWC,EAAE,UAAUD,EAAE,UAAUC,EAAE;AAC5E,QAAID,EAAE,YAAY,OAAO,UAAU;AAAS,aAAOA,EAAE,QAAO,MAAOC,EAAE,QAAO;AAC5E,QAAID,EAAE,aAAa,OAAO,UAAU;AAAU,aAAOA,EAAE,SAAQ,MAAOC,EAAE,SAAQ;AAIhF,QAFAG,IAAO,OAAO,KAAKJ,CAAC,GACpBE,IAASE,EAAK,QACVF,MAAW,OAAO,KAAKD,CAAC,EAAE;AAAQ,aAAO;AAE7C,SAAKE,IAAID,GAAQC,QAAQ;AACvB,UAAI,CAAC,OAAO,UAAU,eAAe,KAAKF,GAAGG,EAAKD,CAAC,CAAC;AAAG,eAAO;AAEhE,SAAKA,IAAID,GAAQC,QAAQ,KAAI;AAC3B,UAAIE,IAAMD,EAAKD,CAAC;AAEhB,UAAI,CAACJ,EAAMC,EAAEK,CAAG,GAAGJ,EAAEI,CAAG,CAAC;AAAG,eAAO;AAAA,IACpC;AAED,WAAO;AAAA,EACR;AAGD,SAAOL,MAAIA,KAAKC,MAAIA;AACtB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sd-component-library288.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}