@lightsparkdev/ui 0.0.5 → 0.0.7
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 +19 -0
- package/README.md +2 -0
- package/dist/{chunk-3PB5DNAL.js → chunk-23SR7TFO.js} +1 -1
- package/dist/{chunk-VV7F7VVL.js → chunk-2WYVO6B2.js} +1 -1
- package/dist/{chunk-PVUPVJ3F.js → chunk-3CZOYF3X.js} +5 -2
- package/dist/{chunk-4K2KAYVH.js → chunk-4TFRLWCC.js} +4 -1
- package/dist/{chunk-SUD5NOKE.js → chunk-FKETYVPP.js} +11 -6
- package/dist/{chunk-6R6A5H4I.js → chunk-G2PZZFJL.js} +20 -12
- package/dist/{chunk-WB6FFT7Y.js → chunk-I74XQIVV.js} +6 -3
- package/dist/{chunk-DHNWT2E5.js → chunk-IQFU7CM5.js} +1 -1
- package/dist/{chunk-U6LQLAWI.js → chunk-JYWYEOM6.js} +3 -3
- package/dist/{chunk-EZ4RHFY7.js → chunk-K7D7A34K.js} +1 -1
- package/dist/{chunk-6RXFA73Z.js → chunk-M56R3RJ7.js} +10 -1
- package/dist/{chunk-WEPQ7LRL.js → chunk-N2RDQJQ5.js} +1 -1
- package/dist/{chunk-OLAFBUE5.js → chunk-NGS4OSWT.js} +1 -1
- package/dist/{chunk-ANJDI74G.js → chunk-NH25O7PC.js} +6 -3
- package/dist/{chunk-MYG24ZWT.js → chunk-NZJCJJH5.js} +1 -1
- package/dist/{chunk-SW6ZA7W2.js → chunk-QGGOMPHZ.js} +4 -1
- package/dist/{chunk-XUGLVWSH.js → chunk-RFGKH3R6.js} +27 -7
- package/dist/{chunk-ZQTE53SK.js → chunk-RTUZVKPK.js} +10 -8
- package/dist/{chunk-YHSFWCFN.js → chunk-T33SBHYI.js} +3 -2
- package/dist/chunk-TAI352I3.js +30 -0
- package/dist/{chunk-SV5QPU7N.js → chunk-UO6U7AYM.js} +1 -1
- package/dist/{chunk-4ZZHBSW4.js → chunk-VBWTKANQ.js} +15 -8
- package/dist/{chunk-FRIQXHPR.js → chunk-WWFDI534.js} +3 -3
- package/dist/chunk-YMNSXZ5D.js +8 -0
- package/dist/components/Button.cjs +8 -1
- package/dist/components/Button.js +8 -7
- package/dist/components/ButtonRow.js +10 -9
- package/dist/components/Collapsible.cjs +8 -4
- package/dist/components/Collapsible.js +5 -5
- package/dist/components/ContentTable.js +4 -4
- package/dist/components/CopyToClipboardButton.js +5 -5
- package/dist/components/CurrencyAmount.js +4 -4
- package/dist/components/Icon.js +3 -3
- package/dist/components/LightsparkProvider.cjs +2 -1
- package/dist/components/LightsparkProvider.js +4 -4
- package/dist/components/Loading.js +4 -4
- package/dist/components/Modal.cjs +113 -66
- package/dist/components/Modal.d.cts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/components/Modal.js +12 -10
- package/dist/components/ProgressBar.cjs +200 -17
- package/dist/components/ProgressBar.js +3 -1
- package/dist/components/SecretContainer.cjs +12 -6
- package/dist/components/SecretContainer.js +6 -6
- package/dist/components/TextIconAligner.d.cts +2 -2
- package/dist/components/TextIconAligner.d.ts +2 -2
- package/dist/components/TextIconAligner.js +4 -4
- package/dist/components/UnstyledButton.js +3 -3
- package/dist/components/documentation/AnchorLinkHeader.cjs +7 -2
- package/dist/components/documentation/AnchorLinkHeader.js +6 -5
- package/dist/components/documentation/index.cjs +7 -2
- package/dist/components/documentation/index.js +6 -5
- package/dist/components/index.cjs +108 -60
- package/dist/components/index.js +20 -18
- package/dist/icons/DotGrid1x3Horizontal.cjs +60 -0
- package/dist/icons/DotGrid1x3Horizontal.d.cts +5 -0
- package/dist/icons/DotGrid1x3Horizontal.d.ts +5 -0
- package/dist/icons/DotGrid1x3Horizontal.js +41 -0
- package/dist/icons/Home.cjs +52 -0
- package/dist/icons/Home.d.cts +5 -0
- package/dist/icons/Home.d.ts +5 -0
- package/dist/icons/Home.js +29 -0
- package/dist/icons/Person.cjs +22 -12
- package/dist/icons/Person.js +23 -13
- package/dist/icons/Team.cjs +3 -3
- package/dist/icons/Team.js +3 -3
- package/dist/icons/index.js +3 -3
- package/dist/router.cjs +10 -0
- package/dist/router.d.cts +5 -2
- package/dist/router.d.ts +5 -2
- package/dist/router.js +3 -1
- package/dist/styles/colors.d.cts +2 -1
- package/dist/styles/colors.d.ts +2 -1
- package/dist/styles/common.cjs +26 -4
- package/dist/styles/common.d.cts +16 -9
- package/dist/styles/common.d.ts +16 -9
- package/dist/styles/common.js +6 -2
- package/dist/styles/fields.cjs +1 -1
- package/dist/styles/fields.d.cts +11 -15
- package/dist/styles/fields.d.ts +11 -15
- package/dist/styles/fields.js +5 -5
- package/dist/styles/fonts/typography/Article.cjs +18 -6
- package/dist/styles/fonts/typography/Article.js +9 -8
- package/dist/styles/fonts/typography/Display.cjs +6 -1
- package/dist/styles/fonts/typography/Display.js +2 -1
- package/dist/styles/fonts/typography/Headline.cjs +6 -1
- package/dist/styles/fonts/typography/Headline.js +2 -1
- package/dist/styles/fonts/typography/index.cjs +18 -6
- package/dist/styles/fonts/typography/index.js +15 -14
- package/dist/styles/fonts/typographyTokens.d.cts +4 -1
- package/dist/styles/fonts/typographyTokens.d.ts +4 -1
- package/dist/styles/global.cjs +2 -1
- package/dist/styles/global.js +3 -3
- package/dist/styles/type.cjs +3 -2
- package/dist/styles/type.d.cts +4 -0
- package/dist/styles/type.d.ts +4 -0
- package/dist/styles/type.js +6 -5
- package/dist/styles/utils.js +3 -3
- package/dist/utils/emotion.cjs +32 -0
- package/dist/utils/emotion.d.cts +5 -0
- package/dist/utils/emotion.d.ts +5 -0
- package/dist/utils/emotion.js +7 -0
- package/dist/utils/toReactNodes.cjs +1252 -0
- package/dist/utils/toReactNodes.d.cts +14 -0
- package/dist/utils/toReactNodes.d.ts +14 -0
- package/dist/utils/toReactNodes.js +14 -0
- package/package.json +12 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare const ToReactNodesTypes: {
|
|
4
|
+
readonly Link: "link";
|
|
5
|
+
};
|
|
6
|
+
type ToReactNodesArg<RoutesType extends string> = string | {
|
|
7
|
+
type: typeof ToReactNodesTypes.Link;
|
|
8
|
+
text: string;
|
|
9
|
+
to: RoutesType;
|
|
10
|
+
};
|
|
11
|
+
type ToReactNodesArgs<RoutesType extends string> = ToReactNodesArg<RoutesType> | ToReactNodesArg<RoutesType>[];
|
|
12
|
+
declare function toReactNodes<RoutesType extends string>(toReactNodesArg: ToReactNodesArgs<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { ToReactNodesArg, ToReactNodesArgs, ToReactNodesTypes, toReactNodes };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare const ToReactNodesTypes: {
|
|
4
|
+
readonly Link: "link";
|
|
5
|
+
};
|
|
6
|
+
type ToReactNodesArg<RoutesType extends string> = string | {
|
|
7
|
+
type: typeof ToReactNodesTypes.Link;
|
|
8
|
+
text: string;
|
|
9
|
+
to: RoutesType;
|
|
10
|
+
};
|
|
11
|
+
type ToReactNodesArgs<RoutesType extends string> = ToReactNodesArg<RoutesType> | ToReactNodesArg<RoutesType>[];
|
|
12
|
+
declare function toReactNodes<RoutesType extends string>(toReactNodesArg: ToReactNodesArgs<RoutesType>): _emotion_react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { ToReactNodesArg, ToReactNodesArgs, ToReactNodesTypes, toReactNodes };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ToReactNodesTypes,
|
|
3
|
+
toReactNodes
|
|
4
|
+
} from "../chunk-TAI352I3.js";
|
|
5
|
+
import "../chunk-M56R3RJ7.js";
|
|
6
|
+
import "../chunk-LAMQKQU3.js";
|
|
7
|
+
import "../chunk-2VBDEO6M.js";
|
|
8
|
+
import "../chunk-E4EXM4SY.js";
|
|
9
|
+
import "../chunk-JSGRNWSB.js";
|
|
10
|
+
import "../chunk-CIGAQ47A.js";
|
|
11
|
+
export {
|
|
12
|
+
ToReactNodesTypes,
|
|
13
|
+
toReactNodes
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"lint:fix": "eslint --fix .",
|
|
34
34
|
"lint:watch": "esw . -w --ext .ts,.tsx,.js --color",
|
|
35
35
|
"lint": "eslint .",
|
|
36
|
-
"test": "
|
|
36
|
+
"test": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --bail",
|
|
37
37
|
"types": "yarn tsc",
|
|
38
38
|
"types:watch": "tsc-absolute --watch"
|
|
39
39
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@emotion/css": "^11.11.0",
|
|
43
43
|
"@emotion/react": "^11.11.0",
|
|
44
44
|
"@emotion/styled": "^11.11.0",
|
|
45
|
-
"@lightsparkdev/core": "1.0.
|
|
45
|
+
"@lightsparkdev/core": "1.0.16",
|
|
46
46
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
|
47
47
|
"gql": "^1.1.2",
|
|
48
48
|
"lodash-es": "^4.17.21",
|
|
@@ -56,14 +56,23 @@
|
|
|
56
56
|
"@lightsparkdev/eslint-config": "*",
|
|
57
57
|
"@lightsparkdev/tsconfig": "0.0.0",
|
|
58
58
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
59
|
+
"@testing-library/dom": "^9.2.0",
|
|
60
|
+
"@testing-library/jest-dom": "^6.1.2",
|
|
61
|
+
"@testing-library/react": "^14.0.0",
|
|
62
|
+
"@testing-library/user-event": "^14.4.3",
|
|
63
|
+
"@types/jest": "^29.5.3",
|
|
64
|
+
"babel-jest": "^29.6.4",
|
|
59
65
|
"esbuild-plugin-copy": "^2.1.1",
|
|
60
66
|
"esbuild-plugin-svgr": "^2.1.0",
|
|
61
67
|
"eslint": "^8.3.0",
|
|
62
68
|
"eslint-watch": "^8.0.0",
|
|
63
69
|
"graphql": "^16.6.0",
|
|
70
|
+
"jest": "^29.6.2",
|
|
71
|
+
"jest-environment-jsdom": "^29.6.4",
|
|
64
72
|
"madge": "^6.1.0",
|
|
65
73
|
"prettier": "3.0.3",
|
|
66
74
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
75
|
+
"ts-jest": "^29.1.1",
|
|
67
76
|
"tsc-absolute": "^1.0.1",
|
|
68
77
|
"tsup": "^7.2.0",
|
|
69
78
|
"typescript": "^5.0.0"
|