@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
@@ -1,7 +1,8 @@
1
- export { Badge } from './Badge.cjs';
1
+ export { Badge, BadgeProps } 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';
@@ -16,6 +17,7 @@ export { Modal } from './Modal.cjs';
16
17
  export { Pill } from './Pill.cjs';
17
18
  export { ProgressBar, ProgressBarProps } from './ProgressBar.cjs';
18
19
  export { SecretContainer } from './SecretContainer.cjs';
20
+ export { StatusIndicator, StatusIndicatorColors, StatusIndicatorProps } from './StatusIndicator.cjs';
19
21
  export { TextIconAligner, TextIconAlignerProps } from './TextIconAligner.cjs';
20
22
  export { UnstyledButton } from './UnstyledButton.cjs';
21
23
  import '@emotion/react/jsx-runtime';
@@ -27,4 +29,3 @@ import 'react-router-dom';
27
29
  import '@apollo/client';
28
30
  import '@lightsparkdev/core';
29
31
  import 'react-tooltip';
30
- import '../types/utils.cjs';
@@ -1,7 +1,8 @@
1
- export { Badge } from './Badge.js';
1
+ export { Badge, BadgeProps } 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';
@@ -16,6 +17,7 @@ export { Modal } from './Modal.js';
16
17
  export { Pill } from './Pill.js';
17
18
  export { ProgressBar, ProgressBarProps } from './ProgressBar.js';
18
19
  export { SecretContainer } from './SecretContainer.js';
20
+ export { StatusIndicator, StatusIndicatorColors, StatusIndicatorProps } from './StatusIndicator.js';
19
21
  export { TextIconAligner, TextIconAlignerProps } from './TextIconAligner.js';
20
22
  export { UnstyledButton } from './UnstyledButton.js';
21
23
  import '@emotion/react/jsx-runtime';
@@ -27,4 +29,3 @@ import 'react-router-dom';
27
29
  import '@apollo/client';
28
30
  import '@lightsparkdev/core';
29
31
  import 'react-tooltip';
30
- import '../types/utils.js';
@@ -1,7 +1,12 @@
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
- } from "../chunk-NM7UW54G.js";
4
- import "../chunk-VE7J2N47.js";
8
+ } from "../chunk-KMTXQD46.js";
9
+ import "../chunk-5GBDVTL6.js";
5
10
  import "../chunk-NBCCPGA4.js";
6
11
  import {
7
12
  ProgressBar
@@ -12,30 +17,25 @@ 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
21
- } from "../chunk-XZR237JJ.js";
23
+ } from "../chunk-QNM3M4MU.js";
22
24
  import {
23
25
  Pill
24
26
  } from "../chunk-A4FQBEYU.js";
25
27
  import {
26
28
  GradientCardHeader
27
- } from "../chunk-IPAXAP6K.js";
29
+ } from "../chunk-5DK6QL77.js";
30
+ import {
31
+ StatusIndicator
32
+ } from "../chunk-34CIJVQQ.js";
28
33
  import {
29
34
  LightboxImage
30
35
  } from "../chunk-Z5TPS2BO.js";
31
- import {
32
- LightsparkProvider
33
- } from "../chunk-H3RW6JSU.js";
34
- import "../chunk-KMR5C25B.js";
35
- import "../chunk-IJVWYT5G.js";
36
36
  import {
37
37
  Badge
38
- } from "../chunk-DQRN4E5G.js";
38
+ } from "../chunk-EXGJIYUI.js";
39
39
  import {
40
40
  CardPage,
41
41
  CardPageContent,
@@ -43,23 +43,31 @@ import {
43
43
  CardPageFullWidth,
44
44
  CardPageRightContentInner,
45
45
  CardPageSubtitle
46
- } from "../chunk-PBRN7MJY.js";
46
+ } from "../chunk-QWAHK2QG.js";
47
47
  import "../chunk-P3EUPXFA.js";
48
48
  import {
49
49
  ButtonRow,
50
50
  ButtonRowContainer
51
- } from "../chunk-NFSAJ5GJ.js";
51
+ } from "../chunk-DFYHIUYN.js";
52
52
  import {
53
53
  Button,
54
54
  ButtonSelector,
55
55
  StyledButton
56
- } from "../chunk-ZANLDY2W.js";
57
- import "../chunk-OGSDZTHM.js";
56
+ } from "../chunk-75VDSSXM.js";
57
+ import "../chunk-QCXXJZDC.js";
58
58
  import "../chunk-YMNSXZ5D.js";
