@selfdecode/sd-component-library 4.0.88 → 4.0.90

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 (122) hide show
  1. package/lib/sd-component-library117.js +1 -1
  2. package/lib/sd-component-library118.js +1 -1
  3. package/lib/sd-component-library120.js +1 -1
  4. package/lib/sd-component-library121.js +1 -1
  5. package/lib/sd-component-library126.js +1 -1
  6. package/lib/sd-component-library127.js +1 -1
  7. package/lib/sd-component-library129.js +1 -1
  8. package/lib/sd-component-library132.js +3 -3
  9. package/lib/sd-component-library133.js +1 -1
  10. package/lib/sd-component-library135.js +2 -2
  11. package/lib/sd-component-library15.js +1 -1
  12. package/lib/sd-component-library195.js +3 -3
  13. package/lib/sd-component-library199.js +3 -2
  14. package/lib/sd-component-library199.js.map +1 -1
  15. package/lib/sd-component-library200.js +57 -30
  16. package/lib/sd-component-library200.js.map +1 -1
  17. package/lib/sd-component-library201.js +24 -598
  18. package/lib/sd-component-library201.js.map +1 -1
  19. package/lib/sd-component-library202.js +19 -3
  20. package/lib/sd-component-library202.js.map +1 -1
  21. package/lib/sd-component-library203.js +5 -57
  22. package/lib/sd-component-library203.js.map +1 -1
  23. package/lib/sd-component-library204.js +5 -25
  24. package/lib/sd-component-library204.js.map +1 -1
  25. package/lib/sd-component-library205.js +61 -15
  26. package/lib/sd-component-library205.js.map +1 -1
  27. package/lib/sd-component-library206.js +2 -5
  28. package/lib/sd-component-library206.js.map +1 -1
  29. package/lib/sd-component-library207.js +30 -5
  30. package/lib/sd-component-library207.js.map +1 -1
  31. package/lib/sd-component-library208.js +595 -61
  32. package/lib/sd-component-library208.js.map +1 -1
  33. package/lib/sd-component-library209.js +18 -21
  34. package/lib/sd-component-library209.js.map +1 -1
  35. package/lib/sd-component-library210.js +21 -3
  36. package/lib/sd-component-library210.js.map +1 -1
  37. package/lib/sd-component-library211.js +1 -1
  38. package/lib/sd-component-library211.js.map +1 -1
  39. package/lib/sd-component-library212.js +3 -64
  40. package/lib/sd-component-library212.js.map +1 -1
  41. package/lib/sd-component-library213.js +60 -19
  42. package/lib/sd-component-library213.js.map +1 -1
  43. package/lib/sd-component-library214.js +23 -18
  44. package/lib/sd-component-library214.js.map +1 -1
  45. package/lib/sd-component-library227.js +3 -3
  46. package/lib/sd-component-library227.js.map +1 -1
  47. package/lib/sd-component-library228.js +3 -31
  48. package/lib/sd-component-library228.js.map +1 -1
  49. package/lib/sd-component-library229.js +31 -19
  50. package/lib/sd-component-library229.js.map +1 -1
  51. package/lib/sd-component-library23.js +2 -2
  52. package/lib/sd-component-library230.js +19 -20
  53. package/lib/sd-component-library230.js.map +1 -1
  54. package/lib/sd-component-library231.js +20 -28
  55. package/lib/sd-component-library231.js.map +1 -1
  56. package/lib/sd-component-library232.js +27 -32
  57. package/lib/sd-component-library232.js.map +1 -1
  58. package/lib/sd-component-library233.js +33 -3
  59. package/lib/sd-component-library233.js.map +1 -1
  60. package/lib/sd-component-library238.js +1 -1
  61. package/lib/sd-component-library24.js +2 -2
  62. package/lib/sd-component-library245.js +1 -1
  63. package/lib/sd-component-library25.js +1 -1
  64. package/lib/sd-component-library262.js +27 -27
  65. package/lib/sd-component-library262.js.map +1 -1
  66. package/lib/sd-component-library263.js +43 -13
  67. package/lib/sd-component-library263.js.map +1 -1
  68. package/lib/sd-component-library264.js +118 -112
  69. package/lib/sd-component-library264.js.map +1 -1
  70. package/lib/sd-component-library265.js +57 -105
  71. package/lib/sd-component-library265.js.map +1 -1
  72. package/lib/sd-component-library266.js +75 -9
  73. package/lib/sd-component-library266.js.map +1 -1
  74. package/lib/sd-component-library267.js +111 -39
  75. package/lib/sd-component-library267.js.map +1 -1
  76. package/lib/sd-component-library268.js +27 -27
  77. package/lib/sd-component-library268.js.map +1 -1
  78. package/lib/sd-component-library269.js +13 -43
  79. package/lib/sd-component-library269.js.map +1 -1
  80. package/lib/sd-component-library270.js +112 -118
  81. package/lib/sd-component-library270.js.map +1 -1
  82. package/lib/sd-component-library271.js +9 -73
  83. package/lib/sd-component-library271.js.map +1 -1
  84. package/lib/sd-component-library272.js +42 -68
  85. package/lib/sd-component-library272.js.map +1 -1
  86. package/lib/sd-component-library282.js +10 -70
  87. package/lib/sd-component-library282.js.map +1 -1
  88. package/lib/sd-component-library283.js +69 -101
  89. package/lib/sd-component-library283.js.map +1 -1
  90. package/lib/sd-component-library284.js +91 -95
  91. package/lib/sd-component-library284.js.map +1 -1
  92. package/lib/sd-component-library285.js +106 -10
  93. package/lib/sd-component-library285.js.map +1 -1
  94. package/lib/sd-component-library314.js +1 -1
  95. package/lib/sd-component-library315.js +1 -1
  96. package/lib/sd-component-library32.js +1 -1
  97. package/lib/sd-component-library321.js +1 -1
  98. package/lib/sd-component-library33.js +1 -1
  99. package/lib/sd-component-library49.js +1 -1
  100. package/lib/sd-component-library5.js +1 -1
  101. package/lib/sd-component-library50.js +1 -1
  102. package/lib/sd-component-library52.js +3 -3
  103. package/lib/sd-component-library53.js +2 -2
  104. package/lib/sd-component-library54.js +2 -2
  105. package/lib/sd-component-library57.js +42 -42
  106. package/lib/sd-component-library57.js.map +1 -1
  107. package/lib/sd-component-library58.js +34 -29
  108. package/lib/sd-component-library58.js.map +1 -1
  109. package/lib/sd-component-library6.js +1 -1
  110. package/lib/sd-component-library62.js +3 -3
  111. package/lib/sd-component-library63.js +1 -1
  112. package/lib/sd-component-library64.js +1 -1
  113. package/lib/sd-component-library86.js +6 -6
  114. package/lib/sd-component-library87.js +2 -2
  115. package/lib/sd-component-library88.js +1 -1
  116. package/lib/sd-component-library89.js +1 -1
  117. package/lib/sd-component-library90.js +1 -1
  118. package/lib/sd-component-library92.js +2 -2
  119. package/lib/sd-component-library93.js +1 -1
  120. package/lib/sd-component-library94.js +1 -1
  121. package/lib/sd-component-library95.js +1 -1
  122. package/package.json +1 -1
