@selfdecode/sd-component-library 4.0.82 → 4.0.83
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/accordions/sublist-accordion/interfaces.d.ts +6 -13
- package/lib/components/accordions/sublist-accordion/sublist-accordian.stories.d.ts +0 -1
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library113.js +1 -1
- package/lib/sd-component-library115.js +1 -1
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library166.js +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library194.js +3 -57
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +57 -2
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +25 -30
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +18 -598
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library198.js +5 -3
- package/lib/sd-component-library198.js.map +1 -1
- package/lib/sd-component-library199.js +5 -25
- package/lib/sd-component-library199.js.map +1 -1
- package/lib/sd-component-library200.js +61 -15
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +18 -5
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +2 -5
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +30 -65
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +599 -18
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library218.js +45 -64
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +65 -3
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +3 -46
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library227.js +1 -1
- package/lib/sd-component-library228.js +1 -1
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library230.js +2 -2
- package/lib/sd-component-library232.js +1 -1
- package/lib/sd-component-library233.js +1 -1
- package/lib/sd-component-library234.js +21 -64
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +107 -41
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +46 -12
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +24 -21
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +47 -103
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +63 -46
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +43 -24
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +12 -52
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library246.js +323 -19
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +5 -20
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library249.js +19 -323
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +20 -5
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library257.js +30 -51
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +51 -30
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library309.js +89 -47
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +47 -89
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +33 -23
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +23 -33
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library32.js +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library6.js +41 -44
- package/lib/sd-component-library6.js.map +1 -1
- 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-library87.js +3 -3
- package/lib/sd-component-library89.js +5 -5
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +2 -2
- package/lib/sd-component-library97.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface SublistAccordionProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Callback function that is called when accordion changes state
|
|
6
|
+
* (open/closed).
|
|
7
|
+
*/
|
|
8
|
+
onChange?: (isOpen: boolean) => void;
|
|
3
9
|
/**
|
|
4
10
|
* Text that will be shown when the accordion is closed.
|
|
5
11
|
*/
|
|
@@ -20,21 +26,8 @@ export interface SublistAccordionProps {
|
|
|
20
26
|
* Left margin for accordion hidden content.
|
|
21
27
|
*/
|
|
22
28
|
ml?: string | string[];
|
|
23
|
-
/**
|
|
24
|
-
* Callback function that is called when accordion changes state
|
|
25
|
-
* (open/closed).
|
|
26
|
-
*/
|
|
27
|
-
onChange?: (isOpen: boolean) => void;
|
|
28
29
|
/**
|
|
29
30
|
* Optional text to override the default (x entries)
|
|
30
31
|
*/
|
|
31
32
|
buttonText?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Initial state of the accordion.
|
|
34
|
-
*/
|
|
35
|
-
initialIsOpen?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Make the component a controlled component.
|
|
38
|
-
*/
|
|
39
|
-
isOpen?: boolean;
|
|
40
33
|
}
|
|
@@ -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-library257.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";
|
|
@@ -3,7 +3,7 @@ import { useState as x } from "react";
|
|
|
3
3
|
import { BaseLabel as f } from "./sd-component-library221.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-library258.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-library258.js";
|
|
9
9
|
const k = ({
|
|
10
10
|
width: l,
|
|
11
11
|
options: r,
|
|
@@ -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 = ({
|
|
@@ -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-library195.js";
|
|
3
3
|
import { GridCenter as d } from "./sd-component-library42.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
textTransform: t,
|
|
@@ -2,7 +2,7 @@ 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-
|
|
5
|
+
import E from "./sd-component-library246.js";
|
|
6
6
|
import { TooltipWithPointerMobile as M } from "./sd-component-library269.js";
|
|
7
7
|
import { TooltipWithPointerHorizontal as V } from "./sd-component-library270.js";
|
|
8
8
|
import { TooltipWithPointerVertical as D } from "./sd-component-library271.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,60 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
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
|
+
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)" }));
|
|
56
3
|
export {
|
|
57
|
-
|
|
58
|
-
l as renderUpToFiveCrumbs
|
|
4
|
+
e as ReactComponent
|
|
59
5
|
};
|
|
60
6
|
//# sourceMappingURL=sd-component-library194.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library194.js","sources":["../src/components/
|
|
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;"}
|
|
@@ -1,5 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library190.js";
|
|
2
|
+
import { Crumb as c } from "./sd-component-library16.js";
|
|
3
|
+
const l = (s, h, p) => s.map(({ title: e, dontTranslate: r, onClick: u }, o) => /* @__PURE__ */ t.jsx(
|
|
4
|
+
c,
|
|
5
|
+
{
|
|
6
|
+
variant: h,
|
|
7
|
+
crumb: { title: e, dontTranslate: r },
|
|
8
|
+
isLast: o === s.length - 1,
|
|
9
|
+
textTransform: p,
|
|
10
|
+
onClick: u
|
|
11
|
+
},
|
|
12
|
+
e + o
|
|
13
|
+
)), a = (s, h, p) => {
|
|
14
|
+
const e = [];
|
|
15
|
+
return s.slice(0, 2).forEach(({ title: r, dontTranslate: u, onClick: o }, m) => {
|
|
16
|
+
e.push(
|
|
17
|
+
/* @__PURE__ */ t.jsx(
|
|
18
|
+
c,
|
|
19
|
+
{
|
|
20
|
+
variant: h,
|
|
21
|
+
crumb: { title: r, dontTranslate: u },
|
|
22
|
+
isLast: !1,
|
|
23
|
+
textTransform: p,
|
|
24
|
+
onClick: o
|
|
25
|
+
},
|
|
26
|
+
r + m
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
}), e.push(
|
|
30
|
+
/* @__PURE__ */ t.jsx(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
variant: h,
|
|
34
|
+
crumb: { title: "..." },
|
|
35
|
+
isLast: !1,
|
|
36
|
+
textTransform: p
|
|
37
|
+
},
|
|
38
|
+
"..."
|
|
39
|
+
)
|
|
40
|
+
), s.slice(s.length - 2, s.length).forEach(({ title: r, onClick: u, dontTranslate: o }, m) => {
|
|
41
|
+
e.push(
|
|
42
|
+
/* @__PURE__ */ t.jsx(
|
|
43
|
+
c,
|
|
44
|
+
{
|
|
45
|
+
variant: h,
|
|
46
|
+
crumb: { title: r, dontTranslate: o },
|
|
47
|
+
isLast: m === 1,
|
|
48
|
+
textTransform: p,
|
|
49
|
+
onClick: u
|
|
50
|
+
},
|
|
51
|
+
r + m
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
}), e;
|
|
55
|
+
};
|
|
2
56
|
export {
|
|
3
|
-
|
|
57
|
+
a as renderMoreThanFiveCrumbs,
|
|
58
|
+
l as renderUpToFiveCrumbs
|
|
4
59
|
};
|
|
5
60
|
//# sourceMappingURL=sd-component-library195.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library195.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library195.js","sources":["../src/components/breadcrumbs/breadcrumb/functions.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\n\nimport { Crumb, CrumbType } from \"./crumb\";\n\nexport const renderUpToFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n return crumbs.map(({ title, dontTranslate, onClick }, index: number) => (\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === crumbs.length - 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n ));\n};\n\nexport const renderMoreThanFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n const elements: JSX.Element[] = [];\n\n crumbs\n .slice(0, 2)\n .forEach(({ title, dontTranslate, onClick }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={false}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title: \"...\" }}\n isLast={false}\n textTransform={textTransform}\n key=\"...\"\n />\n );\n\n crumbs\n .slice(crumbs.length - 2, crumbs.length)\n .forEach(({ title, onClick, dontTranslate }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n return elements;\n};\n"],"names":["renderUpToFiveCrumbs","crumbs","variant","textTransform","title","dontTranslate","onClick","index","jsx","Crumb","renderMoreThanFiveCrumbs","elements"],"mappings":";;AAIO,MAAMA,IAAuB,CAClCC,GACAC,GACAC,MAEOF,EAAO,IAAI,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAA,GAAWC,MACpDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAAP;AAAA,IACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,IAC9B,QAAQE,MAAUN,EAAO,SAAS;AAAA,IAElC,eAAAE;AAAA,IACA,SAAAG;AAAA,EAAA;AAAA,EAFKF,IAAQG;AAAA,CAIhB,GAGUG,IAA2B,CACtCT,GACAC,GACAC,MACG;AACH,QAAMQ,IAA0B,CAAA;AAG7B,SAAAV,EAAA,MAAM,GAAG,CAAC,EACV,QAAQ,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAQ,GAAGC,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQ;AAAA,UAER,eAAAF;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACMI,EAAA;AAAA,IACPH,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAP;AAAA,QACA,OAAO,EAAE,OAAO,MAAM;AAAA,QACtB,QAAQ;AAAA,QACR,eAAAC;AAAA,MAAA;AAAA,MACI;AAAA,IACN;AAAA,EAAA,GAGFF,EACG,MAAMA,EAAO,SAAS,GAAGA,EAAO,MAAM,EACtC,QAAQ,CAAC,EAAE,OAAAG,GAAO,SAAAE,GAAS,eAAAD,EAAA,GAAiBE,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQE,MAAU;AAAA,UAElB,eAAAJ;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACII;AACT;"}
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
n[e] === void 0 && (n[e] = r[e]);
|
|
26
|
-
return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current };
|
|
27
|
-
}
|
|
28
|
-
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
29
|
-
}
|
|
1
|
+
import { j as o } from "./sd-component-library190.js";
|
|
2
|
+
import { Box as m } from "rebass";
|
|
3
|
+
import { ReactComponent as p } from "./sd-component-library175.js";
|
|
4
|
+
const l = (t) => {
|
|
5
|
+
const { width: n, height: r, fill: e, stroke: i, icon: s } = t, a = s || p;
|
|
6
|
+
return /* @__PURE__ */ o.jsx(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
sx: {
|
|
10
|
+
width: n || 25,
|
|
11
|
+
height: r || 25,
|
|
12
|
+
fill: e || "purple",
|
|
13
|
+
stroke: i || "none",
|
|
14
|
+
animation: "rotation 2s infinite linear",
|
|
15
|
+
"@keyframes rotation ": {
|
|
16
|
+
from: { transform: "rotate(0deg)" },
|
|
17
|
+
to: { transform: "rotate(359deg)" }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"data-test": "loading-spinner",
|
|
21
|
+
children: /* @__PURE__ */ o.jsx(a, {})
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
30
25
|
export {
|
|
31
|
-
|
|
26
|
+
l as LoadingSpinner
|
|
32
27
|
};
|
|
33
28
|
//# sourceMappingURL=sd-component-library196.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library196.js","sources":["../
|
|
1
|
+
{"version":3,"file":"sd-component-library196.js","sources":["../src/components/animations/loading-spinner/loading-spinner.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { RescanIcon } from \"../../icons\";\nimport { LoadingSpinnerProps as Props } from \"./interfaces\";\n\nexport const LoadingSpinner: React.FC<Props> = (props) => {\n const { width, height, fill, stroke, icon } = props;\n\n const IconComponent = icon || RescanIcon;\n\n return (\n <Box\n sx={{\n width: width || 25,\n height: height || 25,\n fill: fill || \"purple\",\n stroke: stroke || \"none\",\n animation: \"rotation 2s infinite linear\",\n\n \"@keyframes rotation \": {\n from: { transform: \"rotate(0deg)\" },\n to: { transform: \"rotate(359deg)\" },\n },\n }}\n data-test=\"loading-spinner\"\n >\n <IconComponent />\n </Box>\n );\n};\n"],"names":["LoadingSpinner","props","width","height","fill","stroke","icon","IconComponent","RescanIcon","jsx","Box"],"mappings":";;;AAOa,MAAAA,IAAkC,CAACC,MAAU;AACxD,QAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,MAAAC,GAAM,QAAAC,GAAQ,MAAAC,EAAS,IAAAL,GAExCM,IAAgBD,KAAQE;AAG5B,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,OAAOR,KAAS;AAAA,QAChB,QAAQC,KAAU;AAAA,QAClB,MAAMC,KAAQ;AAAA,QACd,QAAQC,KAAU;AAAA,QAClB,WAAW;AAAA,QAEX,wBAAwB;AAAA,UACtB,MAAM,EAAE,WAAW,eAAe;AAAA,UAClC,IAAI,EAAE,WAAW,iBAAiB;AAAA,QACpC;AAAA,MACF;AAAA,MACA,aAAU;AAAA,MAEV,gCAACE,GAAc,EAAA;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
|