@lightsparkdev/ui 0.0.11 → 0.0.12
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 +10 -0
- package/dist/chunk-UV6JCAHE.js +198 -0
- package/dist/components/CodeBlock.cjs +1871 -0
- package/dist/components/CodeBlock.d.cts +43 -0
- package/dist/components/CodeBlock.d.ts +43 -0
- package/dist/components/CodeBlock.js +24 -0
- package/dist/components/SecretContainer.d.cts +1 -1
- package/dist/components/SecretContainer.d.ts +1 -1
- package/dist/components/index.cjs +401 -219
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +19 -11
- package/dist/styles/fonts/typography/Article.js +2 -2
- package/dist/styles/fonts/typography/index.js +2 -2
- package/dist/styles/fonts/typographyTokens.d.cts +4 -1
- package/dist/styles/fonts/typographyTokens.d.ts +4 -1
- package/dist/utils/strings.d.cts +1 -1
- package/dist/utils/strings.d.ts +1 -1
- package/package.json +5 -2
- package/dist/{chunk-Y37DCY7Y.js → chunk-VZX5ETRB.js} +3 -3
|
@@ -2,6 +2,7 @@ export { Badge } from './Badge.cjs';
|
|
|
2
2
|
export { Button, ButtonProps, ButtonSelector, StyledButton } from './Button.cjs';
|
|
3
3
|
export { ButtonRow, ButtonRowContainer, ButtonRowProps } from './ButtonRow.cjs';
|
|
4
4
|
export { CardPage, CardPageContent, CardPageFullContent, CardPageFullWidth, CardPageRightContentInner, CardPageSubtitle } from './CardPage.cjs';
|
|
5
|
+
export { CodeBlock, InlineCode, StyledCodeBlock } from './CodeBlock.cjs';
|
|
5
6
|
export { Collapsible } from './Collapsible.cjs';
|
|
6
7
|
export { CommandKey } from './CommandKey.cjs';
|
|
7
8
|
export { CopyToClipboardButton } from './CopyToClipboardButton.cjs';
|
|
@@ -27,4 +28,3 @@ import 'react-router-dom';
|
|
|
27
28
|
import '@apollo/client';
|
|
28
29
|
import '@lightsparkdev/core';
|
|
29
30
|
import 'react-tooltip';
|
|
30
|
-
import '../types/utils.cjs';
|
|
@@ -2,6 +2,7 @@ export { Badge } from './Badge.js';
|
|
|
2
2
|
export { Button, ButtonProps, ButtonSelector, StyledButton } from './Button.js';
|
|
3
3
|
export { ButtonRow, ButtonRowContainer, ButtonRowProps } from './ButtonRow.js';
|
|
4
4
|
export { CardPage, CardPageContent, CardPageFullContent, CardPageFullWidth, CardPageRightContentInner, CardPageSubtitle } from './CardPage.js';
|
|
5
|
+
export { CodeBlock, InlineCode, StyledCodeBlock } from './CodeBlock.js';
|
|
5
6
|
export { Collapsible } from './Collapsible.js';
|
|
6
7
|
export { CommandKey } from './CommandKey.js';
|
|
7
8
|
export { CopyToClipboardButton } from './CopyToClipboardButton.js';
|
|
@@ -27,4 +28,3 @@ import 'react-router-dom';
|
|
|
27
28
|
import '@apollo/client';
|
|
28
29
|
import '@lightsparkdev/core';
|
|
29
30
|
import 'react-tooltip';
|
|
30
|
-
import '../types/utils.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LightsparkProvider
|
|
3
|
+
} from "../chunk-H3RW6JSU.js";
|
|
4
|
+
import "../chunk-KMR5C25B.js";
|
|
5
|
+
import "../chunk-IJVWYT5G.js";
|
|
1
6
|
import {
|
|
2
7
|
Modal
|
|
3
8
|
} from "../chunk-NM7UW54G.js";
|
|
@@ -12,9 +17,6 @@ import {
|
|
|
12
17
|
import {
|
|
13
18
|
TextIconAligner
|
|
14
19
|
} from "../chunk-5POPBNPS.js";
|
|
15
|
-
import {
|
|
16
|
-
CopyToClipboardButton
|
|
17
|
-
} from "../chunk-7C4MHI6Q.js";
|
|
18
20
|
import {
|
|
19
21
|
CurrencyAmount,
|
|
20
22
|
CurrencyIcon
|
|
@@ -28,11 +30,6 @@ import {
|
|
|
28
30
|
import {
|
|
29
31
|
LightboxImage
|
|
30
32
|
} from "../chunk-Z5TPS2BO.js";
|
|
31
|
-
import {
|
|
32
|
-
LightsparkProvider
|
|
33
|
-
} from "../chunk-H3RW6JSU.js";
|
|
34
|
-
import "../chunk-KMR5C25B.js";
|
|
35
|
-
import "../chunk-IJVWYT5G.js";
|
|
36
33
|
import {
|
|
37
34
|
Badge
|
|
38
35
|
} from "../chunk-DQRN4E5G.js";
|
|
@@ -60,6 +57,14 @@ import {
|
|
|
60
57
|
Loading,
|
|
61
58
|
LoadingWrapper
|
|
62
59
|
} from "../chunk-J4FJQ3FN.js";
|
|
60
|
+
import {
|
|
61
|
+
CodeBlock,
|
|
62
|
+
InlineCode,
|
|
63
|
+
StyledCodeBlock
|
|
64
|
+
} from "../chunk-UV6JCAHE.js";
|
|
65
|
+
import {
|
|
66
|
+
CopyToClipboardButton
|
|
67
|
+
} from "../chunk-7C4MHI6Q.js";
|
|
63
68
|
import {
|
|
64
69
|
UnstyledButton
|
|
65
70
|
} from "../chunk-3GS5EFXV.js";
|
|
@@ -72,9 +77,6 @@ import {
|
|
|
72
77
|
} from "../chunk-EEFNW7NS.js";
|
|
73
78
|
import "../chunk-3XSQV5U4.js";
|
|
74
79
|
import "../chunk-FCZJILMW.js";
|
|
75
|
-
import {
|
|
76
|
-
CommandKey
|
|
77
|
-
} from "../chunk-WOR7J4KZ.js";
|
|
78
80
|
import {
|
|
79
81
|
Icon,
|
|
80
82
|
IconContainer
|
|
@@ -84,6 +86,9 @@ import "../chunk-JK4BP73A.js";
|
|
|
84
86
|
import "../chunk-2VBDEO6M.js";
|
|
85
87
|
import "../chunk-E4EXM4SY.js";
|
|
86
88
|
import "../chunk-JSGRNWSB.js";
|
|
89
|
+
import {
|
|
90
|
+
CommandKey
|
|
91
|
+
} from "../chunk-WOR7J4KZ.js";
|
|
87
92
|
import "../chunk-CIGAQ47A.js";
|
|
88
93
|
export {
|
|
89
94
|
Badge,
|
|
@@ -97,6 +102,7 @@ export {
|
|
|
97
102
|
CardPageFullWidth,
|
|
98
103
|
CardPageRightContentInner,
|
|
99
104
|
CardPageSubtitle,
|
|
105
|
+
CodeBlock,
|
|
100
106
|
Collapsible,
|
|
101
107
|
CommandKey,
|
|
102
108
|
CopyToClipboardButton,
|
|
@@ -105,6 +111,7 @@ export {
|
|
|
105
111
|
GradientCardHeader,
|
|
106
112
|
Icon,
|
|
107
113
|
IconContainer,
|
|
114
|
+
InlineCode,
|
|
108
115
|
LightTooltip,
|
|
109
116
|
LightboxImage,
|
|
110
117
|
LightsparkProvider,
|
|
@@ -115,6 +122,7 @@ export {
|
|
|
115
122
|
ProgressBar,
|
|
116
123
|
SecretContainer,
|
|
117
124
|
StyledButton,
|
|
125
|
+
StyledCodeBlock,
|
|
118
126
|
TextIconAligner,
|
|
119
127
|
UnstyledButton
|
|
120
128
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Article
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-VZX5ETRB.js";
|
|
5
5
|
import "../../../chunk-FHNYQLMF.js";
|
|
6
6
|
import "../../../chunk-LD5LZXUP.js";
|
|
7
7
|
import "../../../chunk-BCFRW7CV.js";
|
|
8
8
|
import "../../../chunk-QGGOMPHZ.js";
|
|
9
9
|
import "../../../chunk-4TFRLWCC.js";
|
|
10
|
+
import "../../../chunk-XP2MX2AA.js";
|
|
10
11
|
import "../../../chunk-YMNSXZ5D.js";
|
|
11
12
|
import "../../../chunk-3XSQV5U4.js";
|
|
12
13
|
import "../../../chunk-FCZJILMW.js";
|
|
13
|
-
import "../../../chunk-XP2MX2AA.js";
|
|
14
14
|
import "../../../chunk-RWIZ7Q74.js";
|
|
15
15
|
import "../../../chunk-LAMQKQU3.js";
|
|
16
16
|
import "../../../chunk-JK4BP73A.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "../../../chunk-RBYRXBPI.js";
|
|
13
13
|
import {
|
|
14
14
|
Article
|
|
15
|
-
} from "../../../chunk-
|
|
15
|
+
} from "../../../chunk-VZX5ETRB.js";
|
|
16
16
|
import {
|
|
17
17
|
Title
|
|
18
18
|
} from "../../../chunk-FHNYQLMF.js";
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
Headline
|
|
33
33
|
} from "../../../chunk-4TFRLWCC.js";
|
|
34
|
+
import "../../../chunk-XP2MX2AA.js";
|
|
34
35
|
import "../../../chunk-YMNSXZ5D.js";
|
|
35
36
|
import "../../../chunk-3XSQV5U4.js";
|
|
36
37
|
import "../../../chunk-FCZJILMW.js";
|
|
37
|
-
import "../../../chunk-XP2MX2AA.js";
|
|
38
38
|
import "../../../chunk-RWIZ7Q74.js";
|
|
39
39
|
import "../../../chunk-LAMQKQU3.js";
|
|
40
40
|
import "../../../chunk-JK4BP73A.js";
|
|
@@ -23,7 +23,10 @@ declare enum TokenSize {
|
|
|
23
23
|
Small = "Small"
|
|
24
24
|
}
|
|
25
25
|
declare const getTypography: (customFontFamilies?: FontFamilies) => {
|
|
26
|
-
fontFamilies:
|
|
26
|
+
fontFamilies: {
|
|
27
|
+
main: string;
|
|
28
|
+
code: string;
|
|
29
|
+
};
|
|
27
30
|
lineHeights: {
|
|
28
31
|
UmaDocs: {
|
|
29
32
|
"5xl": string;
|
|
@@ -23,7 +23,10 @@ declare enum TokenSize {
|
|
|
23
23
|
Small = "Small"
|
|
24
24
|
}
|
|
25
25
|
declare const getTypography: (customFontFamilies?: FontFamilies) => {
|
|
26
|
-
fontFamilies:
|
|
26
|
+
fontFamilies: {
|
|
27
|
+
main: string;
|
|
28
|
+
code: string;
|
|
29
|
+
};
|
|
27
30
|
lineHeights: {
|
|
28
31
|
UmaDocs: {
|
|
29
32
|
"5xl": string;
|
package/dist/utils/strings.d.cts
CHANGED
package/dist/utils/strings.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -43,14 +43,16 @@
|
|
|
43
43
|
"@emotion/css": "^11.11.0",
|
|
44
44
|
"@emotion/react": "^11.11.0",
|
|
45
45
|
"@emotion/styled": "^11.11.0",
|
|
46
|
-
"@lightsparkdev/core": "1.0.
|
|
46
|
+
"@lightsparkdev/core": "1.0.21",
|
|
47
47
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
48
48
|
"gql": "^1.1.2",
|
|
49
49
|
"lodash-es": "^4.17.21",
|
|
50
50
|
"nanoid": "^4.0.0",
|
|
51
|
+
"prismjs": "^1.29.0",
|
|
51
52
|
"react": "^18.2.0",
|
|
52
53
|
"react-dom": "^18.1.0",
|
|
53
54
|
"react-router-dom": "6.11.2",
|
|
55
|
+
"react-select": "^5.4.0",
|
|
54
56
|
"react-tooltip": "^5.10.1"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
"@testing-library/react": "^14.0.0",
|
|
63
65
|
"@testing-library/user-event": "^14.4.3",
|
|
64
66
|
"@types/jest": "^29.5.3",
|
|
67
|
+
"@types/prismjs": "^1.26.0",
|
|
65
68
|
"babel-jest": "^29.6.4",
|
|
66
69
|
"esbuild-plugin-copy": "^2.1.1",
|
|
67
70
|
"esbuild-plugin-svgr": "^2.1.0",
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
ALL_HEADLINE_SELECTORS,
|
|
15
15
|
headlineSelector
|
|
16
16
|
} from "./chunk-4TFRLWCC.js";
|
|
17
|
+
import {
|
|
18
|
+
StyledContentTable
|
|
19
|
+
} from "./chunk-XP2MX2AA.js";
|
|
17
20
|
import {
|
|
18
21
|
select
|
|
19
22
|
} from "./chunk-YMNSXZ5D.js";
|
|
20
23
|
import {
|
|
21
24
|
overflowAutoWithoutScrollbars
|
|
22
25
|
} from "./chunk-FCZJILMW.js";
|
|
23
|
-
import {
|
|
24
|
-
StyledContentTable
|
|
25
|
-
} from "./chunk-XP2MX2AA.js";
|
|
26
26
|
import {
|
|
27
27
|
standardBorderRadius
|
|
28
28
|
} from "./chunk-JK4BP73A.js";
|