@selfdecode/sd-component-library 4.0.78-1 → 4.0.78-test
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/utils/anchor/interfaces.d.ts +2 -2
- package/lib/components/utils/anchor/refs-manager.d.ts +4 -4
- package/lib/sd-component-library101.js +2 -2
- package/lib/sd-component-library107.js +1 -1
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library113.js +2 -2
- package/lib/sd-component-library115.js +1 -1
- package/lib/sd-component-library116.js +1 -1
- package/lib/sd-component-library121.js +2 -2
- package/lib/sd-component-library122.js +2 -2
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library127.js +3 -3
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library130.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library161.js +1 -1
- package/lib/sd-component-library162.js +1 -1
- package/lib/sd-component-library165.js +1 -1
- package/lib/sd-component-library166.js +4 -4
- package/lib/sd-component-library167.js +24 -23
- package/lib/sd-component-library167.js.map +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library191.js +3 -75
- package/lib/sd-component-library191.js.map +1 -1
- package/lib/sd-component-library192.js +75 -3
- package/lib/sd-component-library192.js.map +1 -1
- package/lib/sd-component-library194.js +3 -2
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +25 -30
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +57 -599
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +2 -57
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +30 -3
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +598 -24
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library2.js +1 -1
- package/lib/sd-component-library203.js +64 -18
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +18 -21
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +64 -3
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +23 -3
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +20 -63
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +3 -40
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +3 -14
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +40 -3
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +26 -3
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library214.js +14 -3
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -52
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +3 -46
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +61 -12
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +3 -65
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library220.js +44 -62
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +48 -19
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +16 -3
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +325 -31
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +5 -19
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +3 -20
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +31 -28
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +19 -33
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +20 -3
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +26 -127
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +31 -41
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +3 -47
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +129 -8
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +41 -62
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +40 -36
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +7 -12
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +64 -21
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +41 -107
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +12 -46
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +21 -24
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +103 -47
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +45 -46
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +23 -74
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +52 -40
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +47 -26
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +72 -18
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +2 -20
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +21 -2
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +20 -26
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +40 -324
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +27 -5
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library255.js +114 -17
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +23 -15
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +20 -29
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +118 -44
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +9 -130
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +41 -65
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +38 -63
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +27 -27
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +126 -16
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +63 -114
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +61 -107
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +9 -10
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +49 -48
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +89 -8
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +89 -48
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +24 -89
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +20 -90
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +51 -2
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +2 -2
- package/lib/sd-component-library274.js +2 -49
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library277.js +10 -70
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +69 -101
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +91 -95
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +106 -10
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library284.js +4 -4
- package/lib/sd-component-library285.js +3 -2
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +3 -8
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +3 -328
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library288.js +2 -51
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library289.js +8 -3
- package/lib/sd-component-library289.js.map +1 -1
- package/lib/sd-component-library290.js +328 -3
- package/lib/sd-component-library290.js.map +1 -1
- package/lib/sd-component-library291.js +51 -3
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +9 -2
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +4 -76
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +4 -93
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +19 -53
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +3 -9
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +2 -5
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +73 -49
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +93 -2
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +53 -2
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +8 -8
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +4 -4
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +53 -4
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +6 -19
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +2 -3
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +2 -6
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library309.js +1 -1
- package/lib/sd-component-library310.js +2 -2
- package/lib/sd-component-library316.js +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-library55.js +1 -1
- package/lib/sd-component-library57.js +3 -3
- package/lib/sd-component-library58.js +1 -1
- package/lib/sd-component-library59.js +2 -2
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library67.js +3 -3
- package/lib/sd-component-library69.js +2 -2
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library71.js +1 -1
- package/lib/sd-component-library72.js +1 -1
- package/lib/sd-component-library74.js +1 -1
- package/lib/sd-component-library75.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +6 -6
- package/lib/sd-component-library82.js +2 -2
- package/lib/sd-component-library83.js +1 -1
- package/lib/sd-component-library84.js +5 -5
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library87.js +6 -6
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +7 -7
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library93.js +2 -2
- package/lib/sd-component-library94.js +3 -3
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +3 -3
- package/lib/sd-component-library97.js +2 -2
- package/package.json +2 -2
|
@@ -3,8 +3,8 @@ import { BoxProps } from "rebass";
|
|
|
3
3
|
/**
|
|
4
4
|
* Type for the refsMap to be stored in reference manager.
|
|
5
5
|
*/
|
|
6
|
-
export declare type
|
|
7
|
-
[key: string]:
|
|
6
|
+
export declare type NodesMap = {
|
|
7
|
+
[key: string]: HTMLDivElement | undefined;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Interface for Anchor props.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { refsMap } from "./interfaces";
|
|
1
|
+
import { NodesMap } from "./interfaces";
|
|
3
2
|
/**
|
|
4
3
|
* Refs Manager class to keep record of registered refs on the page.
|
|
5
4
|
*/
|
|
6
5
|
declare class RefsManager {
|
|
7
|
-
refRegistry:
|
|
6
|
+
refRegistry: NodesMap;
|
|
8
7
|
/**
|
|
9
8
|
* Check if ref is registered for a component with provided ID.
|
|
10
9
|
* @param id ID for the component.
|
|
@@ -16,7 +15,8 @@ declare class RefsManager {
|
|
|
16
15
|
* @param id ID for the component.
|
|
17
16
|
* @param ref React Ref object for the component. Used for scrolling.
|
|
18
17
|
*/
|
|
19
|
-
addRef(id: string, ref:
|
|
18
|
+
addRef(id: string, ref: HTMLDivElement | undefined): void;
|
|
19
|
+
getRef(id: string): HTMLDivElement | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Remove a ref from registry.
|
|
22
22
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library190.js";
|
|
2
|
-
import { PaginationBarButton as i } from "./sd-component-
|
|
2
|
+
import { PaginationBarButton as i } from "./sd-component-library270.js";
|
|
3
3
|
import { ReactComponent as h } from "./sd-component-library252.js";
|
|
4
|
-
import { PaginationBarCurrentPage as u } from "./sd-component-
|
|
4
|
+
import { PaginationBarCurrentPage as u } from "./sd-component-library271.js";
|
|
5
5
|
import { ReactComponent as f } from "./sd-component-library254.js";
|
|
6
6
|
import { GridContainerV2 as s } from "./sd-component-library39.js";
|
|
7
7
|
import { ResponsiveTextV2 as j } from "./sd-component-library144.js";
|
|
@@ -4,7 +4,7 @@ import { Select as q } from "@rebass/forms";
|
|
|
4
4
|
import { Box as G } from "rebass";
|
|
5
5
|
import { useDependantState as J } from "./sd-component-library3.js";
|
|
6
6
|
import { MaxMaxContainer as K } from "./sd-component-library41.js";
|
|
7
|
-
import { BaseLabel as P } from "./sd-component-
|
|
7
|
+
import { BaseLabel as P } from "./sd-component-library222.js";
|
|
8
8
|
import { ResponsiveTextV2 as Q } from "./sd-component-library144.js";
|
|
9
9
|
const U = (a, r, t, d, o, n) => {
|
|
10
10
|
const m = d.find(
|
|
@@ -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-library181.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-library136.js";
|
|
9
9
|
import { HorizontalDivider as _ } from "./sd-component-library49.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library190.js";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { BaseLabel as f } from "./sd-component-
|
|
3
|
+
import { BaseLabel as f } from "./sd-component-library222.js";
|
|
4
4
|
import { OutsideClickBox as u } from "./sd-component-library11.js";
|
|
5
5
|
import { ReactComponent as h } from "./sd-component-library181.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-library144.js";
|
|
9
9
|
import { FlexCenter as j } from "./sd-component-library35.js";
|
|
@@ -5,7 +5,7 @@ import { ReactComponent as x } from "./sd-component-library181.js";
|
|
|
5
5
|
import { ResponsiveTextV2 as f } from "./sd-component-library144.js";
|
|
6
6
|
import { BaseTextV2 as u } from "./sd-component-library132.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-library190.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,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library190.js";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { BaseLabel as f } from "./sd-component-
|
|
3
|
+
import { BaseLabel as f } from "./sd-component-library222.js";
|
|
4
4
|
import { ReactComponent as u } from "./sd-component-library181.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-library144.js";
|
|
@@ -2,9 +2,9 @@ import { j as o } from "./sd-component-library190.js";
|
|
|
2
2
|
import { useState as x } from "react";
|
|
3
3
|
import { Flex as i } from "rebass";
|
|
4
4
|
import { OutsideClickBox as d } from "./sd-component-library11.js";
|
|
5
|
-
import { BaseLabel as u } from "./sd-component-
|
|
5
|
+
import { BaseLabel as u } from "./sd-component-library222.js";
|
|
6
6
|
import { ReactComponent as f } from "./sd-component-library181.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-library144.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-library190.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-library194.js";
|
|
4
4
|
import { EighteenBold as p } from "./sd-component-library135.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-library190.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-library256.js";
|
|
6
|
+
import { Mask as p } from "./sd-component-library257.js";
|
|
7
|
+
import { Tab as A } from "./sd-component-library258.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-library190.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-library255.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-library190.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-library259.js";
|
|
5
|
+
import { Tab as j } from "./sd-component-library260.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-library190.js";
|
|
2
|
-
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-
|
|
2
|
+
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library196.js";
|
|
3
3
|
import { GridCenter as d } from "./sd-component-library42.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
textTransform: t,
|
|
@@ -4,7 +4,7 @@ import { Flex as s, Box as i } from "rebass";
|
|
|
4
4
|
import { useHover as m } from "./sd-component-library3.js";
|
|
5
5
|
import { ReactComponent as b } from "./sd-component-library181.js";
|
|
6
6
|
import { TriangularPointerIcon as u } from "./sd-component-library184.js";
|
|
7
|
-
import { ActionBox as g } from "./sd-component-
|
|
7
|
+
import { ActionBox as g } from "./sd-component-library211.js";
|
|
8
8
|
import { HorizontalDivider as n } from "./sd-component-library49.js";
|
|
9
9
|
const B = (x) => {
|
|
10
10
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library190.js";
|
|
2
2
|
import { Box as m } from "rebass";
|
|
3
3
|
import { BaseTooltip as c } from "./sd-component-library163.js";
|
|
4
|
-
import { ReactComponent as f } from "./sd-component-
|
|
4
|
+
import { ReactComponent as f } from "./sd-component-library266.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-library190.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-library266.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-library190.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-library223.js";
|
|
6
|
+
import { TooltipWithPointerMobile as M } from "./sd-component-library267.js";
|
|
7
|
+
import { TooltipWithPointerHorizontal as V } from "./sd-component-library268.js";
|
|
8
|
+
import { TooltipWithPointerVertical as D } from "./sd-component-library269.js";
|
|
9
9
|
const f = 200, J = (u) => {
|
|
10
10
|
const {
|
|
11
11
|
children: x,
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { Box as
|
|
4
|
-
import { refsManager as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { j as R } from "./sd-component-library190.js";
|
|
2
|
+
import { useCallback as c, useEffect as g } from "react";
|
|
3
|
+
import { Box as H } from "rebass";
|
|
4
|
+
import { refsManager as r } from "./sd-component-library272.js";
|
|
5
|
+
const C = ({
|
|
6
|
+
id: s,
|
|
7
|
+
onScrolledToTop: n,
|
|
8
|
+
offsetYAdjustment: a = 0,
|
|
9
|
+
behavior: m = "smooth",
|
|
10
|
+
block: w,
|
|
11
|
+
inline: v,
|
|
12
|
+
children: E,
|
|
13
|
+
...u
|
|
14
|
+
}) => {
|
|
15
|
+
const o = c(() => {
|
|
16
16
|
const e = window.location.hash;
|
|
17
|
-
console.log("Handle hash change", e,
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
console.log("Handle hash change", e, r.doesRefExist(e)), e && r.scrollToRef(e, { behavior: m, block: w, inline: v });
|
|
18
|
+
}, []), x = c((e) => {
|
|
19
|
+
console.log("Register ref", s, e), r.addRef(s, e), o();
|
|
20
|
+
}, [s, o]), f = c(() => {
|
|
21
|
+
const e = window.pageYOffset, t = r.getRef(s), i = t == null ? void 0 : t.offsetTop, h = t == null ? void 0 : t.offsetHeight;
|
|
22
|
+
i !== void 0 && h !== void 0 && n && e + a >= i && e + a <= i + h && n(s);
|
|
23
|
+
}, [n, a, s]);
|
|
24
|
+
return g(() => (n && document.addEventListener("scroll", f), () => document.removeEventListener("scroll", f)), [s, n, f]), g(() => (window.addEventListener("hashchange", o), () => window.removeEventListener("hashchange", o)), [o]), /* @__PURE__ */ R.jsx(H, { ref: x, ...u, children: E });
|
|
24
25
|
};
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
C as Anchor
|
|
27
28
|
};
|
|
28
29
|
//# sourceMappingURL=sd-component-library167.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library167.js","sources":["../src/components/utils/anchor/anchor.tsx"],"sourcesContent":["import React, { useCallback, useEffect
|
|
1
|
+
{"version":3,"file":"sd-component-library167.js","sources":["../src/components/utils/anchor/anchor.tsx"],"sourcesContent":["import React, { useCallback, useEffect } from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { AnchorProps } from \"./interfaces\";\nimport { refsManager } from \"./refs-manager\";\n\n/**\n * Anchor component. This component allows scrolling to the components\n * when window hash is changed.\n */\nexport const Anchor: React.FC<AnchorProps> = ({\n id: childId,\n onScrolledToTop,\n offsetYAdjustment = 0,\n behavior = \"smooth\",\n block,\n inline,\n children,\n ...boxProps\n }) => {\n\n /**\n * Scroll to the component when window hash is changed.\n */\n const handleHashChange = useCallback(() => {\n const newHash = window.location.hash;\n console.log(\"Handle hash change\", newHash, refsManager.doesRefExist(newHash))\n if (newHash) refsManager.scrollToRef(newHash, { behavior, block, inline });\n }, []);\n\n const ref = useCallback((node: HTMLDivElement) => {\n console.log(\"Register ref\", childId, node);\n refsManager.addRef(childId, node);\n handleHashChange()\n }, [childId, handleHashChange])\n\n /**\n * On every scroll, check if anchor's children are scrolled to the\n * top of screen. If so, call the callback present in the props.\n */\n const handleScroll = useCallback(() => {\n const windowYOffset = window.pageYOffset;\n const element = refsManager.getRef(childId);\n const elementOffset = element?.offsetTop;\n const elementHeight = element?.offsetHeight;\n\n if (\n elementOffset !== undefined &&\n elementHeight !== undefined &&\n onScrolledToTop &&\n windowYOffset + offsetYAdjustment >= elementOffset &&\n windowYOffset + offsetYAdjustment <= elementOffset + elementHeight\n ) {\n onScrolledToTop(childId);\n }\n }, [onScrolledToTop, offsetYAdjustment, childId]);\n\n /**\n * Register new ref for the provided ID.\n */\n useEffect(() => {\n if (onScrolledToTop) {\n document.addEventListener(\"scroll\", handleScroll);\n }\n\n return () => document.removeEventListener(\"scroll\", handleScroll);\n }, [childId, onScrolledToTop, handleScroll]);\n\n /**\n * Register event listeners for hash change.\n * Remove upon component un-mount.\n */\n useEffect(() => {\n window.addEventListener(\"hashchange\", handleHashChange);\n\n return () => window.removeEventListener(\"hashchange\", handleHashChange);\n }, [handleHashChange]);\n\n return (\n <Box ref={ref} {...boxProps}>\n {children}\n </Box>\n );\n};\n"],"names":["Anchor","childId","onScrolledToTop","offsetYAdjustment","behavior","block","inline","children","boxProps","handleHashChange","useCallback","newHash","refsManager","ref","node","handleScroll","windowYOffset","element","elementOffset","elementHeight","useEffect","jsx","Box"],"mappings":";;;;AAWO,MAAMA,IAAgC,CAAC;AAAA,EACE,IAAIC;AAAA,EACJ,iBAAAC;AAAA,EACA,mBAAAC,IAAoB;AAAA,EACpB,UAAAC,IAAW;AAAA,EACX,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AAK5C,QAAAC,IAAmBC,EAAY,MAAM;AACnC,UAAAC,IAAU,OAAO,SAAS;AAChC,YAAQ,IAAI,sBAAsBA,GAASC,EAAY,aAAaD,CAAO,CAAC,GACxEA,KAASC,EAAY,YAAYD,GAAS,EAAE,UAAAP,GAAU,OAAAC,GAAO,QAAAC,GAAQ;AAAA,EAC3E,GAAG,CAAE,CAAA,GAECO,IAAMH,EAAY,CAACI,MAAyB;AACxC,YAAA,IAAI,gBAAgBb,GAASa,CAAI,GAC7BF,EAAA,OAAOX,GAASa,CAAI,GACfL;EAAA,GAChB,CAACR,GAASQ,CAAgB,CAAC,GAMxBM,IAAeL,EAAY,MAAM;AACrC,UAAMM,IAAgB,OAAO,aACvBC,IAAUL,EAAY,OAAOX,CAAO,GACpCiB,IAAgBD,KAAA,gBAAAA,EAAS,WACzBE,IAAgBF,KAAA,gBAAAA,EAAS;AAG7B,IAAAC,MAAkB,UAClBC,MAAkB,UAClBjB,KACAc,IAAgBb,KAAqBe,KACrCF,IAAgBb,KAAqBe,IAAgBC,KAErDjB,EAAgBD,CAAO;AAAA,EAExB,GAAA,CAACC,GAAiBC,GAAmBF,CAAO,CAAC;AAKhD,SAAAmB,EAAU,OACJlB,KACO,SAAA,iBAAiB,UAAUa,CAAY,GAG3C,MAAM,SAAS,oBAAoB,UAAUA,CAAY,IAC/D,CAACd,GAASC,GAAiBa,CAAY,CAAC,GAM3CK,EAAU,OACD,OAAA,iBAAiB,cAAcX,CAAgB,GAE/C,MAAM,OAAO,oBAAoB,cAAcA,CAAgB,IACrE,CAACA,CAAgB,CAAC,GAGlBY,gBAAAA,EAAAA,IAAAC,GAAA,EAAI,KAAAT,GAAW,GAAGL,GAChB,UAAAD,EACH,CAAA;AAEJ;"}
|
|
@@ -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-library197.js";
|
|
2
|
+
import { __require as r } from "./sd-component-library198.js";
|
|
3
|
+
import { __require as o } from "./sd-component-library199.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-library191.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library191.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library191.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-library192.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library192.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library192.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":"AAUO,MAAMA,IAAc,CACzBC,GACAC,IAAsB,OACZ;AACV,MAAIC,IAAqB,CAAA;AAGnB,QAAAC,IAAgB,OAAO,KAAKH,CAAS;AACvC,MAAAI,IAAmB,OAAO,KAAKH,CAAY;AAG/C,SAAAI,EAAwCL,GAAWC,CAAY,GAGjDE,EAAA,QAAQ,CAACG,MAAqB;AAGpC,UAAAC,IAAUP,EAAUM,CAAQ;AAC9B,QAAA,MAAM,QAAQC,CAAO;AAEnB,MAAAN,EAAaK,CAAQ,IACTJ,IAAA,EAAE,GAAGA,GAAa,CAACI,CAAQ,GAAGL,EAAaK,CAAQ,MAEnDJ,IAAA,EAAE,GAAGA,GAAa,CAACI,CAAQ,GAAGN,EAAUM,CAAQ;SAK7D;AAEH,YAAME,IAAuB,OAAO,KAAKR,EAAUM,CAAQ,CAAC;AAGxD,UAAAG;AAGA,MAAAR,EAAaK,CAAQ,MACvBG,IAA0B,OAAO,KAAKR,EAAaK,CAAQ,CAAC;AAIxDC,YAAAA,IAAUP,EAAUM,CAAQ;AAUlC,UATK,MAAM,QAAQC,CAAO,MACVL,IAAAQ;AAAA,QACZF;AAAA,QACAN;AAAA,QACAK;AAAAA,QACAD;AAAA,MAAA,IAIAG,KAAA,QAAAA,EAAyB,QAAQ;AAC7BF,cAAAA,IAAUN,EAAaK,CAAQ;AAGjC,QAAC,MAAM,QAAQC,CAAO,MACVL,IAAAQ;AAAA,UACZD;AAAA,UACAP;AAAA,UACAK;AAAAA,UACAD;AAAA,QAAA;AAAA,MAEN;AAAA,IACF;AAGA,IAAAF,IAAmBA,EAAiB,OAAO,CAACO,MAAQA,MAAQL,CAAQ;AAAA,EAAA,CACrE,GAGgBF,EAAA,QAAQ,CAACE,MAAqB;AAGvC,UAAAC,IAAUN,EAAaK,CAAQ;AAEjC,QAAA,MAAM,QAAQC,CAAO;AACT,MAAAL,IAAA,EAAE,GAAGA,GAAa,CAACI,CAAQ,GAAGL,EAAaK,CAAQ;aAI1D,OAAO,KAAKL,EAAaK,CAAQ,CAAC,EAAE,QAAQ;AACnD,YAAMG,IAA0B,OAAO,KAAKR,EAAaK,CAAQ,CAAC;AACpD,MAAAJ,IAAAQ;AAAA,QACZD;AAAA,QACAP;AAAA,QACAK;AAAA,QACAD;AAAA,MAAA;AAAA,IAEJ;AAAA,EAAA,CACD,GACMJ;AACT,GAWMQ,IAAoB,CACxBE,GACAV,GACAW,GACAP,MACU;AAEV,MAAIQ,IAAsB,CAAA;AAET,SAAAF,EAAA,QAAQ,CAACG,MAAuB;AACzC,UAAAC,IAAaH,EAAgBE,CAAU;AAG3C,IAAA,MAAM,QAAQC,CAAU,KACxB,OAAOA,KAAe,YACtB,OAAOA,KAAe,WAEPF,IAAA;AAAA,MACb,GAAGZ;AAAA,MACH,CAACI,CAAQ,GAAG;AAAA,QACV,GAAGJ,EAAYI,CAAQ;AAAA,QACvB,GAAGQ,EAAaR,CAAQ;AAAA,QACxB,CAACS,CAAU,GAAGC;AAAA,MAChB;AAAA,IAAA,IAGaF,IAAA;AAAA,MACb,GAAGZ;AAAA,MACH,CAACI,CAAQ,GAAG;AAAA,QACV,GAAGJ,EAAYI,CAAQ;AAAA,QACvB,GAAGQ,EAAaR,CAAQ;AAAA,QACxB,CAACS,CAAU,GAAG,EAAE,GAAGC,EAAW;AAAA,MAChC;AAAA,IAAA;AAAA,EAEJ,CACD,GACMF;AACT,GASMT,IAA0C,CAC9CL,GACAC,MACG;AAGW,EAFQ,OAAO,KAAKD,CAAS,EAE7B,QAAQ,CAACM,MAAqB;AAErB,IADQ,OAAO,KAAKN,EAAUM,CAAQ,CAAC,EACvC,QAAQ,CAACS,MAAuB;AAC7C,YAAAE,IAAqBhB,EAAaK,CAAQ;AAE9C,UAAAW,KACA,CAAC,MAAM,QAAQA,CAAkB,KACjCA,EAAmBF,CAAU;AAE7B,cAAM,IAAI;AAAA,UACR,WAAWA,CAAU,yBAAyBT,CAAQ;AAAA,QAAA;AAAA,IAE1D,CACD;AAAA,EAAA,CACF;AACH;"}
|
|
@@ -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-library194.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library194.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library194.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;"}
|