@lightsparkdev/ui 0.0.1 → 0.0.3
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 +16 -0
- package/dist/{chunk-ACZDUWPH.js → chunk-2VBDEO6M.js} +2 -2
- package/dist/{chunk-FETTWCK3.js → chunk-3PB5DNAL.js} +1 -1
- package/dist/chunk-3XSQV5U4.js +26 -0
- package/dist/chunk-4I2ABBID.js +38 -0
- package/dist/{chunk-W4GDCWKZ.js → chunk-4K2KAYVH.js} +3 -3
- package/dist/{chunk-2RF46PE5.js → chunk-4ZZHBSW4.js} +48 -30
- package/dist/{chunk-XTEEADPV.js → chunk-6R6A5H4I.js} +34 -13
- package/dist/{chunk-LJYASIJC.js → chunk-6RXFA73Z.js} +19 -3
- package/dist/{chunk-DE24BV2C.js → chunk-ANJDI74G.js} +2 -2
- package/dist/{chunk-RUVXOYBL.js → chunk-BCFRW7CV.js} +5 -4
- package/dist/{chunk-X6BI4STY.js → chunk-DHNWT2E5.js} +1 -1
- package/dist/chunk-E4EXM4SY.js +921 -0
- package/dist/chunk-EZ4RHFY7.js +57 -0
- package/dist/{chunk-CQDQFIWT.js → chunk-FHNYQLMF.js} +10 -4
- package/dist/{chunk-K7MPHJNG.js → chunk-FRIQXHPR.js} +3 -3
- package/dist/{chunk-7NQH4LBZ.js → chunk-LD5LZXUP.js} +2 -2
- package/dist/chunk-LN7MMOXE.js +29 -0
- package/dist/{chunk-L7XFJWMY.js → chunk-MYG24ZWT.js} +1 -1
- package/dist/{chunk-I4PO6FQP.js → chunk-MYKMYG6H.js} +2 -2
- package/dist/{chunk-BZ5MKMI2.js → chunk-OLAFBUE5.js} +1 -1
- package/dist/{chunk-6RDG2DE3.js → chunk-OO5UJRAW.js} +2 -2
- package/dist/{chunk-Y4RJ7WS4.js → chunk-PVUPVJ3F.js} +1 -1
- package/dist/chunk-RBYRXBPI.js +29 -0
- package/dist/{chunk-4X3K3VRC.js → chunk-SUD5NOKE.js} +6 -6
- package/dist/{chunk-LZHLWOXG.js → chunk-SV5QPU7N.js} +1 -1
- package/dist/{chunk-LWTUQB7O.js → chunk-SW6ZA7W2.js} +2 -2
- package/dist/{chunk-O27TAUAS.js → chunk-U6LQLAWI.js} +3 -3
- package/dist/{chunk-6AV4TE6I.js → chunk-VV7F7VVL.js} +2 -2
- package/dist/{chunk-7ENCWBAN.js → chunk-WB6FFT7Y.js} +21 -7
- package/dist/{chunk-BKOTW3CK.js → chunk-WEPQ7LRL.js} +1 -1
- package/dist/{chunk-QR7BKTM6.js → chunk-XUGLVWSH.js} +4 -4
- package/dist/{chunk-WVEK4LFA.js → chunk-YHSFWCFN.js} +3 -3
- package/dist/chunk-ZQTE53SK.js +78 -0
- package/dist/components/Button.cjs +429 -236
- package/dist/components/Button.js +9 -9
- package/dist/components/ButtonRow.cjs +431 -236
- package/dist/components/ButtonRow.js +11 -11
- package/dist/components/Collapsible.cjs +428 -232
- package/dist/components/Collapsible.d.cts +10 -1
- package/dist/components/Collapsible.d.ts +10 -1
- package/dist/components/Collapsible.js +8 -7
- package/dist/components/ContentTable.cjs +1498 -0
- package/dist/components/ContentTable.d.cts +26 -0
- package/dist/components/ContentTable.d.ts +26 -0
- package/dist/components/ContentTable.js +16 -0
- package/dist/components/CopyToClipboardButton.cjs +409 -227
- package/dist/components/CopyToClipboardButton.js +7 -7
- package/dist/components/CurrencyAmount.cjs +409 -227
- package/dist/components/CurrencyAmount.js +6 -6
- package/dist/components/Icon.cjs +409 -227
- package/dist/components/Icon.js +5 -5
- package/dist/components/LightsparkProvider.cjs +410 -228
- package/dist/components/LightsparkProvider.js +6 -6
- package/dist/components/Loading.cjs +409 -227
- package/dist/components/Loading.js +6 -6
- package/dist/components/Modal.cjs +559 -275
- package/dist/components/Modal.d.cts +5 -10
- package/dist/components/Modal.d.ts +5 -10
- package/dist/components/Modal.js +12 -11
- package/dist/components/ProgressBar.cjs +1238 -0
- package/dist/components/ProgressBar.d.cts +17 -0
- package/dist/components/ProgressBar.d.ts +17 -0
- package/dist/components/ProgressBar.js +10 -0
- package/dist/components/SecretContainer.cjs +409 -227
- package/dist/components/SecretContainer.js +8 -8
- package/dist/components/TextIconAligner.cjs +409 -227
- package/dist/components/TextIconAligner.js +6 -6
- package/dist/components/UnstyledButton.cjs +409 -227
- package/dist/components/UnstyledButton.js +5 -5
- package/dist/components/documentation/AnchorLinkHeader.cjs +409 -229
- package/dist/components/documentation/AnchorLinkHeader.js +7 -7
- package/dist/components/documentation/index.cjs +409 -229
- package/dist/components/documentation/index.js +7 -7
- package/dist/components/index.cjs +590 -292
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +24 -19
- package/dist/hooks/useWhatChanged.cjs +30 -0
- package/dist/hooks/useWhatChanged.d.cts +1 -0
- package/dist/hooks/useWhatChanged.d.ts +1 -0
- package/dist/hooks/useWhatChanged.js +7 -0
- package/dist/icons/ApiConnection.cjs +44 -0
- package/dist/icons/ApiConnection.d.cts +5 -0
- package/dist/icons/ApiConnection.d.ts +5 -0
- package/dist/icons/ApiConnection.js +25 -0
- package/dist/icons/CentralArrowShareRight.cjs +53 -0
- package/dist/icons/CentralArrowShareRight.d.cts +5 -0
- package/dist/icons/CentralArrowShareRight.d.ts +5 -0
- package/dist/icons/CentralArrowShareRight.js +30 -0
- package/dist/icons/Restart.cjs +1 -1
- package/dist/icons/Restart.js +1 -1
- package/dist/icons/Uma.cjs +57 -0
- package/dist/icons/Uma.d.cts +5 -0
- package/dist/icons/Uma.d.ts +5 -0
- package/dist/icons/Uma.js +38 -0
- package/dist/icons/index.cjs +409 -227
- package/dist/icons/index.js +5 -5
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/router.cjs +429 -229
- package/dist/router.d.cts +8 -5
- package/dist/router.d.ts +8 -5
- package/dist/router.js +4 -3
- package/dist/styles/colors.cjs +409 -227
- package/dist/styles/colors.js +2 -2
- package/dist/styles/common.cjs +409 -227
- package/dist/styles/common.d.cts +1 -1
- package/dist/styles/common.d.ts +1 -1
- package/dist/styles/common.js +4 -4
- package/dist/styles/fields.cjs +409 -227
- package/dist/styles/fields.js +6 -6
- package/dist/styles/fonts/typography/Article.cjs +514 -274
- package/dist/styles/fonts/typography/Article.js +15 -9
- package/dist/styles/fonts/typography/Body.cjs +409 -229
- package/dist/styles/fonts/typography/Body.js +3 -3
- package/dist/styles/fonts/typography/BodyStrong.cjs +1196 -0
- package/dist/styles/fonts/typography/BodyStrong.d.cts +23 -0
- package/dist/styles/fonts/typography/BodyStrong.d.ts +23 -0
- package/dist/styles/fonts/typography/BodyStrong.js +13 -0
- package/dist/styles/fonts/typography/Code.cjs +6 -6
- package/dist/styles/fonts/typography/Code.d.cts +8 -1
- package/dist/styles/fonts/typography/Code.d.ts +8 -1
- package/dist/styles/fonts/typography/Code.js +6 -4
- package/dist/styles/fonts/typography/Display.cjs +409 -229
- package/dist/styles/fonts/typography/Display.js +3 -3
- package/dist/styles/fonts/typography/Headline.cjs +410 -230
- package/dist/styles/fonts/typography/Headline.js +3 -3
- package/dist/styles/fonts/typography/Label.cjs +409 -229
- package/dist/styles/fonts/typography/Label.js +3 -3
- package/dist/styles/fonts/typography/LabelModerate.cjs +1205 -0
- package/dist/styles/fonts/typography/LabelModerate.d.cts +18 -0
- package/dist/styles/fonts/typography/LabelModerate.d.ts +18 -0
- package/dist/styles/fonts/typography/LabelModerate.js +13 -0
- package/dist/styles/fonts/typography/LabelStrong.cjs +409 -229
- package/dist/styles/fonts/typography/LabelStrong.js +3 -3
- package/dist/styles/fonts/typography/Overline.cjs +1196 -0
- package/dist/styles/fonts/typography/Overline.d.cts +18 -0
- package/dist/styles/fonts/typography/Overline.d.ts +18 -0
- package/dist/styles/fonts/typography/Overline.js +13 -0
- package/dist/styles/fonts/typography/Title.cjs +417 -231
- package/dist/styles/fonts/typography/Title.d.cts +2 -1
- package/dist/styles/fonts/typography/Title.d.ts +2 -1
- package/dist/styles/fonts/typography/Title.js +3 -3
- package/dist/styles/fonts/typography/index.cjs +594 -299
- package/dist/styles/fonts/typography/index.d.cts +3 -0
- package/dist/styles/fonts/typography/index.d.ts +3 -0
- package/dist/styles/fonts/typography/index.js +31 -15
- package/dist/styles/fonts/typographyTokens.cjs +413 -233
- package/dist/styles/fonts/typographyTokens.d.cts +210 -28
- package/dist/styles/fonts/typographyTokens.d.ts +210 -28
- package/dist/styles/fonts/typographyTokens.js +1 -1
- package/dist/styles/global.cjs +410 -228
- package/dist/styles/global.js +5 -5
- package/dist/styles/tokens/spacing.cjs +50 -0
- package/dist/styles/tokens/spacing.d.cts +22 -0
- package/dist/styles/tokens/spacing.d.ts +22 -0
- package/dist/styles/tokens/spacing.js +7 -0
- package/dist/styles/type.cjs +409 -227
- package/dist/styles/type.js +5 -5
- package/dist/styles/utils.cjs +409 -227
- package/dist/styles/utils.js +5 -5
- package/package.json +7 -4
- package/dist/chunk-WVJNZRKF.js +0 -741
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _emotion_react from '@emotion/react';
|
|
4
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
5
|
+
import { TokenSize } from '../typographyTokens.cjs';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
size?: TokenSize;
|
|
10
|
+
color?: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
declare const BodyStrong: ({ children, color, size, }: Props) => _emotion_react_jsx_runtime.JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* Images rendered by the markdown renderer are wrapped in a paragraph tag,
|
|
15
|
+
* so we need to use a span and set it display: block to mimic a paragraph
|
|
16
|
+
* element.
|
|
17
|
+
*/
|
|
18
|
+
declare const StyledBodyStrong: _emotion_styled.StyledComponent<{
|
|
19
|
+
theme?: _emotion_react.Theme;
|
|
20
|
+
as?: react.ElementType<any>;
|
|
21
|
+
} & Props, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
22
|
+
|
|
23
|
+
export { BodyStrong, StyledBodyStrong };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _emotion_react from '@emotion/react';
|
|
4
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
5
|
+
import { TokenSize } from '../typographyTokens.js';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
size?: TokenSize;
|
|
10
|
+
color?: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
declare const BodyStrong: ({ children, color, size, }: Props) => _emotion_react_jsx_runtime.JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* Images rendered by the markdown renderer are wrapped in a paragraph tag,
|
|
15
|
+
* so we need to use a span and set it display: block to mimic a paragraph
|
|
16
|
+
* element.
|
|
17
|
+
*/
|
|
18
|
+
declare const StyledBodyStrong: _emotion_styled.StyledComponent<{
|
|
19
|
+
theme?: _emotion_react.Theme;
|
|
20
|
+
as?: react.ElementType<any>;
|
|
21
|
+
} & Props, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
22
|
+
|
|
23
|
+
export { BodyStrong, StyledBodyStrong };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BodyStrong,
|
|
4
|
+
StyledBodyStrong
|
|
5
|
+
} from "../../../chunk-LN7MMOXE.js";
|
|
6
|
+
import "../../../chunk-2VBDEO6M.js";
|
|
7
|
+
import "../../../chunk-E4EXM4SY.js";
|
|
8
|
+
import "../../../chunk-JSGRNWSB.js";
|
|
9
|
+
import "../../../chunk-CIGAQ47A.js";
|
|
10
|
+
export {
|
|
11
|
+
BodyStrong,
|
|
12
|
+
StyledBodyStrong
|
|
13
|
+
};
|
|
@@ -31,7 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/styles/fonts/typography/Code.tsx
|
|
32
32
|
var Code_exports = {};
|
|
33
33
|
__export(Code_exports, {
|
|
34
|
-
Code: () => Code
|
|
34
|
+
Code: () => Code,
|
|
35
|
+
StyledCode: () => StyledCode
|
|
35
36
|
});
|
|
36
37
|
module.exports = __toCommonJS(Code_exports);
|
|
37
38
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
@@ -40,8 +41,6 @@ var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
|
40
41
|
var getTypographyString = (token) => {
|
|
41
42
|
return Object.entries(token).map((entry) => {
|
|
42
43
|
switch (entry[0]) {
|
|
43
|
-
case "paragraph-spacing":
|
|
44
|
-
return entry[1] === "default" ? "" : `margin-bottom: ${entry[1]};`;
|
|
45
44
|
case "paragraph-indent":
|
|
46
45
|
return `text-indent: ${entry[1]};`;
|
|
47
46
|
case "text-case":
|
|
@@ -55,14 +54,15 @@ var getTypographyString = (token) => {
|
|
|
55
54
|
// src/styles/fonts/typography/Code.tsx
|
|
56
55
|
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
57
56
|
var Code = ({ children, size = "Medium" /* Medium */ }) => {
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCode, { size, children });
|
|
59
58
|
};
|
|
60
|
-
var
|
|
59
|
+
var StyledCode = import_styled.default.div`
|
|
61
60
|
${({ theme, size }) => {
|
|
62
61
|
return size ? getTypographyString(theme.typography[theme.app].Code[size]) : "";
|
|
63
62
|
}}
|
|
64
63
|
`;
|
|
65
64
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66
65
|
0 && (module.exports = {
|
|
67
|
-
Code
|
|
66
|
+
Code,
|
|
67
|
+
StyledCode
|
|
68
68
|
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _emotion_react from '@emotion/react';
|
|
1
4
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
5
|
import { TokenSize } from '../typographyTokens.cjs';
|
|
3
6
|
|
|
@@ -6,5 +9,9 @@ interface Props {
|
|
|
6
9
|
size?: TokenSize;
|
|
7
10
|
}
|
|
8
11
|
declare const Code: ({ children, size }: Props) => _emotion_react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare const StyledCode: _emotion_styled.StyledComponent<{
|
|
13
|
+
theme?: _emotion_react.Theme;
|
|
14
|
+
as?: react.ElementType<any>;
|
|
15
|
+
} & Props, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
16
|
|
|
10
|
-
export { Code };
|
|
17
|
+
export { Code, StyledCode };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import * as _emotion_react from '@emotion/react';
|
|
1
4
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
5
|
import { TokenSize } from '../typographyTokens.js';
|
|
3
6
|
|
|
@@ -6,5 +9,9 @@ interface Props {
|
|
|
6
9
|
size?: TokenSize;
|
|
7
10
|
}
|
|
8
11
|
declare const Code: ({ children, size }: Props) => _emotion_react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare const StyledCode: _emotion_styled.StyledComponent<{
|
|
13
|
+
theme?: _emotion_react.Theme;
|
|
14
|
+
as?: react.ElementType<any>;
|
|
15
|
+
} & Props, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
16
|
|
|
10
|
-
export { Code };
|
|
17
|
+
export { Code, StyledCode };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
Code
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Code,
|
|
4
|
+
StyledCode
|
|
5
|
+
} from "../../../chunk-BCFRW7CV.js";
|
|
6
|
+
import "../../../chunk-E4EXM4SY.js";
|
|
6
7
|
import "../../../chunk-CIGAQ47A.js";
|
|
7
8
|
export {
|
|
8
|
-
Code
|
|
9
|
+
Code,
|
|
10
|
+
StyledCode
|
|
9
11
|
};
|