@lightsparkdev/ui 0.0.11 → 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.
Files changed (74) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunk-34CIJVQQ.js +24 -0
  3. package/dist/{chunk-IPAXAP6K.js → chunk-5DK6QL77.js} +7 -1
  4. package/dist/{chunk-VE7J2N47.js → chunk-5GBDVTL6.js} +1 -1
  5. package/dist/{chunk-ZANLDY2W.js → chunk-75VDSSXM.js} +3 -1
  6. package/dist/{chunk-NFSAJ5GJ.js → chunk-DFYHIUYN.js} +1 -1
  7. package/dist/{chunk-DQRN4E5G.js → chunk-EXGJIYUI.js} +1 -1
  8. package/dist/{chunk-NM7UW54G.js → chunk-KMTXQD46.js} +2 -2
  9. package/dist/{chunk-OGSDZTHM.js → chunk-QCXXJZDC.js} +2 -0
  10. package/dist/{chunk-XZR237JJ.js → chunk-QNM3M4MU.js} +2 -1
  11. package/dist/{chunk-PBRN7MJY.js → chunk-QWAHK2QG.js} +1 -1
  12. package/dist/chunk-UV6JCAHE.js +198 -0
  13. package/dist/components/Badge.cjs +1 -1
  14. package/dist/components/Badge.d.cts +4 -3
  15. package/dist/components/Badge.d.ts +4 -3
  16. package/dist/components/Badge.js +1 -1
  17. package/dist/components/Button.cjs +4 -0
  18. package/dist/components/Button.d.cts +23 -26
  19. package/dist/components/Button.d.ts +23 -26
  20. package/dist/components/Button.js +2 -2
  21. package/dist/components/ButtonRow.cjs +4 -0
  22. package/dist/components/ButtonRow.js +3 -3
  23. package/dist/components/CardPage.js +4 -4
  24. package/dist/components/CodeBlock.cjs +1871 -0
  25. package/dist/components/CodeBlock.d.cts +43 -0
  26. package/dist/components/CodeBlock.d.ts +43 -0
  27. package/dist/components/CodeBlock.js +24 -0
  28. package/dist/components/CurrencyAmount.cjs +2 -1
  29. package/dist/components/CurrencyAmount.d.cts +3 -3
  30. package/dist/components/CurrencyAmount.d.ts +3 -3
  31. package/dist/components/CurrencyAmount.js +1 -1
  32. package/dist/components/GradientCardHeader.cjs +1382 -14
  33. package/dist/components/GradientCardHeader.d.cts +2 -1
  34. package/dist/components/GradientCardHeader.d.ts +2 -1
  35. package/dist/components/GradientCardHeader.js +7 -1
  36. package/dist/components/Modal.cjs +4 -0
  37. package/dist/components/Modal.js +4 -4
  38. package/dist/components/SecretContainer.d.cts +1 -1
  39. package/dist/components/SecretContainer.d.ts +1 -1
  40. package/dist/components/StatusIndicator.cjs +1405 -0
  41. package/dist/components/StatusIndicator.d.cts +12 -0
  42. package/dist/components/StatusIndicator.d.ts +12 -0
  43. package/dist/components/StatusIndicator.js +12 -0
  44. package/dist/components/index.cjs +430 -222
  45. package/dist/components/index.d.cts +3 -2
  46. package/dist/components/index.d.ts +3 -2
  47. package/dist/components/index.js +32 -20
  48. package/dist/icons/FramedLetterI.cjs +55 -0
  49. package/dist/icons/FramedLetterI.d.cts +5 -0
  50. package/dist/icons/FramedLetterI.d.ts +5 -0
  51. package/dist/icons/FramedLetterI.js +36 -0
  52. package/dist/router.cjs +2 -0
  53. package/dist/router.d.cts +2 -1
  54. package/dist/router.d.ts +2 -1
  55. package/dist/router.js +1 -1
  56. package/dist/styles/fonts/typography/Article.js +4 -4
  57. package/dist/styles/fonts/typography/index.js +8 -8
  58. package/dist/styles/fonts/typographyTokens.d.cts +4 -1
  59. package/dist/styles/fonts/typographyTokens.d.ts +4 -1
  60. package/dist/types/index.d.cts +1 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/dist/{types/utils.cjs → utils/parseURLFragments.cjs} +18 -13
  63. package/dist/utils/parseURLFragments.d.cts +3 -0
  64. package/dist/utils/parseURLFragments.d.ts +3 -0
  65. package/dist/utils/parseURLFragments.js +19 -0
  66. package/dist/utils/strings.d.cts +1 -1
  67. package/dist/utils/strings.d.ts +1 -1
  68. package/dist/utils/toReactNodes.cjs +2 -0
  69. package/dist/utils/toReactNodes.js +2 -2
  70. package/package.json +5 -2
  71. package/dist/types/utils.d.cts +0 -16
  72. package/dist/types/utils.d.ts +0 -16
  73. package/dist/types/utils.js +0 -13
  74. package/dist/{chunk-Y37DCY7Y.js → chunk-A3ZJ2C7J.js} +9 -9
@@ -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
+ };
@@ -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 { CurrencyUnit, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
3
+ import { CurrencyUnitType, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
4
4
 
5
5
  type CurrencyAmountProps = {
6
6
  amount: CurrencyAmountArg | CurrencyMap;
7
- displayUnit?: CurrencyUnit;
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: CurrencyUnit;
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 { CurrencyUnit, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
3
+ import { CurrencyUnitType, CurrencyAmountArg, CurrencyMap } from '@lightsparkdev/core';
4
4
 
5
5
  type CurrencyAmountProps = {
6
6
  amount: CurrencyAmountArg | CurrencyMap;
7
- displayUnit?: CurrencyUnit;
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: CurrencyUnit;
21
+ unit: CurrencyUnitType;
22
22
  }) => _emotion_react_jsx_runtime.JSX.Element | null;
23
23
 
24
24
  export { CurrencyAmount, CurrencyIcon };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CurrencyAmount,
3
3
  CurrencyIcon
4
- } from "../chunk-XZR237JJ.js";
4
+ } from "../chunk-QNM3M4MU.js";
5
5
  import "../chunk-RWIZ7Q74.js";
6
6
  import "../chunk-LAMQKQU3.js";
7
7
  import "../chunk-JK4BP73A.js";