@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.
Files changed (164) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{chunk-ACZDUWPH.js → chunk-2VBDEO6M.js} +2 -2
  3. package/dist/{chunk-FETTWCK3.js → chunk-3PB5DNAL.js} +1 -1
  4. package/dist/chunk-3XSQV5U4.js +26 -0
  5. package/dist/chunk-4I2ABBID.js +38 -0
  6. package/dist/{chunk-W4GDCWKZ.js → chunk-4K2KAYVH.js} +3 -3
  7. package/dist/{chunk-2RF46PE5.js → chunk-4ZZHBSW4.js} +48 -30
  8. package/dist/{chunk-XTEEADPV.js → chunk-6R6A5H4I.js} +34 -13
  9. package/dist/{chunk-LJYASIJC.js → chunk-6RXFA73Z.js} +19 -3
  10. package/dist/{chunk-DE24BV2C.js → chunk-ANJDI74G.js} +2 -2
  11. package/dist/{chunk-RUVXOYBL.js → chunk-BCFRW7CV.js} +5 -4
  12. package/dist/{chunk-X6BI4STY.js → chunk-DHNWT2E5.js} +1 -1
  13. package/dist/chunk-E4EXM4SY.js +921 -0
  14. package/dist/chunk-EZ4RHFY7.js +57 -0
  15. package/dist/{chunk-CQDQFIWT.js → chunk-FHNYQLMF.js} +10 -4
  16. package/dist/{chunk-K7MPHJNG.js → chunk-FRIQXHPR.js} +3 -3
  17. package/dist/{chunk-7NQH4LBZ.js → chunk-LD5LZXUP.js} +2 -2
  18. package/dist/chunk-LN7MMOXE.js +29 -0
  19. package/dist/{chunk-L7XFJWMY.js → chunk-MYG24ZWT.js} +1 -1
  20. package/dist/{chunk-I4PO6FQP.js → chunk-MYKMYG6H.js} +2 -2
  21. package/dist/{chunk-BZ5MKMI2.js → chunk-OLAFBUE5.js} +1 -1
  22. package/dist/{chunk-6RDG2DE3.js → chunk-OO5UJRAW.js} +2 -2
  23. package/dist/{chunk-Y4RJ7WS4.js → chunk-PVUPVJ3F.js} +1 -1
  24. package/dist/chunk-RBYRXBPI.js +29 -0
  25. package/dist/{chunk-4X3K3VRC.js → chunk-SUD5NOKE.js} +6 -6
  26. package/dist/{chunk-LZHLWOXG.js → chunk-SV5QPU7N.js} +1 -1
  27. package/dist/{chunk-LWTUQB7O.js → chunk-SW6ZA7W2.js} +2 -2
  28. package/dist/{chunk-O27TAUAS.js → chunk-U6LQLAWI.js} +3 -3
  29. package/dist/{chunk-6AV4TE6I.js → chunk-VV7F7VVL.js} +2 -2
  30. package/dist/{chunk-7ENCWBAN.js → chunk-WB6FFT7Y.js} +21 -7
  31. package/dist/{chunk-BKOTW3CK.js → chunk-WEPQ7LRL.js} +1 -1
  32. package/dist/{chunk-QR7BKTM6.js → chunk-XUGLVWSH.js} +4 -4
  33. package/dist/{chunk-WVEK4LFA.js → chunk-YHSFWCFN.js} +3 -3
  34. package/dist/chunk-ZQTE53SK.js +78 -0
  35. package/dist/components/Button.cjs +429 -236
  36. package/dist/components/Button.js +9 -9
  37. package/dist/components/ButtonRow.cjs +431 -236
  38. package/dist/components/ButtonRow.js +11 -11
  39. package/dist/components/Collapsible.cjs +428 -232
  40. package/dist/components/Collapsible.d.cts +10 -1
  41. package/dist/components/Collapsible.d.ts +10 -1
  42. package/dist/components/Collapsible.js +8 -7
  43. package/dist/components/ContentTable.cjs +1498 -0
  44. package/dist/components/ContentTable.d.cts +26 -0
  45. package/dist/components/ContentTable.d.ts +26 -0
  46. package/dist/components/ContentTable.js +16 -0
  47. package/dist/components/CopyToClipboardButton.cjs +409 -227
  48. package/dist/components/CopyToClipboardButton.js +7 -7
  49. package/dist/components/CurrencyAmount.cjs +409 -227
  50. package/dist/components/CurrencyAmount.js +6 -6
  51. package/dist/components/Icon.cjs +409 -227
  52. package/dist/components/Icon.js +5 -5
  53. package/dist/components/LightsparkProvider.cjs +410 -228
  54. package/dist/components/LightsparkProvider.js +6 -6
  55. package/dist/components/Loading.cjs +409 -227
  56. package/dist/components/Loading.js +6 -6
  57. package/dist/components/Modal.cjs +559 -275
  58. package/dist/components/Modal.d.cts +5 -10
  59. package/dist/components/Modal.d.ts +5 -10
  60. package/dist/components/Modal.js +12 -11
  61. package/dist/components/ProgressBar.cjs +1238 -0
  62. package/dist/components/ProgressBar.d.cts +17 -0
  63. package/dist/components/ProgressBar.d.ts +17 -0
  64. package/dist/components/ProgressBar.js +10 -0
  65. package/dist/components/SecretContainer.cjs +409 -227
  66. package/dist/components/SecretContainer.js +8 -8
  67. package/dist/components/TextIconAligner.cjs +409 -227
  68. package/dist/components/TextIconAligner.js +6 -6
  69. package/dist/components/UnstyledButton.cjs +409 -227
  70. package/dist/components/UnstyledButton.js +5 -5
  71. package/dist/components/documentation/AnchorLinkHeader.cjs +409 -229
  72. package/dist/components/documentation/AnchorLinkHeader.js +7 -7
  73. package/dist/components/documentation/index.cjs +409 -229
  74. package/dist/components/documentation/index.js +7 -7
  75. package/dist/components/index.cjs +590 -292
  76. package/dist/components/index.d.cts +1 -0
  77. package/dist/components/index.d.ts +1 -0
  78. package/dist/components/index.js +24 -19
  79. package/dist/hooks/useWhatChanged.cjs +30 -0
  80. package/dist/hooks/useWhatChanged.d.cts +1 -0
  81. package/dist/hooks/useWhatChanged.d.ts +1 -0
  82. package/dist/hooks/useWhatChanged.js +7 -0
  83. package/dist/icons/ApiConnection.cjs +44 -0
  84. package/dist/icons/ApiConnection.d.cts +5 -0
  85. package/dist/icons/ApiConnection.d.ts +5 -0
  86. package/dist/icons/ApiConnection.js +25 -0
  87. package/dist/icons/CentralArrowShareRight.cjs +53 -0
  88. package/dist/icons/CentralArrowShareRight.d.cts +5 -0
  89. package/dist/icons/CentralArrowShareRight.d.ts +5 -0
  90. package/dist/icons/CentralArrowShareRight.js +30 -0
  91. package/dist/icons/Restart.cjs +1 -1
  92. package/dist/icons/Restart.js +1 -1
  93. package/dist/icons/Uma.cjs +57 -0
  94. package/dist/icons/Uma.d.cts +5 -0
  95. package/dist/icons/Uma.d.ts +5 -0
  96. package/dist/icons/Uma.js +38 -0
  97. package/dist/icons/index.cjs +409 -227
  98. package/dist/icons/index.js +5 -5
  99. package/dist/index.d.cts +1 -2
  100. package/dist/index.d.ts +1 -2
  101. package/dist/router.cjs +429 -229
  102. package/dist/router.d.cts +8 -5
  103. package/dist/router.d.ts +8 -5
  104. package/dist/router.js +4 -3
  105. package/dist/styles/colors.cjs +409 -227
  106. package/dist/styles/colors.js +2 -2
  107. package/dist/styles/common.cjs +409 -227
  108. package/dist/styles/common.d.cts +1 -1
  109. package/dist/styles/common.d.ts +1 -1
  110. package/dist/styles/common.js +4 -4
  111. package/dist/styles/fields.cjs +409 -227
  112. package/dist/styles/fields.js +6 -6
  113. package/dist/styles/fonts/typography/Article.cjs +514 -274
  114. package/dist/styles/fonts/typography/Article.js +15 -9
  115. package/dist/styles/fonts/typography/Body.cjs +409 -229
  116. package/dist/styles/fonts/typography/Body.js +3 -3
  117. package/dist/styles/fonts/typography/BodyStrong.cjs +1196 -0
  118. package/dist/styles/fonts/typography/BodyStrong.d.cts +23 -0
  119. package/dist/styles/fonts/typography/BodyStrong.d.ts +23 -0
  120. package/dist/styles/fonts/typography/BodyStrong.js +13 -0
  121. package/dist/styles/fonts/typography/Code.cjs +6 -6
  122. package/dist/styles/fonts/typography/Code.d.cts +8 -1
  123. package/dist/styles/fonts/typography/Code.d.ts +8 -1
  124. package/dist/styles/fonts/typography/Code.js +6 -4
  125. package/dist/styles/fonts/typography/Display.cjs +409 -229
  126. package/dist/styles/fonts/typography/Display.js +3 -3
  127. package/dist/styles/fonts/typography/Headline.cjs +410 -230
  128. package/dist/styles/fonts/typography/Headline.js +3 -3
  129. package/dist/styles/fonts/typography/Label.cjs +409 -229
  130. package/dist/styles/fonts/typography/Label.js +3 -3
  131. package/dist/styles/fonts/typography/LabelModerate.cjs +1205 -0
  132. package/dist/styles/fonts/typography/LabelModerate.d.cts +18 -0
  133. package/dist/styles/fonts/typography/LabelModerate.d.ts +18 -0
  134. package/dist/styles/fonts/typography/LabelModerate.js +13 -0
  135. package/dist/styles/fonts/typography/LabelStrong.cjs +409 -229
  136. package/dist/styles/fonts/typography/LabelStrong.js +3 -3
  137. package/dist/styles/fonts/typography/Overline.cjs +1196 -0
  138. package/dist/styles/fonts/typography/Overline.d.cts +18 -0
  139. package/dist/styles/fonts/typography/Overline.d.ts +18 -0
  140. package/dist/styles/fonts/typography/Overline.js +13 -0
  141. package/dist/styles/fonts/typography/Title.cjs +417 -231
  142. package/dist/styles/fonts/typography/Title.d.cts +2 -1
  143. package/dist/styles/fonts/typography/Title.d.ts +2 -1
  144. package/dist/styles/fonts/typography/Title.js +3 -3
  145. package/dist/styles/fonts/typography/index.cjs +594 -299
  146. package/dist/styles/fonts/typography/index.d.cts +3 -0
  147. package/dist/styles/fonts/typography/index.d.ts +3 -0
  148. package/dist/styles/fonts/typography/index.js +31 -15
  149. package/dist/styles/fonts/typographyTokens.cjs +413 -233
  150. package/dist/styles/fonts/typographyTokens.d.cts +210 -28
  151. package/dist/styles/fonts/typographyTokens.d.ts +210 -28
  152. package/dist/styles/fonts/typographyTokens.js +1 -1
  153. package/dist/styles/global.cjs +410 -228
  154. package/dist/styles/global.js +5 -5
  155. package/dist/styles/tokens/spacing.cjs +50 -0
  156. package/dist/styles/tokens/spacing.d.cts +22 -0
  157. package/dist/styles/tokens/spacing.d.ts +22 -0
  158. package/dist/styles/tokens/spacing.js +7 -0
  159. package/dist/styles/type.cjs +409 -227
  160. package/dist/styles/type.js +5 -5
  161. package/dist/styles/utils.cjs +409 -227
  162. package/dist/styles/utils.js +5 -5
  163. package/package.json +7 -4
  164. 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)(CodeStyles, { size, children });
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledCode, { size, children });
59
58
  };
60
- var CodeStyles = import_styled.default.div`
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
- } from "../../../chunk-RUVXOYBL.js";
5
- import "../../../chunk-WVJNZRKF.js";
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
  };