@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,125 +1,171 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import v from "lodash";
3
- import { highlightAll as z } from "prismjs";
4
- import { useEffect as W } from "react";
5
- import { C as F } from "../../../styles-Cx93EcVo.mjs";
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
6
  (function() {
7
- if (typeof Prism < "u" && typeof document < "u" && document.querySelector) {
8
- var p, s = "line-numbers", u = "linkable-line-numbers", k = /\n(?!$)/g, I = function() {
9
- if (p === void 0) {
10
- var t = document.createElement("div");
11
- 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), p = t.offsetHeight === 38, document.body.removeChild(t);
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);
12
25
  }
13
- return p;
14
- }, y = !0;
15
- Prism.plugins.lineHighlight = { highlightLines: function(t, e, n) {
16
- var r = (e = typeof e == "string" ? e : t.getAttribute("data-line") || "").replace(/\s+/g, "").split(",").filter(Boolean), c = +t.getAttribute("data-line-offset") || 0, q = (I() ? parseInt : parseFloat)(getComputedStyle(t).lineHeight), E = Prism.util.isActive(t, s), m = t.querySelector("code"), L = E ? t : m || t, a = [], T = m.textContent.match(k), B = T ? T.length + 1 : 1, H = m && L != m ? function(d, h) {
17
- var o = getComputedStyle(d), l = getComputedStyle(h);
18
- function i(f) {
19
- return +f.substr(0, f.length - 2);
20
- }
21
- return h.offsetTop + i(l.borderTopWidth) + i(l.paddingTop) - i(o.paddingTop);
22
- }(t, m) : 0;
23
- r.forEach(function(d) {
24
- var h = d.split("-"), o = +h[0], l = +h[1] || o;
25
- if (!((l = Math.min(B + c, l)) < o)) {
26
- var i = t.querySelector('.line-highlight[data-range="' + d + '"]') || document.createElement("div");
27
- if (a.push(function() {
28
- i.setAttribute("aria-hidden", "true"), i.setAttribute("data-range", d), i.className = (n || "") + " line-highlight";
29
- }), E && Prism.plugins.lineNumbers) {
30
- var f = Prism.plugins.lineNumbers.getLine(t, o), C = Prism.plugins.lineNumbers.getLine(t, l);
31
- if (f) {
32
- var $ = f.offsetTop + H + "px";
33
- a.push(function() {
34
- i.style.top = $;
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;
35
70
  });
36
71
  }
37
- if (C) {
38
- var j = C.offsetTop - f.offsetTop + C.offsetHeight + "px";
39
- a.push(function() {
40
- i.style.height = j;
72
+ if (A) {
73
+ var F = A.offsetTop - N.offsetTop + A.offsetHeight + "px";
74
+ h.push(function() {
75
+ a.style.height = F;
41
76
  });
42
77
  }
43
- } else a.push(function() {
44
- i.setAttribute("data-start", String(o)), l > o && i.setAttribute("data-end", String(l)), i.style.top = (o - c - 1) * q + H + "px", i.textContent = new Array(l - o + 2).join(`
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(`
45
81
  `);
46
- });
47
- a.push(function() {
48
- i.style.width = t.scrollWidth + "px";
49
- }), a.push(function() {
50
- L.appendChild(i);
82
+ });
83
+ h.push(function() {
84
+ a.style.width = e.scrollWidth + "px";
85
+ }), h.push(function() {
86
+ H.appendChild(a);
51
87
  });
52
88
  }
53
89
  });
54
- var w = t.id;
55
- if (E && Prism.util.isActive(t, u) && w) {
56
- P(t, u) || a.push(function() {
57
- t.classList.add(u);
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);
58
94
  });
59
- var M = parseInt(t.getAttribute("data-start") || "1");
60
- b(".line-numbers-rows > span", t).forEach(function(d, h) {
61
- var o = h + M;
62
- d.onclick = function() {
63
- var l = w + "." + o;
64
- y = !1, location.hash = l, setTimeout(function() {
65
- y = !0;
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;
66
102
  }, 1);
67
103
  };
68
104
  });
69
105
  }
70
106
  return function() {
71
- a.forEach(S);
107
+ h.forEach(C);
72
108
  };
73
- } };
74
- var N = 0;
75
- Prism.hooks.add("before-sanity-check", function(t) {
76
- var e = t.element.parentElement;
77
- if (A(e)) {
78
- var n = 0;
79
- b(".line-highlight", e).forEach(function(r) {
80
- n += r.textContent.length, r.parentNode.removeChild(r);
81
- }), n && /^(?: \n)+$/.test(t.code.slice(-n)) && (t.code = t.code.slice(0, -n));
82
- }
83
- }), Prism.hooks.add("complete", function t(e) {
84
- var n = e.element.parentElement;
85
- if (A(n)) {
86
- clearTimeout(N);
87
- var r = Prism.plugins.lineNumbers, c = e.plugins && e.plugins.lineNumbers;
88
- P(n, s) && r && !c ? Prism.hooks.add("line-numbers", t) : (Prism.plugins.lineHighlight.highlightLines(n)(), N = setTimeout(x, 1));
89
- }
90
- }), window.addEventListener("hashchange", x), window.addEventListener("resize", function() {
91
- b("pre").filter(A).map(function(t) {
92
- return Prism.plugins.lineHighlight.highlightLines(t);
93
- }).forEach(S);
94
- });
95
- }
96
- function b(t, e) {
97
- return Array.prototype.slice.call((e || document).querySelectorAll(t));
98
- }
99
- function P(t, e) {
100
- return t.classList.contains(e);
101
- }
102
- function S(t) {
103
- t();
104
- }
105
- function A(t) {
106
- return !(!t || !/pre/i.test(t.nodeName)) && (!!t.hasAttribute("data-line") || !(!t.id || !Prism.util.isActive(t, u)));
107
- }
108
- function x() {
109
+ }
110
+ };
111
+ function P() {
109
112
  var t = location.hash.slice(1);
110
- b(".temporary.line-highlight").forEach(function(c) {
111
- c.parentNode.removeChild(c);
113
+ v(".temporary.line-highlight").forEach(function(o) {
114
+ o.parentNode.removeChild(o);
112
115
  });
113
116
  var e = (t.match(/\.([\d,-]+)$/) || [, ""])[1];
114
- if (e && !document.getElementById(t)) {
115
- var n = t.slice(0, t.lastIndexOf(".")), r = document.getElementById(n);
116
- r && (r.hasAttribute("data-line") || r.setAttribute("data-line", ""), Prism.plugins.lineHighlight.highlightLines(r, e, "temporary ")(), y && document.querySelector(".temporary.line-highlight").scrollIntoView());
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
+ }
117
124
  }
118
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
+ });
119
153
  })();
120
- import '../../../assets/index2.css';const K = ({ noCodeMessage: p = "Code snippet not available", snippet: s, specific: u }) => (W(() => {
121
- z();
122
- }, []), g(F, { "data-private": !0, children: g("pre", { className: "line-highlight", "data-line-offset": v.isNil(s) || v.isString(s) ? 0 : s.offset + 0.7, ...u !== void 0 ? { "data-line": String(Number(u)) } : {}, children: v.isNil(s) || v.isString(s) || v.isEmpty(s.content) ? g("div", { className: "no-data", children: g("p", { children: p }) }) : g("code", { className: "language-none", children: s.content }) }) }));
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
+ ) }));
123
169
  export {
124
- K as Code
170
+ X as Code
125
171
  };
@@ -1,9 +1,224 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { ThemeProvider as a } from "styled-components";
3
- const l = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "briefcase", "bug", "buildings", "bullseye-pointer", "calendar-clock", "calendar-xmark", "chart-network", "clipboard-check", "comment", "envelope", "eye", "file", "flag", "globe", "hand-holding-dollar", "hands-clapping", "headset", "hexagon-exclamation", "light-emergency-on", "magnifying-glass", "pen-line", "plane-departure", "screwdriver-wrench", "sensor-triangle-exclamation", "shield-check", "sidebar", "skull", "sliders", "star-christmas", "telescope", "trash", "unlock", "user-group", "user-hoodie", "xmark"], p = [["fal", "arrow-down"], ["fal", "arrow-left"], ["fal", "arrow-right"], ["fal", "arrow-up"], ["fal", "plus"], ["fal", "minus"], ["fas", "check"], ["fas", "circle-question"]], f = { typography: { type: { primary: "Roboto, sans-serif", poppins: "'Poppins', sans-serif", mono: "'Space Mono', monospace" }, heading: { xxl: "64px", xl: "48px", lg: "32px", md: "24px", sm: "20px", xs: "16px" }, text: { xl: "20px", lg: "18px", md: "16px", sm: "14px", xs: "12px" }, weight: { bold: "700", semibold: "600", regular: "400" } }, shadows: { none: "none", sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)", md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)", lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)" }, breakpoints: { mobile: "480px", tablet: "960px", sm: "1024px", md: "1440px", lg: "1920px" }, spacing: { 0: "0rem", 0.125: "0.125rem", 0.188: "0.188rem", 0.25: "0.25rem", 0.5: "0.5rem", 0.625: "0.625rem", 0.75: "0.75rem", 1: "1rem", 1.25: "1.25rem", 1.5: "1.5rem", 1.75: "1.75rem", 2: "2rem", 2.25: "2.25rem", 2.5: "2.5rem", 3: "3rem", 3.5: "3.5rem", 4: "4rem", 4.5: "4.5rem", 5: "5rem", 6: "6rem" }, palette: { primary: { 25: "#fef2f3", 50: "#fddfe2", 100: "#fbbac0", 200: "#f9959e", 300: "#f65e6a", 400: "#f32637", 500: "#bf0b1a", 600: "#ac0a17", 700: "#9a0915", 800: "#870812", 900: "#750710" }, complementary: { 25: "", 50: "", 100: "#ffe6ff", 200: "", 300: "#b8075d", 400: "", 500: "#7f0540", 600: "", 700: "#59042d", 800: "", 900: "#460323" }, error: { 25: "", 50: "#fef3f2", 100: "", 200: "#fecdca", 300: "", 400: "", 500: "#f04438", 600: "", 700: "#b42318", 800: "", 900: "" }, info: { 25: "", 50: "#eff8ff", 100: "", 200: "#b2ddff", 300: "", 400: "", 500: "#2e90fa", 600: "", 700: "#175cd3", 800: "", 900: "" }, warning: { 25: "", 50: "#fffaeb", 100: "", 200: "#fef0c7", 300: "", 400: "#ffd562", 500: "#fdb022", 600: "#dc6803", 700: "#b54708", 800: "", 900: "" }, success: { 25: "", 50: "#f6fef9", 100: "", 200: "#a6f4c5", 300: "", 400: "", 500: "#12b76a", 600: "", 700: "#027a48", 800: "", 900: "" }, black: "#0c111d", white: "#ffffff", gray: { 25: "#fcfcfd", 50: "#f9fafb", 100: "#f2f4f7", 200: "#eaecf0", 300: "#d0d5dd", 400: "#98a2b3", 500: "#667085", 600: "#475467", 700: "#2f394b", 800: "#212a36", 900: "#161b25" }, gradients: { "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)", "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)" } } }, n = ({ children: e }) => r(a, { theme: f, children: e });
3
+ const o = {
4
+ 25: "#fcfcfd",
5
+ 50: "#f9fafb",
6
+ 100: "#f2f4f7",
7
+ 200: "#eaecf0",
8
+ 300: "#d0d5dd",
9
+ 400: "#98a2b3",
10
+ 500: "#667085",
11
+ 600: "#475467",
12
+ 700: "#2f394b",
13
+ 800: "#212a36",
14
+ 900: "#161b25"
15
+ }, f = {
16
+ 25: "#fef2f3",
17
+ 50: "#fddfe2",
18
+ 100: "#fbbac0",
19
+ 200: "#f9959e",
20
+ 300: "#f65e6a",
21
+ 400: "#f32637",
22
+ 500: "#bf0b1a",
23
+ // Brand color
24
+ 600: "#ac0a17",
25
+ 700: "#9a0915",
26
+ 800: "#870812",
27
+ 900: "#750710"
28
+ }, s = {
29
+ 25: "",
30
+ 50: "",
31
+ 100: "#ffe6ff",
32
+ 200: "",
33
+ 300: "#b8075d",
34
+ 400: "",
35
+ 500: "#7f0540",
36
+ 600: "",
37
+ 700: "#59042d",
38
+ 800: "",
39
+ 900: "#460323"
40
+ }, n = {
41
+ 25: "",
42
+ 50: "#fef3f2",
43
+ 100: "",
44
+ 200: "#fecdca",
45
+ 300: "",
46
+ 400: "",
47
+ 500: "#f04438",
48
+ 600: "",
49
+ 700: "#b42318",
50
+ 800: "",
51
+ 900: ""
52
+ }, c = {
53
+ 25: "",
54
+ 50: "#fffaeb",
55
+ 100: "",
56
+ 200: "#fef0c7",
57
+ 300: "",
58
+ 400: "#ffd562",
59
+ 500: "#fdb022",
60
+ 600: "#dc6803",
61
+ 700: "#b54708",
62
+ 800: "",
63
+ 900: ""
64
+ }, p = {
65
+ 25: "",
66
+ 50: "#f6fef9",
67
+ 100: "",
68
+ 200: "#a6f4c5",
69
+ 300: "",
70
+ 400: "",
71
+ 500: "#12b76a",
72
+ 600: "",
73
+ 700: "#027a48",
74
+ 800: "",
75
+ 900: ""
76
+ }, l = {
77
+ 25: "",
78
+ 50: "#eff8ff",
79
+ 100: "",
80
+ 200: "#b2ddff",
81
+ 300: "",
82
+ 400: "",
83
+ 500: "#2e90fa",
84
+ 600: "",
85
+ 700: "#175cd3",
86
+ 800: "",
87
+ 900: ""
88
+ }, t = {
89
+ "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)",
90
+ "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"
91
+ }, i = {
92
+ type: {
93
+ primary: "Roboto, sans-serif",
94
+ poppins: "'Poppins', sans-serif",
95
+ mono: "'Space Mono', monospace"
96
+ },
97
+ heading: {
98
+ xxl: "64px",
99
+ xl: "48px",
100
+ lg: "32px",
101
+ md: "24px",
102
+ sm: "20px",
103
+ xs: "16px"
104
+ },
105
+ text: {
106
+ xl: "20px",
107
+ lg: "18px",
108
+ md: "16px",
109
+ sm: "14px",
110
+ xs: "12px"
111
+ },
112
+ weight: {
113
+ bold: "700",
114
+ semibold: "600",
115
+ regular: "400"
116
+ }
117
+ }, m = {
118
+ none: "none",
119
+ sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)",
120
+ md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)",
121
+ lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)"
122
+ }, d = {
123
+ mobile: "480px",
124
+ tablet: "960px",
125
+ sm: "1024px",
126
+ md: "1440px",
127
+ lg: "1920px"
128
+ }, x = {
129
+ 0: "0rem",
130
+ 0.125: "0.125rem",
131
+ 0.188: "0.188rem",
132
+ 0.25: "0.25rem",
133
+ 0.5: "0.5rem",
134
+ 0.625: "0.625rem",
135
+ 0.75: "0.75rem",
136
+ 1: "1rem",
137
+ 1.25: "1.25rem",
138
+ 1.5: "1.5rem",
139
+ 1.75: "1.75rem",
140
+ 2: "2rem",
141
+ 2.25: "2.25rem",
142
+ 2.5: "2.5rem",
143
+ 3: "3rem",
144
+ 3.5: "3.5rem",
145
+ 4: "4rem",
146
+ 4.5: "4.5rem",
147
+ 5: "5rem",
148
+ 6: "6rem"
149
+ }, u = [
150
+ "lock-keyhole",
151
+ "bars-sort",
152
+ "bolt",
153
+ "books",
154
+ "brain-circuit",
155
+ "briefcase",
156
+ "bug",
157
+ "buildings",
158
+ "bullseye-pointer",
159
+ "calendar-clock",
160
+ "calendar-xmark",
161
+ "chart-network",
162
+ "clipboard-check",
163
+ "comment",
164
+ "envelope",
165
+ "eye",
166
+ "file",
167
+ "flag",
168
+ "globe",
169
+ "hand-holding-dollar",
170
+ "hands-clapping",
171
+ "headset",
172
+ "hexagon-exclamation",
173
+ "light-emergency-on",
174
+ "magnifying-glass",
175
+ "pen-line",
176
+ "plane-departure",
177
+ "screwdriver-wrench",
178
+ "sensor-triangle-exclamation",
179
+ "shield-check",
180
+ "sidebar",
181
+ "skull",
182
+ "sliders",
183
+ "star-christmas",
184
+ "telescope",
185
+ "trash",
186
+ "unlock",
187
+ "user-group",
188
+ "user-hoodie",
189
+ "xmark"
190
+ ], k = [
191
+ ["fal", "arrow-down"],
192
+ ["fal", "arrow-left"],
193
+ ["fal", "arrow-right"],
194
+ ["fal", "arrow-up"],
195
+ ["fal", "plus"],
196
+ ["fal", "minus"],
197
+ ["fas", "check"],
198
+ ["fas", "circle-question"]
199
+ ], b = {
200
+ typography: i,
201
+ shadows: m,
202
+ breakpoints: d,
203
+ spacing: x,
204
+ palette: {
205
+ primary: f,
206
+ complementary: s,
207
+ error: n,
208
+ info: l,
209
+ warning: c,
210
+ success: p,
211
+ black: "#0c111d",
212
+ white: "#ffffff",
213
+ gray: o,
214
+ gradients: t
215
+ }
216
+ }, w = ({
217
+ children: e
218
+ }) => /* @__PURE__ */ r(a, { theme: b, children: e });
4
219
  export {
5
- n as CustomThemeProvider,
6
- l as icons,
7
- f as theme,
8
- p as uniqueIcons
220
+ w as CustomThemeProvider,
221
+ u as icons,
222
+ b as theme,
223
+ k as uniqueIcons
9
224
  };
@@ -1,23 +1,46 @@
1
- import { jsxs as c, jsx as g } from "react/jsx-runtime";
2
- import { useState as f, useRef as C, useCallback as n, useEffect as p } from "react";
3
- import { Modal as x } from "../modal/index.js";
1
+ import { jsxs as d, jsx as p } from "react/jsx-runtime";
2
+ import { useState as f, useRef as C, useCallback as a, useEffect as D } from "react";
3
+ import { Modal as h } from "../modal/index.js";
4
4
  import "lodash";
5
- import { u as j } from "../../use-modal-CkrZ-_-M.mjs";
6
- import { ModalConfirm as h } from "../modal/modal-confirm/index.js";
7
- const w = () => {
8
- const [t, i] = f(!1), [o, e] = f(), s = C(null), a = j("confirm-dialog-modal"), d = n(async (r) => (e(r), i(!0), new Promise((m) => {
9
- s.current = m;
10
- })), []), u = n(() => {
11
- var r;
12
- i(!1), e(void 0), (r = s.current) == null || r.call(s, !0);
13
- }, []), l = n(() => {
14
- var r;
15
- i(!1), e(void 0), (r = s.current) == null || r.call(s, !1);
5
+ import { u as x } from "../../use-modal-CtgexKnf.mjs";
6
+ import { ModalConfirm as M } from "../modal/modal-confirm/index.js";
7
+ const y = () => {
8
+ const [c, o] = f(!1), [e, r] = f(), t = C(null), s = x("confirm-dialog-modal"), l = a(
9
+ async (n) => (r(n), o(!0), new Promise((m) => {
10
+ t.current = m;
11
+ })),
12
+ []
13
+ ), u = a(() => {
14
+ var n;
15
+ o(!1), r(void 0), (n = t.current) == null || n.call(t, !0);
16
+ }, []), i = a(() => {
17
+ var n;
18
+ o(!1), r(void 0), (n = t.current) == null || n.call(t, !1);
16
19
  }, []);
17
- return p(() => {
18
- a.setIsOpen(t);
19
- }, [t, a]), { ConfirmDialog: ({ id: r = "confirm-dialog-modal", children: m }) => c(x, { id: r, modalRef: { ...a, close: l }, size: "sm", title: o == null ? void 0 : o.title, children: [m, o == null ? void 0 : o.message, g(h, { id: o == null ? void 0 : o.id, onCancel: l, onConfirm: u })] }), confirm: d };
20
+ return D(() => {
21
+ s.setIsOpen(c);
22
+ }, [c, s]), { ConfirmDialog: ({ id: n = "confirm-dialog-modal", children: m }) => /* @__PURE__ */ d(
23
+ h,
24
+ {
25
+ id: n,
26
+ modalRef: { ...s, close: i },
27
+ size: "sm",
28
+ title: e == null ? void 0 : e.title,
29
+ children: [
30
+ m,
31
+ e == null ? void 0 : e.message,
32
+ /* @__PURE__ */ p(
33
+ M,
34
+ {
35
+ id: e == null ? void 0 : e.id,
36
+ onCancel: i,
37
+ onConfirm: u
38
+ }
39
+ )
40
+ ]
41
+ }
42
+ ), confirm: l };
20
43
  };
21
44
  export {
22
- w as useConfirmDialog
45
+ y as useConfirmDialog
23
46
  };
@@ -1,27 +1,51 @@
1
- import { jsx as l } from "react/jsx-runtime";
1
+ import { jsx as p } from "react/jsx-runtime";
2
2
  import { forwardRef as $ } from "react";
3
3
  import { styled as c } from "styled-components";
4
- import { B as p } from "../../styles-C3cZmKVJ.mjs";
5
- const y = c(p)`
6
- ${({ theme: n, $center: e = !1, $styleMd: r, $styleSm: t }) => `
7
- ${e ? "margin: auto;" : ""}
8
- scrollbar-color: ${n.palette.gray[600]} ${n.palette.gray[100]};
9
- scroll-padding: ${n.spacing[0.5]};
4
+ import { B as f } from "../../styles-CplEd2kw.mjs";
5
+ const b = c(f)`
6
+ ${({ theme: o, $center: r = !1, $styleMd: a, $styleSm: n }) => `
7
+ ${r ? "margin: auto;" : ""}
8
+ scrollbar-color: ${o.palette.gray[600]} ${o.palette.gray[100]};
9
+ scroll-padding: ${o.spacing[0.5]};
10
10
 
11
11
  @media screen
12
- and (min-width: ${n.breakpoints.mobile})
13
- and (max-width: ${n.breakpoints.tablet})
12
+ and (min-width: ${o.breakpoints.mobile})
13
+ and (max-width: ${o.breakpoints.tablet})
14
14
  {
15
- ${r};
15
+ ${a};
16
16
  }
17
17
 
18
- @media screen and (max-width: ${n.breakpoints.mobile}) {
19
- ${t};
18
+ @media screen and (max-width: ${o.breakpoints.mobile}) {
19
+ ${n};
20
20
  }
21
21
  `}
22
- `, u = $(function({ as: n = "div", center: e, children: r, id: t, onHover: a, onLeave: o, styleMd: s, styleSm: i, ...d }, m) {
23
- return l(y, { $center: e, $styleMd: s, $styleSm: i, as: n, id: t, onMouseLeave: o, onMouseOver: a, ref: m, ...d, children: r });
22
+ `, x = $(function({
23
+ as: r = "div",
24
+ center: a,
25
+ children: n,
26
+ id: e,
27
+ onHover: t,
28
+ onLeave: i,
29
+ styleMd: s,
30
+ styleSm: d,
31
+ ...l
32
+ }, m) {
33
+ return /* @__PURE__ */ p(
34
+ b,
35
+ {
36
+ $center: a,
37
+ $styleMd: s,
38
+ $styleSm: d,
39
+ as: r,
40
+ id: e,
41
+ onMouseLeave: i,
42
+ onMouseOver: t,
43
+ ref: m,
44
+ ...l,
45
+ children: n
46
+ }
47
+ );
24
48
  });
25
49
  export {
26
- u as Container
50
+ x as Container
27
51
  };