59
59
  import {
60
60
  Loading,
61
61
  LoadingWrapper
62
62
  } from "../chunk-J4FJQ3FN.js";
63
+ import {
64
+ CodeBlock,
65
+ InlineCode,
66
+ StyledCodeBlock
67
+ } from "../chunk-UV6JCAHE.js";
68
+ import {
69
+ CopyToClipboardButton
70
+ } from "../chunk-7C4MHI6Q.js";
63
71
  import {
64
72
  UnstyledButton
65
73
  } from "../chunk-3GS5EFXV.js";
@@ -72,9 +80,6 @@ import {
72
80
  } from "../chunk-EEFNW7NS.js";
73
81
  import "../chunk-3XSQV5U4.js";
74
82
  import "../chunk-FCZJILMW.js";
75
- import {
76
- CommandKey
77
- } from "../chunk-WOR7J4KZ.js";
78
83
  import {
79
84
  Icon,
80
85
  IconContainer
@@ -84,6 +89,9 @@ import "../chunk-JK4BP73A.js";
84
89
  import "../chunk-2VBDEO6M.js";
85
90
  import "../chunk-E4EXM4SY.js";
86
91
  import "../chunk-JSGRNWSB.js";
92
+ import {
93
+ CommandKey
94
+ } from "../chunk-WOR7J4KZ.js";
87
95
  import "../chunk-CIGAQ47A.js";
88
96
  export {
89
97
  Badge,
@@ -97,6 +105,7 @@ export {
97
105
  CardPageFullWidth,
98
106
  CardPageRightContentInner,
99
107
  CardPageSubtitle,
108
+ CodeBlock,
100
109
  Collapsible,
101
110
  CommandKey,
102
111
  CopyToClipboardButton,
@@ -105,6 +114,7 @@ export {
105
114
  GradientCardHeader,
106
115
  Icon,
107
116
  IconContainer,
117
+ InlineCode,
108
118
  LightTooltip,
109
119
  LightboxImage,
110
120
  LightsparkProvider,
@@ -114,7 +124,9 @@ export {
114
124
  Pill,
115
125
  ProgressBar,
116
126
  SecretContainer,
127
+ StatusIndicator,
117
128
  StyledButton,
129
+ StyledCodeBlock,
118
130
  TextIconAligner,
119
131
  UnstyledButton
120
132
  };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/icons/FramedLetterI.tsx
21
+ var FramedLetterI_exports = {};
22
+ __export(FramedLetterI_exports, {
23
+ default: () => FramedLetterI_default
24
+ });
25
+ module.exports = __toCommonJS(FramedLetterI_exports);
26
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
27
+ var FramedLetterI = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
28
+ "svg",
29
+ {
30
+ width: "100%",
31
+ viewBox: "0 0 13 12",
32
+ fill: "none",
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ children: [
35
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
+ "path",
37
+ {
38
+ d: "M9.8999 1.5H2.8999C2.34762 1.5 1.8999 1.94772 1.8999 2.5V9.5C1.8999 10.0523 2.34762 10.5 2.8999 10.5H9.8999C10.4522 10.5 10.8999 10.0523 10.8999 9.5V2.5C10.8999 1.94772 10.4522 1.5 9.8999 1.5Z",
39
+ stroke: "currentColor",
40
+ strokeLinejoin: "round"
41
+ }
42
+ ),
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ "path",
45
+ {
46
+ d: "M6.3999 4V8",
47
+ stroke: "currentColor",
48
+ strokeLinecap: "round",
49
+ strokeLinejoin: "round"
50
+ }
51
+ )
52
+ ]
53
+ }
54
+ );
55
+ var FramedLetterI_default = FramedLetterI;
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const FramedLetterI: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { FramedLetterI as default };
@@ -0,0 +1,5 @@
1
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
2
+
3
+ declare const FramedLetterI: () => _emotion_react_jsx_runtime.JSX.Element;
4
+
5
+ export { FramedLetterI as default };
@@ -0,0 +1,36 @@
1
+ import "../chunk-CIGAQ47A.js";
2
+
3
+ // src/icons/FramedLetterI.tsx
4
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
5
+ var FramedLetterI = () => /* @__PURE__ */ jsxs(
6
+ "svg",
7
+ {
8
+ width: "100%",
9
+ viewBox: "0 0 13 12",
10
+ fill: "none",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ children: [
13
+ /* @__PURE__ */ jsx(
14
+ "path",
15
+ {
16
+ d: "M9.8999 1.5H2.8999C2.34762 1.5 1.8999 1.94772 1.8999 2.5V9.5C1.8999 10.0523 2.34762 10.5 2.8999 10.5H9.8999C10.4522 10.5 10.8999 10.0523 10.8999 9.5V2.5C10.8999 1.94772 10.4522 1.5 9.8999 1.5Z",
17
+ stroke: "currentColor",
18
+ strokeLinejoin: "round"
19
+ }
20
+ ),
21
+ /* @__PURE__ */ jsx(
22
+ "path",
23
+ {
24
+ d: "M6.3999 4V8",
25
+ stroke: "currentColor",
26
+ strokeLinecap: "round",
27
+ strokeLinejoin: "round"
28
+ }
29
+ )
30
+ ]
31
+ }
32
+ );
33
+ var FramedLetterI_default = FramedLetterI;
34
+ export {
35
+ FramedLetterI_default as default
36
+ };
package/dist/router.cjs CHANGED
@@ -1190,6 +1190,7 @@ function replaceParams(to, params) {
1190
1190
  }
1191
1191
  function Link({
1192
1192
  to,
1193
+ id,
1193
1194
  externalLink,
1194
1195
  params,
1195
1196
  children,
@@ -1222,6 +1223,7 @@ function Link({
1222
1223
  import_react_router_dom.Link,
1223
1224
  {
1224
1225
  to: toStr,
1226
+ id,
1225
1227
  css: css2,
1226
1228
  onClick,
1227
1229
  className,
package/dist/router.d.cts CHANGED
@@ -15,6 +15,7 @@ type RouteHash = string | null;
15
15
  type ExternalLink = string;
16
16
  type LinkProps<RoutesType extends string> = {
17
17
  to?: RoutesType | undefined;
18
+ id?: string | undefined;
18
19
  externalLink?: ExternalLink | undefined;
19
20
  onClick?: MouseEventHandler<HTMLAnchorElement> | undefined;
20
21
  params?: RouteParams | undefined;
@@ -26,7 +27,7 @@ type LinkProps<RoutesType extends string> = {
26
27
  hash?: RouteHash | undefined;
27
28
  };
28
29
  declare function replaceParams<RoutesType extends string>(to: RoutesType, params: LinkProps<RoutesType>["params"]): RoutesType;
29
- declare function Link<RoutesType extends string>({ to, externalLink, params, children, css, onClick, className, hash, blue, newTab, }: LinkProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
30
+ declare function Link<RoutesType extends string>({ to, id, externalLink, params, children, css, onClick, className, hash, blue, newTab, }: LinkProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
30
31
  type NavigateProps<RoutesType extends string> = Omit<LinkProps<RoutesType>, "children"> & {
31
32
  to: RoutesType;
32
33
  state?: unknown;
package/dist/router.d.ts CHANGED
@@ -15,6 +15,7 @@ type RouteHash = string | null;
15
15
  type ExternalLink = string;
16
16
  type LinkProps<RoutesType extends string> = {
17
17
  to?: RoutesType | undefined;
18
+ id?: string | undefined;
18
19
  externalLink?: ExternalLink | undefined;
19
20
  onClick?: MouseEventHandler<HTMLAnchorElement> | undefined;
20
21
  params?: RouteParams | undefined;
@@ -26,7 +27,7 @@ type LinkProps<RoutesType extends string> = {
26
27
  hash?: RouteHash | undefined;
27
28
  };
28
29
  declare function replaceParams<RoutesType extends string>(to: RoutesType, params: LinkProps<RoutesType>["params"]): RoutesType;
29
- declare function Link<RoutesType extends string>({ to, externalLink, params, children, css, onClick, className, hash, blue, newTab, }: LinkProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
30
+ declare function Link<RoutesType extends string>({ to, id, externalLink, params, children, css, onClick, className, hash, blue, newTab, }: LinkProps<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
30
31
  type NavigateProps<RoutesType extends string> = Omit<LinkProps<RoutesType>, "children"> & {
31
32
  to: RoutesType;
32
33
  state?: unknown;
package/dist/router.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  useMatchRoute,
9
9
  useMatchRoutes,
10
10
  useNavigate
11
- } from "./chunk-OGSDZTHM.js";
11
+ } from "./chunk-QCXXJZDC.js";
12
12
  import "./chunk-LAMQKQU3.js";
13
13
  import "./chunk-2VBDEO6M.js";
14
14
  import "./chunk-E4EXM4SY.js";
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import {
3
3
  Article
4
- } from "../../../chunk-Y37DCY7Y.js";
5
- import "../../../chunk-FHNYQLMF.js";
6
- import "../../../chunk-LD5LZXUP.js";
4
+ } from "../../../chunk-A3ZJ2C7J.js";
7
5
  import "../../../chunk-BCFRW7CV.js";
8
6
  import "../../../chunk-QGGOMPHZ.js";
7
+ import "../../../chunk-FHNYQLMF.js";
8
+ import "../../../chunk-LD5LZXUP.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,13 @@ import {
12
12
  } from "../../../chunk-RBYRXBPI.js";
13
13
  import {
14
14
  Article
15
- } from "../../../chunk-Y37DCY7Y.js";
15
+ } from "../../../chunk-A3ZJ2C7J.js";
16
+ import {
17
+ Code
18
+ } from "../../../chunk-BCFRW7CV.js";
19
+ import {
20
+ Display
21
+ } from "../../../chunk-QGGOMPHZ.js";
16
22
  import {
17
23
  Title
18
24
  } from "../../../chunk-FHNYQLMF.js";
@@ -22,19 +28,13 @@ import {
22
28
  import {
23
29
  BodyStrong
24
30
  } from "../../../chunk-LN7MMOXE.js";
25
- import {
26
- Code
27
- } from "../../../chunk-BCFRW7CV.js";
28
- import {
29
- Display
30
- } from "../../../chunk-QGGOMPHZ.js";
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: 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: FontFamilies;
26
+ fontFamilies: {
27
+ main: string;
28
+ code: string;
29
+ };
27
30
  lineHeights: {
28
31
  UmaDocs: {
29
32
  "5xl": string;
@@ -1,5 +1,6 @@
1
1
  declare global {
2
2
  const __CURRENT_COMMIT__: string;
3
+ const __BASENAME__: string;
3
4
  }
4
5
  interface LightsparkWindow extends Window {
5
6
  Cypress?: unknown;
@@ -1,5 +1,6 @@
1
1
  declare global {
2
2
  const __CURRENT_COMMIT__: string;
3
+ const __BASENAME__: string;
3
4
  }
4
5
  interface LightsparkWindow extends Window {
5
6
  Cypress?: unknown;
@@ -17,21 +17,26 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/types/utils.ts
21
- var utils_exports = {};
22
- __export(utils_exports, {
23
- isType: () => isType,
24
- notNullUndefined: () => notNullUndefined
20
+ // src/utils/parseURLFragments.ts
21
+ var parseURLFragments_exports = {};
22
+ __export(parseURLFragments_exports, {
23
+ parseURLFragments: () => parseURLFragments
25
24
  });
26
- module.exports = __toCommonJS(utils_exports);
27
- var isType = (typename) => (node) => {
28
- return (node == null ? void 0 : node.__typename) === typename;
29
- };
30
- function notNullUndefined(value) {
31
- return value !== null && value !== void 0;
25
+ module.exports = __toCommonJS(parseURLFragments_exports);
26
+ function parseURLFragments(url) {
27
+ const hash = url.slice(1);
28
+ const pairs = hash.split("&");
29
+ if (!hash || !pairs.length) {
30
+ return null;
31
+ }
32
+ const params = {};
33
+ pairs.forEach((pair) => {
34
+ const [key, value] = pair.split("=");
35
+ params[key] = decodeURIComponent(value || "");
36
+ });
37
+ return params;
32
38
  }
33
39
  // Annotate the CommonJS export names for ESM import in node:
34
40
  0 && (module.exports = {
35
- isType,
36
- notNullUndefined
41
+ parseURLFragments
37
42
  });
@@ -0,0 +1,3 @@
1
+ declare function parseURLFragments(url: string): Record<string, string> | null;
2
+
3
+ export { parseURLFragments };
@@ -0,0 +1,3 @@
1
+ declare function parseURLFragments(url: string): Record<string, string> | null;
2
+
3
+ export { parseURLFragments };
@@ -0,0 +1,19 @@
1
+ import "../chunk-CIGAQ47A.js";
2
+
3
+ // src/utils/parseURLFragments.ts
4
+ function parseURLFragments(url) {
5
+ const hash = url.slice(1);
6
+ const pairs = hash.split("&");
7
+ if (!hash || !pairs.length) {
8
+ return null;
9
+ }
10
+ const params = {};
11
+ pairs.forEach((pair) => {
12
+ const [key, value] = pair.split("=");
13
+ params[key] = decodeURIComponent(value || "");
14
+ });
15
+ return params;
16
+ }
17
+ export {
18
+ parseURLFragments
19
+ };
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../types/utils.cjs';
1
+ import { Maybe } from '@lightsparkdev/core';
2
2
 
3
3
  declare const capitalize: (str: string) => string;
4
4
  declare const makeEnumPretty: (enumValue: string, capitalizeAllWords?: boolean) => string;
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../types/utils.js';
1
+ import { Maybe } from '@lightsparkdev/core';
2
2
 
3
3
  declare const capitalize: (str: string) => string;
4
4
  declare const makeEnumPretty: (enumValue: string, capitalizeAllWords?: boolean) => string;
@@ -1186,6 +1186,7 @@ function replaceParams(to, params) {
1186
1186
  }
1187
1187
  function Link({
1188
1188
  to,
1189
+ id,
1189
1190
  externalLink,
1190
1191
  params,
1191
1192
  children,
@@ -1218,6 +1219,7 @@ function Link({
1218
1219
  import_react_router_dom.Link,
1219
1220
  {
1220
1221
  to: toStr,
1222
+ id,
1221
1223
  css: css2,
1222
1224
  onClick,
1223
1225
  className,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ToReactNodesTypes,
3
3
  toReactNodes
4
- } from "../chunk-VE7J2N47.js";
5
- import "../chunk-OGSDZTHM.js";
4
+ } from "../chunk-5GBDVTL6.js";
5
+ import "../chunk-QCXXJZDC.js";
6
6
  import "../chunk-LAMQKQU3.js";
7
7
  import "../chunk-2VBDEO6M.js";
8
8
  import "../chunk-E4EXM4SY.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/ui",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
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.20",
46
+ "@lightsparkdev/core": "1.0.22",
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",
@@ -1,16 +0,0 @@
1
- type Maybe<T> = T | null | undefined;
2
- type ExpandRecursively<T> = T extends object ? T extends infer O ? {
3
- [K in keyof O]: ExpandRecursively<O[K]>;
4
- } : never : T;
5
- type ById<T> = {
6
- [id: string]: T;
7
- };
8
- type OmitTypename<T> = Omit<T, "__typename">;
9
- declare const isType: <T extends string>(typename: T) => <N extends {
10
- __typename: string;
11
- }>(node: N | null | undefined) => node is Extract<N, {
12
- __typename: T;
13
- }>;
14
- declare function notNullUndefined<TValue>(value: TValue | null | undefined): value is TValue;
15
-
16
- export { ById, ExpandRecursively, Maybe, OmitTypename, isType, notNullUndefined };
@@ -1,16 +0,0 @@
1
- type Maybe<T> = T | null | undefined;
2
- type ExpandRecursively<T> = T extends object ? T extends infer O ? {
3
- [K in keyof O]: ExpandRecursively<O[K]>;
4
- } : never : T;
5
- type ById<T> = {
6
- [id: string]: T;
7
- };
8
- type OmitTypename<T> = Omit<T, "__typename">;
9
- declare const isType: <T extends string>(typename: T) => <N extends {
10
- __typename: string;
11
- }>(node: N | null | undefined) => node is Extract<N, {
12
- __typename: T;
13
- }>;
14
- declare function notNullUndefined<TValue>(value: TValue | null | undefined): value is TValue;
15
-
16
- export { ById, ExpandRecursively, Maybe, OmitTypename, isType, notNullUndefined };
@@ -1,13 +0,0 @@
1
- import "../chunk-CIGAQ47A.js";
2
-
3
- // src/types/utils.ts
4
- var isType = (typename) => (node) => {
5
- return (node == null ? void 0 : node.__typename) === typename;
6
- };
7
- function notNullUndefined(value) {
8
- return value !== null && value !== void 0;
9
- }
10
- export {
11
- isType,
12
- notNullUndefined
13
- };