@selfdecode/sd-component-library 4.0.142 → 4.0.144
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/links/link/interfaces.d.ts +1 -0
- package/lib/components/wrapper/functions.d.ts +1 -1
- package/lib/components/wrapper/interfaces.d.ts +1 -0
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library16.js +1 -1
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library172.js +1 -1
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library198.js +57 -57
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library2.js +14 -4
- package/lib/sd-component-library2.js.map +1 -1
- package/lib/sd-component-library202.js +2 -57
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +30 -2
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +590 -21
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +25 -598
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +55 -24
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library210.js +40 -21
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +129 -3
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +13 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +14 -26
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +3 -3
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -31
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +65 -19
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +3 -20
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +3 -28
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +44 -31
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +52 -3
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +15 -127
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +19 -41
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +3 -47
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +3 -8
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +3 -64
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +31 -43
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +19 -13
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +20 -21
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +26 -107
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +27 -41
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +129 -24
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +40 -50
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +45 -46
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +7 -74
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +3 -41
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +20 -26
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +107 -19
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +47 -20
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +24 -2
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +1 -1
- package/lib/sd-component-library240.js +49 -36
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +63 -128
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +43 -13
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +13 -14
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +48 -3
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +41 -3
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +27 -3
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +16 -47
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +16 -61
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +75 -3
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +2 -46
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +324 -16
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +5 -325
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +26 -5
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library261.js +1 -1
- package/lib/sd-component-library262.js +1 -1
- package/lib/sd-component-library264.js +1 -1
- package/lib/sd-component-library277.js +2 -6
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +2 -3
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +9 -2
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +70 -3
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +102 -2
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +106 -2
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library283.js +6 -70
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library284.js +2 -102
- package/lib/sd-component-library284.js.map +1 -1
- package/lib/sd-component-library285.js +34 -104
- package/lib/sd-component-library285.js.map +1 -1
- package/lib/sd-component-library286.js +14 -10
- package/lib/sd-component-library286.js.map +1 -1
- package/lib/sd-component-library287.js +3 -2
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library288.js +3 -36
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library289.js +3 -14
- package/lib/sd-component-library289.js.map +1 -1
- package/lib/sd-component-library291.js +3 -3
- package/lib/sd-component-library292.js +4 -4
- package/lib/sd-component-library293.js +1 -1
- package/lib/sd-component-library294.js +58 -2
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +25 -76
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +89 -89
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +50 -52
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +35 -9
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +25 -5
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +5 -53
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +4 -9
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +8 -4
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +5 -4
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +4 -19
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +19 -3
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +3 -2
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library307.js +34 -2
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library308.js +2 -6
- package/lib/sd-component-library308.js.map +1 -1
- package/lib/sd-component-library309.js +76 -24
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +92 -50
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +52 -34
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +9 -5
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +5 -93
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +53 -4
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +20 -49
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +15 -20
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +6 -34
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library319.js +31 -28
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library320.js +2 -21
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library321.js +2 -32
- package/lib/sd-component-library321.js.map +1 -1
- package/lib/sd-component-library51.js +3 -3
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library61.js +2 -2
- package/lib/sd-component-library62.js +5 -5
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +2 -2
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +9 -7
- package/lib/sd-component-library81.js.map +1 -1
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library86.js +6 -6
- package/lib/sd-component-library87.js +2 -2
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +5 -5
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library92.js +6 -6
- package/lib/sd-component-library93.js +1 -1
- package/lib/sd-component-library94.js +7 -7
- package/lib/sd-component-library95.js +1 -1
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -7,4 +7,4 @@ import { Theme } from './interfaces';
|
|
|
7
7
|
*
|
|
8
8
|
* @returns - a merged theme object, containing both our styling variants and the client's.
|
|
9
9
|
*/
|
|
10
|
-
export declare const mergeThemes: (baseTheme: Theme, clientsTheme?: Theme) => Theme;
|
|
10
|
+
export declare const mergeThemes: (baseTheme: Theme, clientsTheme?: Theme, allowOverriding?: boolean) => Theme;
|
|
@@ -10,6 +10,7 @@ export interface WrapperProps {
|
|
|
10
10
|
* The custom theme we expect to receive from our client, containing their own theme definitions
|
|
11
11
|
*/
|
|
12
12
|
clientsTheme: Theme;
|
|
13
|
+
allowThemeOverriding?: boolean;
|
|
13
14
|
/**
|
|
14
15
|
* The children that will be contained within our wrapper
|
|
15
16
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.js";
|
|
2
|
-
import { LinearGaugeSegment as c } from "./sd-component-
|
|
3
|
-
import { LinearGaugeLabel as d } from "./sd-component-
|
|
2
|
+
import { LinearGaugeSegment as c } from "./sd-component-library247.js";
|
|
3
|
+
import { LinearGaugeLabel as d } from "./sd-component-library248.js";
|
|
4
4
|
import { GridCenter as f } from "./sd-component-library41.js";
|
|
5
5
|
import { GridContainerV2 as h } from "./sd-component-library38.js";
|
|
6
6
|
function $(l) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.js";
|
|
2
|
-
import { isMatchingRange as u } from "./sd-component-
|
|
2
|
+
import { isMatchingRange as u } from "./sd-component-library250.js";
|
|
3
3
|
import { GridCenter as c } from "./sd-component-library41.js";
|
|
4
4
|
import { GridContainerV2 as f } from "./sd-component-library38.js";
|
|
5
|
-
import { LinearGaugeSegment as d } from "./sd-component-
|
|
6
|
-
import { LinearGaugeLabel as j } from "./sd-component-
|
|
5
|
+
import { LinearGaugeSegment as d } from "./sd-component-library247.js";
|
|
6
|
+
import { LinearGaugeLabel as j } from "./sd-component-library248.js";
|
|
7
7
|
const M = ({
|
|
8
8
|
gap: i = 3,
|
|
9
9
|
segmentHeight: l = 8,
|
|
@@ -3,9 +3,9 @@ import { useRef as R, useState as T, useEffect as E } from "react";
|
|
|
3
3
|
import { Box as d } from "rebass";
|
|
4
4
|
import { useBodyScrollLock as L } from "./sd-component-library3.js";
|
|
5
5
|
import { isIOS as X, generateTestLocator as c } from "./sd-component-library4.js";
|
|
6
|
-
import $ from "./sd-component-
|
|
6
|
+
import $ from "./sd-component-library251.js";
|
|
7
7
|
import { OutsideClickBox as z } from "./sd-component-library12.js";
|
|
8
|
-
import { ReactComponent as A } from "./sd-component-
|
|
8
|
+
import { ReactComponent as A } from "./sd-component-library252.js";
|
|
9
9
|
import { FlexCenter as F } from "./sd-component-library34.js";
|
|
10
10
|
import { Button as H } from "./sd-component-library24.js";
|
|
11
11
|
const a = 500, K = (p) => {
|
|
@@ -3,7 +3,7 @@ import { useMemo as P } from "react";
|
|
|
3
3
|
import { Select as Z } from "@rebass/forms";
|
|
4
4
|
import { Box as q } from "rebass";
|
|
5
5
|
import { useDependantState as G } from "./sd-component-library3.js";
|
|
6
|
-
import { BaseLabel as J } from "./sd-component-
|
|
6
|
+
import { BaseLabel as J } from "./sd-component-library221.js";
|
|
7
7
|
import { MaxMaxContainer as K } from "./sd-component-library40.js";
|
|
8
8
|
import { ResponsiveTextV2 as Q } from "./sd-component-library150.js";
|
|
9
9
|
const U = (s, r, t, d, a, n) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.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-library221.js";
|
|
4
4
|
import { OutsideClickBox as u } from "./sd-component-library12.js";
|
|
5
5
|
import { ReactComponent as h } from "./sd-component-library188.js";
|
|
6
6
|
import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-library261.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.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-library221.js";
|
|
4
4
|
import { ReactComponent as u } from "./sd-component-library188.js";
|
|
5
5
|
import { CustomScrollableOptionsBox as h } from "./sd-component-library263.js";
|
|
6
6
|
import { GridContainerV2 as S } from "./sd-component-library38.js";
|
|
@@ -2,7 +2,7 @@ import { j as o } from "./sd-component-library197.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-library12.js";
|
|
5
|
-
import { BaseLabel as u } from "./sd-component-
|
|
5
|
+
import { BaseLabel as u } from "./sd-component-library221.js";
|
|
6
6
|
import { ReactComponent as f } from "./sd-component-library188.js";
|
|
7
7
|
import { CustomScrollableOptionsBox as h } from "./sd-component-library264.js";
|
|
8
8
|
import { ResponsiveTextV2 as b } from "./sd-component-library150.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as i } from "./sd-component-library197.js";
|
|
2
|
-
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-
|
|
2
|
+
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library206.js";
|
|
3
3
|
import { GridCenter as d } from "./sd-component-library41.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-library188.js";
|
|
6
6
|
import { TriangularPointerIcon as u } from "./sd-component-library191.js";
|
|
7
|
-
import { ActionBox as g } from "./sd-component-
|
|
7
|
+
import { ActionBox as g } from "./sd-component-library253.js";
|
|
8
8
|
import { HorizontalDivider as n } from "./sd-component-library48.js";
|
|
9
9
|
const B = (x) => {
|
|
10
10
|
const {
|
|
@@ -3,7 +3,7 @@ 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
5
|
import { isIOS as E } from "./sd-component-library4.js";
|
|
6
|
-
import M from "./sd-component-
|
|
6
|
+
import M from "./sd-component-library251.js";
|
|
7
7
|
import { TooltipWithPointerMobile as V } from "./sd-component-library272.js";
|
|
8
8
|
import { TooltipWithPointerHorizontal as D } from "./sd-component-library273.js";
|
|
9
9
|
import { TooltipWithPointerVertical as I } from "./sd-component-library274.js";
|
|
@@ -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-library202.js";
|
|
2
|
+
import { __require as r } from "./sd-component-library203.js";
|
|
3
|
+
import { __require as o } from "./sd-component-library204.js";
|
|
4
4
|
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
5
|
var m = e.exports;
|
|
6
6
|
export {
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
const j = (
|
|
2
|
-
let
|
|
3
|
-
const
|
|
4
|
-
let
|
|
5
|
-
return O(
|
|
6
|
-
const
|
|
7
|
-
if (Array.isArray(
|
|
8
|
-
|
|
1
|
+
const j = (a, o = {}, t = !1) => {
|
|
2
|
+
let s = {};
|
|
3
|
+
const n = Object.keys(a);
|
|
4
|
+
let c = Object.keys(o);
|
|
5
|
+
return !t && O(a, o), n.forEach((r) => {
|
|
6
|
+
const b = a[r];
|
|
7
|
+
if (Array.isArray(b))
|
|
8
|
+
o[r] ? s = { ...s, [r]: o[r] } : s = { ...s, [r]: a[r] };
|
|
9
9
|
else {
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
if (Array.isArray(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const i = Object.keys(a[r]);
|
|
11
|
+
let f;
|
|
12
|
+
o[r] && (f = Object.keys(o[r]));
|
|
13
|
+
const k = a[r];
|
|
14
|
+
if (Array.isArray(k) || (s = A(
|
|
15
|
+
i,
|
|
16
|
+
s,
|
|
17
|
+
k,
|
|
18
18
|
r
|
|
19
|
-
)),
|
|
20
|
-
const
|
|
21
|
-
Array.isArray(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
)), f != null && f.length) {
|
|
20
|
+
const l = o[r];
|
|
21
|
+
Array.isArray(l) || (s = A(
|
|
22
|
+
f,
|
|
23
|
+
s,
|
|
24
|
+
l,
|
|
25
25
|
r
|
|
26
26
|
));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
const
|
|
32
|
-
if (Array.isArray(
|
|
33
|
-
|
|
34
|
-
else if (Object.keys(
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
c = c.filter((i) => i !== r);
|
|
30
|
+
}), c.forEach((r) => {
|
|
31
|
+
const b = o[r];
|
|
32
|
+
if (Array.isArray(b))
|
|
33
|
+
s = { ...s, [r]: o[r] };
|
|
34
|
+
else if (Object.keys(o[r]).length) {
|
|
35
|
+
const i = Object.keys(o[r]);
|
|
36
|
+
s = A(
|
|
37
|
+
i,
|
|
38
|
+
s,
|
|
39
|
+
b,
|
|
40
40
|
r
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
const
|
|
48
|
-
Array.isArray(
|
|
49
|
-
...
|
|
50
|
-
[
|
|
51
|
-
...s
|
|
52
|
-
...
|
|
53
|
-
[
|
|
43
|
+
}), s;
|
|
44
|
+
}, A = (a, o, t, s) => {
|
|
45
|
+
let n = {};
|
|
46
|
+
return a.forEach((c) => {
|
|
47
|
+
const r = t[c];
|
|
48
|
+
Array.isArray(r) || typeof r == "number" || typeof r == "string" ? n = {
|
|
49
|
+
...o,
|
|
50
|
+
[s]: {
|
|
51
|
+
...o[s],
|
|
52
|
+
...n[s],
|
|
53
|
+
[c]: r
|
|
54
54
|
}
|
|
55
|
-
} :
|
|
56
|
-
...
|
|
57
|
-
[
|
|
58
|
-
...s
|
|
59
|
-
...
|
|
60
|
-
[
|
|
55
|
+
} : n = {
|
|
56
|
+
...o,
|
|
57
|
+
[s]: {
|
|
58
|
+
...o[s],
|
|
59
|
+
...n[s],
|
|
60
|
+
[c]: { ...r }
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
}),
|
|
64
|
-
}, O = (
|
|
65
|
-
Object.keys(
|
|
66
|
-
Object.keys(
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
63
|
+
}), n;
|
|
64
|
+
}, O = (a, o) => {
|
|
65
|
+
Object.keys(a).forEach((s) => {
|
|
66
|
+
Object.keys(a[s]).forEach((c) => {
|
|
67
|
+
const r = o[s];
|
|
68
|
+
if (r && !Array.isArray(r) && r[c])
|
|
69
69
|
throw new Error(
|
|
70
|
-
`Variant ${
|
|
70
|
+
`Variant ${c} already exists under ${s} in SelfDecode's base theme library. Please choose a different name`
|
|
71
71
|
);
|
|
72
72
|
});
|
|
73
73
|
});
|
|
@@ -1 +1 @@
|
|
|
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":"AAUO,MAAMA,IAAc,CACzBC,GACAC,IAAsB,
|
|
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 allowOverriding = false\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 !allowOverriding &&\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","allowOverriding","mergedTheme","baseThemeKeys","clientsThemeKeys","checkIfClientOverridesBaseThemeVariants","themeKey","section","baseThemeSectionKeys","clientsThemeSectionKeys","addSectionToTheme","key","themeSectionKeys","sectionToUnpack","updatedTheme","sectionKey","subSection","clentsThemeSection"],"mappings":"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"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.js";
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { ThemeProvider as t } from "emotion-theming";
|
|
4
|
-
import
|
|
5
|
-
import { mergeThemes as
|
|
6
|
-
const
|
|
4
|
+
import i from "./sd-component-library196.js";
|
|
5
|
+
import { mergeThemes as o } from "./sd-component-library198.js";
|
|
6
|
+
const f = (e) => /* @__PURE__ */ r.jsx(m.StrictMode, { children: /* @__PURE__ */ r.jsx(
|
|
7
|
+
t,
|
|
8
|
+
{
|
|
9
|
+
theme: o(
|
|
10
|
+
i,
|
|
11
|
+
e.clientsTheme,
|
|
12
|
+
e.allowThemeOverriding
|
|
13
|
+
),
|
|
14
|
+
children: e.children
|
|
15
|
+
}
|
|
16
|
+
) });
|
|
7
17
|
export {
|
|
8
|
-
|
|
18
|
+
f as Wrapper
|
|
9
19
|
};
|
|
10
20
|
//# sourceMappingURL=sd-component-library2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library2.js","sources":["../src/components/wrapper/wrapper.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ThemeProvider } from \"emotion-theming\";\n\nimport baseTheme from \"../../core/theme\";\nimport { mergeThemes } from \"./functions\";\nimport { WrapperProps } from \"./interfaces\";\n\n/**\n * Wrapper for the whole react application.\n */\nexport const Wrapper: React.FC<WrapperProps> = (props) => {\n return (\n <React.StrictMode>\n <ThemeProvider
|
|
1
|
+
{"version":3,"file":"sd-component-library2.js","sources":["../src/components/wrapper/wrapper.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ThemeProvider } from \"emotion-theming\";\n\nimport baseTheme from \"../../core/theme\";\nimport { mergeThemes } from \"./functions\";\nimport { WrapperProps } from \"./interfaces\";\n\n/**\n * Wrapper for the whole react application.\n */\nexport const Wrapper: React.FC<WrapperProps> = (props) => {\n return (\n <React.StrictMode>\n <ThemeProvider\n theme={mergeThemes(\n baseTheme,\n props.clientsTheme,\n props.allowThemeOverriding\n )}\n >\n {props.children}\n </ThemeProvider>\n </React.StrictMode>\n );\n};\n"],"names":["Wrapper","props","jsx","React","ThemeProvider","mergeThemes","baseTheme"],"mappings":";;;;;AAWa,MAAAA,IAAkC,CAACC,MAE5CC,gBAAAA,EAAA,IAACC,EAAM,YAAN,EACC,UAAAD,gBAAAA,EAAA;AAAA,EAACE;AAAA,EAAA;AAAA,IACC,OAAOC;AAAA,MACLC;AAAAA,MACAL,EAAM;AAAA,MACNA,EAAM;AAAA,IACR;AAAA,IAEC,UAAMA,EAAA;AAAA,EAAA;AAEX,EAAA,CAAA;"}
|
|
@@ -1,60 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { Crumb as c } from "./sd-component-library17.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
|
-
};
|
|
1
|
+
var e = { exports: {} };
|
|
56
2
|
export {
|
|
57
|
-
|
|
58
|
-
l as renderUpToFiveCrumbs
|
|
3
|
+
e as __module
|
|
59
4
|
};
|
|
60
5
|
//# sourceMappingURL=sd-component-library202.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library202.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library202.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as t } from "./sd-component-library275.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
|
+
}
|
|
2
30
|
export {
|
|
3
|
-
|
|
31
|
+
v as __require
|
|
4
32
|
};
|
|
5
33
|
//# sourceMappingURL=sd-component-library203.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library203.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library203.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]}
|