@lightsparkdev/ui 0.0.12 → 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.
- package/CHANGELOG.md +9 -0
- package/dist/chunk-34CIJVQQ.js +24 -0
- package/dist/{chunk-IPAXAP6K.js → chunk-5DK6QL77.js} +7 -1
- package/dist/{chunk-VE7J2N47.js → chunk-5GBDVTL6.js} +1 -1
- package/dist/{chunk-ZANLDY2W.js → chunk-75VDSSXM.js} +3 -1
- package/dist/{chunk-NFSAJ5GJ.js → chunk-DFYHIUYN.js} +1 -1
- package/dist/{chunk-DQRN4E5G.js → chunk-EXGJIYUI.js} +1 -1
- package/dist/{chunk-NM7UW54G.js → chunk-KMTXQD46.js} +2 -2
- package/dist/{chunk-OGSDZTHM.js → chunk-QCXXJZDC.js} +2 -0
- package/dist/{chunk-XZR237JJ.js → chunk-QNM3M4MU.js} +2 -1
- package/dist/{chunk-PBRN7MJY.js → chunk-QWAHK2QG.js} +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.d.cts +4 -3
- package/dist/components/Badge.d.ts +4 -3
- package/dist/components/Badge.js +1 -1
- package/dist/components/Button.cjs +4 -0
- package/dist/components/Button.d.cts +23 -26
- package/dist/components/Button.d.ts +23 -26
- package/dist/components/Button.js +2 -2
- package/dist/components/ButtonRow.cjs +4 -0
- package/dist/components/ButtonRow.js +3 -3
- package/dist/components/CardPage.js +4 -4
- package/dist/components/CurrencyAmount.cjs +2 -1
- package/dist/components/CurrencyAmount.d.cts +3 -3
- package/dist/components/CurrencyAmount.d.ts +3 -3
- package/dist/components/CurrencyAmount.js +1 -1
- package/dist/components/GradientCardHeader.cjs +1382 -14
- package/dist/components/GradientCardHeader.d.cts +2 -1
- package/dist/components/GradientCardHeader.d.ts +2 -1
- package/dist/components/GradientCardHeader.js +7 -1
- package/dist/components/Modal.cjs +4 -0
- package/dist/components/Modal.js +4 -4
- package/dist/components/StatusIndicator.cjs +1405 -0
- package/dist/components/StatusIndicator.d.cts +12 -0
- package/dist/components/StatusIndicator.d.ts +12 -0
- package/dist/components/StatusIndicator.js +12 -0
- package/dist/components/index.cjs +116 -90
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +13 -9
- package/dist/icons/FramedLetterI.cjs +55 -0
- package/dist/icons/FramedLetterI.d.cts +5 -0
- package/dist/icons/FramedLetterI.d.ts +5 -0
- package/dist/icons/FramedLetterI.js +36 -0
- package/dist/router.cjs +2 -0
- package/dist/router.d.cts +2 -1
- package/dist/router.d.ts +2 -1
- package/dist/router.js +1 -1
- package/dist/styles/fonts/typography/Article.js +3 -3
- package/dist/styles/fonts/typography/index.js +7 -7
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/{types/utils.cjs → utils/parseURLFragments.cjs} +18 -13
- package/dist/utils/parseURLFragments.d.cts +3 -0
- package/dist/utils/parseURLFragments.d.ts +3 -0
- package/dist/utils/parseURLFragments.js +19 -0
- package/dist/utils/toReactNodes.cjs +2 -0
- package/dist/utils/toReactNodes.js +2 -2
- package/package.json +2 -2
- package/dist/types/utils.d.cts +0 -16
- package/dist/types/utils.d.ts +0 -16
- package/dist/types/utils.js +0 -13
- package/dist/{chunk-VZX5ETRB.js → chunk-A3ZJ2C7J.js} +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
@@ -17,6 +17,7 @@ export { Modal } from './Modal.js';
|
|
|
17
17
|
export { Pill } from './Pill.js';
|
|
18
18
|
export { ProgressBar, ProgressBarProps } from './ProgressBar.js';
|
|
19
19
|
export { SecretContainer } from './SecretContainer.js';
|
|
20
|
+
export { StatusIndicator, StatusIndicatorColors, StatusIndicatorProps } from './StatusIndicator.js';
|
|
20
21
|
export { TextIconAligner, TextIconAlignerProps } from './TextIconAligner.js';
|
|
21
22
|
export { UnstyledButton } from './UnstyledButton.js';
|
|
22
23
|
import '@emotion/react/jsx-runtime';
|
package/dist/components/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import "../chunk-KMR5C25B.js";
|
|
|
5
5
|
import "../chunk-IJVWYT5G.js";
|
|
6
6
|
import {
|
|
7
7
|
Modal
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-KMTXQD46.js";
|
|
9
|
+
import "../chunk-5GBDVTL6.js";
|
|
10
10
|
import "../chunk-NBCCPGA4.js";
|
|
11
11
|
import {
|
|
12
12
|
ProgressBar
|
|
@@ -20,19 +20,22 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
CurrencyAmount,
|
|
22
22
|
CurrencyIcon
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-QNM3M4MU.js";
|
|
24
24
|
import {
|
|
25
25
|
Pill
|
|
26
26
|
} from "../chunk-A4FQBEYU.js";
|
|
27
27
|
import {
|
|
28
28
|
GradientCardHeader
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-5DK6QL77.js";
|
|
30
|
+
import {
|
|
31
|
+
StatusIndicator
|
|
32
|
+
} from "../chunk-34CIJVQQ.js";
|
|
30
33
|
import {
|
|
31
34
|
LightboxImage
|
|
32
35
|
} from "../chunk-Z5TPS2BO.js";
|
|
33
36
|
import {
|
|
34
37
|
Badge
|
|
35
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-EXGJIYUI.js";
|
|
36
39
|
import {
|
|
37
40
|
CardPage,
|
|
38
41
|
CardPageContent,
|
|
@@ -40,18 +43,18 @@ import {
|
|
|
40
43
|
CardPageFullWidth,
|
|
41
44
|
CardPageRightContentInner,
|
|
42
45
|
CardPageSubtitle
|
|
43
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-QWAHK2QG.js";
|
|
44
47
|
import "../chunk-P3EUPXFA.js";
|
|
45
48
|
import {
|
|
46
49
|
ButtonRow,
|
|
47
50
|
ButtonRowContainer
|
|
48
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-DFYHIUYN.js";
|
|
49
52
|
import {
|
|
50
53
|
Button,
|
|
51
54
|
ButtonSelector,
|
|
52
55
|
StyledButton
|
|
53
|
-
} from "../chunk-
|
|
54
|
-
import "../chunk-
|
|
56
|
+
} from "../chunk-75VDSSXM.js";
|
|
57
|
+
import "../chunk-QCXXJZDC.js";
|
|
55
58
|
import "../chunk-YMNSXZ5D.js";
|
|
56
59
|
import {
|
|
57
60
|
Loading,
|
|
@@ -121,6 +124,7 @@ export {
|
|
|
121
124
|
Pill,
|
|
122
125
|
ProgressBar,
|
|
123
126
|
SecretContainer,
|
|
127
|
+
StatusIndicator,
|
|
124
128
|
StyledButton,
|
|
125
129
|
StyledCodeBlock,
|
|
126
130
|
TextIconAligner,
|
|
@@ -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,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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Article
|
|
4
|
-
} from "../../../chunk-
|
|
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
10
|
import "../../../chunk-XP2MX2AA.js";
|
|
11
11
|
import "../../../chunk-YMNSXZ5D.js";
|
|
@@ -12,7 +12,13 @@ import {
|
|
|
12
12
|
} from "../../../chunk-RBYRXBPI.js";
|
|
13
13
|
import {
|
|
14
14
|
Article
|
|
15
|
-
} from "../../../chunk-
|
|
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,12 +28,6 @@ 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";
|
package/dist/types/index.d.cts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -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/
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
23
|
-
|
|
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(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
notNullUndefined
|
|
41
|
+
parseURLFragments
|
|
37
42
|
});
|
|
@@ -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
|
+
};
|
|
@@ -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-
|
|
5
|
-
import "../chunk-
|
|
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.
|
|
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,7 +43,7 @@
|
|
|
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.22",
|
|
47
47
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
48
48
|
"gql": "^1.1.2",
|
|
49
49
|
"lodash-es": "^4.17.21",
|
package/dist/types/utils.d.cts
DELETED
|
@@ -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 };
|
package/dist/types/utils.d.ts
DELETED
|
@@ -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 };
|
package/dist/types/utils.js
DELETED
|
@@ -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
|
-
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StyledTitle
|
|
3
|
-
} from "./chunk-FHNYQLMF.js";
|
|
4
|
-
import {
|
|
5
|
-
StyledBody
|
|
6
|
-
} from "./chunk-LD5LZXUP.js";
|
|
7
1
|
import {
|
|
8
2
|
StyledCode
|
|
9
3
|
} from "./chunk-BCFRW7CV.js";
|
|
10
4
|
import {
|
|
11
5
|
displaySelector
|
|
12
6
|
} from "./chunk-QGGOMPHZ.js";
|
|
7
|
+
import {
|
|
8
|
+
StyledTitle
|
|
9
|
+
} from "./chunk-FHNYQLMF.js";
|
|
10
|
+
import {
|
|
11
|
+
StyledBody
|
|
12
|
+
} from "./chunk-LD5LZXUP.js";
|
|
13
13
|
import {
|
|
14
14
|
ALL_HEADLINE_SELECTORS,
|
|
15
15
|
headlineSelector
|