@lightsparkdev/ui 0.0.8 → 0.0.9
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 +13 -0
- package/dist/{chunk-NRXJA2PM.js → chunk-3EVAP5JT.js} +1 -1
- package/dist/{chunk-4KWTXZRY.js → chunk-3GS5EFXV.js} +1 -1
- package/dist/{chunk-WTO7C7WA.js → chunk-5POPBNPS.js} +1 -1
- package/dist/{chunk-UWN53KLJ.js → chunk-7C4MHI6Q.js} +3 -3
- package/dist/{chunk-6FHLZM6N.js → chunk-7T36JGTC.js} +2 -2
- package/dist/{chunk-YPB5SA65.js → chunk-A4FQBEYU.js} +6 -6
- package/dist/{chunk-SZVMKB4E.js → chunk-ATUH6SXK.js} +19 -8
- package/dist/{chunk-U6XT5JKC.js → chunk-DQRN4E5G.js} +1 -1
- package/dist/{chunk-36C653MV.js → chunk-E3AOYBY5.js} +1 -1
- package/dist/{chunk-MAMSU2XB.js → chunk-EEFNW7NS.js} +3 -3
- package/dist/{chunk-2YB7653N.js → chunk-FCZJILMW.js} +1 -1
- package/dist/{chunk-ZYHA6MJC.js → chunk-H3RW6JSU.js} +1 -1
- package/dist/chunk-IPAXAP6K.js +119 -0
- package/dist/{chunk-BAO4T4G5.js → chunk-J4FJQ3FN.js} +1 -1
- package/dist/{chunk-HNVQIY5U.js → chunk-JK4BP73A.js} +39 -30
- package/dist/{chunk-ZSUX6RLD.js → chunk-KMR5C25B.js} +1 -1
- package/dist/{chunk-2JM7UTAZ.js → chunk-NFSAJ5GJ.js} +8 -8
- package/dist/{chunk-DAVVD7YE.js → chunk-NM7UW54G.js} +18 -21
- package/dist/chunk-P3EUPXFA.js +150 -0
- package/dist/chunk-PBRN7MJY.js +315 -0
- package/dist/{chunk-CW3W2VTZ.js → chunk-PVQCLQNA.js} +1 -1
- package/dist/{chunk-VHW2KROZ.js → chunk-RWIZ7Q74.js} +1 -1
- package/dist/{chunk-744FBGRP.js → chunk-XP2MX2AA.js} +1 -1
- package/dist/{chunk-XAZ6NZ6I.js → chunk-XZR237JJ.js} +1 -1
- package/dist/{chunk-FN5PM3HQ.js → chunk-Y37DCY7Y.js} +6 -6
- package/dist/{chunk-76Q4BK35.js → chunk-ZANLDY2W.js} +5 -5
- package/dist/components/Badge.cjs +38 -24
- package/dist/components/Badge.js +2 -2
- package/dist/components/Button.cjs +38 -24
- package/dist/components/Button.js +6 -6
- package/dist/components/ButtonRow.cjs +42 -28
- package/dist/components/ButtonRow.js +8 -8
- package/dist/components/CardPage.cjs +1921 -0
- package/dist/components/CardPage.d.cts +54 -0
- package/dist/components/CardPage.d.ts +54 -0
- package/dist/components/CardPage.js +33 -0
- package/dist/components/Collapsible.cjs +38 -24
- package/dist/components/Collapsible.js +4 -4
- package/dist/components/ContentTable.cjs +38 -24
- package/dist/components/ContentTable.js +3 -3
- package/dist/components/CopyToClipboardButton.cjs +38 -24
- package/dist/components/CopyToClipboardButton.js +5 -5
- package/dist/components/CurrencyAmount.cjs +38 -24
- package/dist/components/CurrencyAmount.js +3 -3
- package/dist/components/FileInput.cjs +38 -24
- package/dist/components/FileInput.js +7 -7
- package/dist/components/GradientCardHeader.cjs +177 -0
- package/dist/components/GradientCardHeader.d.cts +10 -0
- package/dist/components/GradientCardHeader.d.ts +10 -0
- package/dist/components/GradientCardHeader.js +8 -0
- package/dist/components/Icon.cjs +38 -24
- package/dist/components/Icon.js +2 -2
- package/dist/components/LightTooltip.cjs +38 -24
- package/dist/components/LightTooltip.js +2 -2
- package/dist/components/LightsparkProvider.cjs +38 -24
- package/dist/components/LightsparkProvider.js +3 -3
- package/dist/components/Loading.cjs +38 -24
- package/dist/components/Loading.js +3 -3
- package/dist/components/Modal.cjs +46 -34
- package/dist/components/Modal.js +9 -9
- package/dist/components/Pill.cjs +38 -24
- package/dist/components/Pill.js +6 -6
- package/dist/components/ProgressBar.cjs +38 -24
- package/dist/components/ProgressBar.js +2 -2
- package/dist/components/SecretContainer.cjs +38 -24
- package/dist/components/SecretContainer.js +6 -6
- package/dist/components/TextIconAligner.cjs +38 -24
- package/dist/components/TextIconAligner.js +3 -3
- package/dist/components/UnstyledButton.cjs +38 -24
- package/dist/components/UnstyledButton.js +2 -2
- package/dist/components/documentation/AnchorLinkHeader.cjs +38 -24
- package/dist/components/documentation/AnchorLinkHeader.js +3 -3
- package/dist/components/documentation/index.cjs +38 -24
- package/dist/components/documentation/index.js +3 -3
- package/dist/components/index.cjs +737 -185
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +51 -32
- package/dist/icons/ArrowCornerDownRight.cjs +49 -0
- package/dist/icons/ArrowCornerDownRight.d.cts +5 -0
- package/dist/icons/ArrowCornerDownRight.d.ts +5 -0
- package/dist/icons/ArrowCornerDownRight.js +30 -0
- package/dist/icons/Sort.cjs +48 -0
- package/dist/icons/Sort.d.cts +5 -0
- package/dist/icons/Sort.d.ts +5 -0
- package/dist/icons/Sort.js +29 -0
- package/dist/icons/index.cjs +38 -24
- package/dist/icons/index.js +2 -2
- package/dist/styles/common.cjs +38 -34
- package/dist/styles/common.d.cts +10 -7
- package/dist/styles/common.d.ts +10 -7
- package/dist/styles/common.js +1 -11
- package/dist/styles/fields.cjs +56 -31
- package/dist/styles/fields.d.cts +4 -3
- package/dist/styles/fields.d.ts +4 -3
- package/dist/styles/fields.js +2 -2
- package/dist/styles/fonts/typography/Article.cjs +38 -24
- package/dist/styles/fonts/typography/Article.js +6 -6
- package/dist/styles/fonts/typography/index.cjs +38 -24
- package/dist/styles/fonts/typography/index.js +11 -11
- package/dist/styles/global.cjs +38 -24
- package/dist/styles/global.js +2 -2
- package/dist/styles/type.cjs +38 -24
- package/dist/styles/type.js +8 -144
- package/dist/styles/utils.cjs +38 -24
- package/dist/styles/utils.js +2 -2
- package/package.json +7 -4
|
@@ -1369,30 +1369,44 @@ var import_react5 = require("@emotion/react");
|
|
|
1369
1369
|
var import_styled = __toESM(require("@emotion/styled"), 1);
|
|
1370
1370
|
var rootFontSizePx = 12;
|
|
1371
1371
|
var rootFontSizeRems = rootFontSizePx / 16;
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
`
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
`;
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1372
|
+
function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
1373
|
+
const smCSS = import_react5.css`
|
|
1374
|
+
${bp.sm(`
|
|
1375
|
+
margin-left: auto;
|
|
1376
|
+
margin-right: auto;
|
|
1377
|
+
width: calc(100% - ${smPx * 2}px);
|
|
1378
|
+
`)}
|
|
1379
|
+
`;
|
|
1380
|
+
const minSmMaxLgCSS = import_react5.css`
|
|
1381
|
+
${bp.minSmMaxLg(`
|
|
1382
|
+
margin-left: auto;
|
|
1383
|
+
margin-right: auto;
|
|
1384
|
+
width: calc(100% - ${minSmMaxLgPx * 2}px);
|
|
1385
|
+
`)}
|
|
1386
|
+
`;
|
|
1387
|
+
const lgCSS = import_react5.css`
|
|
1388
|
+
${bp.lg(`
|
|
1389
|
+
margin-left: auto;
|
|
1390
|
+
margin-right: auto;
|
|
1391
|
+
width: calc(100% - ${lgPx * 2}px);
|
|
1392
|
+
max-width: 1280px;
|
|
1393
|
+
`)}
|
|
1394
|
+
`;
|
|
1395
|
+
return {
|
|
1396
|
+
smPx,
|
|
1397
|
+
minSmMaxLgPx,
|
|
1398
|
+
lgPx,
|
|
1399
|
+
smCSS,
|
|
1400
|
+
minSmMaxLgCSS,
|
|
1401
|
+
lgCSS,
|
|
1402
|
+
css: import_react5.css`
|
|
1403
|
+
${lgCSS}
|
|
1404
|
+
${smCSS}
|
|
1405
|
+
${minSmMaxLgCSS}
|
|
1406
|
+
`
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1409
|
+
var standardContentInset = buildStandardContentInset(16, 24, 32);
|
|
1396
1410
|
var standardCardShadow = import_react5.css`
|
|
1397
1411
|
box-shadow:
|
|
1398
1412
|
0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
Button,
|
|
3
3
|
ButtonSelector,
|
|
4
4
|
StyledButton
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZANLDY2W.js";
|
|
6
6
|
import "../chunk-OGSDZTHM.js";
|
|
7
7
|
import "../chunk-YMNSXZ5D.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-J4FJQ3FN.js";
|
|
9
|
+
import "../chunk-3GS5EFXV.js";
|
|
10
|
+
import "../chunk-3EVAP5JT.js";
|
|
11
11
|
import "../chunk-55OQPFLF.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-RWIZ7Q74.js";
|
|
13
13
|
import "../chunk-LAMQKQU3.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-JK4BP73A.js";
|
|
15
15
|
import "../chunk-2VBDEO6M.js";
|
|
16
16
|
import "../chunk-E4EXM4SY.js";
|
|
17
17
|
import "../chunk-JSGRNWSB.js";
|
|
@@ -1289,30 +1289,44 @@ function hexToRGB(hex) {
|
|
|
1289
1289
|
// src/styles/common.tsx
|
|
1290
1290
|
var rootFontSizePx = 12;
|
|
1291
1291
|
var rootFontSizeRems = rootFontSizePx / 16;
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
`
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
`;
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1292
|
+
function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
|
|
1293
|
+
const smCSS = import_react4.css`
|
|
1294
|
+
${bp.sm(`
|
|
1295
|
+
margin-left: auto;
|
|
1296
|
+
margin-right: auto;
|
|
1297
|
+
width: calc(100% - ${smPx * 2}px);
|
|
1298
|
+
`)}
|
|
1299
|
+
`;
|
|
1300
|
+
const minSmMaxLgCSS = import_react4.css`
|
|
1301
|
+
${bp.minSmMaxLg(`
|
|
1302
|
+
margin-left: auto;
|
|
1303
|
+
margin-right: auto;
|
|
1304
|
+
width: calc(100% - ${minSmMaxLgPx * 2}px);
|
|
1305
|
+
`)}
|
|
1306
|
+
`;
|
|
1307
|
+
const lgCSS = import_react4.css`
|
|
1308
|
+
${bp.lg(`
|
|
1309
|
+
margin-left: auto;
|
|
1310
|
+
margin-right: auto;
|
|
1311
|
+
width: calc(100% - ${lgPx * 2}px);
|
|
1312
|
+
max-width: 1280px;
|
|
1313
|
+
`)}
|
|
1314
|
+
`;
|
|
1315
|
+
return {
|
|
1316
|
+
smPx,
|
|
1317
|
+
minSmMaxLgPx,
|
|
1318
|
+
lgPx,
|
|
1319
|
+
smCSS,
|
|
1320
|
+
minSmMaxLgCSS,
|
|
1321
|
+
lgCSS,
|
|
1322
|
+
css: import_react4.css`
|
|
1323
|
+
${lgCSS}
|
|
1324
|
+
${smCSS}
|
|
1325
|
+
${minSmMaxLgCSS}
|
|
1326
|
+
`
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
var standardContentInset = buildStandardContentInset(16, 24, 32);
|
|
1316
1330
|
var standardCardShadow = import_react4.css`
|
|
1317
1331
|
box-shadow:
|
|
1318
1332
|
0px 4px 10px 0px rgba(0, 0, 0, 0.08),
|
|
@@ -2032,9 +2046,9 @@ var ButtonRowContainer = import_styled6.default.div`
|
|
|
2032
2046
|
position: sticky;
|
|
2033
2047
|
top: ${headerHeight}px;
|
|
2034
2048
|
margin-top: 24px;
|
|
2035
|
-
margin-left: -${
|
|
2036
|
-
width: calc(100% + ${
|
|
2037
|
-
max-width: calc(100% + ${
|
|
2049
|
+
margin-left: -${standardContentInset.smPx}px;
|
|
2050
|
+
width: calc(100% + ${standardContentInset.smPx * 2}px);
|
|
2051
|
+
max-width: calc(100% + ${standardContentInset.smPx * 2}px);
|
|
2038
2052
|
z-index: 2;` : `position: relative;`}
|
|
2039
2053
|
z-index: 2;
|
|
2040
2054
|
&:before {
|
|
@@ -2073,7 +2087,7 @@ var StyledButtonRow = import_styled6.default.div`
|
|
|
2073
2087
|
}
|
|
2074
2088
|
|
|
2075
2089
|
${bp.sm(`
|
|
2076
|
-
padding:
|
|
2090
|
+
padding: ${standardContentInset.smPx}px;
|
|
2077
2091
|
`)}
|
|
2078
2092
|
`;
|
|
2079
2093
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
ButtonRow,
|
|
3
3
|
ButtonRowContainer,
|
|
4
4
|
StyledButtonRow
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-NFSAJ5GJ.js";
|
|
6
|
+
import "../chunk-ZANLDY2W.js";
|
|
7
7
|
import "../chunk-OGSDZTHM.js";
|
|
8
8
|
import "../chunk-YMNSXZ5D.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-NRXJA2PM.js";
|
|
9
|
+
import "../chunk-J4FJQ3FN.js";
|
|
10
|
+
import "../chunk-3GS5EFXV.js";
|
|
11
|
+
import "../chunk-3EVAP5JT.js";
|
|
13
12
|
import "../chunk-55OQPFLF.js";
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-FCZJILMW.js";
|
|
14
|
+
import "../chunk-RWIZ7Q74.js";
|
|
15
15
|
import "../chunk-LAMQKQU3.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-JK4BP73A.js";
|
|
17
17
|
import "../chunk-2VBDEO6M.js";
|
|
18
18
|
import "../chunk-E4EXM4SY.js";
|
|
19
19
|
import "../chunk-JSGRNWSB.js";
|