@selfdecode/sd-component-library 4.0.93 → 4.0.94
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.
- package/lib/components/forms-v2/form-v2-input/form-v2-number-input.stories.d.ts +1 -1
- package/lib/components/forms-v2/form-v2-selector/form-v2-selector.stories.d.ts +0 -1
- package/lib/sd-component-library103.js +2 -2
- package/lib/sd-component-library105.js +4 -4
- package/lib/sd-component-library107.js +4 -4
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library119.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library130.js +1 -1
- package/lib/sd-component-library133.js +3 -3
- package/lib/sd-component-library134.js +1 -1
- package/lib/sd-component-library136.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library171.js +1 -1
- package/lib/sd-component-library172.js +4 -4
- package/lib/sd-component-library173.js +1 -1
- package/lib/sd-component-library196.js +3 -3
- package/lib/sd-component-library197.js +3 -75
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +75 -3
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library2.js +1 -1
- package/lib/sd-component-library200.js +3 -2
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +57 -30
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +24 -598
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +18 -56
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +5 -25
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +18 -19
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +3 -3
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +2 -5
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +30 -65
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +599 -18
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +64 -3
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +22 -20
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +65 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +21 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +3 -64
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -23
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library231.js +3 -3
- package/lib/sd-component-library233.js +1 -1
- package/lib/sd-component-library234.js +1 -1
- package/lib/sd-component-library236.js +1 -1
- package/lib/sd-component-library238.js +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +1 -1
- package/lib/sd-component-library241.js +1 -1
- package/lib/sd-component-library242.js +1 -1
- package/lib/sd-component-library244.js +1 -1
- package/lib/sd-component-library245.js +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library255.js +27 -323
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +3 -5
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +20 -25
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +1 -1
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +18 -17
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +22 -3
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +44 -18
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +26 -18
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +131 -30
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +62 -39
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +62 -117
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +105 -57
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +29 -75
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +20 -29
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +121 -17
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +10 -125
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +39 -111
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +9 -10
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +323 -48
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +51 -49
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +89 -8
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +92 -2
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +5 -2
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +49 -51
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +2 -90
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +2 -92
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library290.js +4 -4
- package/lib/sd-component-library291.js +3 -2
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +3 -8
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +3 -328
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +2 -51
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +8 -3
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +328 -3
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +51 -3
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library315.js +89 -47
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +20 -88
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +50 -34
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +33 -23
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library32.js +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library51.js +1 -1
- package/lib/sd-component-library52.js +3 -3
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library54.js +2 -2
- package/lib/sd-component-library58.js +17 -17
- package/lib/sd-component-library58.js.map +1 -1
- package/lib/sd-component-library59.js +41 -34
- package/lib/sd-component-library59.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,5 @@ import { FormV2NumberInputWithContainer } from "./form-v2-number-input";
|
|
|
3
3
|
declare const meta: Meta<typeof FormV2NumberInputWithContainer>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof FormV2NumberInputWithContainer>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const AnyPositive: Story;
|
|
7
7
|
export declare const Integer: Story;
|
|
@@ -3,5 +3,4 @@ import { FormV2SelectorWithContainer } from "./form-v2-selector";
|
|
|
3
3
|
declare const meta: Meta<typeof FormV2SelectorWithContainer>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof FormV2SelectorWithContainer>;
|
|
6
|
-
export declare const Example: Story;
|
|
7
6
|
export declare const Interactive: Story;
|
|
@@ -3,9 +3,9 @@ import { useRef as B, useState as I, useEffect as R } from "react";
|
|
|
3
3
|
import { Box as s } from "rebass";
|
|
4
4
|
import { useBodyScrollLock as E } from "./sd-component-library3.js";
|
|
5
5
|
import { isIOS as F, isPDFFlow as T } from "./sd-component-library4.js";
|
|
6
|
-
import X from "./sd-component-
|
|
6
|
+
import X from "./sd-component-library273.js";
|
|
7
7
|
import { OutsideClickBox as P } from "./sd-component-library11.js";
|
|
8
|
-
import { ReactComponent as z } from "./sd-component-
|
|
8
|
+
import { ReactComponent as z } from "./sd-component-library277.js";
|
|
9
9
|
import { FlexCenter as A } from "./sd-component-library35.js";
|
|
10
10
|
import { Button as D } from "./sd-component-library25.js";
|
|
11
11
|
const r = 500, J = (d) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library196.js";
|
|
2
2
|
import { useDependantState as j } from "./sd-component-library3.js";
|
|
3
|
-
import { SquareButton as g } from "./sd-component-
|
|
4
|
-
import { ReactComponent as P } from "./sd-component-
|
|
5
|
-
import { CurrentPage as h } from "./sd-component-
|
|
6
|
-
import { ReactComponent as S } from "./sd-component-
|
|
3
|
+
import { SquareButton as g } from "./sd-component-library255.js";
|
|
4
|
+
import { ReactComponent as P } from "./sd-component-library256.js";
|
|
5
|
+
import { CurrentPage as h } from "./sd-component-library257.js";
|
|
6
|
+
import { ReactComponent as S } from "./sd-component-library258.js";
|
|
7
7
|
import { GridCenter as R } from "./sd-component-library42.js";
|
|
8
8
|
function x(m, t, o, n) {
|
|
9
9
|
t == null || t(o, n), m(o);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library196.js";
|
|
2
|
-
import { PaginationBarButton as i } from "./sd-component-
|
|
3
|
-
import { ReactComponent as h } from "./sd-component-
|
|
4
|
-
import { PaginationBarCurrentPage as u } from "./sd-component-
|
|
5
|
-
import { ReactComponent as f } from "./sd-component-
|
|
2
|
+
import { PaginationBarButton as i } from "./sd-component-library259.js";
|
|
3
|
+
import { ReactComponent as h } from "./sd-component-library256.js";
|
|
4
|
+
import { PaginationBarCurrentPage as u } from "./sd-component-library260.js";
|
|
5
|
+
import { ReactComponent as f } from "./sd-component-library258.js";
|
|
6
6
|
import { GridContainerV2 as s } from "./sd-component-library39.js";
|
|
7
7
|
import { ResponsiveTextV2 as j } from "./sd-component-library150.js";
|
|
8
8
|
const k = (a) => {
|
|
@@ -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-library187.js";
|
|
6
|
-
import { CustomOptionBox as C } from "./sd-component-
|
|
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-library142.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-library227.js";
|
|
4
4
|
import { OutsideClickBox as u } from "./sd-component-library11.js";
|
|
5
5
|
import { ReactComponent as h } from "./sd-component-library187.js";
|
|
6
|
-
import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-
|
|
6
|
+
import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-library261.js";
|
|
7
7
|
import { GridContainerV2 as g } from "./sd-component-library39.js";
|
|
8
8
|
import { ResponsiveTextV2 as C } from "./sd-component-library150.js";
|
|
9
9
|
import { FlexCenter as j } from "./sd-component-library35.js";
|
|
@@ -5,7 +5,7 @@ import { ReactComponent as x } from "./sd-component-library187.js";
|
|
|
5
5
|
import { ResponsiveTextV2 as f } from "./sd-component-library150.js";
|
|
6
6
|
import { BaseTextV2 as u } from "./sd-component-library138.js";
|
|
7
7
|
import { FlexCenter as h } from "./sd-component-library35.js";
|
|
8
|
-
import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-
|
|
8
|
+
import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-library261.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-library196.js";
|
|
2
2
|
import { useMemo as S, useCallback as p } from "react";
|
|
3
|
-
import { BaseSelectorV2 as u } from "./sd-component-
|
|
3
|
+
import { BaseSelectorV2 as u } from "./sd-component-library263.js";
|
|
4
4
|
const g = ({
|
|
5
5
|
value: s,
|
|
6
6
|
onChange: r,
|
|
@@ -2,7 +2,7 @@ import { j as o } from "./sd-component-library196.js";
|
|
|
2
2
|
import { useState as x } from "react";
|
|
3
3
|
import { BaseLabel as f } from "./sd-component-library227.js";
|
|
4
4
|
import { ReactComponent as u } from "./sd-component-library187.js";
|
|
5
|
-
import { CustomScrollableOptionsBox as h } from "./sd-component-
|
|
5
|
+
import { CustomScrollableOptionsBox as h } from "./sd-component-library264.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-library150.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-library227.js";
|
|
6
6
|
import { ReactComponent as f } from "./sd-component-library187.js";
|
|
7
|
-
import { CustomScrollableOptionsBox as h } from "./sd-component-
|
|
7
|
+
import { CustomScrollableOptionsBox as h } from "./sd-component-library265.js";
|
|
8
8
|
import { ResponsiveTextV2 as b } from "./sd-component-library150.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-library196.js";
|
|
2
2
|
import { IconButton as s } from "./sd-component-library22.js";
|
|
3
|
-
import { ReactComponent as c } from "./sd-component-
|
|
3
|
+
import { ReactComponent as c } from "./sd-component-library200.js";
|
|
4
4
|
import { EighteenBold as p } from "./sd-component-library141.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-library196.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-
|
|
6
|
-
import { Mask as p } from "./sd-component-
|
|
7
|
-
import { Tab as A } from "./sd-component-
|
|
5
|
+
import { ArrowButton as l } from "./sd-component-library267.js";
|
|
6
|
+
import { Mask as p } from "./sd-component-library268.js";
|
|
7
|
+
import { Tab as A } from "./sd-component-library269.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-library196.js";
|
|
2
2
|
import { Box as w, Flex as s } from "rebass";
|
|
3
|
-
import { TabV2 as T } from "./sd-component-
|
|
3
|
+
import { TabV2 as T } from "./sd-component-library266.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-library196.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-
|
|
5
|
-
import { Tab as j } from "./sd-component-
|
|
4
|
+
import { ScrollableTabWrapper as C } from "./sd-component-library270.js";
|
|
5
|
+
import { Tab as j } from "./sd-component-library271.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-library196.js";
|
|
2
|
-
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-
|
|
2
|
+
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library201.js";
|
|
3
3
|
import { GridCenter as d } from "./sd-component-library42.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
textTransform: t,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library196.js";
|
|
2
2
|
import { Box as m } from "rebass";
|
|
3
3
|
import { BaseTooltip as c } from "./sd-component-library169.js";
|
|
4
|
-
import { ReactComponent as f } from "./sd-component-
|
|
4
|
+
import { ReactComponent as f } from "./sd-component-library272.js";
|
|
5
5
|
const T = (i) => {
|
|
6
6
|
const {
|
|
7
7
|
tooltipText: n,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library196.js";
|
|
2
2
|
import w, { useRef as c, useEffect as y } from "react";
|
|
3
3
|
import { Box as o } from "rebass";
|
|
4
|
-
import { ReactComponent as g } from "./sd-component-
|
|
4
|
+
import { ReactComponent as g } from "./sd-component-library272.js";
|
|
5
5
|
const E = w.forwardRef((x, a) => {
|
|
6
6
|
const {
|
|
7
7
|
placement: e,
|
|
@@ -2,10 +2,10 @@ import { j as o } from "./sd-component-library196.js";
|
|
|
2
2
|
import { useState as y, useRef as a } from "react";
|
|
3
3
|
import { Box as z } from "rebass";
|
|
4
4
|
import { useBreakPoints as B, useBodyScrollLock as C } from "./sd-component-library3.js";
|
|
5
|
-
import E from "./sd-component-
|
|
6
|
-
import { TooltipWithPointerMobile as M } from "./sd-component-
|
|
7
|
-
import { TooltipWithPointerHorizontal as V } from "./sd-component-
|
|
8
|
-
import { TooltipWithPointerVertical as D } from "./sd-component-
|
|
5
|
+
import E from "./sd-component-library273.js";
|
|
6
|
+
import { TooltipWithPointerMobile as M } from "./sd-component-library274.js";
|
|
7
|
+
import { TooltipWithPointerHorizontal as V } from "./sd-component-library275.js";
|
|
8
|
+
import { TooltipWithPointerVertical as D } from "./sd-component-library276.js";
|
|
9
9
|
const f = 200, J = (u) => {
|
|
10
10
|
const {
|
|
11
11
|
children: x,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as x } from "./sd-component-library196.js";
|
|
2
2
|
import { useRef as E, useCallback as b, useEffect as h } from "react";
|
|
3
3
|
import { Box as j } from "rebass";
|
|
4
|
-
import { refsManager as l } from "./sd-component-
|
|
4
|
+
import { refsManager as l } from "./sd-component-library278.js";
|
|
5
5
|
const O = (m) => {
|
|
6
6
|
const e = E(), {
|
|
7
7
|
id: n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __module as e } from "./sd-component-
|
|
2
|
-
import { __require as r } from "./sd-component-
|
|
3
|
-
import { __require as o } from "./sd-component-
|
|
1
|
+
import { __module as e } from "./sd-component-library207.js";
|
|
2
|
+
import { __require as r } from "./sd-component-library208.js";
|
|
3
|
+
import { __require as o } from "./sd-component-library209.js";
|
|
4
4
|
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
5
|
var m = e.exports;
|
|
6
6
|
export {
|
|
@@ -1,78 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const c = Object.keys(n);
|
|
4
|
-
let i = Object.keys(s);
|
|
5
|
-
return O(n, s), c.forEach((r) => {
|
|
6
|
-
const a = n[r];
|
|
7
|
-
if (Array.isArray(a))
|
|
8
|
-
s[r] ? o = { ...o, [r]: s[r] } : o = { ...o, [r]: n[r] };
|
|
9
|
-
else {
|
|
10
|
-
const f = Object.keys(n[r]);
|
|
11
|
-
let t;
|
|
12
|
-
s[r] && (t = Object.keys(s[r]));
|
|
13
|
-
const A = n[r];
|
|
14
|
-
if (Array.isArray(A) || (o = b(
|
|
15
|
-
f,
|
|
16
|
-
o,
|
|
17
|
-
A,
|
|
18
|
-
r
|
|
19
|
-
)), t != null && t.length) {
|
|
20
|
-
const k = s[r];
|
|
21
|
-
Array.isArray(k) || (o = b(
|
|
22
|
-
t,
|
|
23
|
-
o,
|
|
24
|
-
k,
|
|
25
|
-
r
|
|
26
|
-
));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
i = i.filter((f) => f !== r);
|
|
30
|
-
}), i.forEach((r) => {
|
|
31
|
-
const a = s[r];
|
|
32
|
-
if (Array.isArray(a))
|
|
33
|
-
o = { ...o, [r]: s[r] };
|
|
34
|
-
else if (Object.keys(s[r]).length) {
|
|
35
|
-
const f = Object.keys(s[r]);
|
|
36
|
-
o = b(
|
|
37
|
-
f,
|
|
38
|
-
o,
|
|
39
|
-
a,
|
|
40
|
-
r
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
}), o;
|
|
44
|
-
}, b = (n, s, o, c) => {
|
|
45
|
-
let i = {};
|
|
46
|
-
return n.forEach((r) => {
|
|
47
|
-
const a = o[r];
|
|
48
|
-
Array.isArray(a) || typeof a == "number" || typeof a == "string" ? i = {
|
|
49
|
-
...s,
|
|
50
|
-
[c]: {
|
|
51
|
-
...s[c],
|
|
52
|
-
...i[c],
|
|
53
|
-
[r]: a
|
|
54
|
-
}
|
|
55
|
-
} : i = {
|
|
56
|
-
...s,
|
|
57
|
-
[c]: {
|
|
58
|
-
...s[c],
|
|
59
|
-
...i[c],
|
|
60
|
-
[r]: { ...a }
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}), i;
|
|
64
|
-
}, O = (n, s) => {
|
|
65
|
-
Object.keys(n).forEach((c) => {
|
|
66
|
-
Object.keys(n[c]).forEach((r) => {
|
|
67
|
-
const a = s[c];
|
|
68
|
-
if (a && !Array.isArray(a) && a[r])
|
|
69
|
-
throw new Error(
|
|
70
|
-
`Variant ${r} already exists under ${c} in SelfDecode's base theme library. Please choose a different name`
|
|
71
|
-
);
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
};
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = (a) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 9.983 6.021", ...a }, /* @__PURE__ */ t.createElement("path", { d: "M1795.1,1135.7l4.66,4.217a.338.338,0,0,0,.462,0l4.66-4.217a.266.266,0,0,0,0-.417l-.5-1.2a.327.327,0,0,0-.231-.091.319.319,0,0,0-.227.091l-3.934,3.557-3.932-3.557a.334.334,0,0,0-.457,0l-.5,1.2a.266.266,0,0,0,0,.417Z", transform: "translate(-1795.001 -1133.985)" }));
|
|
75
3
|
export {
|
|
76
|
-
|
|
4
|
+
e as ReactComponent
|
|
77
5
|
};
|
|
78
6
|
//# sourceMappingURL=sd-component-library197.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library197.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library197.js","sources":["../src/components/feature-explanation/assets/dropdown-arrow.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5Ljk4MyA2LjAyMSI+CiAgICA8cGF0aCBkPSJNMTc5NS4xLDExMzUuN2w0LjY2LDQuMjE3YS4zMzguMzM4LDAsMCwwLC40NjIsMGw0LjY2LTQuMjE3YS4yNjYuMjY2LDAsMCwwLDAtLjQxN2wtLjUtMS4yYS4zMjcuMzI3LDAsMCwwLS4yMzEtLjA5MS4zMTkuMzE5LDAsMCwwLS4yMjcuMDkxbC0zLjkzNCwzLjU1Ny0zLjkzMi0zLjU1N2EuMzM0LjMzNCwwLDAsMC0uNDU3LDBsLS41LDEuMmEuMjY2LjI2NiwwLDAsMCwwLC40MTdaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTc5NS4wMDEgLTExMzMuOTg1KSIvPgo8L3N2Zz4=\""],"names":["SvgDropdownArrow","props","React"],"mappings":";AACK,MAACA,IAAmB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,mBAAmB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,0NAA0N,WAAW,kCAAkC,CAAC;"}
|
|
@@ -1,6 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const j = (n, s = {}) => {
|
|
2
|
+
let o = {};
|
|
3
|
+
const c = Object.keys(n);
|
|
4
|
+
let i = Object.keys(s);
|
|
5
|
+
return O(n, s), c.forEach((r) => {
|
|
6
|
+
const a = n[r];
|
|
7
|
+
if (Array.isArray(a))
|
|
8
|
+
s[r] ? o = { ...o, [r]: s[r] } : o = { ...o, [r]: n[r] };
|
|
9
|
+
else {
|
|
10
|
+
const f = Object.keys(n[r]);
|
|
11
|
+
let t;
|
|
12
|
+
s[r] && (t = Object.keys(s[r]));
|
|
13
|
+
const A = n[r];
|
|
14
|
+
if (Array.isArray(A) || (o = b(
|
|
15
|
+
f,
|
|
16
|
+
o,
|
|
17
|
+
A,
|
|
18
|
+
r
|
|
19
|
+
)), t != null && t.length) {
|
|
20
|
+
const k = s[r];
|
|
21
|
+
Array.isArray(k) || (o = b(
|
|
22
|
+
t,
|
|
23
|
+
o,
|
|
24
|
+
k,
|
|
25
|
+
r
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
i = i.filter((f) => f !== r);
|
|
30
|
+
}), i.forEach((r) => {
|
|
31
|
+
const a = s[r];
|
|
32
|
+
if (Array.isArray(a))
|
|
33
|
+
o = { ...o, [r]: s[r] };
|
|
34
|
+
else if (Object.keys(s[r]).length) {
|
|
35
|
+
const f = Object.keys(s[r]);
|
|
36
|
+
o = b(
|
|
37
|
+
f,
|
|
38
|
+
o,
|
|
39
|
+
a,
|
|
40
|
+
r
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}), o;
|
|
44
|
+
}, b = (n, s, o, c) => {
|
|
45
|
+
let i = {};
|
|
46
|
+
return n.forEach((r) => {
|
|
47
|
+
const a = o[r];
|
|
48
|
+
Array.isArray(a) || typeof a == "number" || typeof a == "string" ? i = {
|
|
49
|
+
...s,
|
|
50
|
+
[c]: {
|
|
51
|
+
...s[c],
|
|
52
|
+
...i[c],
|
|
53
|
+
[r]: a
|
|
54
|
+
}
|
|
55
|
+
} : i = {
|
|
56
|
+
...s,
|
|
57
|
+
[c]: {
|
|
58
|
+
...s[c],
|
|
59
|
+
...i[c],
|
|
60
|
+
[r]: { ...a }
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}), i;
|
|
64
|
+
}, O = (n, s) => {
|
|
65
|
+
Object.keys(n).forEach((c) => {
|
|
66
|
+
Object.keys(n[c]).forEach((r) => {
|
|
67
|
+
const a = s[c];
|
|
68
|
+
if (a && !Array.isArray(a) && a[r])
|
|
69
|
+
throw new Error(
|
|
70
|
+
`Variant ${r} already exists under ${c} in SelfDecode's base theme library. Please choose a different name`
|
|
71
|
+
);
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
};
|
|
3
75
|
export {
|
|
4
|
-
|
|
76
|
+
j as mergeThemes
|
|
5
77
|
};
|
|
6
78
|
//# sourceMappingURL=sd-component-library198.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library198.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library198.js","sources":["../src/components/wrapper/functions.ts"],"sourcesContent":["import { KeyValue, Theme } from \"./interfaces\";\n\n/**\n *\n * @param baseTheme - our library's base theme with all the variants that we have established.\n * @param clientsTheme - the client's theme, which holds any other theming variants the client has ceated in their own project.\n *\n * @returns - a merged theme object, containing both our styling variants and the client's.\n */\n\nexport const mergeThemes = (\n baseTheme: Theme,\n clientsTheme: Theme = {}\n): Theme => {\n let mergedTheme: Theme = {};\n\n // Extract all keys from our base theme and our client's theme - these would be variants/forms/text/buttons etc.\n const baseThemeKeys = Object.keys(baseTheme);\n let clientsThemeKeys = Object.keys(clientsTheme);\n\n // Check if the client overrides any of the base theme variants. If they do, throw an error.\n checkIfClientOverridesBaseThemeVariants(baseTheme, clientsTheme);\n\n // Start the operation of building our merged theme\n baseThemeKeys.forEach((themeKey: string) => {\n // If this section is not an object, for example 'breakpoints', which is an array of strings, then we don't want to itterate over the array, but just insert it to the them and finish this loop.\n\n const section = baseTheme[themeKey];\n if (Array.isArray(section)) {\n // If the client has a similar section, we priorotize their values here and allow them to over write ours.\n if (clientsTheme[themeKey]) {\n mergedTheme = { ...mergedTheme, [themeKey]: clientsTheme[themeKey] };\n } else {\n mergedTheme = { ...mergedTheme, [themeKey]: baseTheme[themeKey] };\n }\n }\n\n // If this section IS and object, then we want to itterate over its keys and unpack it\n else {\n // Extract the keys of all the variants from the current section in the base theme\n const baseThemeSectionKeys = Object.keys(baseTheme[themeKey]);\n\n // Declare the clients theme section keys for this current section\n let clientsThemeSectionKeys: string[] | undefined;\n\n // If the clients theme has this section, extract the keys of all the variants from the current section in the client's theme\n if (clientsTheme[themeKey]) {\n clientsThemeSectionKeys = Object.keys(clientsTheme[themeKey]);\n }\n\n // Add all the variants of this current section from the base theme to the merged theme\n const section = baseTheme[themeKey];\n if (!Array.isArray(section))\n mergedTheme = addSectionToTheme(\n baseThemeSectionKeys,\n mergedTheme,\n section,\n themeKey\n );\n\n // If the client's section keys for this section aren't undefined (meaning the client has not added anything under this section in their theme) then skip. Otherwise, we add their variants for this current section to the merged theme.\n if (clientsThemeSectionKeys?.length) {\n const section = clientsTheme[themeKey];\n\n // If this section is an instant of KeyValue\n if (!Array.isArray(section))\n mergedTheme = addSectionToTheme(\n clientsThemeSectionKeys,\n mergedTheme,\n section,\n themeKey\n );\n }\n }\n\n // We remove this current theme key (the section) from the client's theme keys as we've already unpacked all that it carried\n clientsThemeKeys = clientsThemeKeys.filter((key) => key !== themeKey);\n });\n\n // We start itterating over the remaining keys in he client's theme keys (those are the sections that were unique to the user's theme, that we haven't included in our theme).\n clientsThemeKeys.forEach((themeKey: string) => {\n // If this section is not an object, for example 'breakpoints', which is an array of strings, then we don't want to itterate over the array, but just insert it to the them and finish this loop.\n\n const section = clientsTheme[themeKey];\n\n if (Array.isArray(section)) {\n mergedTheme = { ...mergedTheme, [themeKey]: clientsTheme[themeKey] };\n }\n\n // If this section IS a non empty object, then we want to itterate over its keys and unpack it\n else if (Object.keys(clientsTheme[themeKey]).length) {\n const clientsThemeSectionKeys = Object.keys(clientsTheme[themeKey]);\n mergedTheme = addSectionToTheme(\n clientsThemeSectionKeys,\n mergedTheme,\n section,\n themeKey\n );\n }\n });\n return mergedTheme;\n};\n\n/**\n *\n * @param themeSectionKeys - Array of all the keys for this current section. These are second level keys when looking at the theme. An example section might be \"buttons\" and some of the keys will have in this array would be \"_cta\", \"_circle\", \"_square\" etc.\n * @param mergedTheme - The most updated version of our final theme. We use it to unpack where needed, so we won't overwrite previously added sections.\n * @param themeToUnpack - The theme we are currently unpacking (baseTheme or the clientTheme)\n * @param themeKey - The key of the section we are currently unpacking. Following the example from above, this will be \"buttons\".\n *\n * @returns - An updated theme after adding all the keys of this section.\n */\nconst addSectionToTheme = (\n themeSectionKeys: string[],\n mergedTheme: Theme,\n sectionToUnpack: KeyValue,\n themeKey: string\n): Theme => {\n // The updated theme object that we'll be returning after adding this section\n let updatedTheme: Theme = {};\n\n themeSectionKeys.forEach((sectionKey: string) => {\n const subSection = sectionToUnpack[sectionKey];\n\n if (\n Array.isArray(subSection) ||\n typeof subSection === \"number\" ||\n typeof subSection === \"string\"\n ) {\n updatedTheme = {\n ...mergedTheme,\n [themeKey]: {\n ...mergedTheme[themeKey],\n ...updatedTheme[themeKey],\n [sectionKey]: subSection,\n },\n };\n } else {\n updatedTheme = {\n ...mergedTheme,\n [themeKey]: {\n ...mergedTheme[themeKey],\n ...updatedTheme[themeKey],\n [sectionKey]: { ...subSection },\n },\n };\n }\n });\n return updatedTheme;\n};\n\n/**\n *\n * @param baseTheme - The theme that we provide.\n * @param clientsTheme - The theme that the client provides\n *\n * Throws an error if we have overlapping keys. Otherwise, returns nothing and allows our function to continue its work.\n */\nconst checkIfClientOverridesBaseThemeVariants = (\n baseTheme: Theme,\n clientsTheme: Theme\n) => {\n const baseThemeKeys = Object.keys(baseTheme);\n\n baseThemeKeys.forEach((themeKey: string) => {\n const baseThemeSectionKeys = Object.keys(baseTheme[themeKey]);\n baseThemeSectionKeys.forEach((sectionKey: string) => {\n const clentsThemeSection = clientsTheme[themeKey];\n if (\n clentsThemeSection &&\n !Array.isArray(clentsThemeSection) &&\n clentsThemeSection[sectionKey]\n ) {\n throw new Error(\n `Variant ${sectionKey} already exists under ${themeKey} in SelfDecode's base theme library. Please choose a different name`\n );\n }\n });\n });\n};\n"],"names":["mergeThemes","baseTheme","clientsTheme","mergedTheme","baseThemeKeys","clientsThemeKeys","checkIfClientOverridesBaseThemeVariants","themeKey","section","baseThemeSectionKeys","clientsThemeSectionKeys","addSectionToTheme","key","themeSectionKeys","sectionToUnpack","updatedTheme","sectionKey","subSection","clentsThemeSection"],"mappings":"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"}
|
|
@@ -2,7 +2,7 @@ import { j as r } from "./sd-component-library196.js";
|
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { ThemeProvider as t } from "emotion-theming";
|
|
4
4
|
import o from "./sd-component-library195.js";
|
|
5
|
-
import { mergeThemes as i } from "./sd-component-
|
|
5
|
+
import { mergeThemes as i } from "./sd-component-library198.js";
|
|
6
6
|
const d = (e) => /* @__PURE__ */ r.jsx(m.StrictMode, { children: /* @__PURE__ */ r.jsx(t, { theme: i(o, e.clientsTheme), children: e.children }) });
|
|
7
7
|
export {
|
|
8
8
|
d as Wrapper
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
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
|
|
4
|
+
e as ReactComponent
|
|
4
5
|
};
|
|
5
6
|
//# sourceMappingURL=sd-component-library200.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library200.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library200.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 {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
1
|
+
import { j as t } from "./sd-component-library196.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
|
-
|
|
57
|
+
a as renderMoreThanFiveCrumbs,
|
|
58
|
+
l as renderUpToFiveCrumbs
|
|
32
59
|
};
|
|
33
60
|
//# sourceMappingURL=sd-component-library201.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library201.js","sources":["../
|
|
1
|
+
{"version":3,"file":"sd-component-library201.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;"}
|