@@ -3,7 +3,7 @@ import u, { useState as h, useMemo as f } from "react";
3
3
  import { Box as g } from "rebass";
4
4
  import { OutsideClickBox as b } from "./sd-component-library11.js";
5
5
  import { ReactComponent as j } from "./sd-component-library186.js";
6
- import { CustomOptionBox as C } from "./sd-component-library268.js";
6
+ import { CustomOptionBox as C } from "./sd-component-library262.js";
7
7
  import { GridCenter as S } from "./sd-component-library42.js";
8
8
  import { EighteenRegular as d } from "./sd-component-library141.js";
9
9
  import { HorizontalDivider as _ } from "./sd-component-library49.js";
@@ -3,7 +3,7 @@ import { useState as x } from "react";
3
3
  import { BaseLabel as f } from "./sd-component-library226.js";
4
4
  import { OutsideClickBox as u } from "./sd-component-library11.js";
5
5
  import { ReactComponent as h } from "./sd-component-library186.js";
6
- import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-library269.js";
6
+ import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-library263.js";
7
7
  import { GridContainerV2 as g } from "./sd-component-library39.js";
8
8
  import { ResponsiveTextV2 as C } from "./sd-component-library149.js";
9
9
  import { FlexCenter as j } from "./sd-component-library35.js";
@@ -5,7 +5,7 @@ import { ReactComponent as x } from "./sd-component-library186.js";
5
5
  import { ResponsiveTextV2 as f } from "./sd-component-library149.js";
6
6
  import { BaseTextV2 as u } from "./sd-component-library137.js";
7
7
  import { FlexCenter as h } from "./sd-component-library35.js";
