@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _emotion_react from '@emotion/react';
|
|
5
|
+
|
|
6
|
+
declare const ProgrammingLanguageOptions: {
|
|
7
|
+
readonly Bash: "bash";
|
|
8
|
+
readonly Flutter: "dart";
|
|
9
|
+
readonly Go: "go";
|
|
10
|
+
readonly GraphQL: "graphql";
|
|
11
|
+
readonly Java: "java";
|
|
12
|
+
readonly JavaScript: "js";
|
|
13
|
+
readonly JSON: "json";
|
|
14
|
+
readonly Kotlin: "kotlin";
|
|
15
|
+
readonly Python: "python";
|
|
16
|
+
readonly React: "react";
|
|
17
|
+
readonly ReactNative: "tsx";
|
|
18
|
+
readonly Rust: "rust";
|
|
19
|
+
readonly Swift: "swift";
|
|
20
|
+
readonly Text: "txt";
|
|
21
|
+
};
|
|
22
|
+
type ProgrammingOptionNames = keyof typeof ProgrammingLanguageOptions;
|
|
23
|
+
type ProgrammingLanguages = (typeof ProgrammingLanguageOptions)[keyof typeof ProgrammingLanguageOptions];
|
|
24
|
+
declare const InlineCode: _emotion_styled.StyledComponent<{
|
|
25
|
+
theme?: _emotion_react.Theme;
|
|
26
|
+
as?: react.ElementType<any>;
|
|
27
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
28
|
+
type CodeBlockProps = {
|
|
29
|
+
title?: string;
|
|
30
|
+
children: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
language?: ProgrammingOptionNames;
|
|
33
|
+
languageOptions?: Array<ProgrammingOptionNames>;
|
|
34
|
+
onSelectLanguage?: (language: ProgrammingOptionNames) => void;
|
|
35
|
+
withCopyButton?: boolean;
|
|
36
|
+
};
|
|
37
|
+
declare const CodeBlock: ({ title, children, className, language, languageOptions, onSelectLanguage, withCopyButton, }: CodeBlockProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
38
|
+
declare const StyledCodeBlock: _emotion_styled.StyledComponent<{
|
|
39
|
+
theme?: _emotion_react.Theme;
|
|
40
|
+
as?: react.ElementType<any>;
|
|
41
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
|
+
|
|
43
|
+
export { CodeBlock, InlineCode, ProgrammingLanguageOptions, ProgrammingLanguages, ProgrammingOptionNames, StyledCodeBlock };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import * as _emotion_react from '@emotion/react';
|
|
5
|
+
|
|
6
|
+
declare const ProgrammingLanguageOptions: {
|
|
7
|
+
readonly Bash: "bash";
|
|
8
|
+
readonly Flutter: "dart";
|
|
9
|
+
readonly Go: "go";
|
|
10
|
+
readonly GraphQL: "graphql";
|
|
11
|
+
readonly Java: "java";
|
|
12
|
+
readonly JavaScript: "js";
|
|
13
|
+
readonly JSON: "json";
|
|
14
|
+
readonly Kotlin: "kotlin";
|
|
15
|
+
readonly Python: "python";
|
|
16
|
+
readonly React: "react";
|
|
17
|
+
readonly ReactNative: "tsx";
|
|
18
|
+
readonly Rust: "rust";
|
|
19
|
+
readonly Swift: "swift";
|
|
20
|
+
readonly Text: "txt";
|
|
21
|
+
};
|
|
22
|
+
type ProgrammingOptionNames = keyof typeof ProgrammingLanguageOptions;
|
|
23
|
+
type ProgrammingLanguages = (typeof ProgrammingLanguageOptions)[keyof typeof ProgrammingLanguageOptions];
|
|
24
|
+
declare const InlineCode: _emotion_styled.StyledComponent<{
|
|
25
|
+
theme?: _emotion_react.Theme;
|
|
26
|
+
as?: react.ElementType<any>;
|
|
27
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
28
|
+
type CodeBlockProps = {
|
|
29
|
+
title?: string;
|
|
30
|
+
children: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
language?: ProgrammingOptionNames;
|
|
33
|
+
languageOptions?: Array<ProgrammingOptionNames>;
|
|
34
|
+
onSelectLanguage?: (language: ProgrammingOptionNames) => void;
|
|
35
|
+
withCopyButton?: boolean;
|
|
36
|
+
};
|
|
37
|
+
declare const CodeBlock: ({ title, children, className, language, languageOptions, onSelectLanguage, withCopyButton, }: CodeBlockProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
38
|
+
declare const StyledCodeBlock: _emotion_styled.StyledComponent<{
|
|
39
|
+
theme?: _emotion_react.Theme;
|
|
40
|
+
as?: react.ElementType<any>;
|
|
41
|
+
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
42
|
+
|
|
43
|
+
export { CodeBlock, InlineCode, ProgrammingLanguageOptions, ProgrammingLanguages, ProgrammingOptionNames, StyledCodeBlock };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeBlock,
|
|
3
|
+
InlineCode,
|
|
4
|
+
ProgrammingLanguageOptions,
|
|
5
|
+
StyledCodeBlock
|
|
6
|
+
} from "../chunk-UV6JCAHE.js";
|
|
7
|
+
import "../chunk-7C4MHI6Q.js";
|
|
8
|
+
import "../chunk-3GS5EFXV.js";
|
|
9
|
+
import "../chunk-3EVAP5JT.js";
|
|
10
|
+
import "../chunk-55OQPFLF.js";
|
|
11
|
+
import "../chunk-FCZJILMW.js";
|
|
12
|
+
import "../chunk-RWIZ7Q74.js";
|
|
13
|
+
import "../chunk-LAMQKQU3.js";
|
|
14
|
+
import "../chunk-JK4BP73A.js";
|
|
15
|
+
import "../chunk-2VBDEO6M.js";
|
|
16
|
+
import "../chunk-E4EXM4SY.js";
|
|
17
|
+
import "../chunk-JSGRNWSB.js";
|
|
18
|
+
import "../chunk-CIGAQ47A.js";
|
|
19
|
+
export {
|
|
20
|
+
CodeBlock,
|
|
21
|
+
InlineCode,
|
|
22
|
+
ProgrammingLanguageOptions,
|
|
23
|
+
StyledCodeBlock
|
|
24
|
+
};
|