@lightsparkdev/ui 0.0.12 → 0.0.13
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/CHANGELOG.md +9 -0
- package/dist/chunk-34CIJVQQ.js +24 -0
- package/dist/{chunk-IPAXAP6K.js → chunk-5DK6QL77.js} +7 -1
- package/dist/{chunk-VE7J2N47.js → chunk-5GBDVTL6.js} +1 -1
- package/dist/{chunk-ZANLDY2W.js → chunk-75VDSSXM.js} +3 -1
- package/dist/{chunk-NFSAJ5GJ.js → chunk-DFYHIUYN.js} +1 -1
- package/dist/{chunk-DQRN4E5G.js → chunk-EXGJIYUI.js} +1 -1
- package/dist/{chunk-NM7UW54G.js → chunk-KMTXQD46.js} +2 -2
- package/dist/{chunk-OGSDZTHM.js → chunk-QCXXJZDC.js} +2 -0
- package/dist/{chunk-XZR237JJ.js → chunk-QNM3M4MU.js} +2 -1
- package/dist/{chunk-PBRN7MJY.js → chunk-QWAHK2QG.js} +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.d.cts +4 -3
- package/dist/components/Badge.d.ts +4 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Button.cjs +4 -0
- package/dist/components/Button.d.cts +23 -26
- package/dist/components/Button.d.ts +23 -26
- package/dist/components/Button.js +2 -2
- package/dist/components/ButtonRow.cjs +4 -0
- package/dist/components/ButtonRow.js +3 -3
- package/dist/components/CardPage.js +4 -4
- package/dist/components/CurrencyAmount.cjs +2 -1
- package/dist/components/CurrencyAmount.d.cts +3 -3
- package/dist/components/CurrencyAmount.d.ts +3 -3
- package/dist/components/CurrencyAmount.js +1 -1
- package/dist/components/GradientCardHeader.cjs +1382 -14
- package/dist/components/GradientCardHeader.d.cts +2 -1
- package/dist/components/GradientCardHeader.d.ts +2 -1
- package/dist/components/GradientCardHeader.js +7 -1
- package/dist/components/Modal.cjs +4 -0
- package/dist/components/Modal.js +4 -4
- package/dist/components/StatusIndicator.cjs +1405 -0
- package/dist/components/StatusIndicator.d.cts +12 -0
- package/dist/components/StatusIndicator.d.ts +12 -0
- package/dist/components/StatusIndicator.js +12 -0
- package/dist/components/index.cjs +116 -90
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +13 -9
- package/dist/icons/FramedLetterI.cjs +55 -0
- package/dist/icons/FramedLetterI.d.cts +5 -0
- package/dist/icons/FramedLetterI.d.ts +5 -0
- package/dist/icons/FramedLetterI.js +36 -0
- package/dist/router.cjs +2 -0
- package/dist/router.d.cts +2 -1
- package/dist/router.d.ts +2 -1
- package/dist/router.js +1 -1
- package/dist/styles/fonts/typography/Article.js +3 -3
- package/dist/styles/fonts/typography/index.js +7 -7
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/{types/utils.cjs → utils/parseURLFragments.cjs} +18 -13
- package/dist/utils/parseURLFragments.d.cts +3 -0
- package/dist/utils/parseURLFragments.d.ts +3 -0
- package/dist/utils/parseURLFragments.js +19 -0
- package/dist/utils/toReactNodes.cjs +2 -0
- package/dist/utils/toReactNodes.js +2 -2
- package/package.json +2 -2
- package/dist/types/utils.d.cts +0 -16
- package/dist/types/utils.d.ts +0 -16
- package/dist/types/utils.js +0 -13
- package/dist/{chunk-VZX5ETRB.js → chunk-A3ZJ2C7J.js} +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @lightsparkdev/ui
|
|
2
2
|
|
|
3
|
+
## 0.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- baeccd9: - Add StatusIndicator
|
|
8
|
+
- 9b3896a: - Remove types/utils. Use equivalent imports from @lightsparkdev/core instead
|
|
9
|
+
- Updated dependencies [baeccd9]
|
|
10
|
+
- @lightsparkdev/core@1.0.22
|
|
11
|
+
|
|
3
12
|
## 0.0.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
pxToRems
|
|
3
|
+
} from "./chunk-FCZJILMW.js";
|
|
4
|
+
|
|
5
|
+
// src/components/StatusIndicator.tsx
|
|
6
|
+
import styled from "@emotion/styled";
|
|
7
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
8
|
+
function StatusIndicator({
|
|
9
|
+
color = "success",
|
|
10
|
+
text,
|
|
11
|
+
size = 12,
|
|
12
|
+
fontWeight = 700
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ jsx(StyledStatusIndicator, { color, size, fontWeight, children: text });
|
|
15
|
+
}
|
|
16
|
+
var StyledStatusIndicator = styled.div`
|
|
17
|
+
color: ${({ theme, color }) => theme[color]};
|
|
18
|
+
font-size: ${({ size }) => pxToRems(size)};
|
|
19
|
+
font-weight: ${({ fontWeight }) => fontWeight};
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
StatusIndicator
|
|
24
|
+
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StatusIndicator
|
|
3
|
+
} from "./chunk-34CIJVQQ.js";
|
|
1
4
|
import {
|
|
2
5
|
z
|
|
3
6
|
} from "./chunk-55OQPFLF.js";
|
|
7
|
+
import {
|
|
8
|
+
__spreadValues
|
|
9
|
+
} from "./chunk-CIGAQ47A.js";
|
|
4
10
|
|
|
5
11
|
// src/components/GradientCardHeader.tsx
|
|
6
12
|
import styled from "@emotion/styled";
|
|
@@ -9,7 +15,7 @@ function GradientCardHeader(props) {
|
|
|
9
15
|
return /* @__PURE__ */ jsxs(CardHeaderWrapper, { children: [
|
|
10
16
|
/* @__PURE__ */ jsx(Gradients, {}),
|
|
11
17
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
12
|
-
props.status,
|
|
18
|
+
props.status && /* @__PURE__ */ jsx(StatusIndicator, __spreadValues({}, props.status)),
|
|
13
19
|
/* @__PURE__ */ jsx(CardHeaderTitle, { children: props.title })
|
|
14
20
|
] }),
|
|
15
21
|
props.children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Link
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QCXXJZDC.js";
|
|
4
4
|
import {
|
|
5
5
|
select
|
|
6
6
|
} from "./chunk-YMNSXZ5D.js";
|
|
@@ -132,6 +132,7 @@ function Button({
|
|
|
132
132
|
ghost = false,
|
|
133
133
|
text,
|
|
134
134
|
to,
|
|
135
|
+
id,
|
|
135
136
|
hash,
|
|
136
137
|
href,
|
|
137
138
|
toParams,
|
|
@@ -188,6 +189,7 @@ function Button({
|
|
|
188
189
|
] });
|
|
189
190
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
190
191
|
const commonProps = {
|
|
192
|
+
id,
|
|
191
193
|
backgroundColor,
|
|
192
194
|
color,
|
|
193
195
|
hoverColor,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/components/Badge.tsx
|
|
9
9
|
import styled from "@emotion/styled";
|
|
10
10
|
import { jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
-
function Badge({ text, ml = 0 }) {
|
|
11
|
+
function Badge({ text, ml = 0, mr = 0 }) {
|
|
12
12
|
return text ? /* @__PURE__ */ jsx(StyledBadge, { ml, children: text }) : null;
|
|
13
13
|
}
|
|
14
14
|
var badgeVPadding = 2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toReactNodes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GBDVTL6.js";
|
|
4
4
|
import {
|
|
5
5
|
useLiveRef
|
|
6
6
|
} from "./chunk-NBCCPGA4.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-E3AOYBY5.js";
|
|
10
10
|
import {
|
|
11
11
|
Button
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-75VDSSXM.js";
|
|
13
13
|
import {
|
|
14
14
|
select
|
|
15
15
|
} from "./chunk-YMNSXZ5D.js";
|
|
@@ -72,8 +72,9 @@ var shorttext = (unit, value) => {
|
|
|
72
72
|
return `sat${pl ? "s" : ""}`;
|
|
73
73
|
case CurrencyUnit.MILLISATOSHI:
|
|
74
74
|
return `msat${pl ? "s" : ""}`;
|
|
75
|
+
default:
|
|
76
|
+
return unit;
|
|
75
77
|
}
|
|
76
|
-
return unit;
|
|
77
78
|
};
|
|
78
79
|
var StyledCurrencyAmount = styled.span`
|
|
79
80
|
color: inherit !important;
|
|
@@ -1329,7 +1329,7 @@ var darkGradientBg = import_react4.css`
|
|
|
1329
1329
|
|
|
1330
1330
|
// src/components/Badge.tsx
|
|
1331
1331
|
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
1332
|
-
function Badge({ text, ml = 0 }) {
|
|
1332
|
+
function Badge({ text, ml = 0, mr = 0 }) {
|
|
1333
1333
|
return text ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StyledBadge, { ml, children: text }) : null;
|
|
1334
1334
|
}
|
|
1335
1335
|
var badgeVPadding = 2;
|
|
@@ -2,9 +2,10 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
|
2
2
|
|
|
3
3
|
type BadgeProps = {
|
|
4
4
|
text?: string | undefined;
|
|
5
|
-
ml?:
|
|
5
|
+
ml?: 0 | 4 | 6;
|
|
6
|
+
mr?: 0 | 4 | 6;
|
|
6
7
|
};
|
|
7
|
-
declare function Badge({ text, ml }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
8
|
+
declare function Badge({ text, ml, mr }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
8
9
|
declare const badgeVPadding = 2;
|
|
9
10
|
|
|
10
|
-
export { Badge, badgeVPadding };
|
|
11
|
+
export { Badge, BadgeProps, badgeVPadding };
|
|
@@ -2,9 +2,10 @@ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
|
2
2
|
|
|
3
3
|
type BadgeProps = {
|
|
4
4
|
text?: string | undefined;
|
|
5
|
-
ml?:
|
|
5
|
+
ml?: 0 | 4 | 6;
|
|
6
|
+
mr?: 0 | 4 | 6;
|
|
6
7
|
};
|
|
7
|
-
declare function Badge({ text, ml }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
8
|
+
declare function Badge({ text, ml, mr }: BadgeProps): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
8
9
|
declare const badgeVPadding = 2;
|
|
9
10
|
|
|
10
|
-
export { Badge, badgeVPadding };
|
|
11
|
+
export { Badge, BadgeProps, badgeVPadding };
|
package/dist/components/Badge.js
CHANGED
|
@@ -1321,6 +1321,7 @@ function replaceParams(to, params) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
function Link({
|
|
1323
1323
|
to,
|
|
1324
|
+
id,
|
|
1324
1325
|
externalLink,
|
|
1325
1326
|
params,
|
|
1326
1327
|
children,
|
|
@@ -1353,6 +1354,7 @@ function Link({
|
|
|
1353
1354
|
import_react_router_dom.Link,
|
|
1354
1355
|
{
|
|
1355
1356
|
to: toStr,
|
|
1357
|
+
id,
|
|
1356
1358
|
css: css6,
|
|
1357
1359
|
onClick,
|
|
1358
1360
|
className,
|
|
@@ -1793,6 +1795,7 @@ function Button({
|
|
|
1793
1795
|
ghost = false,
|
|
1794
1796
|
text,
|
|
1795
1797
|
to,
|
|
1798
|
+
id,
|
|
1796
1799
|
hash,
|
|
1797
1800
|
href,
|
|
1798
1801
|
toParams,
|
|
@@ -1849,6 +1852,7 @@ function Button({
|
|
|
1849
1852
|
] });
|
|
1850
1853
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
1851
1854
|
const commonProps = {
|
|
1855
|
+
id,
|
|
1852
1856
|
backgroundColor,
|
|
1853
1857
|
color,
|
|
1854
1858
|
hoverColor,
|
|
@@ -9,13 +9,14 @@ declare const ButtonSizes: readonly ["sm", "md", "lg"];
|
|
|
9
9
|
type ButtonSize = (typeof ButtonSizes)[number];
|
|
10
10
|
type IconSide = "left" | "right";
|
|
11
11
|
type ButtonProps<RoutesType extends string> = {
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
color?: string;
|
|
14
|
-
hoverColor?: string;
|
|
15
|
-
text?: string;
|
|
12
|
+
backgroundColor?: string | undefined;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
hoverColor?: string | undefined;
|
|
15
|
+
text?: string | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
17
18
|
to?: RoutesType | undefined;
|
|
18
|
-
hash?: string;
|
|
19
|
+
hash?: string | undefined;
|
|
19
20
|
href?: string;
|
|
20
21
|
toParams?: RouteParams | undefined;
|
|
21
22
|
primary?: boolean | undefined;
|
|
@@ -29,36 +30,32 @@ type ButtonProps<RoutesType extends string> = {
|
|
|
29
30
|
ml?: number;
|
|
30
31
|
fullWidth?: boolean | undefined;
|
|
31
32
|
type?: "button" | "submit";
|
|
32
|
-
blue?: boolean;
|
|
33
|
+
blue?: boolean | undefined;
|
|
33
34
|
newTab?: boolean;
|
|
34
35
|
tooltipText?: string;
|
|
35
|
-
zIndex?: number;
|
|
36
|
-
};
|
|
37
|
-
declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
38
|
-
type StyledButtonProps = {
|
|
39
|
-
backgroundColor?: string | undefined;
|
|
40
|
-
color?: string | undefined;
|
|
41
|
-
hoverColor?: string | undefined;
|
|
42
|
-
primary: boolean;
|
|
43
|
-
ghost: boolean;
|
|
44
|
-
size: ButtonSize;
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
fullWidth: boolean;
|
|
47
|
-
isLoading: boolean;
|
|
48
|
-
blue: boolean;
|
|
49
|
-
iconWidth: number;
|
|
50
|
-
newTab: boolean;
|
|
51
|
-
text?: string | undefined;
|
|
52
36
|
zIndex?: number | undefined;
|
|
53
|
-
iconSide?: IconSide | undefined;
|
|
54
|
-
isRound: boolean;
|
|
55
37
|
};
|
|
38
|
+
declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, id, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
56
39
|
declare const StyledButton: _emotion_styled.StyledComponent<{
|
|
57
40
|
theme?: Theme;
|
|
58
41
|
as?: react.ElementType<any>;
|
|
59
42
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
60
43
|
theme?: Theme;
|
|
61
|
-
} &
|
|
44
|
+
} & ButtonProps<string> & {
|
|
45
|
+
isLoading: boolean;
|
|
46
|
+
blue: boolean;
|
|
47
|
+
primary: boolean;
|
|
48
|
+
ghost: boolean;
|
|
49
|
+
iconWidth: number;
|
|
50
|
+
isRound: boolean;
|
|
51
|
+
size: ButtonSize;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
fullWidth: boolean;
|
|
54
|
+
css: {
|
|
55
|
+
marginTop: string | undefined;
|
|
56
|
+
marginLeft: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
}, {}, {}>;
|
|
62
59
|
declare const ButtonSelector: (prepend?: string, append?: string) => string;
|
|
63
60
|
|
|
64
61
|
export { Button, ButtonProps, ButtonSelector, StyledButton };
|
|
@@ -9,13 +9,14 @@ declare const ButtonSizes: readonly ["sm", "md", "lg"];
|
|
|
9
9
|
type ButtonSize = (typeof ButtonSizes)[number];
|
|
10
10
|
type IconSide = "left" | "right";
|
|
11
11
|
type ButtonProps<RoutesType extends string> = {
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
color?: string;
|
|
14
|
-
hoverColor?: string;
|
|
15
|
-
text?: string;
|
|
12
|
+
backgroundColor?: string | undefined;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
hoverColor?: string | undefined;
|
|
15
|
+
text?: string | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
17
18
|
to?: RoutesType | undefined;
|
|
18
|
-
hash?: string;
|
|
19
|
+
hash?: string | undefined;
|
|
19
20
|
href?: string;
|
|
20
21
|
toParams?: RouteParams | undefined;
|
|
21
22
|
primary?: boolean | undefined;
|
|
@@ -29,36 +30,32 @@ type ButtonProps<RoutesType extends string> = {
|
|
|
29
30
|
ml?: number;
|
|
30
31
|
fullWidth?: boolean | undefined;
|
|
31
32
|
type?: "button" | "submit";
|
|
32
|
-
blue?: boolean;
|
|
33
|
+
blue?: boolean | undefined;
|
|
33
34
|
newTab?: boolean;
|
|
34
35
|
tooltipText?: string;
|
|
35
|
-
zIndex?: number;
|
|
36
|
-
};
|
|
37
|
-
declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
38
|
-
type StyledButtonProps = {
|
|
39
|
-
backgroundColor?: string | undefined;
|
|
40
|
-
color?: string | undefined;
|
|
41
|
-
hoverColor?: string | undefined;
|
|
42
|
-
primary: boolean;
|
|
43
|
-
ghost: boolean;
|
|
44
|
-
size: ButtonSize;
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
fullWidth: boolean;
|
|
47
|
-
isLoading: boolean;
|
|
48
|
-
blue: boolean;
|
|
49
|
-
iconWidth: number;
|
|
50
|
-
newTab: boolean;
|
|
51
|
-
text?: string | undefined;
|
|
52
36
|
zIndex?: number | undefined;
|
|
53
|
-
iconSide?: IconSide | undefined;
|
|
54
|
-
isRound: boolean;
|
|
55
37
|
};
|
|
38
|
+
declare function Button<RoutesType extends string>({ backgroundColor, color, hoverColor, primary, ghost, text, to, id, hash, href, toParams, onClick, icon, iconSide, loading, fullWidth, disabled, size, mt, ml, type, blue, newTab, zIndex, tooltipText, }: ButtonProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
56
39
|
declare const StyledButton: _emotion_styled.StyledComponent<{
|
|
57
40
|
theme?: Theme;
|
|
58
41
|
as?: react.ElementType<any>;
|
|
59
42
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
60
43
|
theme?: Theme;
|
|
61
|
-
} &
|
|
44
|
+
} & ButtonProps<string> & {
|
|
45
|
+
isLoading: boolean;
|
|
46
|
+
blue: boolean;
|
|
47
|
+
primary: boolean;
|
|
48
|
+
ghost: boolean;
|
|
49
|
+
iconWidth: number;
|
|
50
|
+
isRound: boolean;
|
|
51
|
+
size: ButtonSize;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
fullWidth: boolean;
|
|
54
|
+
css: {
|
|
55
|
+
marginTop: string | undefined;
|
|
56
|
+
marginLeft: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
}, {}, {}>;
|
|
62
59
|
declare const ButtonSelector: (prepend?: string, append?: string) => string;
|
|
63
60
|
|
|
64
61
|
export { Button, ButtonProps, ButtonSelector, StyledButton };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
Button,
|
|
3
3
|
ButtonSelector,
|
|
4
4
|
StyledButton
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-75VDSSXM.js";
|
|
6
|
+
import "../chunk-QCXXJZDC.js";
|
|
7
7
|
import "../chunk-YMNSXZ5D.js";
|
|
8
8
|
import "../chunk-J4FJQ3FN.js";
|
|
9
9
|
import "../chunk-3GS5EFXV.js";
|
|
@@ -1485,6 +1485,7 @@ function replaceParams(to, params) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
function Link({
|
|
1487
1487
|
to,
|
|
1488
|
+
id,
|
|
1488
1489
|
externalLink,
|
|
1489
1490
|
params,
|
|
1490
1491
|
children,
|
|
@@ -1517,6 +1518,7 @@ function Link({
|
|
|
1517
1518
|
import_react_router_dom.Link,
|
|
1518
1519
|
{
|
|
1519
1520
|
to: toStr,
|
|
1521
|
+
id,
|
|
1520
1522
|
css: css7,
|
|
1521
1523
|
onClick,
|
|
1522
1524
|
className,
|
|
@@ -1854,6 +1856,7 @@ function Button({
|
|
|
1854
1856
|
ghost = false,
|
|
1855
1857
|
text,
|
|
1856
1858
|
to,
|
|
1859
|
+
id,
|
|
1857
1860
|
hash,
|
|
1858
1861
|
href,
|
|
1859
1862
|
toParams,
|
|
@@ -1910,6 +1913,7 @@ function Button({
|
|
|
1910
1913
|
] });
|
|
1911
1914
|
const isSingleCharRoundButton = Boolean(text && text.length === 1 && !icon);
|
|
1912
1915
|
const commonProps = {
|
|
1916
|
+
id,
|
|
1913
1917
|
backgroundColor,
|
|
1914
1918
|
color,
|
|
1915
1919
|
hoverColor,
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
ButtonRow,
|
|
3
3
|
ButtonRowContainer,
|
|
4
4
|
StyledButtonRow
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-DFYHIUYN.js";
|
|
6
|
+
import "../chunk-75VDSSXM.js";
|
|
7
|
+
import "../chunk-QCXXJZDC.js";
|
|
8
8
|
import "../chunk-YMNSXZ5D.js";
|
|
9
9
|
import "../chunk-J4FJQ3FN.js";
|
|
10
10
|
import "../chunk-3GS5EFXV.js";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
CardPageFullWidth,
|
|
6
6
|
CardPageRightContentInner,
|
|
7
7
|
CardPageSubtitle
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-QWAHK2QG.js";
|
|
9
9
|
import "../chunk-P3EUPXFA.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-DFYHIUYN.js";
|
|
11
|
+
import "../chunk-75VDSSXM.js";
|
|
12
|
+
import "../chunk-QCXXJZDC.js";
|
|
13
13
|
import "../chunk-YMNSXZ5D.js";
|
|
14
14
|
import "../chunk-J4FJQ3FN.js";
|
|
15
15
|
import "../chunk-3GS5EFXV.js";
|
|
@@ -1492,8 +1492,9 @@ var shorttext = (unit, value) => {
|
|
|
1492
1492
|
return `sat${pl ? "s" : ""}`;
|
|
1493
1493
|
case import_core.CurrencyUnit.MILLISATOSHI:
|
|
1494
1494
|
return `msat${pl ? "s" : ""}`;
|
|
1495
|
+
default:
|
|
1496
|
+
return unit;
|
|
1495
1497
|
}
|
|
1496
|
-
return unit;
|
|
1497
1498
|
};
|
|
1498
1499
|
var StyledCurrencyAmount = import_styled3.default.span`
|
|
1499
1500
|
color: inherit !important;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { CurrencyUnitType, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
|
|
4
4
|
|
|
5
5
|
type CurrencyAmountProps = {
|
|
6
6
|
amount: CurrencyAmountArg | CurrencyMap;
|
|
7
|
-
displayUnit?:
|
|
7
|
+
displayUnit?: CurrencyUnitType;
|
|
8
8
|
shortNumber?: boolean;
|
|
9
9
|
showUnits?: boolean;
|
|
10
10
|
ml?: number;
|
|
@@ -18,7 +18,7 @@ declare namespace CurrencyAmount {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
declare const CurrencyIcon: ({ unit }: {
|
|
21
|
-
unit:
|
|
21
|
+
unit: CurrencyUnitType;
|
|
22
22
|
}) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
23
23
|
|
|
24
24
|
export { CurrencyAmount, CurrencyIcon };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { CurrencyUnitType, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
|
|
4
4
|
|
|
5
5
|
type CurrencyAmountProps = {
|
|
6
6
|
amount: CurrencyAmountArg | CurrencyMap;
|
|
7
|
-
displayUnit?:
|
|
7
|
+
displayUnit?: CurrencyUnitType;
|
|
8
8
|
shortNumber?: boolean;
|
|
9
9
|
showUnits?: boolean;
|
|
10
10
|
ml?: number;
|
|
@@ -18,7 +18,7 @@ declare namespace CurrencyAmount {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
declare const CurrencyIcon: ({ unit }: {
|
|
21
|
-
unit:
|
|
21
|
+
unit: CurrencyUnitType;
|
|
22
22
|
}) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
23
23
|
|
|
24
24
|
export { CurrencyAmount, CurrencyIcon };
|