8
- import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-library269.js";
8
+ import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-library263.js";
9
9
  const k = ({
10
10
  width: l,
11
11
  options: r,
@@ -1,6 +1,6 @@
1
1
  import { j as i } from "./sd-component-library195.js";
2
2
  import { useMemo as S, useCallback as p } from "react";
3
- import { BaseSelectorV2 as u } from "./sd-component-library270.js";
3
+ import { BaseSelectorV2 as u } from "./sd-component-library264.js";
4
4
  const g = ({
5
5
  value: s,
6
6
  onChange: r,
@@ -2,7 +2,7 @@ import { j as o } from "./sd-component-library195.js";
2
2
  import { useState as x } from "react";
3
3
  import { BaseLabel as f } from "./sd-component-library226.js";
4
4
  import { ReactComponent as u } from "./sd-component-library186.js";
5
- import { CustomScrollableOptionsBox as h } from "./sd-component-library271.js";
5
+ import { CustomScrollableOptionsBox as h } from "./sd-component-library265.js";
6
6
  import { GridContainerV2 as S } from "./sd-component-library39.js";
7
7
  import { OutsideClickBox as b } from "./sd-component-library11.js";
8
8
  import { ResponsiveTextV2 as C } from "./sd-component-library149.js";
@@ -4,7 +4,7 @@ import { Flex as i } from "rebass";
4
4
  import { OutsideClickBox as d } from "./sd-component-library11.js";
5
5
  import { BaseLabel as u } from "./sd-component-library226.js";
6
6
  import { ReactComponent as f } from "./sd-component-library186.js";
7
- import { CustomScrollableOptionsBox as h } from "./sd-component-library272.js";
7
+ import { CustomScrollableOptionsBox as h } from "./sd-component-library266.js";
8
8
  import { ResponsiveTextV2 as b } from "./sd-component-library149.js";
9
9
  const w = (t) => {
10
10
  const { leftSlot: s, label: l, value: n, width: c } = t, [e, r] = x(!1), p = () => r(!1), a = () => r((m) => !m);
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./sd-component-library195.js";
2
2
  import { IconButton as s } from "./sd-component-library22.js";
3
- import { ReactComponent as c } from "./sd-component-library202.js";
3
+ import { ReactComponent as c } from "./sd-component-library199.js";
4
4
  import { EighteenBold as p } from "./sd-component-library140.js";
5
5
  import { GridCenter as g } from "./sd-component-library42.js";
6
6
  const C = ({
@@ -2,9 +2,9 @@ import { j as t } from "./sd-component-library195.js";
2
2
  import { useState as y } from "react";
3
3
  import { Flex as m } from "rebass";
4
4
  import { useBoundingClientRect as x } from "./sd-component-library3.js";
5
- import { ArrowButton as l } from "./sd-component-library262.js";
6
- import { Mask as p } from "./sd-component-library263.js";
7
- import { Tab as A } from "./sd-component-library264.js";
5
+ import { ArrowButton as l } from "./sd-component-library268.js";
6
+ import { Mask as p } from "./sd-component-library269.js";
7
+ import { Tab as A } from "./sd-component-library270.js";
8
8
  import { HorizontalDivider as E } from "./sd-component-library49.js";
9
9
  const s = 30, e = `${s}px`, w = "30px";
10
10
  function Q({
@@ -1,6 +1,6 @@
1
1
  import { j as t } from "./sd-component-library195.js";
2
2
  import { Box as w, Flex as s } from "rebass";
3
- import { TabV2 as T } from "./sd-component-library265.js";
3
+ import { TabV2 as T } from "./sd-component-library267.js";
4
4
  import { GridContainerV2 as G } from "./sd-component-library39.js";
5
5
  const h = 25, b = ({
6
6
  tabs: e,
@@ -1,8 +1,8 @@
1
1
  import { j as r } from "./sd-component-library195.js";
2
2
  import { useRef as v, useState as w, useEffect as m } from "react";
3
3
  import { Box as S } from "rebass";
4
- import { ScrollableTabWrapper as C } from "./sd-component-library266.js";
5
- import { Tab as j } from "./sd-component-library267.js";
4
+ import { ScrollableTabWrapper as C } from "./sd-component-library271.js";
5
+ import { Tab as j } from "./sd-component-library272.js";
6
6
  import { VerticalDivider as E } from "./sd-component-library50.js";
7
7
  import { BaseGridContainer as y } from "./sd-component-library36.js";
8
8
  import { MaxMaxContainer as L } from "./sd-component-library41.js";
@@ -1,5 +1,5 @@
1
1
  import { j as i } from "./sd-component-library195.js";
2
- import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library203.js";
2
+ import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library200.js";
3
3
  import { GridCenter as d } from "./sd-component-library42.js";
4
4
  const h = ({
5
5
  textTransform: t,
@@ -1,6 +1,6 @@
1
- import { __module as e } from "./sd-component-library199.js";
2
- import { __require as r } from "./sd-component-library200.js";
3
- import { __require as o } from "./sd-component-library201.js";
1
+ import { __module as e } from "./sd-component-library206.js";
2
+ import { __require as r } from "./sd-component-library207.js";
3
+ import { __require as o } from "./sd-component-library208.js";
4
4
  process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
5
  var m = e.exports;
6
6
  export {
@@ -1,5 +1,6 @@
1
- var e = { exports: {} };
1
+ import * as t from "react";
2
+ const e = (a) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 9.984, height: 6.021, viewBox: "0 0 9.984 6.021", ...a }, /* @__PURE__ */ t.createElement("path", { id: "dropdown_arrow_up", d: "M1262.106,88.295l4.662-4.218a.336.336,0,0,1,.459,0l4.662,4.218a.266.266,0,0,1,0,.416l-.5,1.205a.327.327,0,0,1-.23.091.331.331,0,0,1-.23-.091L1267,86.359l-3.93,3.557a.338.338,0,0,1-.46,0l-.5-1.205a.265.265,0,0,1,0-.416Z", transform: "translate(-1262.005 -83.986)" }));
2
3
  export {
3
- e as __module
4
+ e as ReactComponent
4
5
  };
5
6
  //# sourceMappingURL=sd-component-library199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library199.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"sd-component-library199.js","sources":["../src/components/accordions/base-accordion/assets/dropdown_arrow_up.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5Ljk4NCIgaGVpZ2h0PSI2LjAyMSIgdmlld0JveD0iMCAwIDkuOTg0IDYuMDIxIj4NCiAgPHBhdGggaWQ9ImRyb3Bkb3duX2Fycm93X3VwIiBkPSJNMTI2Mi4xMDYsODguMjk1bDQuNjYyLTQuMjE4YS4zMzYuMzM2LDAsMCwxLC40NTksMGw0LjY2Miw0LjIxOGEuMjY2LjI2NiwwLDAsMSwwLC40MTZsLS41LDEuMjA1YS4zMjcuMzI3LDAsMCwxLS4yMy4wOTEuMzMxLjMzMSwwLDAsMS0uMjMtLjA5MUwxMjY3LDg2LjM1OWwtMy45MywzLjU1N2EuMzM4LjMzOCwwLDAsMS0uNDYsMGwtLjUtMS4yMDVhLjI2NS4yNjUsMCwwLDEsMC0uNDE2WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyNjIuMDA1IC04My45ODYpIi8+DQo8L3N2Zz4NCg==\""],"names":["SvgDropdownArrowUp","props","React"],"mappings":";AACK,MAACA,IAAqB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,OAAO,QAAQ,OAAO,SAAS,mBAAmB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,IAAI,qBAAqB,GAAG,8NAA8N,WAAW,+BAA8B,CAAE,CAAC;"}
@@ -1,33 +1,60 @@
1
- import { __exports as t } from "./sd-component-library278.js";
2
- import R from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var p;
13
- function v() {
14
- if (p)
15
- return t;
16
- p = 1;
17
- var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function i(o, r, u) {
19
- var e, n = {}, _ = null, f = null;
20
- u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
21
- for (e in r)
22
- c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]);
23
- if (o && o.defaultProps)
24
- for (e in r = o.defaultProps, r)
25
- n[e] === void 0 && (n[e] = r[e]);
26
- return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
27
- }
28
- return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
29
- }
1
+ import { j as t } from "./sd-component-library195.js";
2
+ import { Crumb as c } from "./sd-component-library16.js";
3
+ const l = (s, h, p) => s.map(({ title: e, dontTranslate: r, onClick: u }, o) => /* @__PURE__ */ t.jsx(
4
+ c,
5
+ {
6
+ variant: h,
7
+ crumb: { title: e, dontTranslate: r },
8
+ isLast: o === s.length - 1,
9
+ textTransform: p,
10
+ onClick: u
11
+ },
12
+ e + o
13
+ )), a = (s, h, p) => {
14
+ const e = [];
15
+ return s.slice(0, 2).forEach(({ title: r, dontTranslate: u, onClick: o }, m) => {
16
+ e.push(
17
+ /* @__PURE__ */ t.jsx(
18
+ c,
19
+ {
20
+ variant: h,
21
+ crumb: { title: r, dontTranslate: u },
22
+ isLast: !1,
23
+ textTransform: p,
24
+ onClick: o
25
+ },
26
+ r + m
27
+ )
28
+ );
29
+ }), e.push(
30
+ /* @__PURE__ */ t.jsx(
31
+ c,
32
+ {
33
+ variant: h,
34
+ crumb: { title: "..." },
35
+ isLast: !1,
36
+ textTransform: p
37
+ },
38
+ "..."
39
+ )
40
+ ), s.slice(s.length - 2, s.length).forEach(({ title: r, onClick: u, dontTranslate: o }, m) => {
41
+ e.push(
42
+ /* @__PURE__ */ t.jsx(
43
+ c,
44
+ {
45
+ variant: h,
46
+ crumb: { title: r, dontTranslate: o },
47
+ isLast: m === 1,
48
+ textTransform: p,
49
+ onClick: u
50
+ },
51
+ r + m
52
+ )
53
+ );
54
+ }), e;
55
+ };
30
56
  export {
31
- v as __require
57
+ a as renderMoreThanFiveCrumbs,
58
+ l as renderUpToFiveCrumbs
32
59
  };
33
60
  //# sourceMappingURL=sd-component-library200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library200.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["f","require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":";;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,GAAiBC,IAAE,OAAO,IAAI,eAAe,GAAE,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEJ,EAAE,mDAAmD,mBAAkBK,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAEC,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,IAAGC,IAAE,MAAKC,IAAE;AAAK,IAASJ,MAAT,WAAaG,IAAE,KAAGH,IAAYD,EAAE,QAAX,WAAiBI,IAAE,KAAGJ,EAAE,MAAcA,EAAE,QAAX,WAAiBK,IAAEL,EAAE;AAAK,SAAIE,KAAKF;AAAE,MAAAL,EAAE,KAAKK,GAAEE,CAAC,KAAG,CAACL,EAAE,eAAeK,CAAC,MAAIC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,QAAGH,KAAGA,EAAE;AAAa,WAAIG,KAAKF,IAAED,EAAE,cAAaC;AAAE,QAASG,EAAED,CAAC,MAAZ,WAAgBC,EAAED,CAAC,IAAEF,EAAEE,CAAC;AAAG,WAAM,EAAC,UAASR,GAAE,MAAKK,GAAE,KAAIK,GAAE,KAAIC,GAAE,OAAMF,GAAE,QAAOP,EAAE,QAAO;AAAA,EAAC;AAAC,SAAAU,aAAiB,GAAEA,EAAW,MAACR,GAAEQ,EAAA,OAAaR;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sd-component-library200.js","sources":["../src/components/breadcrumbs/breadcrumb/functions.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\n\nimport { Crumb, CrumbType } from \"./crumb\";\n\nexport const renderUpToFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n return crumbs.map(({ title, dontTranslate, onClick }, index: number) => (\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === crumbs.length - 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n ));\n};\n\nexport const renderMoreThanFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n const elements: JSX.Element[] = [];\n\n crumbs\n .slice(0, 2)\n .forEach(({ title, dontTranslate, onClick }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={false}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title: \"...\" }}\n isLast={false}\n textTransform={textTransform}\n key=\"...\"\n />\n );\n\n crumbs\n .slice(crumbs.length - 2, crumbs.length)\n .forEach(({ title, onClick, dontTranslate }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n return elements;\n};\n"],"names":["renderUpToFiveCrumbs","crumbs","variant","textTransform","title","dontTranslate","onClick","index","jsx","Crumb","renderMoreThanFiveCrumbs","elements"],"mappings":";;AAIO,MAAMA,IAAuB,CAClCC,GACAC,GACAC,MAEOF,EAAO,IAAI,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAA,GAAWC,MACpDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAAP;AAAA,IACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,IAC9B,QAAQE,MAAUN,EAAO,SAAS;AAAA,IAElC,eAAAE;AAAA,IACA,SAAAG;AAAA,EAAA;AAAA,EAFKF,IAAQG;AAAA,CAIhB,GAGUG,IAA2B,CACtCT,GACAC,GACAC,MACG;AACH,QAAMQ,IAA0B,CAAA;AAG7B,SAAAV,EAAA,MAAM,GAAG,CAAC,EACV,QAAQ,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAQ,GAAGC,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQ;AAAA,UAER,eAAAF;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACMI,EAAA;AAAA,IACPH,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAP;AAAA,QACA,OAAO,EAAE,OAAO,MAAM;AAAA,QACtB,QAAQ;AAAA,QACR,eAAAC;AAAA,MAAA;AAAA,MACI;AAAA,IACN;AAAA,EAAA,GAGFF,EACG,MAAMA,EAAO,SAAS,GAAGA,EAAO,MAAM,EACtC,QAAQ,CAAC,EAAE,OAAAG,GAAO,SAAAE,GAAS,eAAAD,EAAA,GAAiBE,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQE,MAAU;AAAA,UAElB,eAAAJ;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACII;AACT;"}